Skip to main content

Offset

A 2D floating-point offset.

Properties

  • distance - The magnitude of the offset.
  • filter_quality - The filter quality with which to apply this transform as a bitmap operation.
  • transform_hit_tests - Whether to apply the transformation when performing hit tests.
  • x - The horizontal offset.
  • y - The vertical offset.

Methods

  • copy - Returns a copy of this object with the specified properties overridden.

Properties

distanceproperty

distance: float

The magnitude of the offset.

filter_qualityclass-attributeinstance-attribute

filter_quality: Optional[FilterQuality] = None

The filter quality with which to apply this transform as a bitmap operation.

transform_hit_testsclass-attributeinstance-attribute

transform_hit_tests: bool = True

Whether to apply the transformation when performing hit tests.

xclass-attributeinstance-attribute

x: Number = 0

The horizontal offset.

yclass-attributeinstance-attribute

y: Number = 0

The vertical offset.

Methods

copy

copy(x: Optional[Number] = None, y: Optional[Number] = None, transform_hit_tests: Optional[bool] = None, filter_quality: Optional[FilterQuality] = None)

Returns a copy of this object with the specified properties overridden.