Re: Synthesizing a GdkEvent



On Sun, 13 May 2001, ERDI Gergo wrote:

> Hi,
>
> Is there a way to synthesize a GdkEvent? I would only need the position of
> the mouse pointer (if possible, relative to a given GdkWindow) and the

GdkWindow*    gdk_window_get_pointer     (GdkWindow       *window,
                                          gint            *x,
                                          gint            *y,
                                          GdkModifierType *mask);


> current X timestamp.

guint32         gtk_get_current_event_time  (void);


> What does gdk_event_get return? I tried to use it from the handler of a
> pop-up menu, but somehow the X and Y fields don't seem right.

James.

-- 
Email: james daa com au
WWW:   http://www.daa.com.au/~james/






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]