Code

Split SPCanvasItem and SPCanvasGroup to individual .h files. Removed forward header.
[inkscape.git] / src / display / sp-ctrlpoint.h
1 #ifndef SEEN_INKSCAPE_CTRLPOINT_H
2 #define SEEN_INKSCAPE_CTRLPOINT_H
4 /*
5  * A simple point
6  *
7  * Author:
8  *   Maximilian Albert <maximilian.albert@gmail.com>
9  *
10  * Copyright (C) 2008 Maximilian Albert
11  *
12  * Released under GNU GPL
13  */
15 #include "sp-canvas-item.h"
17 struct SPItem;
19 #define SP_TYPE_CTRLPOINT (sp_ctrlpoint_get_type ())
20 #define SP_CTRLPOINT(obj) (GTK_CHECK_CAST ((obj), SP_TYPE_CTRLPOINT, SPCtrlPoint))
21 #define SP_IS_CTRLPOINT(obj) (GTK_CHECK_TYPE ((obj), SP_TYPE_CTRLPOINT))
23 struct SPCtrlPoint : public SPCanvasItem {
24     SPItem *item;  // the item to which this line belongs in some sense; may be NULL for some users
25     guint32 rgba;
26     Geom::Point pt;
27     Geom::Matrix affine;
28     double radius;
29 };
30 struct SPCtrlPointClass : public SPCanvasItemClass{};
32 GType sp_ctrlpoint_get_type (void);
34 void sp_ctrlpoint_set_color (SPCtrlPoint *cp, guint32 rgba);
35 void sp_ctrlpoint_set_coords (SPCtrlPoint *cp, const gdouble x, const gdouble y);
36 void sp_ctrlpoint_set_coords (SPCtrlPoint *cp, const Geom::Point pt);
37 void sp_ctrlpoint_set_radius (SPCtrlPoint *cp, const double r);
41 #endif // SEEN_INKSCAPE_CTRLPOINT_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 :