-
Notifications
You must be signed in to change notification settings - Fork 11
How tuix works
George Atkinson edited this page Dec 23, 2020
·
1 revision
Tuix can be thought of as 4 seperate processes which happen in order:
- Building
- Layout
- Styling
- Rendering
Building is the process of creating the widgets in the application. This can be done before the application loop begins, or in response to an event.
Tuix uses a flexbox model to perform layout. The layout process positions the widgets based on the style properties you give them.
After layout, the widgets are styled using the CSS properties you give them.
After styling, the widgets are rendered to the window. The visual look of the widgets is determined by the style propeties set on them, but it's also possible to override this with a custom drawing function for your own custom widgets.