RaylibTemp<R extends RaylibBase> class final

Root of the temporary allocator hierarchy for a given RaylibBase context.

Owns the set of typed allocators (e.g. Int8$, Float32$, struct allocators) and governs the lifetime of all slots allocated.

All allocated slots are freed on dispose.

Inheritance

Constructors

RaylibTemp(RaylibBase rl)

Properties

Bool$ ↔ RaylibTempScalarAllocator<bool, RBool>
latefinal
Char$ → RaylibTempScalarIntAllocator<Int8List, RChar>
no setter
doSync → bool
Whether sync-back is currently enabled.
no setter
Double$ → RaylibTempScalarFloatAllocator<Float64List, RDouble>
no setter
Float$ → RaylibTempScalarFloatAllocator<Float32List, RFloat>
no setter
Float32$ ↔ RaylibTempScalarFloatAllocator<Float32List, RFloat>
latefinal
Float64$ ↔ RaylibTempScalarFloatAllocator<Float64List, RDouble>
latefinal
hashCode → int
The hash code for this object.
no setterinherited
Int$ → RaylibTempScalarIntAllocator<Int32List, RInt>
no setter
Int16$ ↔ RaylibTempScalarIntAllocator<Int16List, RInt16>
latefinal
Int32$ ↔ RaylibTempScalarIntAllocator<Int32List, RInt>
latefinal
Int64$ ↔ RaylibTempScalarIntAllocator<Int64List, RInt64>
latefinal
Int8$ ↔ RaylibTempScalarIntAllocator<Int8List, RChar>
latefinal
rl → RaylibBase
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
Short$ → RaylibTempScalarIntAllocator<Int16List, RInt16>
no setter
String$ ↔ RaylibTempStringAllocator
latefinal
Temp → RaylibTemp<RaylibBase>
See RaylibTemp.
no setterinherited
TypedDataList$ ↔ RaylibTempTypedDataListAllocator
latefinal
Uint16$ ↔ RaylibTempScalarIntAllocator<Uint16List, RUint16>
latefinal
Uint32$ ↔ RaylibTempScalarIntAllocator<Uint32List, RUint32>
latefinal
Uint64$ ↔ RaylibTempScalarIntAllocator<Uint64List, RUint64>
latefinal
Uint8$ ↔ RaylibTempScalarIntAllocator<Uint8List, RUint8>
latefinal
UnsignedChar$ → RaylibTempScalarIntAllocator<Uint8List, RUint8>
no setter
UnsignedInt$ → RaylibTempScalarIntAllocator<Uint32List, RUint32>
no setter
UnsignedShort$ → RaylibTempScalarIntAllocator<Uint16List, RUint16>
no setter
Utils ↔ RaylibTempUtils
latefinal

Methods

debug(bool v) → void
Enables or disables debug logging for this module.
inherited
debugError(String message) → void
Logs message at error level if debug is enabled and message passes all filters.
inherited
debugFilter(bool filter(String)) → void
Adds a predicate that gates debug output. Only messages satisfying at least one filter are logged.
inherited
debugFree(bool v) → void
Enables or disables logging of slot deallocation events.
debugFreeInfo(String message) → void
Logs message if free debugging is enabled.
debugInfo(String message) → void
Logs message at info level if debug is enabled and message passes all filters.
inherited
debugSync(bool v) → void
Enables or disables logging of struct sync-back events.
debugSyncInfo(String message) → void
Logs message if sync debugging is enabled.
debugTime(bool v) → void
Enables or disables per-call timing output alongside debug logs.
inherited
debugWarn(String message) → void
Logs message at warn level if debug is enabled and message passes all filters.
inherited
disableSync<T>(T f()) → T
Executes f with RaylibTemp syncing temporarily disabled, restoring the previous sync state afterward.
inherited
dispose() → void
Frees all allocators, then delegates to RaylibModule.dispose.
override
disposeStructWithOpFreed<D extends RaylibStruct<D>>(D struct, void fn(StructPointer<D> ptr)) → void
Disposes struct, invokes fn with its underlying pointer, and then frees the temporary allocation backing the pointer, if any.
inherited
disposeStructWithOpUnslotted<D extends RaylibStruct<D>>(D struct, void fn(StructPointer<D> ptr)) → void
Disposes struct, invokes fn with its underlying pointer, and then unslots the temporary allocation backing the pointer, if any.
inherited
enableSyncing(bool sync) → void
Enables or disables struct sync-back after C calls. See RaylibModule.disableSync.
load() → void
Override to perform one-time module initialization.
override
logError(Object? message) → void
inherited
logInfo(Object? message) → void
inherited
logWarn(Object? message) → void
inherited
nextId() → int
Returns a monotonically increasing ID, used to generate unique slot keys.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onDispose(void fn()) → void
Registers fn to be called when this module is disposed.
inherited
run<T>(String name(), T f()) → T
Executes f, logging its label (and optionally timing it) when debug is enabled and the label passes all filters.
inherited
scalarAlloc<Y extends RType>() → RaylibTempScalarAllocator<dynamic, RType>?
Returns the struct allocator registered under struct type X.
structAlloc<X extends RaylibStruct<X>>([StructType<X>? struct]) → RaylibTempStructAllocator<X>
Gets (or creates) a struct allocator.
toString() → String
A string representation of this object.
inherited

Operators

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