Re: GtkPixmap and location



On Sat, 25 Aug 2001 20:29:35 Arno wrote:
> I would like to know which is the position in pixel where I have clicked
> in 
> my GtkPixmap. Is what somebody could say to me how to do that?

You can have a signal listener for button_press_event signal, which carries
the GdkEvent *event object... event->x and event->y carry the position of
the mouseclick relative to the GdkWindow to which the pixmap is attached.

Ronald





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