Code

Split SPCanvasItem and SPCanvasGroup to individual .h files. Removed forward header.
[inkscape.git] / src / sp-path.h
1 #ifndef SEEN_SP_PATH_H
2 #define SEEN_SP_PATH_H
4 /*
5  * SVG <path> implementation
6  *
7  * Authors:
8  *   Lauris Kaplinski <lauris@kaplinski.com>
9  *
10  * Copyright (C) 1999-2002 Lauris Kaplinski
11  * Copyright (C) 2000-2001 Ximian, Inc.
12  *
13  * Released under GNU GPL, read the file 'COPYING' for more information
14  */
16 #include "sp-shape.h"
17 #include "sp-conn-end-pair.h"
19 struct SPCurve;
21 #define SP_TYPE_PATH (sp_path_get_type ())
22 #define SP_PATH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SP_TYPE_PATH, SPPath))
23 #define SP_IS_PATH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SP_TYPE_PATH))
25 struct SPPath : public SPShape {
26     SPCurve *original_curve;
28     SPConnEndPair connEndPair;
29 };
31 struct SPPathClass {
32     SPShapeClass shape_class;
33 };
35 GType sp_path_get_type (void);
36 gint sp_nodes_in_path(SPPath *path);
38 void     sp_path_set_original_curve (SPPath *path, SPCurve *curve, unsigned int owner, bool write);
39 SPCurve* sp_path_get_original_curve (SPPath *path);
40 SPCurve* sp_path_get_curve_for_edit (SPPath *path);
41 const SPCurve* sp_path_get_curve_reference (SPPath *path);
43 #endif // SEEN_SP_PATH_H
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 :