diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2007-12-19 22:42:06 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2007-12-19 22:42:06 +0000 |
| commit | 377be2b170e6d762bf3ee6bcb3901fc56a01bc26 (patch) | |
| tree | 3d1ac62a1c9a353181b26701efd2fa12021fa300 /src/sp-guide.h | |
| parent | rename guide parameters to match snapping code naming convention. (diff) | |
| download | inkscape-377be2b170e6d762bf3ee6bcb3901fc56a01bc26.tar.gz inkscape-377be2b170e6d762bf3ee6bcb3901fc56a01bc26.zip | |
guides: switch from using one position coordinate to Geom::Point point_on_line
(bzr r4258)
Diffstat (limited to 'src/sp-guide.h')
| -rw-r--r-- | src/sp-guide.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/sp-guide.h b/src/sp-guide.h index aa3464918..48583bbe6 100644 --- a/src/sp-guide.h +++ b/src/sp-guide.h @@ -28,7 +28,7 @@ struct SPGuide : public SPObject { NR::Point normal_to_line; Geom::Point point_on_line; - gdouble position; + guint32 color; guint32 hicolor; GSList *views; @@ -45,8 +45,9 @@ void sp_guide_show(SPGuide *guide, SPCanvasGroup *group, GCallback handler); void sp_guide_hide(SPGuide *guide, SPCanvas *canvas); void sp_guide_sensitize(SPGuide *guide, SPCanvas *canvas, gboolean sensitive); -double sp_guide_position_from_pt(SPGuide const *guide, NR::Point const &pt); -void sp_guide_moveto(SPGuide const &guide, gdouble const position, bool const commit); +Geom::Point sp_guide_position_from_pt(SPGuide const *guide, NR::Point const &pt); +double sp_guide_distance_from_pt(SPGuide const *guide, Geom::Point const &pt); +void sp_guide_moveto(SPGuide const &guide, Geom::Point const point_on_line, bool const commit); void sp_guide_remove(SPGuide *guide); char *sp_guide_description(SPGuide const *guide); |
