ColorBase<X extends ColorBase<X> > mixin
Backend-agnostic contract for ColorBase structs.
Must be mixed into every concrete platform implementation of a Raylib type to ensure a unified API surface across different backends.
4 components, R8G8B8A8 (32bit)
- Superclass constraints
- Mixin applications
Properties
- $state → RaylibTempStructState
-
Per-instance allocation state tracking slot keys, disposal, and identity.
finalinherited
- a ↔ int
-
Color alpha value
getter/setter pair
- b ↔ int
-
Color blue value
getter/setter pair
- g ↔ int
-
Color green value
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- r ↔ int
-
Color red value
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- structName → String
-
The Dart-side type name of this struct
no setterinherited
Methods
-
clone(
) → X -
Returns a deep copy of this instance, preserving RaylibStructBase.originalPointer if present.
inherited
-
copy(
) → X -
Returns a deep copy of this instance without RaylibStructBase.originalPointer.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
set(
num r, num g, num b, num a) → X - Sets all components at once.
-
setD(
X o) → X -
Copies the fields of
ointo this instance and returnsthis.inherited -
signature(
) → String -
Returns a human-readable representation of this struct.
override
-
toArray(
) → List< int> - Returns the components as a new int list.
-
toHex(
) → String - Returns this color encoded as an uppercase hexadecimal RGBA string.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited