Re: [Gtk-sharp-list] How to set the fields of properties of Gdk.Event

2009-12-08 Thread Matt Guo
Thank you, I'll try the gtk-sharp trunk. On Wed, Dec 9, 2009 at 1:53 AM, Christian Hoff wrote: > Matt Guo wrote: >> >> I want to send a mouse event to a given window. The C code for this >> would be like: >> >> bool SendMousePress (MouseButton type, x, y) { >>  GdkEvent* event = gdk_event_new(GDK

Re: [Gtk-sharp-list] How to set the fields of properties of Gdk.Event

2009-12-08 Thread Christian Hoff
Matt Guo wrote: > I want to send a mouse event to a given window. The C code for this > would be like: > > bool SendMousePress (MouseButton type, x, y) { > GdkEvent* event = gdk_event_new(GDK_BUTTON_PRESS); > event->button.button = type == LEFT ? 1 : (type == MIDDLE ? 2 : 3); > event->button.

[Gtk-sharp-list] How to set the fields of properties of Gdk.Event

2009-12-07 Thread Matt Guo
Hey, I want to send a mouse event to a given window. The C code for this would be like: bool SendMousePress (MouseButton type, x, y) { GdkEvent* event = gdk_event_new(GDK_BUTTON_PRESS); event->button.button = type == LEFT ? 1 : (type == MIDDLE ? 2 : 3); event->button.x = x; event->button.