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
#
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
#
The focal point of the pointers in contact with the screen, in global coordinates.
horizontal_scale
class-attribute
instance-attribute
#
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
#
The focal point of the pointers in contact with the screen, in local coordinates.
pointer_count
class-attribute
instance-attribute
#
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
#
The angle (in radians) implied by the first two pointers to enter in contact with the screen.
scale
class-attribute
instance-attribute
#
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
#
Recorded timestamp of the source pointer event that triggered the scale event.
Could be None if triggered from proxied events such as accessibility.