Re: [gtkmm] drawing area mouse events



>//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]