mirror of
https://github.com/brl/mutter.git
synced 2024-12-24 12:02:04 +00:00
70292672c4
This adds clutter_event_add/remove_filter which adds a callback function which will receive all Clutter events just before the event signal is emitted for them. The event filter will be invoked regardless of any grabs or captures. This will be used by Mutter which wants to access the events at a lower level then the event bubbling mechanism. It needs to see all mouse motion events even if there is a grab in place. https://bugzilla.gnome.org/show_bug.cgi?id=707560
37 lines
1.5 KiB
C
37 lines
1.5 KiB
C
#ifndef __CLUTTER_EVENT_PRIVATE_H__
|
|
#define __CLUTTER_EVENT_PRIVATE_H__
|
|
|
|
#include <clutter/clutter-event.h>
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
void _clutter_event_set_pointer_emulated (ClutterEvent *event,
|
|
gboolean is_emulated);
|
|
|
|
/* Reinjecting queued events for processing */
|
|
void _clutter_process_event (ClutterEvent *event);
|
|
|
|
gboolean _clutter_event_process_filters (ClutterEvent *event);
|
|
|
|
/* clears the event queue inside the main context */
|
|
void _clutter_clear_events_queue (void);
|
|
void _clutter_clear_events_queue_for_stage (ClutterStage *stage);
|
|
|
|
void _clutter_event_set_platform_data (ClutterEvent *event,
|
|
gpointer data);
|
|
gpointer _clutter_event_get_platform_data (const ClutterEvent *event);
|
|
|
|
void _clutter_event_set_state_full (ClutterEvent *event,
|
|
ClutterModifierType button_state,
|
|
ClutterModifierType base_state,
|
|
ClutterModifierType latched_state,
|
|
ClutterModifierType locked_state,
|
|
ClutterModifierType effective_state);
|
|
|
|
void _clutter_event_push (const ClutterEvent *event,
|
|
gboolean do_copy);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* __CLUTTER_EVENT_PRIVATE_H__ */
|