RectangleD class
Rectangle, 4 components
- Inheritance
-
- Object
- RaylibStruct<
RectangleD> - RaylibStructLiteral<
RectangleD> - RectangleD
Constructors
-
RectangleD({StructPointer<
RectangleD> ? op, double x = 0, double y = 0, double width = 0, double height = 0}) - RectangleD.rect(num x, num y, num width, num height)
-
factory
- RectangleD.zero()
-
factory
Properties
- $state → RaylibTempStructState
-
Per-instance allocation state tracking slot keys, disposal, and identity.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- height ↔ double
-
Rectangle height
getter/setter pair
-
op
↔ StructPointer<
RectangleD> ? -
The C-owned or RaylibTemp-owned typed pointer for this struct, if any.
getter/setter pairinherited
- 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
- width ↔ double
-
Rectangle width
getter/setter pair
- x ↔ double
-
Rectangle top-left corner position x
getter/setter pair
- y ↔ double
-
Rectangle top-left corner position y
getter/setter pair
Methods
-
clone(
) → RectangleD -
Returns a deep copy of this instance, preserving op if present.
override
-
copy(
) → RectangleD -
Returns a deep copy of this instance without op.
inherited
-
format(
[int x0 = 0, int? y0, int? w0, int? h0]) → String - Returns a formatted string representation of this rectangle.
-
getOp(
) → StructPointer< RectangleD> -
Returns op, throwing a descriptive StateError if unavailable or this instance RaylibTempStructState.isDisposed.
inherited
-
getOpAndDispose(
) → StructPointer< RectangleD> -
Returns op and immediately disposes this struct.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
set(
num x, num y, num width, num height) → RectangleD - Sets all components at once.
-
setDart(
RectangleD o) → RectangleD -
Copies the fields of
ointo 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
tempunderkeyas needed.inherited -
structMarkDisposed(
) → void -
Marks this instance as disposed and clears op.
inherited
-
structOnOp(
void callback(StructPointer< RectangleD> p)) → void -
Calls
callbackwith op if it is set, otherwise no-ops.inherited -
structReadFrom(
MemoryPointer< RType> p) → void -
override
-
structSetTag(
String newTag) → RectangleD -
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
-
toArray(
) → List< double> - Returns the Rectangle components as a new double list.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
field_height
→ StructValueField<
double, RFloat> -
Field descriptor for height.
final
-
field_width
→ StructValueField<
double, RFloat> -
Field descriptor for width.
final
-
field_x
→ StructValueField<
double, RFloat> -
Field descriptor for x.
final
-
field_y
→ StructValueField<
double, RFloat> -
Field descriptor for y.
final
-
struct
→ StructType<
RectangleD> -
Describes the raw memory layout, construction, and pointer representation
of this struct type.
final
-
structLayout
→ StructLayout<
RectangleField> -
Raw memory layout of this object.
final