Code

Split SPCanvasItem and SPCanvasGroup to individual .h files. Removed forward header.
[inkscape.git] / src / display / sp-ctrlline.h
1 #ifndef SEEN_INKSCAPE_CTRLLINE_H
2 #define SEEN_INKSCAPE_CTRLLINE_H
4 /*
5  * Simple straight line
6  *
7  * Author:
8  *   Lauris Kaplinski <lauris@kaplinski.com>
9  *   Johan Engelen <j.b.c.engelen@ewi.utwente.nl>
10  *
11  * Copyright (C) 2007 Johan Engelen
12  * Copyright (C) 1999-2002 Lauris Kaplinski
13  *
14  * Released under GNU GPL
15  */
17 #include "sp-canvas-item.h"
19 struct SPItem;
21 #define SP_TYPE_CTRLLINE (sp_ctrlline_get_type ())
22 #define SP_CTRLLINE(obj) (GTK_CHECK_CAST ((obj), SP_TYPE_CTRLLINE, SPCtrlLine))
23 #define SP_IS_CTRLLINE(obj) (GTK_CHECK_TYPE ((obj), SP_TYPE_CTRLLINE))
25 struct SPCtrlLine : public SPCanvasItem{
26     SPItem *item;  // the item to which this line belongs in some sense; may be NULL for some users
27     guint32 rgba;
28     Geom::Point s, e;
29     Geom::Matrix affine;
30 };
31 struct SPCtrlLineClass : public SPCanvasItemClass{};
33 GType sp_ctrlline_get_type (void);
35 void sp_ctrlline_set_rgba32 (SPCtrlLine *cl, guint32 rgba);
36 void sp_ctrlline_set_coords (SPCtrlLine *cl, gdouble x0, gdouble y0, gdouble x1, gdouble y1);
37 void sp_ctrlline_set_coords (SPCtrlLine *cl, const Geom::Point start, const Geom::Point end);
41 #endif // SEEN_INKSCAPE_CTRLLINE_H
43 /*
44   Local Variables:
45   mode:c++
46   c-file-style:"stroustrup"
47   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
48   indent-tabs-mode:nil
49   fill-column:99
50   End:
51 */
52 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :