~centralelyon2010/inkscape/imagelinks2

« back to all changes in this revision

Viewing changes to src/rubberband.h

  • Committer: cilix42
  • Date: 2008-09-18 17:48:42 UTC
  • Revision ID: cilix42@users.sourceforge.net-20080918174842-1ad33a7d7gqhv2hq
Next roud of NR ==> Geom conversion

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 */
16
16
 
17
17
#include "forward.h"
18
 
#include "libnr/nr-forward.h"
19
 
#include "libnr/nr-point.h"
20
18
#include <boost/optional.hpp>
21
19
#include <vector>
 
20
#include <2geom/point.h>
 
21
#include <2geom/rect.h>
22
22
 
23
23
/* fixme: do multidocument safe */
24
24
 
38
38
{
39
39
public:
40
40
 
41
 
    void start(SPDesktop *desktop, NR::Point const &p);
42
 
    void move(NR::Point const &p);
43
 
    boost::optional<NR::Rect> getRectangle() const;
 
41
    void start(SPDesktop *desktop, Geom::Point const &p);
 
42
    void move(Geom::Point const &p);
 
43
    boost::optional<Geom::Rect> getRectangle() const;
44
44
    void stop();
45
45
    bool is_started();
46
46
 
47
47
    inline int getMode() {return _mode;}
48
 
    inline std::vector<NR::Point> getPoints() {return _points;}
 
48
    inline std::vector<Geom::Point> getPoints() {return _points;}
49
49
 
50
50
    void setMode(int mode);
51
51
 
57
57
    static Rubberband* _instance;
58
58
    
59
59
    SPDesktop *_desktop;
60
 
    NR::Point _start;
61
 
    NR::Point _end;
 
60
    Geom::Point _start;
 
61
    Geom::Point _end;
62
62
 
63
 
    std::vector<NR::Point> _points;
 
63
    std::vector<Geom::Point> _points;
64
64
 
65
65
    CtrlRect *_rect;
66
66
    SPCanvasItem *_touchpath;