SpriteBoxTransformMode enum
Options for setting up a SpriteBox's coordinate system.
Constants
- 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.
const SpriteBoxTransformMode(5)
- 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.
const SpriteBoxTransformMode(4)
- 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.
const SpriteBoxTransformMode(1)
- nativePoints → const SpriteBoxTransformMode
-
Use the same points as the parent
Widget
.const SpriteBoxTransformMode(0)
- scaleToFit → const SpriteBoxTransformMode
-
Similar to the letterbox option, but instead of trimming areas the sprite system will be scaled down to fit the box.
const SpriteBoxTransformMode(3)
- stretch → const SpriteBoxTransformMode
-
Use the size of the root node for the coordinate system, and scale it to fit the size of the box.
const SpriteBoxTransformMode(2)
- values → const List<SpriteBoxTransformMode>
-
A constant List of the values in this enum, in order of their declaration.
const List<SpriteBoxTransformMode>
Properties
Methods
-
toString(
) → String - Returns a string representation of this object.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
Operators
-
operator ==(
other) → bool -
The equality operator. [...]
inherited