Re: GtkPixmap and location
- From: Ronald Bultje <rbultje ronald bitfreak net>
- To: arno-unix ifrance com
- Cc: gtk-list gnome org
- Subject: Re: GtkPixmap and location
- Date: Thu, 9 Aug 2001 17:25:50 +0200
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]