ImageD class

Inheritance
Mixed-in types

Constructors

ImageD({WasmStructPointer<ImageD>? originalPointer, Uint8List? data, int width = 0, int height = 0, int mipmaps = 0, PixelFormat format = .PIXELFORMAT_NONE})
ImageD.zero()
factory

Properties

$state RaylibTempStructState
Per-instance allocation state tracking slot keys, disposal, and identity.
finalinherited
bytesPerPixel int
Number of bytes per pixel, derived from format.
no setterinherited
data Uint8List
Raw pixel data for the image.
getter/setter pairoverride
dataLength int
Total byte length of data, equal to frameSize * frameCount.
no setterinherited
format PixelFormat
Pixel format of the image data.
getter/setter pairoverride
frameCount int
Number of frames in the image.
getter/setter pairoverride
frameSize int
Byte size of a single frame, equal to width * height * bytesPerPixel.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
height int
Height of the image in pixels.
getter/setter pairoverride
mipmaps int
Number of mipmap levels. 1 means no mipmaps (base image only).
getter/setter pairoverride
originalPointer WasmStructPointer<ImageD>?
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
wasmByteSize int
no setteroverride
width int
Width of the image in pixels.
getter/setter pairoverride

Methods

clone() ImageD
Returns a deep copy of this instance, preserving RaylibStructBase.originalPointer if present.
override
copy() ImageD
Returns a deep copy of this instance without RaylibStructBase.originalPointer.
inherited
getOriginalPointer() WasmStructPointer<ImageD>
Returns originalPointer, throwing a descriptive StateError if unavailable or this instance RaylibTempStructState.isDisposed.
inherited
getOriginalPointerAndDispose() WasmStructPointer<ImageD>
Returns originalPointer and immediately calls structMarkDisposed.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setD(ImageD o) ImageD
Copies the fields of o into this instance and returns this.
override
signature() String
Returns a human-readable representation of this struct.
inherited
structAllocateInto(RaylibTemp temp, WasmStructPointer<ImageD> p, String key) → void
Allocates nested pointers into temp under key as needed.
override
structMarkDisposed() → void
Marks this instance as disposed and clears originalPointer.
inherited
structOnOp(void callback(WasmStructPointer<ImageD> p)) → void
Calls callback with originalPointer if it is set, otherwise no-ops.
inherited
structReadFrom(WasmStructPointer<ImageD> p) → void
Reads all fields from the memory at p.
inherited
structSetTag(String newTag) ImageD
Sets RaylibTempStructState.tag to newTag and returns this for chaining.
inherited
structSyncFromMemory() → void
Syncs all fields from the memory. Requires originalPointer.
inherited
structSyncInto(RaylibTemp temp, WasmStructPointer<ImageD> p, String key) → void
Syncs Dart-side fields into the already-allocated native pointer p. Defaults to structWriteInto.
inherited
structSyncToMemory() → void
Syncs all fields to the memory. Requires originalPointer.
inherited
structUpdateFrameCount(int frameCount) → void
Updates frameCount and resynchronizes frame-dependent memory state.
override
structWriteInto(WasmStructPointer<ImageD> p) → void
Writes all fields into the memory at p.
inherited
toString() String
A string representation of this object.
inherited
wasmReader([int? offset]) WasmReader
inherited
wasmReaderOr(int address) WasmReader
inherited
wasmReadFrom(WasmReader reader) → void
override
wasmWriteInto(WasmWriter writer) → void
override
wasmWriter([int? offset]) WasmWriter
inherited
wasmWriterOr(int address) WasmReader
inherited

Operators

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

Static Properties

byteSize int
final