summaryrefslogtreecommitdiffstats
path: root/src/display/guideline.h
diff options
context:
space:
mode:
authorFelipe Corr??a da Silva Sanches <juca@members.fsf.org>2011-05-18 20:04:33 +0000
committerFelipe C. da S. Sanches <juca@members.fsf.org>2011-05-18 20:04:33 +0000
commit7239afff554c14388dd6e930d903beb7bbd8b2ca (patch)
tree84ca0c787e616da36bef10425cc04c3f633a6a37 /src/display/guideline.h
parentMade dependencies explicit and bumped versions. (diff)
downloadinkscape-7239afff554c14388dd6e930d903beb7bbd8b2ca.tar.gz
inkscape-7239afff554c14388dd6e930d903beb7bbd8b2ca.zip
Adding inkscape:label parameter to guidelines so that our guidelanes can display labels (we still dont have a user interface, but files with that parameter will render correctly)
(bzr r10209)
Diffstat (limited to 'src/display/guideline.h')
-rw-r--r--src/display/guideline.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/display/guideline.h b/src/display/guideline.h
index 9654d04a1..dbf990d1f 100644
--- a/src/display/guideline.h
+++ b/src/display/guideline.h
@@ -29,6 +29,7 @@ struct SPGuideLine {
guint32 rgba;
+ char* label;
Geom::Point normal_to_line;
Geom::Point point_on_line;
double angle;
@@ -45,8 +46,9 @@ struct SPGuideLineClass {
GType sp_guideline_get_type();
-SPCanvasItem *sp_guideline_new(SPCanvasGroup *parent, Geom::Point point_on_line, Geom::Point normal);
+SPCanvasItem *sp_guideline_new(SPCanvasGroup *parent, char* label, Geom::Point point_on_line, Geom::Point normal);
+void sp_guideline_set_label(SPGuideLine *gl, char* label);
void sp_guideline_set_position(SPGuideLine *gl, Geom::Point point_on_line);
void sp_guideline_set_normal(SPGuideLine *gl, Geom::Point normal_to_line);
void sp_guideline_set_color(SPGuideLine *gl, unsigned int rgba);