Liking cljdoc? Tell your friends :D

clj-libui.core

Public entry point for the libui-ng wrapper.

Public entry point for the libui-ng wrapper.
raw docstring

append!clj

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

append-combobox-item!clj

(append-combobox-item! combobox text)

Appends a text item to a combo box.

Appends a text item to a combo box.
raw docstring

append-multiline-entry!clj

(append-multiline-entry! entry text)

Appends text to a multiline entry.

Appends text to a multiline entry.
raw docstring

append-tab!clj

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

box-child-countclj

(box-child-count box)

Returns the number of children in a box.

Returns the number of children in a box.
raw docstring

buttonclj

(button text)

Creates a button with the supplied label.

Creates a button with the supplied label.
raw docstring

button-textclj

(button-text button)

Returns a button label.

Returns a button label.
raw docstring

checkboxclj

(checkbox text)

Creates a checkbox with the supplied label.

Creates a checkbox with the supplied label.
raw docstring

checkbox-textclj

(checkbox-text checkbox)

Returns a checkbox label.

Returns a checkbox label.
raw docstring

checked?clj

(checked? checkbox)

Returns true when a checkbox is checked.

Returns true when a checkbox is checked.
raw docstring

clear-combobox!clj

(clear-combobox! combobox)

Removes all items from a combo box.

Removes all items from a combo box.
raw docstring

comboboxclj

(combobox)

Creates a non-editable combo box.

Creates a non-editable combo box.
raw docstring

combobox-item-countclj

(combobox-item-count combobox)

Returns the number of items in a combo box.

Returns the number of items in a combo box.
raw docstring

combobox-selected-indexclj

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

delete-child!clj

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

delete-tab!clj

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

destroy!clj

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

detach-child!clj

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

detach-group-child!clj

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

disable!clj

(disable! control)

Disables a control.

Disables a control.
raw docstring

enable!clj

(enable! control)

Enables a control.

Enables a control.
raw docstring

enabled?clj

(enabled? control)

Returns true when a control is enabled.

Returns true when a control is enabled.
raw docstring

entryclj

(entry)

Creates a single-line text entry.

Creates a single-line text entry.
raw docstring

entry-read-only?clj

(entry-read-only? entry)

Returns true when a single-line entry is read-only.

Returns true when a single-line entry is read-only.
raw docstring

entry-textclj

(entry-text entry)

Returns a single-line entry's text.

Returns a single-line entry's text.
raw docstring

groupclj

(group title)

Creates a titled container with one child.

Creates a titled container with one child.
raw docstring

group-titleclj

(group-title group)

Returns a group's title.

Returns a group's title.
raw docstring

hide!clj

(hide! control)

Hides a control.

Hides a control.
raw docstring

horizontal-boxclj

(horizontal-box)

Creates a horizontal layout container.

Creates a horizontal layout container.
raw docstring

init!clj

(init!)

Loads and initializes libui-ng on the current thread.

Loads and initializes libui-ng on the current thread.
raw docstring

initialized?clj

(initialized?)

Returns true while libui-ng is initialized.

Returns true while libui-ng is initialized.
raw docstring

insert-tab!clj

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

labelclj

(label text)

Creates a text label.

Creates a text label.
raw docstring

label-textclj

(label-text label)

Returns a label's text.

Returns a label's text.
raw docstring

loaded?clj

(loaded?)

Returns true when libui-ng has been loaded in this process.

Returns true when libui-ng has been loaded in this process.
raw docstring

main!clj

(main!)

Runs the native event loop until quit! is called.

Runs the native event loop until `quit!` is called.
raw docstring

multiline-entryclj

(multiline-entry)

Creates a wrapping multiline text entry.

Creates a wrapping multiline text entry.
raw docstring

multiline-entry-read-only?clj

(multiline-entry-read-only? entry)

Returns true when a multiline entry is read-only.

Returns true when a multiline entry is read-only.
raw docstring

multiline-entry-textclj

(multiline-entry-text entry)

Returns a multiline entry's text.

Returns a multiline entry's text.
raw docstring

on-click!clj

(on-click! button handler)

Registers a no-argument button click handler.

Registers a no-argument button click handler.
raw docstring

on-closing!clj

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

on-combobox-selection!clj

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

on-entry-change!clj

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

on-multiline-entry-change!clj

(on-multiline-entry-change! entry handler)

Registers a handler receiving the current multiline entry text.

Registers a handler receiving the current multiline entry text.
raw docstring

on-toggle!clj

(on-toggle! checkbox handler)

Registers a handler receiving the checkbox's current checked state.

Registers a handler receiving the checkbox's current checked state.
raw docstring

password-entryclj

(password-entry)

Creates a single-line entry that masks its text.

Creates a single-line entry that masks its text.
raw docstring

progress-barclj

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

progress-valueclj

(progress-value progress-bar)

Returns a progress bar's integer value.

Returns a progress bar's integer value.
raw docstring

queue-on-ui!clj

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

quit!clj

(quit!)

Requests that the native event loop stop.

Requests that the native event loop stop.
raw docstring

set-button-text!clj

(set-button-text! button text)

Sets a button label.

Sets a button label.
raw docstring

set-checkbox-text!clj

(set-checkbox-text! checkbox text)

Sets a checkbox label.

Sets a checkbox label.
raw docstring

set-checked!clj

(set-checked! checkbox checked?)

Sets whether a checkbox is checked.

Sets whether a checkbox is checked.
raw docstring

set-child!clj

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

set-combobox-selected-index!clj

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

set-entry-read-only!clj

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

set-entry-text!clj

(set-entry-text! entry text)

Sets a single-line entry's text.

Sets a single-line entry's text.
raw docstring

set-group-child!clj

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

set-group-margined!clj

(set-group-margined! group margined?)

Enables or disables platform-standard padding inside a group.

Enables or disables platform-standard padding inside a group.
raw docstring

set-group-title!clj

(set-group-title! group title)

Sets a group's title.

Sets a group's title.
raw docstring

set-label-text!clj

(set-label-text! label text)

Sets a label's text.

Sets a label's text.
raw docstring

set-multiline-entry-read-only!clj

(set-multiline-entry-read-only! entry read-only?)

Sets whether a multiline entry is read-only.

Sets whether a multiline entry is read-only.
raw docstring

set-multiline-entry-text!clj

(set-multiline-entry-text! entry text)

Replaces a multiline entry's text.

Replaces a multiline entry's text.
raw docstring

set-padded!clj

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

set-progress-value!clj

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

set-tab-margined!clj

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

set-window-title!clj

(set-window-title! window text)

Sets a window title.

Sets a window title.
raw docstring

show!clj

(show! control)

Shows a control.

Shows a control.
raw docstring

tab-page-countclj

(tab-page-count tabs)

Returns the number of pages in a tab container.

Returns the number of pages in a tab container.
raw docstring

tabsclj

(tabs)

Creates a tab container.

Creates a tab container.
raw docstring

ui-executorclj

An Executor that posts each Runnable to libui-ng's main queue.

An Executor that posts each Runnable to libui-ng's main queue.
raw docstring

ui-thread?clj

(ui-thread?)

Returns true when called on the thread that initialized libui-ng.

Returns true when called on the thread that initialized libui-ng.
raw docstring

uninit!clj

(uninit!)

Uninitializes libui-ng on the thread that initialized it.

Uninitializes libui-ng on the thread that initialized it.
raw docstring

vertical-boxclj

(vertical-box)

Creates a vertical layout container.

Creates a vertical layout container.
raw docstring

visible?clj

(visible? control)

Returns true when a control is visible.

Returns true when a control is visible.
raw docstring

windowclj

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

window-titleclj

(window-title window)

Returns a window title.

Returns a window title.
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