Text class
Below is Tiled's documentation about how this structure is represented on XML files:
Constructors
- Text({String fontFamily = 'sans-serif', int pixelSize = 16, String color = '#000000', String text = '', HAlign hAlign = HAlign.left, VAlign vAlign = VAlign.top, bool bold = false, bool italic = false, bool underline = false, bool strikeout = false, bool kerning = true, bool wrap = false})
- Text.parse(Parser parser)
Properties
- bold ↔ bool
-
getter/setter pair
- color ↔ String
-
getter/setter pair
- fontFamily ↔ String
-
getter/setter pair
- hAlign ↔ HAlign
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- italic ↔ bool
-
getter/setter pair
- kerning ↔ bool
-
getter/setter pair
- pixelSize ↔ int
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- strikeout ↔ bool
-
getter/setter pair
- text ↔ String
-
getter/setter pair
- underline ↔ bool
-
getter/setter pair
- vAlign ↔ VAlign
-
getter/setter pair
- wrap ↔ bool
-
getter/setter pair
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