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"
17 #define SP_TYPE_GUIDELINE (sp_guideline_get_type())
18 #define SP_GUIDELINE(o) (GTK_CHECK_CAST((o), SP_TYPE_GUIDELINE, SPGuideLine))
19 #define SP_IS_GUIDELINE(o) (GTK_CHECK_TYPE((o), SP_TYPE_GUIDELINE))
21 struct SPGuideLine {
22 SPCanvasItem item;
24 guint32 rgba;
26 int position;
28 unsigned int vertical : 1;
29 unsigned int sensitive : 1;
30 };
32 struct SPGuideLineClass {
33 SPCanvasItemClass parent_class;
34 };
36 GType sp_guideline_get_type();
38 SPCanvasItem *sp_guideline_new(SPCanvasGroup *parent, double position, unsigned int vertical);
40 void sp_guideline_set_position(SPGuideLine *gl, double position);
41 void sp_guideline_set_color(SPGuideLine *gl, unsigned int rgba);
42 void sp_guideline_set_sensitive(SPGuideLine *gl, int sensitive);
44 #endif
46 /*
47 Local Variables:
48 mode:c++
49 c-file-style:"stroustrup"
50 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
51 indent-tabs-mode:nil
52 fill-column:99
53 End:
54 */
55 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :