struct property

StructType<NPatchInfoD> struct
final

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

Implementation

static final StructType<NPatchInfoD> struct = .new(
  factory: NPatchInfoD.new,
  layout: .aligned<NPatchInfoField>({
    .source: RStruct(RectangleD.struct), // Texture source rectangle
    .left:   RInt(), // Left border offset
    .top:    RInt(), // Top border offset
    .right:  RInt(), // Right border offset
    .bottom: RInt(), // Bottom border offset
    .layout: RInt(), // Layout of the n-patch: 3x3, 1x3 or 3x1
  }),
);