Options for setting up a SpriteBox's coordinate system.
Constants
- fixedHeight → 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 → 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 → 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 → SpriteBoxTransformMode
-
Use the same points as the parent
Widget
.const SpriteBoxTransformMode(0)
- scaleToFit → 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 → 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 → List<SpriteBoxTransformMode>
-
A constant List of the values in this enum, in order of their declaration.
const List<SpriteBoxTransformMode>
Properties
- hashCode → int
-
Get a hash code for this object.
read-only, inherited - index → int
-
read-only
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Operators
-
operator ==(
other) → bool -
The equality operator.
inherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited -
toString(
) → String -
Returns a string representation of this object.
inherited