TextureD class
- Inheritance
-
- Object
- RaylibStructBase<
RaylibTemp, Pointer< TextureC> , TextureD> - StructD<
TextureC, TextureD> - TextureD
- Mixed-in types
Constructors
-
TextureD({Pointer<
TextureC> ? originalPointer, int id = 0, int width = 0, int height = 0, int mipmaps = 0, PixelFormat format = .PIXELFORMAT_NONE}) - TextureD.zero()
-
factory
Properties
- $state → RaylibTempStructState
-
Per-instance allocation state tracking slot keys, disposal, and identity.
finalinherited
- format ↔ PixelFormat
-
getter/setter pairoverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- height ↔ int
-
getter/setter pairoverride
- id ↔ int
-
getter/setter pairoverride
- mipmaps ↔ int
-
getter/setter pairoverride
-
originalPointer
↔ Pointer<
TextureC> ? -
The C-owned or RaylibTemp-owned native pointer for this struct, if any.
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- structIsDisposed → bool
-
Whether structMarkDisposed has been called on this instance.
no setterinherited
- structName → String
-
The Dart-side type name of this struct
no setterinherited
- structRequiresOriginalPointer → bool
-
Whether this struct requires an originalPointer to function correctly.
no setterinherited
- width ↔ int
-
getter/setter pairoverride
Methods
-
clone(
) → TextureD -
Returns a deep copy of this instance, preserving RaylibStructBase.originalPointer if present.
override
-
copy(
) → TextureD -
Returns a deep copy of this instance without RaylibStructBase.originalPointer.
inherited
-
getOriginalPointer(
) → Pointer< TextureC> -
Returns originalPointer, throwing a descriptive StateError if unavailable or this instance RaylibTempStructState.isDisposed.
inherited
-
getOriginalPointerAndDispose(
) → Pointer< TextureC> -
Returns originalPointer and immediately calls structMarkDisposed.
inherited
-
nativeGetIndexedArrayReference(
Array< TextureC> p, int index) → TextureC -
override
-
nativeGetIndexedReference(
Pointer< TextureC> p, int index) → TextureC -
override
-
nativeGetReference(
Pointer< TextureC> p) → TextureC -
inherited
-
nativeReadFrom(
TextureC p) → void -
override
-
nativeWriteInto(
TextureC p) → void -
Writes all fields directly into the native struct reference
p. For nested structs, usewriteIntoas well.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setD(
TextureD o) → TextureD -
Copies the fields of
ointo this instance and returnsthis.override -
signature(
) → String -
Returns a human-readable representation of this struct's current field values.
inherited
-
structAllocateInto(
RaylibTemp temp, Pointer< TextureC> p, String key) → void -
Writes all fields into the native struct at
p, allocating nested pointers intotempunderkeyas needed.inherited -
structMarkDisposed(
) → void -
Marks this instance as disposed and clears originalPointer.
inherited
-
structOnOp(
void callback(Pointer< TextureC> p)) → void -
Calls
callbackwith originalPointer if it is set, otherwise no-ops.inherited -
structReadFrom(
Pointer< TextureC> p) → void -
Reads all fields from the memory at
p.inherited -
structSetTag(
String newTag) → TextureD -
Sets RaylibTempStructState.tag to
newTagand returnsthisfor chaining.inherited -
structSyncFromMemory(
) → void -
Syncs all fields from the memory. Requires originalPointer.
inherited
-
structSyncInto(
RaylibTemp temp, Pointer< TextureC> p, String key) → void -
Syncs Dart-side fields into the already-allocated native pointer
p.inherited -
structSyncToMemory(
) → void -
Syncs all fields to the memory. Requires originalPointer.
inherited
-
structWriteInto(
Pointer< TextureC> p) → void -
Writes all fields into the memory at
p.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited