Expand description
The retained UI that apps drive: create native widgets, arrange them, update them.
Changes are laid out together when Ui::flush runs, once per event.
StructsΒ§
- Node
- A widget, stack or spacer inside one window.
- Position
- Where a new node goes: at
indexamong the children ofparent. - Ui
- A shared handle to the appβs windows; clones refer to the same UI.
- UiState π
- Window
Id - Window
State π
ConstantsΒ§
- FULL π
- The percentage at which a progress bar is full.
- OPEN_
WINDOW π - UNSEEN_
CHANGE π - Sizes closer than this, in points, look the same on screen.
FunctionsΒ§
- as_
percent π - Progress bars show a share of their width, so a percentage out of range shows as full or empty.
- image_
path π - Where an imageβs file is, with
~standing for the home folder;Nonefor no file. - live_
window π - surface π
- The surface drawn behind a stackβs children, if it has one.
Type AliasesΒ§
- Window
Close Handler - Decides what happens when the user asks to close a window.