button_press_event


Description:

public virtual signal bool button_press_event (EventButton event)

The button_press_event signal will be emitted when a button (typically from a mouse) is pressed.

To receive this signal, the Window associated to the widget needs to enable the BUTTON_PRESS_MASK mask.

This signal will be sent to the grab widget if there is one.

Parameters:

event

the EventButton which triggered this signal.

Returns:

true to stop other handlers from being invoked for the event. false to propagate the event further.