Widgets¶
Tick UI provides interactive elements: buttons, textboxes, and scroll views. Every widget follows the same invisible-widget idiom. You draw the visual, then call the widget method to claim hit-testing or text input.
The pages in this section:
- Make a button: the canonical widget pattern, including hover state and animation hooks.
- Make a textbox: the same idiom for text
input, with
TextboxConfigandTextboxLayout. - Add a scroll view: wrap content larger
than its container with the
ScrollViewhelper. - Use the scroll API directly: bypass the helper to draw custom scrollbars or apply your own clipping.
For the model behind input routing and focus, refer to Input and focus. For why widget state lives in Tick UI, refer to State.