1 #ifndef __SP_LINE_H__
2 #define __SP_LINE_H__
4 /*
5 * SVG <line> implementation
6 *
7 * Authors:
8 * Lauris Kaplinski <lauris@kaplinski.com>
9 *
10 * Copyright (C) 1999-2002 Lauris Kaplinski
11 *
12 * Released under GNU GPL, read the file 'COPYING' for more information
13 */
15 #include "svg/svg-length.h"
16 #include "sp-shape.h"
20 #define SP_TYPE_LINE (sp_line_get_type ())
21 #define SP_LINE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SP_TYPE_LINE, SPLine))
22 #define SP_LINE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SP_TYPE_LINE, SPLineClass))
23 #define SP_IS_LINE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SP_TYPE_LINE))
24 #define SP_IS_LINE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SP_TYPE_LINE))
26 class SPLine;
27 class SPLineClass;
29 struct SPLine : public SPShape {
30 SVGLength x1;
31 SVGLength y1;
32 SVGLength x2;
33 SVGLength y2;
34 };
36 struct SPLineClass {
37 SPShapeClass parent_class;
38 };
40 GType sp_line_get_type (void);
44 #endif