X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fsp-guide.h;h=48583bbe60411d2d6aed13eac6e011e282c6cf87;hb=f67bf41415152c650bdfe59bf8facf244ee3d3bb;hp=a3b87648396ccb48431372bff0e1a9e2e00450f2;hpb=6b15695578f07a3f72c4c9475c1a261a3021472a;p=inkscape.git diff --git a/src/sp-guide.h b/src/sp-guide.h index a3b876483..48583bbe6 100644 --- a/src/sp-guide.h +++ b/src/sp-guide.h @@ -7,6 +7,7 @@ * A guideline * * Copyright (C) Lauris Kaplinski 2000 + * Copyright (C) Johan Engelen 2007 * */ @@ -25,8 +26,9 @@ /* Represents the constraint on p that dot(g.direction, p) == g.position. */ struct SPGuide : public SPObject { - NR::Point normal; - gdouble position; + NR::Point normal_to_line; + Geom::Point point_on_line; + guint32 color; guint32 hicolor; GSList *views; @@ -34,7 +36,7 @@ struct SPGuide : public SPObject { }; struct SPGuideClass { - SPObjectClass parent_class; + SPObjectClass parent_class; }; GType sp_guide_get_type(); @@ -43,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);