Struct AdvancedGridLayout::Anchor

Nested Relationships

This struct is a nested type of Class AdvancedGridLayout.

Struct Documentation

struct Anchor

Helper struct to coordinate anchor points for the layout.

Public Functions

Anchor()

Creates a 0 Anchor.

Anchor(int x, int y, Alignment horiz = Alignment::Fill, Alignment vert = Alignment::Fill)

Create an Anchor at position (x, y) with specified Alignment.

Anchor(int x, int y, int w, int h, Alignment horiz = Alignment::Fill, Alignment vert = Alignment::Fill)

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

operator std::string() const

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

Public Members

uint8_t pos[2]

The (x, y) position.

uint8_t size[2]

The (x, y) size.

Alignment align[2]

The (x, y) Alignment.