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

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

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

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