Liking cljdoc? Tell your friends :D

clj-libui-declarative.core

Declarative, reactive control trees over clj-libui.

Declarative, reactive control trees over clj-libui.
raw docstring

begin-area-window-move!clj

(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.
raw docstring

begin-area-window-resize!clj

(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.
raw docstring

mount!clj

(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!`.
raw docstring

queue-area-redraw!clj

(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.
raw docstring

quit!clj

(quit!)

Requests that the clj-libui event loop stop.

Requests that the clj-libui event loop stop.
raw docstring

quit-later!clj

(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.
raw docstring

root-controlclj

(root-control mounted)

Returns the mounted tree's opaque clj-libui root control.

Returns the mounted tree's opaque clj-libui root control.
raw docstring

run!clj

(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.
raw docstring

scroll-area-to!clj

(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.
raw docstring

set-area-size!clj

(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.
raw docstring

show!clj

(show! mounted)

Shows the mounted root control.

Shows the mounted root control.
raw docstring

unmount!clj

(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.
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close