UIComponent class

Base UI component for ECS-driven interface elements.

Inheritance
Implementers

Constructors

UIComponent({required Size size, bool visible = true, bool enabled = true, int layer = 0})
Create a base UI component.

Properties

componentType Type
Type identifier for this component
no setterinherited
enabled bool
Whether this UI element can receive input.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
layer int
Optional local layer hint for UI ordering.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size Size
UI element size in logical pixels.
getter/setter pair
visible bool
Whether this UI element is visible.
getter/setter pair

Methods

boundsAt(Offset position) Rect
World-space bounds helper for hit testing.
containsPoint(Offset point, Offset position) bool
True if point is inside this element when centered at position.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onAttach(EntityId entityId) → void
Called when this component is added to an entity.
inherited
onDetach(EntityId entityId) → void
Called when this component is removed from an entity.
inherited
toString() String
A string representation of this object.
override

Operators

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