scroll_event


Description:

public virtual signal bool scroll_event (CanvasItem target, EventScroll event)

Emitted when a button in the 4 to 7 range is pressed.

Wheel mice are usually configured to generate button press events for buttons 4 and 5 when the wheel is turned in an item.

Parameters:

event

the event data. The x & y fields contain the mouse position in the item's coordinate space. The x_root & y_root fields contain the same coordinates converted to the canvas coordinate space.

target_item

the target of the event.

Returns:

true to stop the signal emission, or false to let it continue.




2022 vala-language.org