SceneController class

Entry point of GraphX world.

A SceneController manages (up to) 2 scenes: back and front which correlates to CustomPaint.painter and CustomPaint.foregroundPainter. It takes care of the initialization and holding the references of the Painters used by SceneBuilderWidget.

Constructors

SceneController({GSprite? back, GSprite? front, SceneConfig? config})
The SceneController constructor.

Properties

$inputConverter InputConverter
(Internal usage) The InputConverter instance associated with this SceneController.
getter/setter pair
backScene ScenePainter?
The ScenePainter for the back layer of this SceneController.
getter/setter pair
config SceneConfig
The SceneConfig instance associated with this SceneController.
getter/setter pair
frontScene ScenePainter?
The ScenePainter for the front layer of this SceneController.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
keyboard KeyboardManager<KeyboardEventData>
Access the keyboard manager instance associated with this SceneController.
no setter
onHotReload Signal
The Signal that is dispatched when the Stateful Widget gets reassembled.
no setter
pointer PointerManager<PointerEventData>
Access the pointer manager instance associated with this SceneController.
no setter
resolveWindowBounds WindowBoundsResolver?
A function that returns the global coordinates of the widget. Useful for computing interactions with children Widgets that get added later.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
ticker GTicker?
Access the ticker (if any) created by this SceneController.
no setter

Methods

$init() → void
(Internal usage) called internally from SceneBuilderWidget.
buildBackPainter() CustomPainter?
Builds the back CustomPainter associated with this SceneController.
buildFrontPainter() CustomPainter?
Builds the front CustomPainter associated with this SceneController.
dispose() → void
Disposes of this SceneController.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reassembleWidget() → void
(Internal usage) Called when the Stateful Widget gets reassembled.
resumeTicker() → void
Resumes the GTicker.
setup() → void
Initializes the SceneController.
toString() String
A string representation of this object.
inherited

Operators

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