Code

c4368686f349b2016fad9ebf450f52e4a79bdbac
[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  *
10  * Copyright (C) 1999-2002 Lauris Kaplinski
11  *
12  * Released under GNU GPL
13  */
15 #include "sp-canvas.h"
16 #include <livarot/Shape.h>
20 #define SP_TYPE_CTRLLINE (sp_ctrlline_get_type ())
21 #define SP_CTRLLINE(obj) (GTK_CHECK_CAST ((obj), SP_TYPE_CTRLLINE, SPCtrlLine))
22 #define SP_IS_CTRLLINE(obj) (GTK_CHECK_TYPE ((obj), SP_TYPE_CTRLLINE))
24 struct SPCtrlLine : public SPCanvasItem{
25     guint32 rgba;
26     NRPoint s, e;
27     Shape* shp;
28 };
29 struct SPCtrlLineClass : public SPCanvasItemClass{};
31 GtkType sp_ctrlline_get_type (void);
33 void sp_ctrlline_set_rgba32 (SPCtrlLine *cl, guint32 rgba);
34 void sp_ctrlline_set_coords (SPCtrlLine *cl, gdouble x0, gdouble y0, gdouble x1, gdouble y1);
35 void sp_ctrlline_set_coords (SPCtrlLine *cl, const NR::Point start, const NR::Point end);
39 #endif
41 /*
42   Local Variables:
43   mode:c++
44   c-file-style:"stroustrup"
45   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
46   indent-tabs-mode:nil
47   fill-column:99
48   End:
49 */
50 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :