diff options
author | Emmanuele Bassi <ebassi@linux.intel.com> | 2011-01-27 17:26:16 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@linux.intel.com> | 2011-01-28 18:19:49 +0000 |
commit | 82d1e5a6ee081cf462999ea04fbd51cdb91f70c9 (patch) | |
tree | d835e13e6915582c3c7ca32886336d33c9608b09 /clutter/clutter-stage-private.h | |
parent | b3784bd2b4c9aeac809cca70681bc248123133f8 (diff) | |
download | clutter-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.h | 8 |
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__ */ |