SpriteBoxTransformMode enum

Options for setting up a SpriteBox's coordinate system.

Inheritance

Constructors

SpriteBoxTransformMode()
const

Values

nativePoints → const SpriteBoxTransformMode

Use the same points as the parent Widget.

letterbox → const SpriteBoxTransformMode

Use the size of the root node for the coordinate system, and constrain the aspect ratio and trim off areas that end up outside the screen.

stretch → const SpriteBoxTransformMode

Use the size of the root node for the coordinate system, and scale it to fit the size of the box.

scaleToFit → const SpriteBoxTransformMode

Similar to the letterbox option, but instead of trimming areas the sprite system will be scaled down to fit the box.

fixedWidth → const SpriteBoxTransformMode

Use the width of the root node to set the size of the coordinate system, and change the height of the root node to fit the box.

fixedHeight → const SpriteBoxTransformMode

Use the height of the root node to set the size of the coordinate system, and change the width of the root node to fit the box.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Constants

values → const List<SpriteBoxTransformMode>
A constant List of the values in this enum, in order of their declaration.