LcLayerKind enum

Wire format for a single layer, shared between the public FFI surface (engine.h) and every backend implementation (backend.h). This is our generic scene description, not tied to any graphics library.

The Dart side is responsible for:

  • resolving stacking order (Layer.zIndex) into plain array order,
  • dropping invisible layers,
  • flattening the common Layer.transform/size/opacity into these fields. A backend only ever sees a flat array of these and never needs to know about Scene, Layer, or Dart at all.

Adding a new renderable layer kind means adding a value to LcLayerKind, adding its dedicated fields below, and teaching a backend's render_layers to handle the new kind - engine.h's function signature never changes.

Inheritance
Available extensions

Values

LC_LAYER_KIND_UNKNOWN → const LcLayerKind
const LcLayerKind(0)
LC_LAYER_KIND_RECTANGLE → const LcLayerKind
const LcLayerKind(1)
LC_LAYER_KIND_TEXT → const LcLayerKind
const LcLayerKind(2)
LC_LAYER_KIND_IMAGE → const LcLayerKind
const LcLayerKind(3)
LC_LAYER_KIND_PATH → const LcLayerKind
const LcLayerKind(4)

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value int
final

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

Static Methods

fromValue(int value) LcLayerKind

Constants

values → const List<LcLayerKind>
A constant List of the values in this enum, in order of their declaration.