core/raylib_dartified_base library

Classes

ArrayCodec<E, R extends RType>
AudioCallbackBase
Raylib's AudioCallback callback.
AudioStreamD
AudioStream, custom audio stream
AutomationEventD
Automation event
AutomationEventListD
Automation event list
BoneInfoD
Bone, skeletal animation bone
BoundingBoxD
BoundingBox
Camera2DD
Camera2D, defines position/orientation in 2d space
Camera3DD
Camera, defines position/orientation in 3d space
ColorD
Color, 4 components, R8G8B8A8 (32bit)
DoNotAbbreviate
DoNotValidate
ElementCodec<E, R extends RType>
A codec for a single value of type E, stored at an R-typed region of memory (the field's own on-struct type, for a pointer field this is RPointer<Pointee>, not Pointee).
EnumCodec<E extends RaylibEnum, R extends RType>
FilePathListD
File path list
float16D
Raylib's float16 struct holding 16 float values
float3D
Raylib's float3 struct holding 3 float values
FontD
Font, font texture and GlyphInfo array data
GestureEventD
Gesture event
GlyphInfoD
GlyphInfo, font characters glyphs info
GuiResult
GuiResult
GuiResultCustom
ImageD
Image, pixel data stored in CPU memory (RAM)
LightD
Light
LivePointerSync<R extends RType>
LoadFileDataCallbackBase
Raylib's LoadFileDataCallback callback.
LoadFileTextCallbackBase
Raylib's LoadFileTextCallback callback.
MaterialD
Material, includes shader and maps
MaterialMapD
Material map
MatrixD
Matrix, 4x4 components, column major, OpenGL style, right-handed
MemoryDebug
Debug-time diagnostics for MemoryPointer misuse.
MemoryPointer<X extends RType>
Backend-agnostic handle to a raw memory buffer returned by a C function.
MemoryScratch
Pool of preallocated, reusable buffers for short-lived operations that need a temporary MemoryPointer without going through a full alloc/free cycle (e.g. binary operations like equality that need scratch space for one call).
MemoryTrace
Global observation hooks for memory reads/writes, keyed by address.
MeshD
Mesh, vertex data and vao/vbo
ModelAnimationD
ModelAnimation, contains a full animation sequence
ModelD
Model, meshes, materials and animation data
ModelSkeletonD
Skeleton, animation bones hierarchy
MouseButtonInfo
Snapshot of a single mouse button's state for the current frame.
MouseInfo
Snapshot of the full mouse state for the current frame.
MsfGifFileWriteCallbackBase
MsfGif's MsfGifFileWriteFunc callback.
MsfGifResultD
MsfGifResult
MsfGifStateD
MsfGifState
MusicD
Music, audio stream, anything longer than ~10 seconds should be streamed
NPatchInfoD
NPatchInfo, n-patch layout info
PointerCodec<E, R extends RType>
A single pointer to one E value.
QuaternionD
Quaternion, 4 components
RArray<E extends RType>
RayCollisionD
RayCollision, ray hit information
RayD
Ray, ray for raycasting
RaylibAppBase<R extends RaylibBase>
Platform-agnostic app lifecycle interface for Raylib applications.
RaylibAudioDart<R extends RaylibBase>
Backend-agnostic Raylib Audio module.
RaylibAudioFlatModule<R extends RaylibBase>
Backend-agnostic contract for the Raylib Audio flat module.
RaylibBase
Root class for a fully initialized Raylib context, exposing all modules, extensions, lifecycle management, and forwarded constants and functions.
RaylibCallback<R extends RaylibCallback<R, D>, D extends Function>
RaylibCameraDart<R extends RaylibBase>
Backend-agnostic Raylib Camera module.
RaylibCameraFlatModule<R extends RaylibBase>
Backend-agnostic contract for the Raylib Camera module.
RaylibConfig
Global configuration for raylib_dartified package family.
RaylibConstants
Dart-side mirror of compile-time constants.
RaylibCoreDart<R extends RaylibBase>
Backend-agnostic Raylib Core module.
RaylibCoreFlatModule<R extends RaylibBase>
Backend-agnostic contract for the Raylib Core module.
RaylibDebugLabelsBase
Base for module debug label generators, providing shared formatting utilities.
RaylibEaseExtDart<R extends RaylibBase>
Exposes Raylib's easing functions as module-level calls.
RaylibFunctions
Pure Dart implementations of Raylib's inline/math utility functions, shared across backends to avoid duplicating logic that doesn't touch native memory.
RaylibGuiConstants
Dart-side mirror of compile-time constants.
RaylibGuiDart<R extends RaylibBase>
Backend-agnostic Raygui module.
RaylibGuiFlatModule<R extends RaylibBase>
Backend-agnostic contract for the Raygui module.
RaylibLightConstants
Dart-side mirror of compile-time constants.
RaylibLightDart<R extends RaylibBase>
Backend-agnostic Raylib Light module.
RaylibLightFlatModule<R extends RaylibBase>
Backend-agnostic contract for the Raylib Light module.
RaylibMatrixExtDart<R extends RaylibBase>
Exposes Raylib's matrix math API as module-level functions by delegating to the corresponding MatrixD methods/factories. Exists purely for Raylib API symmetry.
RaylibMatrixFlatExt<R extends RaylibBase>
Backend-agnostic contract for the Raylib Audio flat module.
RaylibModule<R extends RaylibBase>
Base class for all Raylib module wrappers, providing debug logging, lifecycle management, and sync control tied to a RaylibBase context rl.
RaylibMsfGifDart<R extends RaylibBase>
Backend-agnostic MsfGif module.
RaylibMsfGifFlatModule<R extends RaylibBase>
Backend-agnostic contract for the Raylib MsfGif module.
RaylibQuaternionExtDart<R extends RaylibBase>
Exposes Raylib's quaternion math API as module-level functions by delegating to the corresponding QuaternionD methods/factories. Exists purely for Raylib API symmetry.
RaylibQuaternionFlatExt<R extends RaylibBase>
Exposes Raylib's quaternion math API as module-level functions by delegating to the corresponding QuaternionD methods/factories. Exists purely for Raylib API symmetry.
RaylibRlglConstants
Dart-side mirror of compile-time constants.
RaylibRlglDart<R extends RaylibBase>
Backend-agnostic Raylib Rlgl module.
RaylibRlglFlatModule<R extends RaylibBase>
Backend-agnostic contract for the Raylib Rlgl module.
RaylibStruct<D extends RaylibStruct<D>>
Backend-agnostic base for Raylib struct mirror objects that are backed by native memory, adding op ownership tracking on top.
RaylibStructLiteral<D extends RaylibStruct<D>>
A RaylibStruct that is a plain value type: field data lives entirely in Dart-side storage and op is optional rather than required.
RaylibStructView<D extends RaylibStruct<D>>
A RaylibStruct that is a live, read-only window over someone else's native memory rather than an owner of its own data.
RaylibTemp<R extends RaylibBase>
Root of the temporary allocator hierarchy for a given RaylibBase context.
RaylibTempAllocator<R extends RType>
Base class for Raylib temporary allocators, managing typed memory slots with a consistent allocation/free lifecycle.
RaylibTempArrayAllocator<X, R extends RType>
RaylibTempScalarAllocator<X, R extends RType>
Extends RaylibTempAllocator with the ability to write individual Dart values directly into allocated memory.
RaylibTempScalarFloatAllocator<L extends TypedDataList, R extends RType>
Specializes RaylibTempScalarTypedListAllocator for floating-point element types.
RaylibTempScalarIntAllocator<L extends TypedDataList, R extends RType>
Specializes RaylibTempScalarTypedListAllocator for integer element types, adding integer-specific allocation helpers on top of the typed list interop.
RaylibTempScalarPointerAllocator<X, R extends RType>
Extends RaylibTempAllocator with the ability to allocate pointer-to-pointer slots, where X is the pointee's Dart-side value.
RaylibTempScalarTypedListAllocator<X, L extends TypedDataList, R extends RType>
Extends RaylibTempScalarAllocator with typed list interop, the ability to view allocated memory as a Dart List<X> and construct a typed list from an iterable.
RaylibTempStringAllocator
Extends RaylibTempAllocator with string allocation, handling UTF-8 encoding and null-termination into temporary slots.
RaylibTempStructAllocator<X extends RaylibStruct<X>>
Extends RaylibTempAllocator with struct allocation, providing Allocate, _Ref, _RefOrNull, and _Extract helpers for Dart mirror objects (X).
RaylibTempStructPointerAllocator<X extends RaylibStruct<X>>
Extends RaylibTempAllocator with pointer-to-struct allocation,
RaylibTempStructState
Per-instance allocation state for a RaylibStruct mirror object, tracking its current slot key, tag, disposal status, and stable identity across repeated RaylibTempStructAllocator.Allocate calls.
RaylibTempTypedDataListAllocator
Dispatches a TypedDataList to the correct typed allocator on temp, allowing callers to allocate any supported typed list without knowing the concrete element type at the call site.
RaylibTempUtils
RaylibUtilsModule<R extends RaylibBase>
Dart-side utility helpers with no direct Raylib counterpart.
RaylibVector2ExtDart<R extends RaylibBase>
Exposes Raylib's vector math API as module-level functions by delegating to the corresponding Vector2D methods/factories. Exists purely for Raylib API symmetry.
RaylibVector2FlatExt<R extends RaylibBase>
Exposes Raylib's vector math API as module-level functions by delegating to the corresponding Vector2D methods/factories. Exists purely for Raylib API symmetry.
RaylibVector3ExtDart<R extends RaylibBase>
Exposes Raylib's vector math API as module-level functions by delegating to the corresponding Vector3D methods/factories. Exists purely for Raylib API symmetry.
RaylibVector3FlatExt<R extends RaylibBase>
Exposes Raylib's vector math API as module-level functions by delegating to the corresponding Vector3D methods/factories. Exists purely for Raylib API symmetry.
RaylibVector4ExtDart<R extends RaylibBase>
Exposes Raylib's vector math API as module-level functions by delegating to the corresponding Vector4D methods/factories. Exists purely for Raylib API symmetry.
RaylibVector4FlatExt<R extends RaylibBase>
Exposes Raylib's vector math API as module-level functions by delegating to the corresponding Vector4D methods/factories. Exists purely for Raylib API symmetry.
RBool
Unsigned 8-bit integer. Maps to C bool.
RectangleD
Rectangle, 4 components
RenderTextureD
RenderTexture, fbo for texture rendering
RFloat32
IEEE-754 single-precision float. Maps to C float.
RFloat64
IEEE-754 double-precision float. Maps to C double.
RFunction<F>
Marker type for a callback/function pointer.
RInt16
Signed 16-bit integer. Maps to C int16_t.
RInt32
Signed 32-bit integer. Maps to C int32_t.
RInt64
Signed 64-bit integer. Maps to C int64_t.
RInt8
Signed 8-bit integer. Maps to C int8_t.
RlDrawCallD
Draw call type
RlRenderBatchD
rlRenderBatch type
RlVertexBufferD
RLGL Vertex buffer
ROpaque
Marker type for a opaque type - any type.
RPointer<X extends RType>
A raw address into backend memory.
RSize
Unsigned pointer-sized integer. Maps to C size_t.
RStruct
RType
RUint16
Unsigned 16-bit integer. Maps to C uint16_t.
RUint32
Unsigned 32-bit integer. Maps to C uint32_t.
RUint64
Unsigned 64-bit integer. Maps to C uint64_t.
RUint8
Unsigned 8-bit integer. Maps to C uint8_t.
RVoid
Marker type for a void type - any type.
SaveFileDataCallbackBase
Raylib's SaveFileDataCallback callback.
SaveFileTextCallbackBase
Raylib's SaveFileTextCallback callback.
ScalarCodec<E, R extends RType>
ScratchHandle<Y extends RType>
A live claim on one MemoryScratch slot, returned by MemoryScratch.acquire.
ShaderD
Shader
SoundD
Sound
StringCodec<R extends RTypeIntLike>
StructCodec<E extends RaylibStruct<E>>
StructFieldBase<E>
StructLayout<F extends StructFields>
Describes the memory layout of a backend-agnostic struct.
StructLayoutFloatSlot
StructLiveList<E, R extends RType>
StructPointer<D extends RaylibStruct<D>>
A MemoryPointer<RStruct> that also knows its element type D, so it can offer .value/[]/[]= the similar way scalar RType extensions do.
StructPointerArrayField<E, R extends RType>
A pointer to a variable-length run of E, length is runtime-only, so there's no plain read/write; callers must supply the count they know about externally via readCount/writeCount.
StructPointerValueField<E, R extends RType>
A pointer-to-single-value field. Holds a PointerCodec concretely, no casting, since a pointer field's on-struct type genuinely differs from StructValueField's R slot (it's RPointer<R>, not R).
StructStringValueField<R extends RTypeIntLike>
A pointer-or-array-to-string-value field. Holds a StringCodec concretely.
StructType<D extends RaylibStruct<D>>
StructType
StructTypes
Registry of StructTypes
StructValueField<E, R extends RType>
TextureD
Texture, tex data stored in GPU memory (VRAM)
TraceLogCallbackBase
Raylib's TraceLogCallback callback.
TransformD
Transform, vertex transformation data
UnknownCodec<E, R extends RType>
A single pointer to unknown value. Typically for RTypes like RVoid or ROpaque.
Vector2D
Vector2, 2 components
Vector3D
Vector3, 3 components
Vector4D
Vector4, 4 components
VrDeviceInfoD
VrDeviceInfo, Head-Mounted-Display device parameters
VrStereoConfigD
VrStereoConfig, VR stereo rendering configuration for simulator
WaveD
Wave, audio wave data

Enums

AudioStreamField
AutomationEventField
AutomationEventListField
AutomationEventType
AutomationEventType
BlendMode
BlendMode
BoneInfoField
BoundingBoxField
Camera2DField
Camera3DField
CameraMode
CameraMode
CameraProjection
CameraProjection
ColorField
ConfigFlags
ConfigFlags
CubemapLayout
CubemapLayout
FilePathListField
float16Field
float3Field
FontField
FontType
FontType
GamepadAxis
GamepadAxis
GamepadButton
GamepadButton
Gesture
Gesture
GestureEventField
GlyphInfoField
GuiCheckBoxProperty
GuiCheckBoxProperty
GuiColorPickerProperty
GuiColorPickerProperty
GuiComboBoxProperty
GuiComboBoxProperty
GuiControl
GuiControl
GuiControlProperty
GuiControlProperty
GuiDefaultProperty
GuiDefaultProperty
GuiDropdownBoxProperty
GuiDropdownBoxProperty
GuiIconName
GuiIconName
GuiListViewProperty
GuiListViewProperty
GuiProgressBarProperty
GuiProgressBarProperty
GuiScrollBarProperty
GuiScrollBarProperty
GuiSliderProperty
GuiSliderProperty
GuiState
GuiState
GuiTabBarProperty
GuiTabBarProperty
GuiTextAlignment
GuiTextAlignment
GuiTextAlignmentVertical
GuiTextAlignmentVertical
GuiTextBoxProperty
GuiTextBoxProperty
GuiTextWrapMode
GuiTextWrapMode
GuiToggleProperty
GuiToggleProperty
GuiValueBoxProperty
GuiValueBoxProperty
ImageField
KeyboardKey
KeyboardKey
LightField
LightType
LightType
MaterialField
MaterialMapField
MaterialMapIndex
MaterialMapIndex
MatrixField
MeshField
ModelAnimationField
ModelField
ModelSkeletonField
MouseButton
MouseButton
MouseCursor
MouseCursor
MsfGifCookedFrameField
MsfGifResultField
MsfGifStateField
MusicContextType
MusicContextType
MusicField
NPatchInfoField
NPatchLayout
NPatchLayout
PixelFormat
PixelFormat
QuaternionField
RayCollisionField
RayField
RaylibPlatform
Supported Raylib runtime platforms.
RaylibSupportedLibs
RectangleField
RenderTextureField
RlCullMode
CullMode
RlDrawCallField
RlDrawMode
DrawMode
RlFramebufferAttachTextureType
FramebufferAttachTextureType
RlFramebufferAttachType
FramebufferAttachType
RlGlVersion
GlVersion
RlMatrixMode
MatrixMode
RlRenderBatchField
RlShaderAttributeDataType
ShaderAttributeDataType
RlShaderType
ShaderType
RlShaderUniformDataType
ShaderUniformDataType
RlUsageHint
UsageHint
RlVertexBufferField
ShaderField
ShaderLocationIndex
ShaderLocationIndex
ShaderUniformDataType
ShaderUniformDataType
SoundField
TextureField
TextureFilter
TextureFilter
TextureWrap
TextureWrap
TouchAction
TouchAction
TraceLogLevel
TraceLogLevel
TransformField
Vector2Field
Vector3Field
Vector4Field
VrDeviceInfoField
VrStereoConfigField
WaveField

Mixins

ContiguousCodec<E, R extends RType>
Opt-in capability for codecs whose values sit at a fixed byte stride, so a contiguous run of them can be read/written in one call. Not every ElementCodec can do this (e.g. StringCodec has no fixed stride), this is deliberately separate from the base contract rather than forced on every codec.
GuiProperty
Marker for raygui property enums, each exposing a raw value for use with the GUI styling API.
RaylibDisposable
RaylibEnum
Adds ordered comparison operators to Raylib enums that expose a raw value, mirroring C enum integer semantics.
RaylibGuiModuleExtras<R extends RaylibBase>
Re-exports RaylibGuiConstants values as instance members, so constants are accessible directly on the module without a class qualifier.
RaylibLightModuleExtras<R extends RaylibBase>
Re-exports RaylibLightConstants values as instance members, so constants are accessible directly on the module without a class qualifier.
RaylibRlglModuleExtras<R extends RaylibBase>
Re-exports RaylibRlglConstants values as instance members, so constants are accessible directly on the module without a class qualifier.
RTypeDoubleLike
Marker type for any double-like RTypes.
RTypeIntLike
Marker type for any int-like RTypes.
RTypeUnknownLike
Marker type for any unknown-like RTypes.
StructFields

Properties

currentRaylibPlatform → RaylibPlatform
The Raylib platform selected at compile time.
no setter

Functions

swap16(int v) → int
swap32(int v) → int
swap64(int v) → int
swap8(int v) → int

Typedefs

AudioCallbackFunction = void Function(MemoryPointer<RVoid> bufferData, int frames)
User-facing AudioCallback signature.
LoadFileDataCallbackFriendlyFunction = MemoryPointer<RUint8> Function(String fileName, MemoryPointer<RInt32> dataSize)
LoadFileDataCallbackFunction = MemoryPointer<RUint8> Function(MemoryPointer<RInt8> fileName, MemoryPointer<RInt32> dataSize)
User-facing LoadFileDataCallback signature.
LoadFileTextCallbackFriendlyFunction = String Function(String fileName)
LoadFileTextCallbackFunction = MemoryPointer<RInt8> Function(MemoryPointer<RInt8> fileName)
User-facing LoadFileTextCallback signature.
MsfGifFileWriteFunction = int Function(MemoryPointer<RVoid> buffer, int size, int count, MemoryPointer<RVoid> stream)
User-facing MsfGifFileWriteFunc signature.
RChar = RInt8
C char. Alias for RInt8.
RDouble = RFloat64
C double. Alias for RFloat64.
RFloat = RFloat32
C float. Alias for RFloat32.
RInt = RInt32
C int. Alias for RInt32.
RShort = RInt16
C short. Alias for RInt16.
RUnsignedChar = RUint8
C unsigned char. Alias for RUint8.
RUnsignedInt = RUint32
C unsigned int. Alias for RUint32.
RUnsignedShort = RUint16
C unsigned short. Alias for RUint16.
SaveFileDataCallbackFriendlyFunction = bool Function(String fileName, MemoryPointer<RVoid> data, int dataSize)
SaveFileDataCallbackFunction = bool Function(MemoryPointer<RInt8> fileName, MemoryPointer<RVoid> data, int dataSize)
User-facing SaveFileDataCallback signature.
SaveFileTextCallbackFriendlyFunction = bool Function(String fileName, String text)
SaveFileTextCallbackFunction = bool Function(MemoryPointer<RInt8> fileName, MemoryPointer<RInt8> text)
User-facing SaveFileTextCallback signature.
StructFactory<D extends RaylibStruct<D>> = D Function({StructPointer<D>? op})
StructLiveListStruct<E extends RaylibStruct<E>> = StructLiveList<E, RStruct>
StructLiveListStructNested<E extends RaylibStruct<E>> = StructLiveList<StructLiveList<E, RStruct>, RPointer<RStruct>>
StructPointerFactory<D extends RaylibStruct<D>> = StructPointer<D> Function(MemoryPointer<RType>?)
TraceLogCallbackFriendlyFunction = void Function(TraceLogLevel logLevel, String text)
TraceLogCallbackFunction = void Function(int logLevel, MemoryPointer<RInt8> text, MemoryPointer<RVoid> args)
User-facing TraceLogCallback signature.