1 #ifndef __SP_GUIDELINE_H__
2 #define __SP_GUIDELINE_H__
4 /*
5 * The visual representation of SPGuide.
6 *
7 * Authors:
8 * Lauris Kaplinski <lauris@kaplinski.com>
9 * Johan Engelen
10 *
11 * Copyright (C) 2000-2002 Lauris Kaplinski
12 * Copyright (C) 2007 Johan Engelen
13 *
14 * Released under GNU GPL, read the file 'COPYING' for more information
15 */
17 #include "sp-canvas.h"
18 #include <2geom/point.h>
20 #define SP_TYPE_GUIDELINE (sp_guideline_get_type())
21 #define SP_GUIDELINE(o) (GTK_CHECK_CAST((o), SP_TYPE_GUIDELINE, SPGuideLine))
22 #define SP_IS_GUIDELINE(o) (GTK_CHECK_TYPE((o), SP_TYPE_GUIDELINE))
24 struct SPGuideLine {
25 SPCanvasItem item;
27 guint32 rgba;
29 Geom::Point normal_to_line;
30 Geom::Point point_on_line;
32 unsigned int sensitive : 1;
33 };
35 struct SPGuideLineClass {
36 SPCanvasItemClass parent_class;
37 };
39 GType sp_guideline_get_type();
41 SPCanvasItem *sp_guideline_new(SPCanvasGroup *parent, Geom::Point point_on_line, Geom::Point normal);
43 void sp_guideline_set_position(SPGuideLine *gl, Geom::Point point_on_line);
44 void sp_guideline_set_color(SPGuideLine *gl, unsigned int rgba);
45 void sp_guideline_set_sensitive(SPGuideLine *gl, int sensitive);
47 #endif
49 /*
50 Local Variables:
51 mode:c++
52 c-file-style:"stroustrup"
53 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
54 indent-tabs-mode:nil
55 fill-column:99
56 End:
57 */
58 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :