GGUI::DocumentProps struct

ui.Document props: the screen the document inside is laid out on.

Public variables

BoxProps Box
Its place in the parent. The screen is drawn scaled to fit it, centred.
float Width
The screen's width in pixels: with Height its aspect ratio, and with Dpi its room. 0: the box's own width, times Dpi, so the document fills the box at one UI unit to one unit.
float Height
The screen's height in pixels; 0: the box's own, times Dpi.
float Dpi
Pixels to a UI unit: the screen is laid out in Width / Dpi by Height / Dpi units.
GGEdges SafeArea
What its ui.SafeArea keeps clear (a notch, a home bar, overscan), in UI units.
const GGWidgetLibrary* Widgets
What it builds widget assets from. Null: the parent's.
const GGStringTable* Strings
The text it shows. Null: the parent's.