LightD class

Inheritance

Constructors

LightD({Pointer<LightC>? originalPointer, LightType type = .LIGHT_POINT, bool enabled = false, Vector3D? position, Vector3D? target, ColorD? color, double attenuation = 0, int enabledLoc = 0, int typeLoc = 0, int positionLoc = 0, int targetLoc = 0, int colorLoc = 0, int attenuationLoc = 0})
LightD.zero()
factory

Properties

allocKey String?
The RaylibTemp slot key used during the most recent toC allocation.
no setterinherited
attenuation double
getter/setter pair
attenuationLoc int
getter/setter pair
color ColorD
getter/setter pair
colorLoc int
getter/setter pair
enabled bool
getter/setter pair
enabledLoc int
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
internalId int
A stable numeric ID assigned on first toC call for pointer-owning structs.
no setterinherited
isDisposed bool
Whether markDisposed has been called on this instance.
no setterinherited
originalPointer Pointer<LightC>?
The C-owned or RaylibTemp-owned native pointer for this struct, if any.
getter/setter pairinherited
position Vector3D
getter/setter pair
positionLoc int
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
tag String
The slot tag used to disambiguate RaylibTemp keys for this instance.
no setterinherited
target Vector3D
getter/setter pair
targetLoc int
getter/setter pair
type LightType
getter/setter pair
typeLoc int
getter/setter pair

Methods

allocateInto(RaylibTemp temp, Pointer<LightC> p, String key) → void
Writes all fields into the native struct at p, allocating nested pointers into temp under key as needed.
override
allocatePointer(RaylibTemp temp, String key, [int count = 1]) Pointer<LightC>
Allocates a native slot of count elements in temp under key and returns the resulting pointer.
override
clone() LightD
Returns a deep copy of this instance, preserving originalPointer.
override
copy() LightD
Returns a deep copy of this instance without originalPointer.
inherited
getOriginalPointer() Pointer<LightC>
Returns originalPointer, throwing a descriptive StateError if unavailable or this instance isDisposed.
inherited
getOriginalPointerAndDispose() Pointer<LightC>
Returns originalPointer and immediately calls markDisposed.
inherited
markDisposed() → void
Marks this instance as disposed and clears originalPointer.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onOriginalPointer(void callback(Pointer<LightC> p)) → void
Calls callback with originalPointer if it is set, otherwise no-ops.
inherited
setC(LightC o) LightD
Copies the fields of the native struct o into this instance.
override
setD(LightD o) LightD
Copies the fields of the Dart struct o into this instance.
override
setTag(String newTag) LightD
Sets tag to newTag and returns this for chaining.
inherited
signature() String
Returns a human-readable description of this struct's current field values.
override
syncInto(RaylibTemp temp, Pointer<LightC> p, String key) → void
Syncs Dart-side fields into the already-allocated native pointer p.
inherited
toC(RaylibTemp temp, String key) Pointer<LightC>
Returns a native pointer for this struct, allocating or syncing as needed.
inherited
toString() String
A string representation of this object.
inherited
writeInto(LightC p) → void
Writes all fields directly into the native struct reference p. For nested structs, use writeInto as well.
override

Operators

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