SceneLayer class
Represents a single renderable layer inside a composited terminal scene.
Constructors
-
SceneLayer({required SceneRenderer renderer, LayerSizing sizing = LayerSizing.fixed, int x = 0, int y = 0, int? width, int? height, int zIndex = 0, bool draggable = false, bool resizable = false, bool hitTestable = true, bool mouseOpaque = false, void onResize(Point<
int> newSize)?, void onFocus()?}) -
Creates a new SceneLayer with the given
renderer,sizing, and placement parameters.
Properties
- draggable ↔ bool
-
Whether this layer is draggable via mouse click-and-drag.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- height ↔ int?
-
The height of this layer, if fixed.
getter/setter pair
- hitTestable ↔ bool
-
Whether this layer receives mouse events. If false, mouse events pass through to layers below.
getter/setter pair
- mouseOpaque ↔ bool
-
Whether visually opaque pixels in this layer explicitly intercept mouse clicks even if they aren't handled by widgets.
getter/setter pair
- onFocus ↔ void Function()?
-
Callback when the layer gains focus.
getter/setter pair
-
onResize
↔ void Function(Point<
int> newSize)? -
Callback when the layer's size changes (typically for draggable/resizable).
getter/setter pair
- renderer → SceneRenderer
-
The renderer managing this layer.
final
- resizable ↔ bool
-
Whether this layer can be resized by dragging its corners.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sizing → LayerSizing
-
The sizing policy for this layer.
final
- width ↔ int?
-
The width of this layer, if fixed.
getter/setter pair
- x ↔ int
-
The horizontal column coordinate of the layer's top-left corner.
getter/setter pair
- y ↔ int
-
The vertical row coordinate of the layer's top-left corner.
getter/setter pair
- zIndex ↔ int
-
The stacking order index of the layer.
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