Public entry point for the libui-ng wrapper.
Public entry point for the libui-ng wrapper.
(append! box child)(append! box child stretchy?)Appends a child to a box, transferring ownership to the box.
A stretchy child consumes spare space.
Appends a child to a box, transferring ownership to the box. A stretchy child consumes spare space.
(append-combobox-item! combobox text)Appends a text item to a combo box.
Appends a text item to a combo box.
(append-multiline-entry! entry text)Appends text to a multiline entry.
Appends text to a multiline entry.
(append-tab! tabs title child)Appends a titled page and transfers ownership of its child to the tabs.
Appends a titled page and transfers ownership of its child to the tabs.
(box-child-count box)Returns the number of children in a box.
Returns the number of children in a box.
(button text)Creates a button with the supplied label.
Creates a button with the supplied label.
(checkbox text)Creates a checkbox with the supplied label.
Creates a checkbox with the supplied label.
(checkbox-text checkbox)Returns a checkbox label.
Returns a checkbox label.
(checked? checkbox)Returns true when a checkbox is checked.
Returns true when a checkbox is checked.
(clear-combobox! combobox)Removes all items from a combo box.
Removes all items from a combo box.
(combobox)Creates a non-editable combo box.
Creates a non-editable combo box.
(combobox-item-count combobox)Returns the number of items in a combo box.
Returns the number of items in a combo box.
(combobox-selected-index combobox)Returns the selected item index, or -1 when no item is selected.
Returns the selected item index, or -1 when no item is selected.
(delete-child! box index)Detaches the zero-based child from a box without destroying it.
The caller resumes ownership and must either attach the child elsewhere or destroy it exactly once.
Detaches the zero-based child from a box without destroying it. The caller resumes ownership and must either attach the child elsewhere or destroy it exactly once.
(delete-tab! tabs index)Detaches a zero-based tab page without destroying its child.
The caller resumes ownership of the child and must either attach it elsewhere or destroy it exactly once.
Detaches a zero-based tab page without destroying its child. The caller resumes ownership of the child and must either attach it elsewhere or destroy it exactly once.
(destroy! control)Destroys a control and its owned child hierarchy.
Destroy each top-level control exactly once before uninitializing libui-ng.
Destroys a control and its owned child hierarchy. Destroy each top-level control exactly once before uninitializing libui-ng.
(detach-child! window)Detaches a window's root child without destroying it.
The caller resumes ownership and must either attach the child elsewhere or destroy it exactly once.
Detaches a window's root child without destroying it. The caller resumes ownership and must either attach the child elsewhere or destroy it exactly once.
(detach-group-child! group)Detaches a group's child without destroying it.
The caller resumes ownership and must either attach the child elsewhere or destroy it exactly once.
Detaches a group's child without destroying it. The caller resumes ownership and must either attach the child elsewhere or destroy it exactly once.
(enabled? control)Returns true when a control is enabled.
Returns true when a control is enabled.
(entry-read-only? entry)Returns true when a single-line entry is read-only.
Returns true when a single-line entry is read-only.
(entry-text entry)Returns a single-line entry's text.
Returns a single-line entry's text.
(group title)Creates a titled container with one child.
Creates a titled container with one child.
(horizontal-box)Creates a horizontal layout container.
Creates a horizontal layout container.
(init!)Loads and initializes libui-ng on the current thread.
Loads and initializes libui-ng on the current thread.
(initialized?)Returns true while libui-ng is initialized.
Returns true while libui-ng is initialized.
(insert-tab! tabs title index child)Inserts a titled page at a zero-based index.
Ownership of the child transfers to the tabs.
Inserts a titled page at a zero-based index. Ownership of the child transfers to the tabs.
(loaded?)Returns true when libui-ng has been loaded in this process.
Returns true when libui-ng has been loaded in this process.
(main!)Runs the native event loop until quit! is called.
Runs the native event loop until `quit!` is called.
(multiline-entry)Creates a wrapping multiline text entry.
Creates a wrapping multiline text entry.
(multiline-entry-read-only? entry)Returns true when a multiline entry is read-only.
Returns true when a multiline entry is read-only.
(multiline-entry-text entry)Returns a multiline entry's text.
Returns a multiline entry's text.
(on-click! button handler)Registers a no-argument button click handler.
Registers a no-argument button click handler.
(on-closing! window handler)Registers a no-argument window closing handler.
Return truthy to allow the window to be destroyed, falsey to keep it open.
Registers a no-argument window closing handler. Return truthy to allow the window to be destroyed, falsey to keep it open.
(on-combobox-selection! combobox handler)Registers a handler receiving the selected zero-based index, or -1.
Registers a handler receiving the selected zero-based index, or -1.
(on-entry-change! entry handler)Registers a handler receiving the current single-line entry text.
Registers a handler receiving the current single-line entry text.
(on-multiline-entry-change! entry handler)Registers a handler receiving the current multiline entry text.
Registers a handler receiving the current multiline entry text.
(on-toggle! checkbox handler)Registers a handler receiving the checkbox's current checked state.
Registers a handler receiving the checkbox's current checked state.
(password-entry)Creates a single-line entry that masks its text.
Creates a single-line entry that masks its text.
(progress-bar)Creates a progress bar. Values are 0 through 100, or -1 for indeterminate.
Creates a progress bar. Values are 0 through 100, or -1 for indeterminate.
(progress-value progress-bar)Returns a progress bar's integer value.
Returns a progress bar's integer value.
(queue-on-ui! function)Queues a no-argument function on the libui-ng thread without blocking.
Returns a CompletableFuture completed with the function's result or error.
Queues a no-argument function on the libui-ng thread without blocking. Returns a CompletableFuture completed with the function's result or error.
(quit!)Requests that the native event loop stop.
Requests that the native event loop stop.
(set-button-text! button text)Sets a button label.
Sets a button label.
(set-checkbox-text! checkbox text)Sets a checkbox label.
Sets a checkbox label.
(set-checked! checkbox checked?)Sets whether a checkbox is checked.
Sets whether a checkbox is checked.
(set-child! window child)Sets the single root child of a window, transferring ownership to it.
Sets the single root child of a window, transferring ownership to it.
(set-combobox-selected-index! combobox index)Selects an item by zero-based index; -1 clears the selection.
Selects an item by zero-based index; -1 clears the selection.
(set-entry-read-only! entry read-only?)Sets whether a single-line entry is read-only.
Sets whether a single-line entry is read-only.
(set-entry-text! entry text)Sets a single-line entry's text.
Sets a single-line entry's text.
(set-group-child! group child)Sets the single child of a titled group, transferring ownership to it.
Sets the single child of a titled group, transferring ownership to it.
(set-group-margined! group margined?)Enables or disables platform-standard padding inside a group.
Enables or disables platform-standard padding inside a group.
(set-group-title! group title)Sets a group's title.
Sets a group's title.
(set-label-text! label text)Sets a label's text.
Sets a label's text.
(set-multiline-entry-read-only! entry read-only?)Sets whether a multiline entry is read-only.
Sets whether a multiline entry is read-only.
(set-multiline-entry-text! entry text)Replaces a multiline entry's text.
Replaces a multiline entry's text.
(set-padded! box padded?)Enables or disables platform-standard spacing between a box's children.
Enables or disables platform-standard spacing between a box's children.
(set-progress-value! progress-bar value)Sets progress to 0 through 100, or -1 for indeterminate.
Sets progress to 0 through 100, or -1 for indeterminate.
(set-tab-margined! tabs index margined?)Enables or disables platform-standard padding inside one tab page.
Enables or disables platform-standard padding inside one tab page.
(set-window-title! window text)Sets a window title.
Sets a window title.
(tab-page-count tabs)Returns the number of pages in a tab container.
Returns the number of pages in a tab container.
An Executor that posts each Runnable to libui-ng's main queue.
An Executor that posts each Runnable to libui-ng's main queue.
(ui-thread?)Returns true when called on the thread that initialized libui-ng.
Returns true when called on the thread that initialized libui-ng.
(uninit!)Uninitializes libui-ng on the thread that initialized it.
Uninitializes libui-ng on the thread that initialized it.
(vertical-box)Creates a vertical layout container.
Creates a vertical layout container.
(visible? control)Returns true when a control is visible.
Returns true when a control is visible.
(window title width height)(window title width height {:keys [menubar?] :or {menubar? false}})Creates a window. Options supports :menubar?, which defaults to false.
Creates a window. Options supports `:menubar?`, which defaults to false.
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 |