struct property

StructType<RectangleD> struct
final

Describes the raw memory layout, construction, and pointer representation of this struct type.

Implementation

static final StructType<RectangleD> struct = .new(
  factory: RectangleD.new,
  layout: .aligned<RectangleField>({
    .x:      RFloat(), // Rectangle top-left corner position x
    .y:      RFloat(), // Rectangle top-left corner position y
    .width:  RFloat(), // Rectangle width
    .height: RFloat(), // Rectangle height
  }),
);