RaylibModule<R extends RaylibBase> class abstract

Base class for all Raylib module wrappers, providing debug logging, lifecycle management, and sync control tied to a RaylibBase context rl.

Mixed-in types
Implementers

Constructors

RaylibModule(R rl)

Properties

$ → RaylibTemp<RaylibBase>
See RaylibTemp.
no setter
hashCode → int
The hash code for this object.
no setterinherited
rl → R
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

debug(bool v) → void
Enables or disables debug logging for this module.
debugError(String message) → void
Logs message at error level if debug is enabled and message passes all filters.
debugFilter(bool filter(String)) → void
Adds a predicate that gates debug output. Only messages satisfying at least one filter are logged.
debugInfo(String message) → void
Logs message at info level if debug is enabled and message passes all filters.
debugTime(bool v) → void
Enables or disables per-call timing output alongside debug logs.
debugWarn(String message) → void
Logs message at warn level if debug is enabled and message passes all filters.
disableSync<T>(T f()) → T
Executes f with RaylibTemp syncing temporarily disabled, restoring the previous sync state afterward.
dispose() → void
Calls all registered onDispose callbacks and clears them.
inherited
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.
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.
load() → void
Override to perform one-time module initialization.
logError(Object? message) → void
logInfo(Object? message) → void
logWarn(Object? message) → void
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.
toString() → String
A string representation of this object.
inherited

Operators

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