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.
- Implementers
- RaylibAudioModuleBase
- RaylibCameraModuleBase
- RaylibColorExtensionBase
- RaylibCoreModuleBase
- RaylibEaseExtensionBase
- RaylibGuiModuleBase
- RaylibGuiModuleExtras
- RaylibLightModuleBase
- RaylibMatrixExtensionBase
- RaylibQuaternionExtensionBase
- RaylibRlglModuleBase
- RaylibRlglModuleExtras
- RaylibTempBase
- RaylibUtilsModuleBase
- RaylibVectorExtensionBase
Constructors
- RaylibModule(R rl)
Properties
- 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
messageat error level if debug is enabled andmessagepasses 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
messageat info level if debug is enabled andmessagepasses all filters. -
debugTime(
bool v) → void - Enables or disables per-call timing output alongside debug logs.
-
debugWarn(
String message) → void -
Logs
messageat warn level if debug is enabled andmessagepasses all filters. -
disableSync<
T> (T f()) → T -
Executes
fwith RaylibTempBase syncing temporarily disabled, restoring the previous sync state afterward. -
dispose(
) → void - Calls all registered onDispose callbacks and clears them.
-
doLoad(
) → void - Ensures load is called exactly once, regardless of how many times doLoad is invoked.
-
load(
) → void - Override to perform one-time module initialization. Called by doLoad.
-
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
fnto be called when this module is disposed. -
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