Ardour  9.0-pre0-384-ga76afae0e9
gdkevents.h File Reference
#include <gdk/gdkcolor.h>
#include <gdk/gdktypes.h>
#include <gdk/gdkdnd.h>
#include <gdk/gdkinput.h>
Include dependency graph for gdkevents.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _GdkEventAny
 
struct  _GdkEventExpose
 
struct  _GdkEventNoExpose
 
struct  _GdkEventVisibility
 
struct  _GdkEventMotion
 
struct  _GdkEventButton
 
struct  _GdkEventTouch
 
struct  _GdkEventScroll
 
struct  _GdkEventKey
 
struct  _GdkEventCrossing
 
struct  _GdkEventFocus
 
struct  _GdkEventConfigure
 
struct  _GdkEventProperty
 
struct  _GdkEventSelection
 
struct  _GdkEventOwnerChange
 
struct  _GdkEventProximity
 
struct  _GdkEventClient
 
struct  _GdkEventSetting
 
struct  _GdkEventWindowState
 
struct  _GdkEventGrabBroken
 
struct  _GdkEventDND
 
union  _GdkEvent
 

Macros

#define GDK_TYPE_EVENT   (gdk_event_get_type ())
 
#define GDK_PRIORITY_EVENTS   (G_PRIORITY_DEFAULT)
 
#define GDK_PRIORITY_REDRAW   (G_PRIORITY_HIGH_IDLE + 20)
 

Typedefs

typedef struct _GdkEventAny GdkEventAny
 
typedef struct _GdkEventExpose GdkEventExpose
 
typedef struct _GdkEventNoExpose GdkEventNoExpose
 
typedef struct _GdkEventVisibility GdkEventVisibility
 
typedef struct _GdkEventMotion GdkEventMotion
 
typedef struct _GdkEventButton GdkEventButton
 
typedef struct _GdkEventTouch GdkEventTouch
 
typedef struct _GdkEventScroll GdkEventScroll
 
typedef struct _GdkEventKey GdkEventKey
 
typedef struct _GdkEventFocus GdkEventFocus
 
typedef struct _GdkEventCrossing GdkEventCrossing
 
typedef struct _GdkEventConfigure GdkEventConfigure
 
typedef struct _GdkEventProperty GdkEventProperty
 
typedef struct _GdkEventSelection GdkEventSelection
 
typedef struct _GdkEventOwnerChange GdkEventOwnerChange
 
typedef struct _GdkEventProximity GdkEventProximity
 
typedef struct _GdkEventClient GdkEventClient
 
typedef struct _GdkEventDND GdkEventDND
 
typedef struct _GdkEventWindowState GdkEventWindowState
 
typedef struct _GdkEventSetting GdkEventSetting
 
typedef struct _GdkEventGrabBroken GdkEventGrabBroken
 
typedef union _GdkEvent GdkEvent
 
typedef void(* GdkEventFunc) (GdkEvent *event, gpointer data)
 
typedef void GdkXEvent
 
typedef GdkFilterReturn(* GdkFilterFunc) (GdkXEvent *xevent, GdkEvent *event, gpointer data)
 

Enumerations

enum  GdkFilterReturn { GDK_FILTER_CONTINUE , GDK_FILTER_TRANSLATE , GDK_FILTER_REMOVE }
 
enum  GdkEventType {
  GDK_NOTHING = -1 , GDK_DELETE = 0 , GDK_DESTROY = 1 , GDK_EXPOSE = 2 ,
  GDK_MOTION_NOTIFY = 3 , GDK_BUTTON_PRESS = 4 , GDK_2BUTTON_PRESS = 5 , GDK_3BUTTON_PRESS = 6 ,
  GDK_BUTTON_RELEASE = 7 , GDK_KEY_PRESS = 8 , GDK_KEY_RELEASE = 9 , GDK_ENTER_NOTIFY = 10 ,
  GDK_LEAVE_NOTIFY = 11 , GDK_FOCUS_CHANGE = 12 , GDK_CONFIGURE = 13 , GDK_MAP = 14 ,
  GDK_UNMAP = 15 , GDK_PROPERTY_NOTIFY = 16 , GDK_SELECTION_CLEAR = 17 , GDK_SELECTION_REQUEST = 18 ,
  GDK_SELECTION_NOTIFY = 19 , GDK_PROXIMITY_IN = 20 , GDK_PROXIMITY_OUT = 21 , GDK_DRAG_ENTER = 22 ,
  GDK_DRAG_LEAVE = 23 , GDK_DRAG_MOTION = 24 , GDK_DRAG_STATUS = 25 , GDK_DROP_START = 26 ,
  GDK_DROP_FINISHED = 27 , GDK_CLIENT_EVENT = 28 , GDK_VISIBILITY_NOTIFY = 29 , GDK_NO_EXPOSE = 30 ,
  GDK_SCROLL = 31 , GDK_WINDOW_STATE = 32 , GDK_SETTING = 33 , GDK_OWNER_CHANGE = 34 ,
  GDK_GRAB_BROKEN = 35 , GDK_DAMAGE = 36 , GDK_TOUCH_BEGIN = 37 , GDK_TOUCH_UPDATE = 38 ,
  GDK_TOUCH_END = 39 , GDK_EVENT_LAST
}
 
enum  GdkEventMask {
  GDK_EXPOSURE_MASK = 1 << 1 , GDK_POINTER_MOTION_MASK = 1 << 2 , GDK_POINTER_MOTION_HINT_MASK = 1 << 3 , GDK_BUTTON_MOTION_MASK = 1 << 4 ,
  GDK_BUTTON1_MOTION_MASK = 1 << 5 , GDK_BUTTON2_MOTION_MASK = 1 << 6 , GDK_BUTTON3_MOTION_MASK = 1 << 7 , GDK_BUTTON_PRESS_MASK = 1 << 8 ,
  GDK_BUTTON_RELEASE_MASK = 1 << 9 , GDK_KEY_PRESS_MASK = 1 << 10 , GDK_KEY_RELEASE_MASK = 1 << 11 , GDK_ENTER_NOTIFY_MASK = 1 << 12 ,
  GDK_LEAVE_NOTIFY_MASK = 1 << 13 , GDK_FOCUS_CHANGE_MASK = 1 << 14 , GDK_STRUCTURE_MASK = 1 << 15 , GDK_PROPERTY_CHANGE_MASK = 1 << 16 ,
  GDK_VISIBILITY_NOTIFY_MASK = 1 << 17 , GDK_PROXIMITY_IN_MASK = 1 << 18 , GDK_PROXIMITY_OUT_MASK = 1 << 19 , GDK_SUBSTRUCTURE_MASK = 1 << 20 ,
  GDK_SCROLL_MASK = 1 << 21 , GDK_TOUCH_BEGIN_MASK = 1 << 22 , GDK_TOUCH_UPDATE_MASK = 1 << 23 , GDK_TOUCH_END_MASK = 1 << 24 ,
  GDK_ALL_EVENTS_MASK = 0x3FFFFE
}
 
enum  GdkVisibilityState { GDK_VISIBILITY_UNOBSCURED , GDK_VISIBILITY_PARTIAL , GDK_VISIBILITY_FULLY_OBSCURED }
 
enum  GdkScrollDirection { GDK_SCROLL_UP , GDK_SCROLL_DOWN , GDK_SCROLL_LEFT , GDK_SCROLL_RIGHT }
 
enum  GdkNotifyType {
  GDK_NOTIFY_ANCESTOR = 0 , GDK_NOTIFY_VIRTUAL = 1 , GDK_NOTIFY_INFERIOR = 2 , GDK_NOTIFY_NONLINEAR = 3 ,
  GDK_NOTIFY_NONLINEAR_VIRTUAL = 4 , GDK_NOTIFY_UNKNOWN = 5
}
 
enum  GdkCrossingMode {
  GDK_CROSSING_NORMAL , GDK_CROSSING_GRAB , GDK_CROSSING_UNGRAB , GDK_CROSSING_GTK_GRAB ,
  GDK_CROSSING_GTK_UNGRAB , GDK_CROSSING_STATE_CHANGED
}
 
enum  GdkPropertyState { GDK_PROPERTY_NEW_VALUE , GDK_PROPERTY_DELETE }
 
enum  GdkWindowState {
  GDK_WINDOW_STATE_WITHDRAWN = 1 << 0 , GDK_WINDOW_STATE_ICONIFIED = 1 << 1 , GDK_WINDOW_STATE_MAXIMIZED = 1 << 2 , GDK_WINDOW_STATE_STICKY = 1 << 3 ,
  GDK_WINDOW_STATE_FULLSCREEN = 1 << 4 , GDK_WINDOW_STATE_ABOVE = 1 << 5 , GDK_WINDOW_STATE_BELOW = 1 << 6
}
 
enum  GdkSettingAction { GDK_SETTING_ACTION_NEW , GDK_SETTING_ACTION_CHANGED , GDK_SETTING_ACTION_DELETED }
 
enum  GdkOwnerChange { GDK_OWNER_CHANGE_NEW_OWNER , GDK_OWNER_CHANGE_DESTROY , GDK_OWNER_CHANGE_CLOSE }
 

Functions

GType gdk_event_get_type (void) G_GNUC_CONST
 
gboolean gdk_events_pending (void)
 
GdkEventgdk_event_get (void)
 
GdkEventgdk_event_peek (void)
 
GdkEventgdk_event_get_graphics_expose (GdkWindow *window)
 
void gdk_event_put (const GdkEvent *event)
 
GdkEventgdk_event_new (GdkEventType type)
 
GdkEventgdk_event_copy (const GdkEvent *event)
 
void gdk_event_free (GdkEvent *event)
 
guint32 gdk_event_get_time (const GdkEvent *event)
 
gboolean gdk_event_get_state (const GdkEvent *event, GdkModifierType *state)
 
gboolean gdk_event_get_coords (const GdkEvent *event, gdouble *x_win, gdouble *y_win)
 
gboolean gdk_event_get_root_coords (const GdkEvent *event, gdouble *x_root, gdouble *y_root)
 
gboolean gdk_event_get_scroll_deltas (const GdkEvent *event, gdouble *delta_x, gdouble *delta_y)
 
gboolean gdk_event_get_axis (const GdkEvent *event, GdkAxisUse axis_use, gdouble *value)
 
void gdk_event_request_motions (const GdkEventMotion *event)
 
void gdk_event_handler_set (GdkEventFunc func, gpointer data, GDestroyNotify notify)
 
void gdk_event_set_screen (GdkEvent *event, GdkScreen *screen)
 
GdkScreengdk_event_get_screen (const GdkEvent *event)
 
void gdk_set_show_events (gboolean show_events)
 
gboolean gdk_get_show_events (void)
 
void gdk_add_client_message_filter (GdkAtom message_type, GdkFilterFunc func, gpointer data)
 
gboolean gdk_setting_get (const gchar *name, GValue *value)
 

Macro Definition Documentation

◆ GDK_PRIORITY_EVENTS

#define GDK_PRIORITY_EVENTS   (G_PRIORITY_DEFAULT)

Definition at line 43 of file gdkevents.h.

◆ GDK_PRIORITY_REDRAW

#define GDK_PRIORITY_REDRAW   (G_PRIORITY_HIGH_IDLE + 20)

Definition at line 44 of file gdkevents.h.

◆ GDK_TYPE_EVENT

#define GDK_TYPE_EVENT   (gdk_event_get_type ())

Definition at line 41 of file gdkevents.h.

Typedef Documentation

◆ GdkEvent

typedef union _GdkEvent GdkEvent

Definition at line 39 of file gdkevents.h.

◆ GdkEventAny

typedef struct _GdkEventAny GdkEventAny

Definition at line 39 of file gdkevents.h.

◆ GdkEventButton

Definition at line 39 of file gdkevents.h.

◆ GdkEventClient

Definition at line 39 of file gdkevents.h.

◆ GdkEventConfigure

Definition at line 39 of file gdkevents.h.

◆ GdkEventCrossing

Definition at line 39 of file gdkevents.h.

◆ GdkEventDND

typedef struct _GdkEventDND GdkEventDND

Definition at line 39 of file gdkevents.h.

◆ GdkEventExpose

Definition at line 39 of file gdkevents.h.

◆ GdkEventFocus

typedef struct _GdkEventFocus GdkEventFocus

Definition at line 39 of file gdkevents.h.

◆ GdkEventFunc

typedef void(* GdkEventFunc) (GdkEvent *event, gpointer data)

Definition at line 71 of file gdkevents.h.

◆ GdkEventGrabBroken

Definition at line 39 of file gdkevents.h.

◆ GdkEventKey

typedef struct _GdkEventKey GdkEventKey

Definition at line 39 of file gdkevents.h.

◆ GdkEventMotion

Definition at line 39 of file gdkevents.h.

◆ GdkEventNoExpose

Definition at line 39 of file gdkevents.h.

◆ GdkEventOwnerChange

Definition at line 39 of file gdkevents.h.

◆ GdkEventProperty

Definition at line 39 of file gdkevents.h.

◆ GdkEventProximity

Definition at line 39 of file gdkevents.h.

◆ GdkEventScroll

Definition at line 39 of file gdkevents.h.

◆ GdkEventSelection

Definition at line 39 of file gdkevents.h.

◆ GdkEventSetting

Definition at line 39 of file gdkevents.h.

◆ GdkEventTouch

typedef struct _GdkEventTouch GdkEventTouch

Definition at line 39 of file gdkevents.h.

◆ GdkEventVisibility

Definition at line 39 of file gdkevents.h.

◆ GdkEventWindowState

Definition at line 39 of file gdkevents.h.

◆ GdkFilterFunc

typedef GdkFilterReturn(* GdkFilterFunc) (GdkXEvent *xevent, GdkEvent *event, gpointer data)

Definition at line 88 of file gdkevents.h.

◆ GdkXEvent

typedef void GdkXEvent

Definition at line 76 of file gdkevents.h.

Enumeration Type Documentation

◆ GdkCrossingMode

Enumerator
GDK_CROSSING_NORMAL 
GDK_CROSSING_GRAB 
GDK_CROSSING_UNGRAB 
GDK_CROSSING_GTK_GRAB 
GDK_CROSSING_GTK_UNGRAB 
GDK_CROSSING_STATE_CHANGED 

Definition at line 232 of file gdkevents.h.

◆ GdkEventMask

Enumerator
GDK_EXPOSURE_MASK 
GDK_POINTER_MOTION_MASK 
GDK_POINTER_MOTION_HINT_MASK 
GDK_BUTTON_MOTION_MASK 
GDK_BUTTON1_MOTION_MASK 
GDK_BUTTON2_MOTION_MASK 
GDK_BUTTON3_MOTION_MASK 
GDK_BUTTON_PRESS_MASK 
GDK_BUTTON_RELEASE_MASK 
GDK_KEY_PRESS_MASK 
GDK_KEY_RELEASE_MASK 
GDK_ENTER_NOTIFY_MASK 
GDK_LEAVE_NOTIFY_MASK 
GDK_FOCUS_CHANGE_MASK 
GDK_STRUCTURE_MASK 
GDK_PROPERTY_CHANGE_MASK 
GDK_VISIBILITY_NOTIFY_MASK 
GDK_PROXIMITY_IN_MASK 
GDK_PROXIMITY_OUT_MASK 
GDK_SUBSTRUCTURE_MASK 
GDK_SCROLL_MASK 
GDK_TOUCH_BEGIN_MASK 
GDK_TOUCH_UPDATE_MASK 
GDK_TOUCH_END_MASK 
GDK_ALL_EVENTS_MASK 

Definition at line 165 of file gdkevents.h.

◆ GdkEventType

Enumerator
GDK_NOTHING 
GDK_DELETE 
GDK_DESTROY 
GDK_EXPOSE 
GDK_MOTION_NOTIFY 
GDK_BUTTON_PRESS 
GDK_2BUTTON_PRESS 
GDK_3BUTTON_PRESS 
GDK_BUTTON_RELEASE 
GDK_KEY_PRESS 
GDK_KEY_RELEASE 
GDK_ENTER_NOTIFY 
GDK_LEAVE_NOTIFY 
GDK_FOCUS_CHANGE 
GDK_CONFIGURE 
GDK_MAP 
GDK_UNMAP 
GDK_PROPERTY_NOTIFY 
GDK_SELECTION_CLEAR 
GDK_SELECTION_REQUEST 
GDK_SELECTION_NOTIFY 
GDK_PROXIMITY_IN 
GDK_PROXIMITY_OUT 
GDK_DRAG_ENTER 
GDK_DRAG_LEAVE 
GDK_DRAG_MOTION 
GDK_DRAG_STATUS 
GDK_DROP_START 
GDK_DROP_FINISHED 
GDK_CLIENT_EVENT 
GDK_VISIBILITY_NOTIFY 
GDK_NO_EXPOSE 
GDK_SCROLL 
GDK_WINDOW_STATE 
GDK_SETTING 
GDK_OWNER_CHANGE 
GDK_GRAB_BROKEN 
GDK_DAMAGE 
GDK_TOUCH_BEGIN 
GDK_TOUCH_UPDATE 
GDK_TOUCH_END 
GDK_EVENT_LAST 

Definition at line 116 of file gdkevents.h.

◆ GdkFilterReturn

Enumerator
GDK_FILTER_CONTINUE 
GDK_FILTER_TRANSLATE 
GDK_FILTER_REMOVE 

Definition at line 80 of file gdkevents.h.

◆ GdkNotifyType

Enumerator
GDK_NOTIFY_ANCESTOR 
GDK_NOTIFY_VIRTUAL 
GDK_NOTIFY_INFERIOR 
GDK_NOTIFY_NONLINEAR 
GDK_NOTIFY_NONLINEAR_VIRTUAL 
GDK_NOTIFY_UNKNOWN 

Definition at line 217 of file gdkevents.h.

◆ GdkOwnerChange

Enumerator
GDK_OWNER_CHANGE_NEW_OWNER 
GDK_OWNER_CHANGE_DESTROY 
GDK_OWNER_CHANGE_CLOSE 

Definition at line 266 of file gdkevents.h.

◆ GdkPropertyState

Enumerator
GDK_PROPERTY_NEW_VALUE 
GDK_PROPERTY_DELETE 

Definition at line 242 of file gdkevents.h.

◆ GdkScrollDirection

Enumerator
GDK_SCROLL_UP 
GDK_SCROLL_DOWN 
GDK_SCROLL_LEFT 
GDK_SCROLL_RIGHT 

Definition at line 201 of file gdkevents.h.

◆ GdkSettingAction

Enumerator
GDK_SETTING_ACTION_NEW 
GDK_SETTING_ACTION_CHANGED 
GDK_SETTING_ACTION_DELETED 

Definition at line 259 of file gdkevents.h.

◆ GdkVisibilityState

Enumerator
GDK_VISIBILITY_UNOBSCURED 
GDK_VISIBILITY_PARTIAL 
GDK_VISIBILITY_FULLY_OBSCURED 

Definition at line 194 of file gdkevents.h.

◆ GdkWindowState

Enumerator
GDK_WINDOW_STATE_WITHDRAWN 
GDK_WINDOW_STATE_ICONIFIED 
GDK_WINDOW_STATE_MAXIMIZED 
GDK_WINDOW_STATE_STICKY 
GDK_WINDOW_STATE_FULLSCREEN 
GDK_WINDOW_STATE_ABOVE 
GDK_WINDOW_STATE_BELOW 

Definition at line 248 of file gdkevents.h.

Function Documentation

◆ gdk_add_client_message_filter()

void gdk_add_client_message_filter ( GdkAtom  message_type,
GdkFilterFunc  func,
gpointer  data 
)

◆ gdk_event_copy()

GdkEvent* gdk_event_copy ( const GdkEvent event)

◆ gdk_event_free()

void gdk_event_free ( GdkEvent event)

◆ gdk_event_get()

GdkEvent* gdk_event_get ( void  )

◆ gdk_event_get_axis()

gboolean gdk_event_get_axis ( const GdkEvent event,
GdkAxisUse  axis_use,
gdouble *  value 
)

◆ gdk_event_get_coords()

gboolean gdk_event_get_coords ( const GdkEvent event,
gdouble *  x_win,
gdouble *  y_win 
)

◆ gdk_event_get_graphics_expose()

GdkEvent* gdk_event_get_graphics_expose ( GdkWindow window)

◆ gdk_event_get_root_coords()

gboolean gdk_event_get_root_coords ( const GdkEvent event,
gdouble *  x_root,
gdouble *  y_root 
)

◆ gdk_event_get_screen()

GdkScreen* gdk_event_get_screen ( const GdkEvent event)

◆ gdk_event_get_scroll_deltas()

gboolean gdk_event_get_scroll_deltas ( const GdkEvent event,
gdouble *  delta_x,
gdouble *  delta_y 
)

◆ gdk_event_get_state()

gboolean gdk_event_get_state ( const GdkEvent event,
GdkModifierType state 
)

◆ gdk_event_get_time()

guint32 gdk_event_get_time ( const GdkEvent event)

◆ gdk_event_get_type()

GType gdk_event_get_type ( void  )

◆ gdk_event_handler_set()

void gdk_event_handler_set ( GdkEventFunc  func,
gpointer  data,
GDestroyNotify  notify 
)

◆ gdk_event_new()

GdkEvent* gdk_event_new ( GdkEventType  type)

◆ gdk_event_peek()

GdkEvent* gdk_event_peek ( void  )

◆ gdk_event_put()

void gdk_event_put ( const GdkEvent event)

◆ gdk_event_request_motions()

void gdk_event_request_motions ( const GdkEventMotion event)

◆ gdk_event_set_screen()

void gdk_event_set_screen ( GdkEvent event,
GdkScreen screen 
)

◆ gdk_events_pending()

gboolean gdk_events_pending ( void  )

◆ gdk_get_show_events()

gboolean gdk_get_show_events ( void  )

◆ gdk_set_show_events()

void gdk_set_show_events ( gboolean  show_events)

◆ gdk_setting_get()

gboolean gdk_setting_get ( const gchar *  name,
GValue *  value 
)