<ui> Internal Library
Cross-platform UI abstraction baseline over platform GUI internals.
Import
import ui "<ui>"
API
gui_available() -> boolcreate_window(title, width, height) -> intshow(handle) -> boolhide(handle) -> boolset_title(handle, title) -> boolset_text(handle, text) -> boolcreate_label(parent, text, x, y, w, h) -> intcreate_button(parent, text, x, y, w, h) -> inton_click(control_handle, callback_name) -> boolpoll_event() -> dict | nonelayout_vertical(parent, padding?, spacing?) -> intlayout_horizontal(parent, padding?, spacing?) -> intpump() -> intmessage_loop() -> int
For click events registered through on_click, poll_event forwards callback labels into runtime dispatch and can include callback_invoked and callback_result in the returned event dict.
Current implementation routes these calls to <windows> on Windows builds.
Non-Windows backends remain planned.