Skip to content

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

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.

Layout

Tuix uses a flexbox model to perform layout. The layout process positions the widgets based on the style properties you give them.

Styling

After layout, the widgets are styled using the CSS properties you give them.

Rendering

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.

Contents

Widgets

  • Checkbox
Clone this wiki locally