X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Frubberband.h;h=57e4ea2a394e159b499b0369173a7537452bfcd8;hb=42382dfb4164b919ffcdf03766da9f8be4e43b42;hp=f9adc7b3b5d839f3e9e108b61f1508a5b639c9d9;hpb=ff2c8039c77b58341e28cf90953cdd1f0fe68a16;p=inkscape.git diff --git a/src/rubberband.h b/src/rubberband.h index f9adc7b3b..57e4ea2a3 100644 --- a/src/rubberband.h +++ b/src/rubberband.h @@ -15,10 +15,10 @@ */ #include "forward.h" -#include "libnr/nr-forward.h" -#include "libnr/nr-point.h" #include #include +#include <2geom/point.h> +#include <2geom/rect.h> /* fixme: do multidocument safe */ @@ -38,14 +38,14 @@ class Rubberband { public: - void start(SPDesktop *desktop, NR::Point const &p); - void move(NR::Point const &p); - boost::optional getRectangle() const; + void start(SPDesktop *desktop, Geom::Point const &p); + void move(Geom::Point const &p); + Geom::OptRect getRectangle() const; void stop(); bool is_started(); inline int getMode() {return _mode;} - inline std::vector getPoints() {return _points;} + inline std::vector getPoints() {return _points;} void setMode(int mode); @@ -57,10 +57,10 @@ private: static Rubberband* _instance; SPDesktop *_desktop; - NR::Point _start; - NR::Point _end; + Geom::Point _start; + Geom::Point _end; - std::vector _points; + std::vector _points; CtrlRect *_rect; SPCanvasItem *_touchpath; @@ -85,4 +85,4 @@ private: fill-column:99 End: */ -// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 : +// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :