PDA

View Full Version : GdkEventButton Documentation in gtkmm?



SledgeHammer_999
July 31st, 2008, 03:42 AM
I want to catch the Gtk::Widget::signal_button_release_event() (http://gtkmm.org/docs/gtkmm-2.4/docs/reference/html/classGtk_1_1Widget.html#41cc715ff6cea7056beaea8a93 cd0a3e) of a widget. It says that my callback has to be like this: callback(GdkEventButton* event). But I can't find any documentation in gtkmm for GdkEventButton. I want, when this signal is emited, to get the coordinates of the mouse. I suspect that I need to use the "GdkEventButton* event" but I don't know how. Can you help me?

SledgeHammer_999
July 31st, 2008, 02:24 PM
bump

kutya61
August 21st, 2008, 10:35 AM
Hi!
I made a little program (http://superdog14.extra.hu/gtkmm/gdkeventbutton.cpp) to show how to use GdkEventButton (http://library.gnome.org/devel/gdk/stable/gdk-Event-Structures.html#GdkEventButton) structure.

Hope this helps!