Code

No more NRMatrix or NRPoint.
[inkscape.git] / src / display / sp-ctrlline.h
1 #ifndef __INKSCAPE_CTRLLINE_H__
2 #define __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.h"
18 #include <livarot/Shape.h>
21 struct SPItem;
23 #define SP_TYPE_CTRLLINE (sp_ctrlline_get_type ())
24 #define SP_CTRLLINE(obj) (GTK_CHECK_CAST ((obj), SP_TYPE_CTRLLINE, SPCtrlLine))
25 #define SP_IS_CTRLLINE(obj) (GTK_CHECK_TYPE ((obj), SP_TYPE_CTRLLINE))
27 struct SPCtrlLine : public SPCanvasItem{
28     SPItem *item;  // the item to which this line belongs in some sense; may be NULL for some users
29     guint32 rgba;
30     NR::Point s, e;
31     Shape* shp;
32 };
33 struct SPCtrlLineClass : public SPCanvasItemClass{};
35 GtkType sp_ctrlline_get_type (void);
37 void sp_ctrlline_set_rgba32 (SPCtrlLine *cl, guint32 rgba);
38 void sp_ctrlline_set_coords (SPCtrlLine *cl, gdouble x0, gdouble y0, gdouble x1, gdouble y1);
39 void sp_ctrlline_set_coords (SPCtrlLine *cl, const NR::Point start, const NR::Point end);
43 #endif
45 /*
46   Local Variables:
47   mode:c++
48   c-file-style:"stroustrup"
49   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
50   indent-tabs-mode:nil
51   fill-column:99
52   End:
53 */
54 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :