FontD class

Font, font texture and GlyphInfo array data

Inheritance

Constructors

FontD({StructPointer<FontD>? op, int baseSize = 0, int glyphCount = 0, int glyphPadding = 0, TextureD? texture, List<RectangleD>? recs, List<GlyphInfoD>? glyphs})
FontD.zero()
factory

Properties

$state → RaylibTempStructState
Per-instance allocation state tracking slot keys, disposal, and identity.
finalinherited
baseSize ↔ int
Base size (default chars height)
getter/setter pair
glyphCount ↔ int
Number of glyph characters
getter/setter pair
glyphPadding ↔ int
Padding around the glyph characters
getter/setter pair
glyphs ↔ StructLiveListStruct<GlyphInfoD>
Glyphs info data
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
op ↔ StructPointer<FontD>?
The C-owned or RaylibTemp-owned typed pointer for this struct, if any.
getter/setter pairinherited
recs ↔ StructLiveListStruct<RectangleD>
Rectangles in texture for the glyphs
getter/setter pair
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
texture ↔ TextureD
Texture atlas containing the glyphs
getter/setter pair

Methods

clone() → FontD
Returns a deep copy of this instance, preserving op if present.
override
copy() → FontD
Returns a deep copy of this instance without op.
inherited
getOp() → StructPointer<FontD>
Returns op, throwing a descriptive StateError if unavailable or this instance RaylibTempStructState.isDisposed.
inherited
getOpAndDispose() → StructPointer<FontD>
Returns op and immediately disposes this struct.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setDart(FontD o) → FontD
Copies the fields of o into this instance.
override
signature() → String
Returns a human-readable representation of this struct.
override
structAllocateInto(RaylibTemp<RaylibBase> temp, MemoryPointer<RType> p, String key) → void
Allocates nested pointers into temp under key as needed.
override
structMarkDisposed() → void
Marks this instance as disposed and clears op.
inherited
structOnOp(void callback(StructPointer<FontD> p)) → void
Calls callback with op if it is set, otherwise no-ops.
inherited
structReadFrom(MemoryPointer<RType> p) → void
override
structSetTag(String newTag) → FontD
Sets RaylibTempStructState.tag to newTag.
inherited
structSyncFromMemory() → void
Syncs all fields from the memory. Requires op.
inherited
structSyncToMemory() → void
Syncs all fields to the memory. Requires op.
inherited
structWriteInto(MemoryPointer<RType> p) → void
override
toString() → String
A string representation of this object.
inherited

Operators

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

Static Properties

field_baseSize → StructValueField<int, RInt>
Field descriptor for baseSize.
final
field_glyphCount → StructValueField<int, RInt>
Field descriptor for glyphCount.
final
field_glyphPadding → StructValueField<int, RInt>
Field descriptor for glyphPadding.
final
field_glyphs → StructPointerArrayField<GlyphInfoD, RStruct>
Field descriptor for glyphs.
final
field_recs → StructPointerArrayField<RectangleD, RStruct>
Field descriptor for recs.
final
field_texture → StructValueField<TextureD, RStruct>
Field descriptor for texture.
final
struct → StructType<FontD>
Describes the raw memory layout, construction, and pointer representation of this struct type.
final
structLayout → StructLayout<FontField>
Raw memory layout of this object.
final