Re: Screen coordinate of cursor?? and getting mouse over widget

Le mardi 8 mai 2007 16:07, ibrar ahmed a écrit :
> HI,
> 1- How i can get the current cursor position of the screen and also getting
> that widget where mouse over on that time.

See gdk_display_get_pointer() and gdk_display_get_window_at_pointer() in the 
GDK reference manual (section GdkDisplay). You can get the widget associated 
with a window with gdk_window_get_user_data().

Cédric Lucantis

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