Declarative, reactive control trees over clj-libui.
Declarative, reactive control trees over clj-libui.
(begin-area-window-move! mounted key)Begins a native window move from the current area's mouse-down callback.
Begins a native window move from the current area's mouse-down callback.
(begin-area-window-resize! mounted key edge)Begins a native window resize from the current area's mouse-down callback.
Begins a native window resize from the current area's mouse-down callback.
(mount! tree)(mount! tree
{:keys [backend on-error]
:or {backend native-backend on-error report-error!}})Mounts a static declarative tree on the current libui-ng thread.
Property values may be atoms. Their Missionary subscriptions remain active
until unmount!.
Mounts a static declarative tree on the current libui-ng thread. Property values may be atoms. Their Missionary subscriptions remain active until `unmount!`.
(queue-area-redraw! mounted key)Resolves key now and queues a complete redraw of its current area.
Resolves `key` now and queues a complete redraw of its current area.
(quit!)Requests that the clj-libui event loop stop.
Requests that the clj-libui event loop stop.
(quit-later!)Queues event-loop shutdown after the current native callback returns.
Use this from an accepted window-close callback so libui-ng can destroy the
window before uiUninit checks for leaked controls.
Queues event-loop shutdown after the current native callback returns. Use this from an accepted window-close callback so libui-ng can destroy the window before `uiUninit` checks for leaked controls.
(root-control mounted)Returns the mounted tree's opaque clj-libui root control.
Returns the mounted tree's opaque clj-libui root control.
(run! tree)Initializes clj-libui, mounts and shows a tree, runs the event loop, then deterministically unmounts and uninitializes it.
Initializes clj-libui, mounts and shows a tree, runs the event loop, then deterministically unmounts and uninitializes it.
(scroll-area-to! mounted key x y width height)Resolves key now and scrolls its current area to reveal a rectangle.
Resolves `key` now and scrolls its current area to reveal a rectangle.
(set-area-size! mounted key width height)Resolves key now and changes its current scrolling area's logical size.
Resolves `key` now and changes its current scrolling area's logical size.
(show! mounted)Shows the mounted root control.
Shows the mounted root control.
(unmount! mounted)Cancels reactive subscriptions and destroys the root exactly once.
Must run on the libui-ng thread.
Cancels reactive subscriptions and destroys the root exactly once. Must run on the libui-ng thread.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |