AdvancedGridLayout.Anchor

Helper struct to coordinate anchor points for the layout.

Constructors

this
this(int x, int y, Alignment horiz, Alignment vert)

Creates a `0` Anchor. Create an Anchor at position `(x, y)` with specified Alignment.

this
this(int x, int y, int w, int h, Alignment horiz, Alignment vert)

Create an Anchor at position `(x, y)` of size `(w, h)` with specified alignments.

Members

Functions

toString
string toString()

Allows for printing out Anchor position, size, and alignment.

Variables

algn
Alignment[2] algn;

< The `(x, y)` Alignment.

pos
ubyte[2] pos;

< The `(x, y)` position.

size
ubyte[2] size;

< The `(x, y)` size.

Meta