Skip to content

DragStartEvent

DragStartEvent #

Bases: Event[EventControlType]

control #

control: EventControlType = field(repr=False)

data #

data: Any | None = field(default=None, kw_only=True)

global_position #

global_position: Offset = field(
    metadata={"data_field": "g"}
)

The global position at which the pointer contacted the screen.

Defaults to the origin if not specified in the constructor.

kind #

kind: PointerDeviceType = field(
    metadata={"data_field": "k"}
)

The kind of the device that initiated the event.

local_position #

local_position: Offset = field(metadata={"data_field": "l"})

The local position in the coordinate system of the event receiver at which the pointer contacted the screen.

name #

name: str

page #

page: Page | PageView | None

target #

target: int

timestamp #

timestamp: Duration | None = field(
    default=None, metadata={"data_field": "ts"}
)

Recorded timestamp of the source pointer event that triggered the drag event.

Could be None if triggered from proxied events such as accessibility.