PointerEventData class

A class representing the data associated with a pointer event.

Constructors

PointerEventData({required PointerEventType type, required PointerEvent rawEvent})
Creates a new instance of PointerEventData.

Properties

captured bool
A flag indicating whether this event has been captured or not.
getter/setter pair
dispatcher GDisplayObject?
The display object that is the dispatcher of the event.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
localPosition GPoint
The local position of the pointer on the display object.
getter/setter pair
localX double
The x-coordinate of the pointer in the local coordinate system.
no setter
localY double
The y-coordinate of the pointer in the local coordinate system.
no setter
mouseOut bool
A flag indicating whether the mouse has gone out of the target object or not.
getter/setter pair
rawEvent PointerEvent
The raw pointer event.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollDelta Offset?
The scroll delta of the pointer event, if applicable.
no setter
stagePosition GPoint
The position of the pointer on the stage.
no setter
stageX double
The x-coordinate of the pointer on the stage.
final
stageY double
The y-coordinate of the pointer on the stage.
final
target GDisplayObject?
The display object that is the target of the event. TODO: decide how to name mouse/pointer events.
getter/setter pair
time int
The time in milliseconds when the pointer event occurred.
no setter
type PointerEventType
The type of the pointer event.
final
windowPosition GPoint
The position of the pointer on the window.
no setter
zoomPanEventType PointerZoomPanType
The type of zoom and pan event, if applicable.
no setter

Methods

clone(GDisplayObject target, GDisplayObject dispatcher, PointerEventType type) PointerEventData
Clones this PointerEventData object with the specified target, dispatcher and type.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
Returns a string representation of this PointerEventData object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

doubleClickTime int
Defines the delay for a double click event. 300 milliseconds by default.
getter/setter pair