Code

bf294c37ceebedf980d5af97eae31be309292e27
[inkscape.git] / src / sp-path.h
1 #ifndef __SP_PATH_H__
2 #define __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"
20 #define SP_TYPE_PATH (sp_path_get_type ())
21 #define SP_PATH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SP_TYPE_PATH, SPPath))
22 #define SP_IS_PATH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SP_TYPE_PATH))
24 struct SPPath : public SPShape {
25     SPCurve *original_curve;
27     SPConnEndPair connEndPair;
28 };
30 struct SPPathClass {
31     SPShapeClass shape_class;
32 };
34 GType sp_path_get_type (void);
35 gint sp_nodes_in_path(SPPath *path);
37 void     sp_path_set_original_curve (SPPath *path, SPCurve *curve, unsigned int owner, bool write);
38 SPCurve* sp_path_get_original_curve (SPPath *path);
39 SPCurve* sp_path_get_curve_for_edit (SPPath *path);
40 const SPCurve* sp_path_get_curve_reference (SPPath *path);
42 #endif
44 /*
45   Local Variables:
46   mode:c++
47   c-file-style:"stroustrup"
48   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
49   indent-tabs-mode:nil
50   fill-column:99
51   End:
52 */
53 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :