guideline.cpp revision 26df83e9e39227d74ed76d9241f7e752da1bffaa
#define __SP_GUIDELINE_C__
/*
* Horizontal/vertical but can also be angled line
*
* Authors:
* Lauris Kaplinski <lauris@kaplinski.com>
* Johan Engelen
*
* Copyright (C) 2000-2002 Lauris Kaplinski
* Copyright (C) 2007 Johan Engelen
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include <libnr/nr-pixops.h>
#include "display-forward.h"
#include "sp-canvas-util.h"
#include "guideline.h"
static void sp_guideline_class_init(SPGuideLineClass *c);
static SPCanvasItemClass *parent_class;
{
static GType guideline_type = 0;
if (!guideline_type) {
static GTypeInfo const guideline_info = {
sizeof (SPGuideLineClass),
sizeof (SPGuideLine),
16,
NULL,
};
guideline_type = g_type_register_static(SP_TYPE_CANVAS_ITEM, "SPGuideLine", &guideline_info, (GTypeFlags) 0);
}
return guideline_type;
}
static void sp_guideline_class_init(SPGuideLineClass *c)
{
}
{
}
{
}
{
return;
}
d[0] = NR_COMPOSEN11_1111(r, a, d[0]);
d += step;
}
return;
}
int step = 3;
d[0] = NR_COMPOSEN11_1111(r, a, d[0]);
d += step;
}
} else {
// render angled line
}
}
{
}
} else {
}
}
// Returns 0.0 if point is on the guideline
{
return NR_HUGE;
}
*actual_item = item;
}
SPCanvasItem *sp_guideline_new(SPCanvasGroup *parent, Geom::Point point_on_line, Geom::Point normal)
{
return item;
}
{
}
{
}
{
}
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :