Skip to content

ScaleUpdateEvent

Inherits: Event[EventControlType]

Properties

  • focal_point_delta(Offset) –

    The amount the gesture's focal point has moved in the coordinate space of the

  • global_focal_point(Offset) –

    The focal point of the pointers in contact with the screen,

  • horizontal_scale(float) –

    The scale implied by the average distance along the horizontal axis

  • local_focal_point(Offset) –

    The focal point of the pointers in contact with the screen,

  • pointer_count(int) –

    The number of pointers being tracked by the gesture recognizer.

  • rotation(float) –

    The angle (in radians) implied by the first two pointers to enter

  • scale(float) –

    The scale implied by the average distance between the pointers in contact

  • timestamp(Duration | None) –

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

  • vertical_scale(float) –

    The scale implied by the average distance along the vertical axis

Properties#

focal_point_delta class-attribute instance-attribute #

focal_point_delta: Offset = field(
    metadata={"data_field": "fpd"}
)

The amount the gesture's focal point has moved in the coordinate space of the event receiver since the previous update.

global_focal_point class-attribute instance-attribute #

global_focal_point: Offset = field(
    metadata={"data_field": "gfp"}
)

The focal point of the pointers in contact with the screen, in global coordinates.

horizontal_scale class-attribute instance-attribute #

horizontal_scale: float = field(
    metadata={"data_field": "hs"}
)

The scale implied by the average distance along the horizontal axis between the pointers in contact with the screen.

This value must be greater than or equal to zero.

local_focal_point class-attribute instance-attribute #

local_focal_point: Offset = field(
    metadata={"data_field": "lfp"}
)

The focal point of the pointers in contact with the screen, in local coordinates.

pointer_count class-attribute instance-attribute #

pointer_count: int = field(metadata={'data_field': 'pc'})

The number of pointers being tracked by the gesture recognizer.

Typically this is the number of fingers being used to pan the widget using the gesture recognizer. Due to platform limitations, trackpad gestures count as two fingers even if more than two fingers are used.

rotation class-attribute instance-attribute #

rotation: float = field(metadata={'data_field': 'rot'})

The angle (in radians) implied by the first two pointers to enter in contact with the screen.

scale class-attribute instance-attribute #

scale: float = field(metadata={'data_field': 's'})

The scale implied by the average distance between the pointers in contact with the screen.

This value must be greater than or equal to zero.

timestamp class-attribute instance-attribute #

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

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

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

vertical_scale class-attribute instance-attribute #

vertical_scale: float = field(metadata={"data_field": "vs"})

The scale implied by the average distance along the vertical axis between the pointers in contact with the screen.

This value must be greater than or equal to zero.