summaryrefslogtreecommitdiffstats
path: root/src/display/guideline.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/display/guideline.h')
-rw-r--r--src/display/guideline.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/display/guideline.h b/src/display/guideline.h
index 2d9a87d9b..44aed88d9 100644
--- a/src/display/guideline.h
+++ b/src/display/guideline.h
@@ -21,17 +21,18 @@
#define SP_GUIDELINE(o) (G_TYPE_CHECK_INSTANCE_CAST((o), SP_TYPE_GUIDELINE, SPGuideLine))
#define SP_IS_GUIDELINE(o) (G_TYPE_CHECK_INSTANCE_TYPE((o), SP_TYPE_GUIDELINE))
-struct SPCtrlPoint;
+struct SPCtrl;
struct SPGuideLine {
SPCanvasItem item;
Geom::Affine affine;
- SPCtrlPoint *origin; // unlike 'item', this is only held locally
+ SPCtrl *origin; // unlike 'item', this is only held locally
guint32 rgba;
char* label;
+ bool locked;
Geom::Point normal_to_line;
Geom::Point point_on_line;
double angle;
@@ -51,6 +52,7 @@ GType sp_guideline_get_type();
SPCanvasItem *sp_guideline_new(SPCanvasGroup *parent, char* label, Geom::Point point_on_line, Geom::Point normal);
void sp_guideline_set_label(SPGuideLine *gl, const char* label);
+void sp_guideline_set_locked(SPGuideLine *gl, const bool locked);
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);