/* event.c : Glue to access fields in GdkEvent. * * Authors: Rachel Hestilow * Mike Kestner * * 2002 Rachel Hestilow, Mike Kestner * (c) 2004 Novell, Inc. */ #include /* Forward declarations */ GdkEventType gtksharp_gdk_event_get_event_type (GdkEvent *event); GdkWindow* gtksharp_gdk_event_get_window (GdkEventAny *event); gint8 gtksharp_gdk_event_get_send_event (GdkEventAny *event); guint32 gtksharp_gdk_event_key_get_time (GdkEventKey *event); guint gtksharp_gdk_event_key_get_state (GdkEventKey *event); guint gtksharp_gdk_event_key_get_keyval (GdkEventKey *event); guint16 gtksharp_gdk_event_key_get_hardware_keycode (GdkEventKey *event); guint8 gtksharp_gdk_event_key_get_group (GdkEventKey *event); guint32 gtksharp_gdk_event_button_get_time (GdkEventButton *event); guint gtksharp_gdk_event_button_get_state (GdkEventButton *event); guint gtksharp_gdk_event_button_get_button (GdkEventButton *event); gdouble gtksharp_gdk_event_button_get_x (GdkEventButton *event); gdouble gtksharp_gdk_event_button_get_y (GdkEventButton *event); gdouble gtksharp_gdk_event_button_get_x_root (GdkEventButton *event); gdouble gtksharp_gdk_event_button_get_y_root (GdkEventButton *event); gdouble* gtksharp_gdk_event_button_get_axes (GdkEventButton *event); GdkDevice* gtksharp_gdk_event_button_get_device (GdkEventButton *event); /* */ GdkEventType gtksharp_gdk_event_get_event_type (GdkEvent *event) { return event->type; } GdkWindow* gtksharp_gdk_event_get_window (GdkEventAny *event) { return event->window; } gint8 gtksharp_gdk_event_get_send_event (GdkEventAny *event) { return event->send_event; } guint32 gtksharp_gdk_event_key_get_time (GdkEventKey *event) { return event->time; } guint gtksharp_gdk_event_key_get_state (GdkEventKey *event) { return event->state; } guint gtksharp_gdk_event_key_get_keyval (GdkEventKey *event) { return event->keyval; } guint16 gtksharp_gdk_event_key_get_hardware_keycode (GdkEventKey *event) { return event->hardware_keycode; } guint8 gtksharp_gdk_event_key_get_group (GdkEventKey *event) { return event->group; } guint32 gtksharp_gdk_event_button_get_time (GdkEventButton *event) { return event->time; } guint gtksharp_gdk_event_button_get_state (GdkEventButton *event) { return event->state; } guint gtksharp_gdk_event_button_get_button (GdkEventButton *event) { return event->button; } GdkDevice* gtksharp_gdk_event_button_get_device (GdkEventButton *event) { return event->device; } gdouble gtksharp_gdk_event_button_get_x (GdkEventButton *event) { return event->x; } gdouble gtksharp_gdk_event_button_get_y (GdkEventButton *event) { return event->y; } gdouble gtksharp_gdk_event_button_get_x_root (GdkEventButton *event) { return event->x_root; } gdouble gtksharp_gdk_event_button_get_y_root (GdkEventButton *event) { return event->y_root; } gdouble* gtksharp_gdk_event_button_get_axes (GdkEventButton *event) { return event->axes; }