summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8b34520)
raw | patch | inline | side by side (parent: 8b34520)
author | johncoswell <johncoswell@users.sourceforge.net> | |
Wed, 4 Oct 2006 01:30:15 +0000 (01:30 +0000) | ||
committer | johncoswell <johncoswell@users.sourceforge.net> | |
Wed, 4 Oct 2006 01:30:15 +0000 (01:30 +0000) |
src/rubberband.cpp | patch | blob | history | |
src/rubberband.h | patch | blob | history |
diff --git a/src/rubberband.cpp b/src/rubberband.cpp
index b6211c519bafcc1c85517b45ce09470c24f8f872..9ada46f523a40818825f0e05d881590db962ac27 100644 (file)
--- a/src/rubberband.cpp
+++ b/src/rubberband.cpp
Inkscape::Rubberband *Inkscape::Rubberband::_instance = NULL;
Inkscape::Rubberband::Rubberband()
- : _desktop(SP_ACTIVE_DESKTOP), _canvas(NULL)
+ : _desktop(SP_ACTIVE_DESKTOP), _canvas(NULL), _started(false)
{
}
stop();
_desktop = d;
_start = p;
+ _started = true;
sp_canvas_force_full_redraw_after_interruptions(_desktop->canvas, 5);
}
_canvas = NULL;
sp_canvas_end_forced_full_redraws(_desktop->canvas);
}
+
+ _started = false;
}
void Inkscape::Rubberband::move(NR::Point const &p)
return _instance;
}
+bool Inkscape::Rubberband::is_started()
+{
+ return _started;
+}
+
/*
Local Variables:
mode:c++
diff --git a/src/rubberband.h b/src/rubberband.h
index 9dd0b6025e96cb08a825ef467ee4baa2b96c501b..36e9c4d8ec6e89e62c23525ae53769160cf3d4bd 100644 (file)
--- a/src/rubberband.h
+++ b/src/rubberband.h
void move(NR::Point const &p);
NR::Maybe<NR::Rect> getRectangle() const;
void stop();
+ bool is_started();
static Rubberband* get();
NR::Point _start;
NR::Point _end;
CtrlRect *_canvas;
+ bool _started;
};
}