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