summaryrefslogtreecommitdiffstats
path: root/client/screen_layer.h
diff options
context:
space:
mode:
authorYaniv Kamay <ykamay@redhat.com>2009-11-16 17:50:16 +0200
committerYaniv Kamay <ykamay@redhat.com>2009-11-30 18:03:35 +0200
commit3b51087b3656b111886c7397d0ddd499a96f9e2d (patch)
tree21cdb7b0dc282062bd811f65ee295a7074b58275 /client/screen_layer.h
parenta70110c4e50aad99de7a844bb78eb868768e7841 (diff)
downloadspice-3b51087b3656b111886c7397d0ddd499a96f9e2d.tar.gz
spice-3b51087b3656b111886c7397d0ddd499a96f9e2d.tar.xz
spice-3b51087b3656b111886c7397d0ddd499a96f9e2d.zip
client: interactive screen layer
Diffstat (limited to 'client/screen_layer.h')
-rw-r--r--client/screen_layer.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/client/screen_layer.h b/client/screen_layer.h
index cbcc5503..9b2ed7fa 100644
--- a/client/screen_layer.h
+++ b/client/screen_layer.h
@@ -45,6 +45,7 @@ public:
void invalidate();
uint64_t invalidate(const Rect& r, bool urgent = false);
void invalidate(const QRegion& r);
+ bool contains_point(int x, int y);
virtual void copy_pixels(const QRegion& dest_region, RedDrawable& dest_dc) {}
@@ -61,8 +62,16 @@ public:
virtual void on_update_completion(uint64_t mark) {}
+ virtual bool pointer_test(int x, int y) { return false;}
+ virtual void on_pointer_enter(int x, int y, unsigned int buttons_state) {}
+ virtual void on_pointer_motion(int x, int y, unsigned int buttons_state) {}
+ virtual void on_pointer_leave() {}
+ virtual void on_mouse_button_press(int button, int buttons_state) {}
+ virtual void on_mouse_button_release(int button, int buttons_state) {}
+
private:
uint64_t invalidate_rect(const Rect& r, bool urgent);
+ void notify_changed();
private:
RedScreen* _screen;