NPatchInfoD class

NPatchInfo, n-patch layout info

Inheritance

Constructors

NPatchInfoD({StructPointer<NPatchInfoD>? op, RectangleD? source, int left = 0, int top = 0, int right = 0, int bottom = 0, NPatchLayout layout = .NPATCH_NINE_PATCH})
NPatchInfoD.zero()
factory

Properties

$state → RaylibTempStructState
Per-instance allocation state tracking slot keys, disposal, and identity.
finalinherited
bottom ↔ int
Bottom border offset
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
layout ↔ NPatchLayout
Layout of the n-patch: 3x3, 1x3 or 3x1
getter/setter pair
left ↔ int
Left border offset
getter/setter pair
op ↔ StructPointer<NPatchInfoD>?
The C-owned or RaylibTemp-owned typed pointer for this struct, if any.
getter/setter pairinherited
Right border offset
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
source ↔ RectangleD
Texture source rectangle
getter/setter pair
structIsDisposed → bool
Whether structMarkDisposed has been called on this instance.
no setterinherited
structName → String
The Dart-side type name of this struct
no setterinherited
top ↔ int
Top border offset
getter/setter pair

Methods

clone() → NPatchInfoD
Returns a deep copy of this instance, preserving op if present.
override
copy() → NPatchInfoD
Returns a deep copy of this instance without op.
inherited
getOp() → StructPointer<NPatchInfoD>
Returns op, throwing a descriptive StateError if unavailable or this instance RaylibTempStructState.isDisposed.
inherited
getOpAndDispose() → StructPointer<NPatchInfoD>
Returns op and immediately disposes this struct.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setDart(NPatchInfoD o) → NPatchInfoD
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.
inherited
structMarkDisposed() → void
Marks this instance as disposed and clears op.
inherited
structOnOp(void callback(StructPointer<NPatchInfoD> p)) → void
Calls callback with op if it is set, otherwise no-ops.
inherited
structReadFrom(MemoryPointer<RType> p) → void
override
structSetTag(String newTag) → NPatchInfoD
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_bottom → StructValueField<int, RInt>
Field descriptor for bottom.
final
field_layout → StructValueField<NPatchLayout, RType>
Field descriptor for layout.
final
field_left → StructValueField<int, RInt>
Field descriptor for left.
final
field_right → StructValueField<int, RInt>
Field descriptor for right.
final
field_source → StructValueField<RectangleD, RStruct>
Field descriptor for source.
final
field_top → StructValueField<int, RInt>
Field descriptor for top.
final
struct → StructType<NPatchInfoD>
Describes the raw memory layout, construction, and pointer representation of this struct type.
final
structLayout → StructLayout<NPatchInfoField>
Raw memory layout of this object.
final