mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-25 13:45:31 +00:00
62c466e8b4
* gdk/Gdk.metadata : hide EventKey * gdk/EventKey.cs : glue-based manual implementation. * gdk/EventKey.custom : killed * gdk/gdk-api.xml : regen * gdk/gdk-symbols.xml : manual mapping for EventKey. * glue/event.cs : expose key struct fields. svn path=/trunk/gtk-sharp/; revision=23140
72 lines
1.5 KiB
C
72 lines
1.5 KiB
C
/* event.c : Glue to access fields in GdkEvent.
|
|
*
|
|
* Authors: Rachel Hestilow <hestilow@ximian.com>
|
|
* Mike Kestner <mkestner@ximian.com>
|
|
*
|
|
* <c> 2002 Rachel Hestilow, Mike Kestner
|
|
* (c) 2004 Novell, Inc.
|
|
*/
|
|
|
|
|
|
#include <gdk/gdkevents.h>
|
|
|
|
/* 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);
|
|
/* */
|
|
|
|
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->time;
|
|
}
|
|
|
|
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;
|
|
}
|
|
|