TextBoxComponent class

Inheritance
Mixed in types

Constructors

TextBoxComponent(String text, {TextConfig config, TextBoxConfig boxConfig})

Properties

anchor Anchor
read / write, inherited
angle double
read / write, inherited
boxConfig TextBoxConfig
read-only
config TextConfig
read-only
currentChar int
read-only
currentHeight double
read-only
currentLine int
read-only
currentWidth double
read-only
debugColor Color
read-only, inherited
debugMode bool
read / write, inherited
debugTextConfig TextConfig
read-only, inherited
finished bool
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
height double
read / write, inherited-setter, override-getter
p Position
read / write
renderFlipX bool
read / write, inherited
renderFlipY bool
read / write, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
size Size
This is the current updated screen size.
read / write, inherited
text String
read-only
totalCharTime double
read-only
totalHeight double
read-only
totalWidth double
read-only
width double
read / write, inherited-setter, override-getter
x double
read / write, inherited
y double
read / write, inherited

Methods

addEffect(PositionComponentEffect effect) → void
inherited
angleBetween(PositionComponent c) double
inherited
clearEffects() → void
inherited
destroy() bool
Whether this should be destroyed or not. [...]
inherited
distance(PositionComponent c) double
inherited
drawBackground(Canvas c) → void
getLineWidth(String line, int charCount) double
isHud() bool
Whether this component is HUD object or not. [...]
inherited
loaded() bool
Whether this component has been loaded yet. If not loaded, BaseGame will not try to render it. [...]
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
onDestroy() → void
Called right before the component is destroyed and removed from the game
inherited
onMount() → void
Called when the component has been added and preperad by the game instance. [...]
inherited
prepareCanvas(Canvas canvas) → void
inherited
priority() int
Render priority of this component. This allows you to control the order in which your components are rendered. [...]
inherited
redrawLater() → void
removeEffect(PositionComponentEffect effect) → void
inherited
render(Canvas c) → void
Renders this component on the provided Canvas c.
override
renderDebugMode(Canvas canvas) → void
inherited
resizableChildren() Iterable<Resizable>
Overwrite this to add children to this Resizable. [...]
inherited
resize(Size size) → void
Implementation provided by this mixin to the resize hook.
inherited
setByPosition(Position position) → void
inherited
setByRect(Rect rect) → void
inherited
setBySize(Position size) → void
inherited
toPosition() Position
inherited
toRect() Rect
inherited
toSize() Position
inherited
toString() String
Returns a string representation of this object.
inherited
update(double dt) → void
This method is called periodically by the game engine to request that your component updates itself. [...]
override

Operators

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