Compositor class final

Compositor manages layer composition, drawing and hit testing.

Upstream: third_party/lipgloss/layer.go (Compositor).

Constructors

Compositor([List<Layer> layers = const []])

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addLayers(List<Layer> layers) → void
Adds layers to the compositor root and refreshes.
bounds() Rectangle
Returns the compositor bounds.
draw(Screen scr, Rectangle area) → void
Draws visible layers that overlap area onto scr.
getLayer(String id) Layer?
Returns the layer with id, if any.
hit(int x, int y) LayerHit
Returns the top-most layer hit at (x, y).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
refresh() → void
Rebuilds the flattened layer list and bounds.
render() String
Renders the compositor to a string snapshot.
toString() String
A string representation of this object.
inherited

Operators

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