summaryrefslogtreecommitdiff
path: root/clutter/clutter-stage-private.h
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@linux.intel.com>2011-01-27 17:26:16 +0000
committerEmmanuele Bassi <ebassi@linux.intel.com>2011-01-28 18:19:49 +0000
commit82d1e5a6ee081cf462999ea04fbd51cdb91f70c9 (patch)
treed835e13e6915582c3c7ca32886336d33c9608b09 /clutter/clutter-stage-private.h
parentb3784bd2b4c9aeac809cca70681bc248123133f8 (diff)
downloadclutter-82d1e5a6ee081cf462999ea04fbd51cdb91f70c9.tar.gz
Clean up crossing event synthesis code
Clutter should just require that the windowing system used by a backend adds a device to the stage when the device enters, and removes it from the stage when the device leaves; with this information, we can synthesize every crossing event and update the device state without other intervention from the backend-specific code. The generation of additional crossing events for actors that are covering the stage at the coordinates of the crossing event should be delegated to the event processing code. The x11 and win32 backends need to be modified to relay the enter and leave events from the windowing system.
Diffstat (limited to 'clutter/clutter-stage-private.h')
-rw-r--r--clutter/clutter-stage-private.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/clutter/clutter-stage-private.h b/clutter/clutter-stage-private.h
index 879e162ae..f61fc9d32 100644
--- a/clutter/clutter-stage-private.h
+++ b/clutter/clutter-stage-private.h
@@ -24,6 +24,7 @@
#include <clutter/clutter-stage-window.h>
#include <clutter/clutter-stage.h>
+#include <clutter/clutter-input-device.h>
G_BEGIN_DECLS
@@ -82,6 +83,13 @@ ClutterStageQueueRedrawEntry *_clutter_stage_queue_actor_redraw (Clut
ClutterPaintVolume *clip);
void _clutter_stage_queue_redraw_entry_invalidate (ClutterStageQueueRedrawEntry *entry);
+void _clutter_stage_add_device (ClutterStage *stage,
+ ClutterInputDevice *device);
+void _clutter_stage_remove_device (ClutterStage *stage,
+ ClutterInputDevice *device);
+gboolean _clutter_stage_has_device (ClutterStage *stage,
+ ClutterInputDevice *device);
+
G_END_DECLS
#endif /* __CLUTTER_STAGE_PRIVATE_H__ */