Scene<T extends Node> class
A controller for a mounted Node tree.
TODO: Document further.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasSize → bool
-
Whether the scene has been resized at least once.
no setter
- node → T
-
This scene's root. Cannot be modified.
final
-
onPause
→ Signal1<
bool> -
Emitted whenever paused changes.
final
- paused ↔ bool
-
Whether this scene is frozen: it neither updates nor advances time.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shape → Shape
-
This scene's area, updated on every resize via resize.
no setter
- size → Vector2
-
Current scene size, updated on every resize via resize.
no setter
Methods
-
destroy(
) → void - Unmounts the tree, permanently. Idempotent; every other way of driving this scene asserts once it has been destroyed.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pause(
) → void - Freezes this scene, so it stops updating and advancing time.
-
reassemble(
) → void -
render(
Canvas canvas) → void -
Renders this scene to
canvas. -
resize(
double width, double height) → void -
resume(
) → void - Unfreezes this scene, so it resumes updating.
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
double dt) → void
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited