allow to use cairo-image/software surface for canvas & cairowidgets

This commit is contained in:
Robin Gareus 2014-10-28 02:15:10 +01:00
parent 6dc3a4bf61
commit b04414d170
5 changed files with 94 additions and 9 deletions

View file

@ -190,6 +190,7 @@ public:
void stop_tooltip_timeout ();
protected:
void on_size_allocate (Gtk::Allocation&);
bool on_scroll_event (GdkEventScroll *);
bool on_expose_event (GdkEventExpose *);
bool on_button_press_event (GdkEventButton *);
@ -210,6 +211,8 @@ private:
void item_going_away (Item *, boost::optional<Rect>);
bool send_leave_event (Item const *, double, double) const;
Cairo::RefPtr<Cairo::Surface> canvas_image;
/** Item currently chosen for event delivery based on pointer position */
Item * _current_item;
/** Item pending as _current_item */