Re: [gtkmm] drawing area mouse events
- From: Paul Davis <paul linuxaudiosystems com>
- To: Milos Negovanovic <milosn xtra co nz>
- Cc: gtkmm-list gnome org
- Subject: Re: [gtkmm] drawing area mouse events
- Date: Sun, 22 Dec 2002 10:52:15 -0500
>//enable button press event
>add_events(Gdk::BUTTON_PRESS_MASK);
>
>//on_button_press implementation
>bool Test::on_button_press_event(GdkEventButton* event) {
> printf("\nbutton: %i", event->button);
> printf("\n x : %i", event->x);
> printf("\n y : %i", event->y);
> printf("\n");
and return what?
>}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]