PointerEventData

class in InfEngine.ui

Description

Data container for a single pointer event.

Attributes: position: Current pointer position in canvas design pixels. delta: Frame-to-frame delta in canvas design pixels. button: Which mouse button triggered this event. press_position: Canvas-space position where the button was pressed. click_count: Number of rapid clicks (1 = single, 2 = double, …). canvas: The UICanvas owning the target element. target: The InfUIScreenComponent this event is addressed to. used: Set to True in a handler to stop further propagation.

description

Constructors

Signature Description
PointerEventData.__init__()

constructors

Public Methods

Method Description
Use() Mark event as consumed (stops propagation to parent elements).

public_methods

Example

# TODO: Add example for PointerEventData

example

See Also

see_also