Add Canvas::re_enter() which picks the current item again based on mouse pointer position and generates an enter event for it

This commit is contained in:
Paul Davis 2014-07-07 07:53:17 -04:00
parent 779fe6c082
commit 69a92e67f0
2 changed files with 15 additions and 0 deletions

View file

@ -135,6 +135,11 @@ public:
std::string indent() const;
std::string render_indent() const;
void dump (std::ostream&) const;
/** Ask the canvas to pick the current item again, and generate
an enter event for it.
*/
virtual void re_enter () = 0;
protected:
void queue_draw_item_area (Item *, Rect);
@ -169,6 +174,8 @@ public:
bool get_mouse_position (Duple& winpos) const;
void re_enter ();
protected:
bool on_scroll_event (GdkEventScroll *);
bool on_expose_event (GdkEventExpose *);