button-press-event

button-press-event

This is an event signal, fired when the connected widget picks up a GDK_BUTTON_PRESS event. Button press events are generated by any of the mouse buttons being pressed. You can distinguish between the mouse buttons in the callback by using an if or switch statement:

See also: "button-release-event", "event", "key-press-event".

Callback function

bool callback(GtkWidget widget, GdkEvent button_press);

© Copyright 2003-2023 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.