2002-06-26 Rachel Hestilow <hestilow@ximian.com>
* configure.in, makefile, makefile.win32: add gnome.
* doc/index.html, netdoc.xsl: Add gnome.
* gdk/Event.cs: New manual wrap for GdkEvent.
* generator/ClassBase.cs: Add methods GetProperty,
GetPropertyRecursively, GetMethodRecursively.
Move Parent property here from ObjectGen.cs. Pass this pointer
into Property.
* generator/Ctor.cs: Generate docs.
* generator/Method.cs, Property.cs: Tag method as "new" if a
Method/Property with the same name is found in the class hierarchy.
* generator/SignalHandler.cs: Correctly wrap complex signal argument
types. Add gnome directory.
* generator/SymbolTable.cs: Add manually wrapped types hash
(contains GLib.GSList and Gdk.Event). Add method IsManuallyWrapped.
* glib/SList.cs: Add constructor from IntPtr.
* glue/slist.c, glue/event.c: Added (field accessor glue).
* glue/Makefile.am: Update.
* parser/Gtk.metadata: Add new signal renames for new signals
exposed by GdkEvent changes.
* parser/README, parser/build.pl: Add libgnome, libgnomecanvas,
libgnomeui.
* parser/gapi2xml.pl: Handle literal-length array parameters,
and NULL property doc strings.
* sample/: Add new test GnomeHelloWorld.cs.
* gnome/: Added.
* parser/Gnome.metadata: Added.
svn path=/trunk/gtk-sharp/; revision=5461
2002-06-26 08:36:05 +00:00
|
|
|
/* event.c : Glue to access fields in GdkEvent.
|
|
|
|
*
|
2004-02-16 17:48:14 +00:00
|
|
|
* Authors: Rachel Hestilow <hestilow@ximian.com>
|
|
|
|
* Mike Kestner <mkestner@ximian.com>
|
2002-06-26 Rachel Hestilow <hestilow@ximian.com>
* configure.in, makefile, makefile.win32: add gnome.
* doc/index.html, netdoc.xsl: Add gnome.
* gdk/Event.cs: New manual wrap for GdkEvent.
* generator/ClassBase.cs: Add methods GetProperty,
GetPropertyRecursively, GetMethodRecursively.
Move Parent property here from ObjectGen.cs. Pass this pointer
into Property.
* generator/Ctor.cs: Generate docs.
* generator/Method.cs, Property.cs: Tag method as "new" if a
Method/Property with the same name is found in the class hierarchy.
* generator/SignalHandler.cs: Correctly wrap complex signal argument
types. Add gnome directory.
* generator/SymbolTable.cs: Add manually wrapped types hash
(contains GLib.GSList and Gdk.Event). Add method IsManuallyWrapped.
* glib/SList.cs: Add constructor from IntPtr.
* glue/slist.c, glue/event.c: Added (field accessor glue).
* glue/Makefile.am: Update.
* parser/Gtk.metadata: Add new signal renames for new signals
exposed by GdkEvent changes.
* parser/README, parser/build.pl: Add libgnome, libgnomecanvas,
libgnomeui.
* parser/gapi2xml.pl: Handle literal-length array parameters,
and NULL property doc strings.
* sample/: Add new test GnomeHelloWorld.cs.
* gnome/: Added.
* parser/Gnome.metadata: Added.
svn path=/trunk/gtk-sharp/; revision=5461
2002-06-26 08:36:05 +00:00
|
|
|
*
|
|
|
|
* <c> 2002 Rachel Hestilow, Mike Kestner
|
2004-02-16 17:48:14 +00:00
|
|
|
* (c) 2004 Novell, Inc.
|
2002-06-26 Rachel Hestilow <hestilow@ximian.com>
* configure.in, makefile, makefile.win32: add gnome.
* doc/index.html, netdoc.xsl: Add gnome.
* gdk/Event.cs: New manual wrap for GdkEvent.
* generator/ClassBase.cs: Add methods GetProperty,
GetPropertyRecursively, GetMethodRecursively.
Move Parent property here from ObjectGen.cs. Pass this pointer
into Property.
* generator/Ctor.cs: Generate docs.
* generator/Method.cs, Property.cs: Tag method as "new" if a
Method/Property with the same name is found in the class hierarchy.
* generator/SignalHandler.cs: Correctly wrap complex signal argument
types. Add gnome directory.
* generator/SymbolTable.cs: Add manually wrapped types hash
(contains GLib.GSList and Gdk.Event). Add method IsManuallyWrapped.
* glib/SList.cs: Add constructor from IntPtr.
* glue/slist.c, glue/event.c: Added (field accessor glue).
* glue/Makefile.am: Update.
* parser/Gtk.metadata: Add new signal renames for new signals
exposed by GdkEvent changes.
* parser/README, parser/build.pl: Add libgnome, libgnomecanvas,
libgnomeui.
* parser/gapi2xml.pl: Handle literal-length array parameters,
and NULL property doc strings.
* sample/: Add new test GnomeHelloWorld.cs.
* gnome/: Added.
* parser/Gnome.metadata: Added.
svn path=/trunk/gtk-sharp/; revision=5461
2002-06-26 08:36:05 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#include <gdk/gdkevents.h>
|
|
|
|
|
2003-03-22 17:37:43 +00:00
|
|
|
/* Forward declarations */
|
|
|
|
GdkEventType gtksharp_gdk_event_get_event_type (GdkEvent *event);
|
2004-02-16 17:48:14 +00:00
|
|
|
GdkWindow* gtksharp_gdk_event_get_window (GdkEventAny *event);
|
|
|
|
gint8 gtksharp_gdk_event_get_send_event (GdkEventAny *event);
|
2004-02-16 18:41:52 +00:00
|
|
|
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);
|
2004-02-18 16:34:45 +00:00
|
|
|
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);
|
2004-02-18 16:55:54 +00:00
|
|
|
guint32 gtksharp_gdk_event_scroll_get_time (GdkEventScroll *event);
|
|
|
|
guint gtksharp_gdk_event_scroll_get_state (GdkEventScroll *event);
|
|
|
|
guint gtksharp_gdk_event_scroll_get_scroll_direction (GdkEventScroll *event);
|
|
|
|
gdouble gtksharp_gdk_event_scroll_get_x (GdkEventScroll *event);
|
|
|
|
gdouble gtksharp_gdk_event_scroll_get_y (GdkEventScroll *event);
|
|
|
|
gdouble gtksharp_gdk_event_scroll_get_x_root (GdkEventScroll *event);
|
|
|
|
gdouble gtksharp_gdk_event_scroll_get_y_root (GdkEventScroll *event);
|
|
|
|
GdkDevice* gtksharp_gdk_event_scroll_get_device (GdkEventScroll *event);
|
2004-02-18 17:22:03 +00:00
|
|
|
guint32 gtksharp_gdk_event_motion_get_time (GdkEventMotion *event);
|
|
|
|
guint gtksharp_gdk_event_motion_get_state (GdkEventMotion *event);
|
|
|
|
guint16 gtksharp_gdk_event_motion_get_is_hint (GdkEventMotion *event);
|
|
|
|
gdouble gtksharp_gdk_event_motion_get_x (GdkEventMotion *event);
|
|
|
|
gdouble gtksharp_gdk_event_motion_get_y (GdkEventMotion *event);
|
|
|
|
gdouble gtksharp_gdk_event_motion_get_x_root (GdkEventMotion *event);
|
|
|
|
gdouble gtksharp_gdk_event_motion_get_y_root (GdkEventMotion *event);
|
|
|
|
gdouble* gtksharp_gdk_event_motion_get_axes (GdkEventMotion *event);
|
|
|
|
GdkDevice* gtksharp_gdk_event_motion_get_device (GdkEventMotion *event);
|
2003-03-22 17:37:43 +00:00
|
|
|
/* */
|
|
|
|
|
2002-06-26 Rachel Hestilow <hestilow@ximian.com>
* configure.in, makefile, makefile.win32: add gnome.
* doc/index.html, netdoc.xsl: Add gnome.
* gdk/Event.cs: New manual wrap for GdkEvent.
* generator/ClassBase.cs: Add methods GetProperty,
GetPropertyRecursively, GetMethodRecursively.
Move Parent property here from ObjectGen.cs. Pass this pointer
into Property.
* generator/Ctor.cs: Generate docs.
* generator/Method.cs, Property.cs: Tag method as "new" if a
Method/Property with the same name is found in the class hierarchy.
* generator/SignalHandler.cs: Correctly wrap complex signal argument
types. Add gnome directory.
* generator/SymbolTable.cs: Add manually wrapped types hash
(contains GLib.GSList and Gdk.Event). Add method IsManuallyWrapped.
* glib/SList.cs: Add constructor from IntPtr.
* glue/slist.c, glue/event.c: Added (field accessor glue).
* glue/Makefile.am: Update.
* parser/Gtk.metadata: Add new signal renames for new signals
exposed by GdkEvent changes.
* parser/README, parser/build.pl: Add libgnome, libgnomecanvas,
libgnomeui.
* parser/gapi2xml.pl: Handle literal-length array parameters,
and NULL property doc strings.
* sample/: Add new test GnomeHelloWorld.cs.
* gnome/: Added.
* parser/Gnome.metadata: Added.
svn path=/trunk/gtk-sharp/; revision=5461
2002-06-26 08:36:05 +00:00
|
|
|
GdkEventType
|
|
|
|
gtksharp_gdk_event_get_event_type (GdkEvent *event)
|
|
|
|
{
|
|
|
|
return event->type;
|
|
|
|
}
|
|
|
|
|
2004-02-16 17:48:14 +00:00
|
|
|
GdkWindow*
|
|
|
|
gtksharp_gdk_event_get_window (GdkEventAny *event)
|
|
|
|
{
|
|
|
|
return event->window;
|
|
|
|
}
|
|
|
|
|
|
|
|
gint8
|
|
|
|
gtksharp_gdk_event_get_send_event (GdkEventAny *event)
|
|
|
|
{
|
|
|
|
return event->send_event;
|
|
|
|
}
|
|
|
|
|
2004-02-16 18:41:52 +00:00
|
|
|
guint32
|
|
|
|
gtksharp_gdk_event_key_get_time (GdkEventKey *event)
|
|
|
|
{
|
|
|
|
return event->time;
|
|
|
|
}
|
|
|
|
|
|
|
|
guint
|
|
|
|
gtksharp_gdk_event_key_get_state (GdkEventKey *event)
|
|
|
|
{
|
2004-02-18 16:34:45 +00:00
|
|
|
return event->state;
|
2004-02-16 18:41:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2004-02-18 16:34:45 +00:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2004-02-18 16:55:54 +00:00
|
|
|
guint32
|
|
|
|
gtksharp_gdk_event_scroll_get_time (GdkEventScroll *event)
|
|
|
|
{
|
|
|
|
return event->time;
|
|
|
|
}
|
|
|
|
|
|
|
|
guint
|
|
|
|
gtksharp_gdk_event_scroll_get_state (GdkEventScroll *event)
|
|
|
|
{
|
|
|
|
return event->state;
|
|
|
|
}
|
|
|
|
|
|
|
|
GdkScrollDirection
|
|
|
|
gtksharp_gdk_event_scroll_get_direction (GdkEventScroll *event)
|
|
|
|
{
|
|
|
|
return event->direction;
|
|
|
|
}
|
|
|
|
|
|
|
|
GdkDevice*
|
|
|
|
gtksharp_gdk_event_scroll_get_device (GdkEventScroll *event)
|
|
|
|
{
|
|
|
|
return event->device;
|
|
|
|
}
|
|
|
|
|
|
|
|
gdouble
|
|
|
|
gtksharp_gdk_event_scroll_get_x (GdkEventScroll *event)
|
|
|
|
{
|
|
|
|
return event->x;
|
|
|
|
}
|
|
|
|
|
|
|
|
gdouble
|
|
|
|
gtksharp_gdk_event_scroll_get_y (GdkEventScroll *event)
|
|
|
|
{
|
|
|
|
return event->y;
|
|
|
|
}
|
|
|
|
|
|
|
|
gdouble
|
|
|
|
gtksharp_gdk_event_scroll_get_x_root (GdkEventScroll *event)
|
|
|
|
{
|
|
|
|
return event->x_root;
|
|
|
|
}
|
|
|
|
|
|
|
|
gdouble
|
|
|
|
gtksharp_gdk_event_scroll_get_y_root (GdkEventScroll *event)
|
|
|
|
{
|
|
|
|
return event->y_root;
|
|
|
|
}
|
|
|
|
|
2004-02-18 17:22:03 +00:00
|
|
|
guint32
|
|
|
|
gtksharp_gdk_event_motion_get_time (GdkEventMotion *event)
|
|
|
|
{
|
|
|
|
return event->time;
|
|
|
|
}
|
|
|
|
|
|
|
|
guint
|
|
|
|
gtksharp_gdk_event_motion_get_state (GdkEventMotion *event)
|
|
|
|
{
|
|
|
|
return event->state;
|
|
|
|
}
|
|
|
|
|
|
|
|
guint16
|
|
|
|
gtksharp_gdk_event_motion_get_is_hint (GdkEventMotion *event)
|
|
|
|
{
|
|
|
|
return event->is_hint;
|
|
|
|
}
|
|
|
|
|
|
|
|
GdkDevice*
|
|
|
|
gtksharp_gdk_event_motion_get_device (GdkEventMotion *event)
|
|
|
|
{
|
|
|
|
return event->device;
|
|
|
|
}
|
|
|
|
|
|
|
|
gdouble
|
|
|
|
gtksharp_gdk_event_motion_get_x (GdkEventMotion *event)
|
|
|
|
{
|
|
|
|
return event->x;
|
|
|
|
}
|
|
|
|
|
|
|
|
gdouble
|
|
|
|
gtksharp_gdk_event_motion_get_y (GdkEventMotion *event)
|
|
|
|
{
|
|
|
|
return event->y;
|
|
|
|
}
|
|
|
|
|
|
|
|
gdouble
|
|
|
|
gtksharp_gdk_event_motion_get_x_root (GdkEventMotion *event)
|
|
|
|
{
|
|
|
|
return event->x_root;
|
|
|
|
}
|
|
|
|
|
|
|
|
gdouble
|
|
|
|
gtksharp_gdk_event_motion_get_y_root (GdkEventMotion *event)
|
|
|
|
{
|
|
|
|
return event->y_root;
|
|
|
|
}
|
|
|
|
|
|
|
|
gdouble*
|
|
|
|
gtksharp_gdk_event_motion_get_axes (GdkEventMotion *event)
|
|
|
|
{
|
|
|
|
return event->axes;
|
|
|
|
}
|
|
|
|
|