Liking cljdoc? Tell your friends :D
Clojure only.

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-editable-combobox-item!clj

(append-editable-combobox-item! combobox text)

Appends a suggestion to an editable combo box.

Appends a suggestion to an editable combo box.
raw docstring

append-form-child!clj

(append-form-child! form label child)
(append-form-child! form label child stretchy?)

Appends a labelled child to a form, transferring ownership to the form.

A stretchy child consumes spare vertical space.

Appends a labelled child to a form, transferring ownership to the form.

A stretchy child consumes spare vertical space.
raw docstring

append-grid-child!clj

(append-grid-child! grid child left top)
(append-grid-child!
  grid
  child
  left
  top
  {:keys [xspan yspan hexpand? vexpand? halign valign]
   :or
     {xspan 1 yspan 1 hexpand? false vexpand? false halign :fill valign :fill}})

Places a child on a grid, transferring ownership to the grid.

left and top are zero-based cell coordinates. Options are :xspan, :yspan, :hexpand?, :vexpand?, and :halign/:valign, each one of :fill, :start, :center or :end.

Places a child on a grid, transferring ownership to the grid.

`left` and `top` are zero-based cell coordinates. Options are `:xspan`,
`:yspan`, `:hexpand?`, `:vexpand?`, and `:halign`/`:valign`, each one of
`:fill`, `:start`, `:center` or `:end`.
raw docstring

append-menu-about-item!clj

(append-menu-about-item! menu)

Appends the platform's About item and returns it.

Appends the platform's About item and returns it.
raw docstring

append-menu-check-item!clj

(append-menu-check-item! menu name)

Appends a checkable item to a menu and returns the item.

Appends a checkable item to a menu and returns the item.
raw docstring

append-menu-item!clj

(append-menu-item! menu name)

Appends a clickable item to a menu and returns the item.

Appends a clickable item to a menu and returns the item.
raw docstring

append-menu-preferences-item!clj

(append-menu-preferences-item! menu)

Appends the platform's Preferences item and returns it.

Appends the platform's Preferences item and returns it.
raw docstring

append-menu-quit-item!clj

(append-menu-quit-item! menu)

Appends the platform's Quit item and returns it.

The item is driven by on-should-quit! and cannot take a click handler.

Appends the platform's Quit item and returns it.

The item is driven by `on-should-quit!` and cannot take a click handler.
raw docstring

append-menu-separator!clj

(append-menu-separator! menu)

Appends a dividing line to a menu.

Appends a dividing line to a menu.
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-radio-button!clj

(append-radio-button! radio-buttons text)

Appends a labelled option to a radio button group.

Appends a labelled option to a radio button group.
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

append-table-button-column!clj

(append-table-button-column! table name button-column)
(append-table-button-column! table name button-column {:keys [clickable?]})

Appends a column of buttons labelled from a :string model column.

Clicking a button calls the model's :set-cell-value! with a nil value. Options support :clickable?, encoded like :editable?.

Appends a column of buttons labelled from a `:string` model column.

Clicking a button calls the model's `:set-cell-value!` with a nil value.
Options support `:clickable?`, encoded like `:editable?`.
raw docstring

append-table-checkbox-column!clj

(append-table-checkbox-column! table name checkbox-column)
(append-table-checkbox-column! table name checkbox-column {:keys [editable?]})

Appends a checkbox column reading an :int model column.

Options support :editable? as in append-table-text-column!.

Appends a checkbox column reading an `:int` model column.

Options support `:editable?` as in `append-table-text-column!`.
raw docstring

append-table-checkbox-text-column!clj

(append-table-checkbox-text-column! table name checkbox-column text-column)
(append-table-checkbox-text-column! table
                                    name
                                    checkbox-column
                                    text-column
                                    {:keys [checkbox-editable? text-editable?
                                            color-column]})

Appends a column pairing a checkbox with text.

Options are :checkbox-editable?, :text-editable? and :color-column.

Appends a column pairing a checkbox with text.

Options are `:checkbox-editable?`, `:text-editable?` and `:color-column`.
raw docstring

append-table-image-column!clj

(append-table-image-column! table name image-column)

Appends a column of images read from image-column of the model.

Appends a column of images read from `image-column` of the model.
raw docstring

append-table-image-text-column!clj

(append-table-image-text-column! table name image-column text-column)
(append-table-image-text-column! table
                                 name
                                 image-column
                                 text-column
                                 {:keys [editable? color-column]})

Appends a column pairing an image with text. Options match append-table-text-column!.

Appends a column pairing an image with text. Options match
`append-table-text-column!`.
raw docstring

append-table-progress-bar-column!clj

(append-table-progress-bar-column! table name progress-column)

Appends a progress bar column reading an :int model column.

Cell values run 0 through 100, or -1 for indeterminate.

Appends a progress bar column reading an `:int` model column.

Cell values run 0 through 100, or -1 for indeterminate.
raw docstring

append-table-text-column!clj

(append-table-text-column! table name text-column)
(append-table-text-column! table
                           name
                           text-column
                           {:keys [editable? color-column]})

Appends a text column reading text-column of the model.

Options are :editable? (see below) and :color-column, a :color model column supplying the text colour. :editable? accepts false or :never, true or :always, or an :int model column deciding per row.

Appends a text column reading `text-column` of the model.

Options are `:editable?` (see below) and `:color-column`, a `:color` model
column supplying the text colour. `:editable?` accepts false or `:never`,
true or `:always`, or an `:int` model column deciding per row.
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

color-buttonclj

(color-button)

Creates a button that opens the platform colour chooser.

Creates a button that opens the platform colour chooser.
raw docstring

color-button-colorclj

(color-button-color button)

Returns a colour button's colour as [r g b a], each 0.0 through 1.0.

Returns a colour button's colour as `[r g b a]`, each 0.0 through 1.0.
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

date-pickerclj

(date-picker)

Creates a picker for a calendar date.

Creates a picker for a calendar date.
raw docstring

date-time-pickerclj

(date-time-picker)

Creates a picker for a combined date and time.

Creates a picker for a combined date and time.
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-combobox-item!clj

(delete-combobox-item! combobox index)

Removes the zero-based item from a combo box.

Removes the zero-based item from a combo box.
raw docstring

delete-form-child!clj

(delete-form-child! form index)

Detaches the zero-based child from a form 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 form 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

disable-menu-item!clj

(disable-menu-item! item)

Disables a menu item.

Disables a menu item.
raw docstring

editable-comboboxclj

(editable-combobox)

Creates a combo box whose text may also be typed freely.

Creates a combo box whose text may also be typed freely.
raw docstring

editable-combobox-textclj

(editable-combobox-text combobox)

Returns an editable combo box's current text.

Returns an editable combo box's current text.
raw docstring

enable!clj

(enable! control)

Enables a control.

Enables a control.
raw docstring

enable-menu-item!clj

(enable-menu-item! item)

Enables a menu item.

Enables a menu item.
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

error-box!clj

(error-box! window title description)

Shows a modal error message box parented to window.

Shows a modal error message box parented to `window`.
raw docstring

font-buttonclj

(font-button)

Creates a button that opens the platform font chooser.

Creates a button that opens the platform font chooser.
raw docstring

font-button-fontclj

(font-button-font button)

Returns a font button's selection as a descriptor map.

Keys are :family, :size, :weight, :italic and :stretch.

Returns a font button's selection as a descriptor map.

Keys are `:family`, `:size`, `:weight`, `:italic` and `:stretch`.
raw docstring

formclj

(form)

Creates a container that lays out labelled children in two columns.

Creates a container that lays out labelled children in two columns.
raw docstring

form-child-countclj

(form-child-count form)

Returns the number of children in a form.

Returns the number of children in a form.
raw docstring

free-table-model!clj

(free-table-model! model)

Frees a table model.

Destroy every table using the model first.

Frees a table model.

Destroy every table using the model first.
raw docstring

gridclj

(grid)

Creates a container that places children on a two-dimensional grid.

Creates a container that places children on a two-dimensional grid.
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

horizontal-separatorclj

(horizontal-separator)

Creates a horizontal dividing line.

Creates a horizontal dividing line.
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-combobox-item!clj

(insert-combobox-item! combobox index text)

Inserts a text item into a combo box at a zero-based index.

Inserts a text item into a combo box at a zero-based index.
raw docstring

insert-grid-child!clj

(insert-grid-child! grid child existing edge)
(insert-grid-child!
  grid
  child
  existing
  edge
  {:keys [xspan yspan hexpand? vexpand? halign valign]
   :or
     {xspan 1 yspan 1 hexpand? false vexpand? false halign :fill valign :fill}})

Places a child on a grid relative to an existing child.

edge is :leading, :top, :trailing or :bottom. Options match append-grid-child!.

Places a child on a grid relative to an `existing` child.

`edge` is `:leading`, `:top`, `:trailing` or `:bottom`. Options match
`append-grid-child!`.
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

(menu name)

Creates a top-level menu.

Build every menu before creating the first window that shows a menu bar. Menus are not controls and are never destroyed.

Creates a top-level menu.

Build every menu before creating the first window that shows a menu bar.
Menus are not controls and are never destroyed.
raw docstring

(menu-item-checked? item)

Returns true when a checkable menu item is checked.

Returns true when a checkable menu item is checked.
raw docstring

message-box!clj

(message-box! window title description)

Shows a modal message box parented to window.

Shows a modal message box parented to `window`.
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

non-wrapping-multiline-entryclj

(non-wrapping-multiline-entry)

Creates a multiline entry that scrolls horizontally instead of wrapping.

Reads and writes with the multiline-entry-text family.

Creates a multiline entry that scrolls horizontally instead of wrapping.

Reads and writes with the `multiline-entry-text` family.
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-color-change!clj

(on-color-change! button handler)

Registers a handler receiving the colour button's [r g b a] colour.

Registers a handler receiving the colour button's `[r g b a]` colour.
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-editable-combobox-change!clj

(on-editable-combobox-change! combobox handler)

Registers a handler receiving the editable combo box's current text.

Registers a handler receiving the editable combo box's current text.
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-font-change!clj

(on-font-change! button handler)

Registers a handler receiving the font button's descriptor map.

Registers a handler receiving the font button's descriptor map.
raw docstring

on-menu-item-click!clj

(on-menu-item-click! item handler)

Registers a no-argument handler for a menu item.

Registers a no-argument handler for a menu item.
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-picker-change!clj

(on-picker-change! picker handler)

Registers a handler receiving the picker's current time map.

Registers a handler receiving the picker's current time map.
raw docstring

on-radio-selection!clj

(on-radio-selection! radio-buttons handler)

Registers a handler receiving the selected option index, or -1.

Registers a handler receiving the selected option index, or -1.
raw docstring

on-should-quit!clj

(on-should-quit! handler)

Registers the application-wide quit handler.

Return truthy to let the application quit. Only one handler is active at a time; registering again replaces the previous one.

Registers the application-wide quit handler.

Return truthy to let the application quit. Only one handler is active at a
time; registering again replaces the previous one.
raw docstring

on-slider-change!clj

(on-slider-change! slider handler)

Registers a handler receiving the slider's current value while dragging.

Registers a handler receiving the slider's current value while dragging.
raw docstring

on-slider-release!clj

(on-slider-release! slider handler)

Registers a handler called when the slider's handle is let go.

Registers a handler called when the slider's handle is let go.
raw docstring

on-spinbox-change!clj

(on-spinbox-change! spinbox handler)

Registers a handler receiving the spinbox's current value.

Registers a handler receiving the spinbox's current value.
raw docstring

on-tab-selected!clj

(on-tab-selected! tabs handler)

Registers a handler receiving the newly visible page's index.

Registers a handler receiving the newly visible page's index.
raw docstring

on-table-header-clicked!clj

(on-table-header-clicked! table handler)

Registers a handler receiving the clicked zero-based header column.

Registers a handler receiving the clicked zero-based header column.
raw docstring

on-table-row-clicked!clj

(on-table-row-clicked! table handler)

Registers a handler receiving the clicked zero-based row.

Registers a handler receiving the clicked zero-based row.
raw docstring

on-table-row-double-clicked!clj

(on-table-row-double-clicked! table handler)

Registers a handler receiving the double-clicked zero-based row.

Registers a handler receiving the double-clicked zero-based row.
raw docstring

on-table-selection-change!clj

(on-table-selection-change! table handler)

Registers a handler receiving the selected row indices as a vector.

Registers a handler receiving the selected row indices as a vector.
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

on-window-content-size-change!clj

(on-window-content-size-change! window handler)

Registers a handler receiving the window's new [width height].

Registers a handler receiving the window's new `[width height]`.
raw docstring

on-window-focus-change!clj

(on-window-focus-change! window handler)

Registers a handler receiving true when the window gained focus.

Registers a handler receiving true when the window gained focus.
raw docstring

on-window-position-change!clj

(on-window-position-change! window handler)

Registers a handler receiving the window's new [x y].

Registers a handler receiving the window's new `[x y]`.
raw docstring

open-file-dialog!clj

(open-file-dialog! window)

Shows a modal file chooser and returns the chosen path, or nil if cancelled.

Shows a modal file chooser and returns the chosen path, or nil if cancelled.
raw docstring

open-folder-dialog!clj

(open-folder-dialog! window)

Shows a modal folder chooser and returns the chosen path, or nil if cancelled.

Shows a modal folder chooser and returns the chosen path, or nil if
cancelled.
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

picker-timeclj

(picker-time picker)

Returns a picker's value as {:year :month :day :hour :minute :second}.

Months are 1 through 12 and years are absolute, unlike the underlying struct tm.

Returns a picker's value as `{:year :month :day :hour :minute :second}`.

Months are 1 through 12 and years are absolute, unlike the underlying
`struct tm`.
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

radio-buttonsclj

(radio-buttons)

Creates an empty group of radio buttons.

Creates an empty group of radio buttons.
raw docstring

radio-selected-indexclj

(radio-selected-index radio-buttons)

Returns the selected option index, or -1 when none is selected.

Returns the selected option index, or -1 when none is selected.
raw docstring

save-file-dialog!clj

(save-file-dialog! window)

Shows a modal save dialog and returns the chosen path, or nil if cancelled.

The file is not created; the caller decides what to write.

Shows a modal save dialog and returns the chosen path, or nil if cancelled.

The file is not created; the caller decides what to write.
raw docstring

search-entryclj

(search-entry)

Creates a single-line entry styled as a search field.

Reads and writes with the entry-text family.

Creates a single-line entry styled as a search field.

Reads and writes with the `entry-text` family.
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-color-button-color!clj

(set-color-button-color! button [r g b a])

Sets a colour button's colour. Each component runs 0.0 through 1.0.

Sets a colour button's colour. Each component runs 0.0 through 1.0.
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-editable-combobox-text!clj

(set-editable-combobox-text! combobox text)

Sets an editable combo box's text.

Sets an editable combo box's text.
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-form-padded!clj

(set-form-padded! form padded?)

Enables or disables platform-standard spacing between a form's children.

Enables or disables platform-standard spacing between a form's children.
raw docstring

set-grid-padded!clj

(set-grid-padded! grid padded?)

Enables or disables platform-standard spacing between a grid's children.

Enables or disables platform-standard spacing between a grid's children.
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-menu-item-checked!clj

(set-menu-item-checked! item checked?)

Sets whether a checkable menu item is checked.

Sets whether a checkable menu item is checked.
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-picker-time!clj

(set-picker-time! picker time)

Sets a picker's value from {:year :month :day :hour :minute :second}.

Months are 1 through 12 and years are absolute. Missing keys default to midnight on 1 January 1970.

Sets a picker's value from `{:year :month :day :hour :minute :second}`.

Months are 1 through 12 and years are absolute. Missing keys default to
midnight on 1 January 1970.
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-radio-selected-index!clj

(set-radio-selected-index! radio-buttons index)

Selects an option by zero-based index; -1 clears the selection.

Selects an option by zero-based index; -1 clears the selection.
raw docstring

set-slider-range!clj

(set-slider-range! slider minimum maximum)

Sets a slider's bounds, clamping the current value into the new range.

Sets a slider's bounds, clamping the current value into the new range.
raw docstring

set-slider-tooltip!clj

(set-slider-tooltip! slider tooltip?)

Sets whether a slider shows its value in a tooltip.

Sets whether a slider shows its value in a tooltip.
raw docstring

set-slider-value!clj

(set-slider-value! slider value)

Sets a slider's value, clamped to its range.

Sets a slider's value, clamped to its range.
raw docstring

set-spinbox-value!clj

(set-spinbox-value! spinbox value)

Sets a spinbox's value, clamped to its range.

Sets a spinbox's value, clamped to its range.
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-tab-selected-index!clj

(set-tab-selected-index! tabs index)

Shows the tab page at a zero-based index.

Shows the tab page at a zero-based index.
raw docstring

set-table-column-width!clj

(set-table-column-width! table column width)

Sets a table column's width in pixels; -1 restores automatic sizing.

Sets a table column's width in pixels; -1 restores automatic sizing.
raw docstring

set-table-header-sort-indicator!clj

(set-table-header-sort-indicator! table column indicator)

Sets a column's sort indicator to :none, :ascending or :descending.

This only draws the arrow; sorting the rows is the model's job.

Sets a column's sort indicator to `:none`, `:ascending` or `:descending`.

This only draws the arrow; sorting the rows is the model's job.
raw docstring

set-table-header-visible!clj

(set-table-header-visible! table visible?)

Sets whether a table shows its header row.

Sets whether a table shows its header row.
raw docstring

set-table-selection!clj

(set-table-selection! table rows)

Selects the supplied row indices, replacing any previous selection.

Selecting more rows than the selection mode allows does nothing.

Selects the supplied row indices, replacing any previous selection.

Selecting more rows than the selection mode allows does nothing.
raw docstring

set-table-selection-mode!clj

(set-table-selection-mode! table mode)

Sets a table's selection mode to :none, :zero-or-one, :one or :zero-or-many.

Changing the mode clears the current selection.

Sets a table's selection mode to `:none`, `:zero-or-one`, `:one` or
`:zero-or-many`.

Changing the mode clears the current selection.
raw docstring

set-window-borderless!clj

(set-window-borderless! window borderless?)

Sets whether a window has a system border.

Sets whether a window has a system border.
raw docstring

set-window-content-size!clj

(set-window-content-size! window width height)

Resizes a window's content area.

Resizes a window's content area.
raw docstring

set-window-fullscreen!clj

(set-window-fullscreen! window fullscreen?)

Sets whether a window is fullscreen.

Sets whether a window is fullscreen.
raw docstring

set-window-margined!clj

(set-window-margined! window margined?)

Enables or disables platform-standard padding around a window's child.

Enables or disables platform-standard padding around a window's child.
raw docstring

set-window-position!clj

(set-window-position! window x y)

Moves a window to a screen coordinate.

Moves a window to a screen coordinate.
raw docstring

set-window-resizeable!clj

(set-window-resizeable! window resizeable?)

Sets whether a window can be resized by the user.

Sets whether a window can be resized by the user.
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

sliderclj

(slider minimum maximum)

Creates a slider bounded by minimum and maximum.

Creates a slider bounded by `minimum` and `maximum`.
raw docstring

slider-tooltip?clj

(slider-tooltip? slider)

Returns true when a slider shows its value in a tooltip.

Returns true when a slider shows its value in a tooltip.
raw docstring

slider-valueclj

(slider-value slider)

Returns a slider's value.

Returns a slider's value.
raw docstring

spinboxclj

(spinbox minimum maximum)

Creates a numeric spinbox bounded by minimum and maximum.

Creates a numeric spinbox bounded by `minimum` and `maximum`.
raw docstring

spinbox-valueclj

(spinbox-value spinbox)

Returns a spinbox's value.

Returns a spinbox's value.
raw docstring

tab-margined?clj

(tab-margined? tabs index)

Returns true when the page at a zero-based index is padded.

Returns true when the page at a zero-based index is padded.
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

tab-selected-indexclj

(tab-selected-index tabs)

Returns the zero-based index of the visible tab page.

Returns the zero-based index of the visible tab page.
raw docstring

tableclj

(table model)
(table model
       {:keys [row-background-color-column]
        :or {row-background-color-column -1}})

Creates a table rendering model.

Options support :row-background-color-column, a :color model column supplying each row's background, defaulting to -1 for the platform default.

Creates a table rendering `model`.

Options support `:row-background-color-column`, a `:color` model column
supplying each row's background, defaulting to -1 for the platform default.
raw docstring

table-column-widthclj

(table-column-width table column)

Returns a table column's width in pixels, or -1 when it is automatic.

Returns a table column's width in pixels, or -1 when it is automatic.
raw docstring

table-header-sort-indicatorclj

(table-header-sort-indicator table column)

Returns a column's sort indicator: :none, :ascending or :descending.

Returns a column's sort indicator: `:none`, `:ascending` or `:descending`.
raw docstring

table-header-visible?clj

(table-header-visible? table)

Returns true when a table shows its header row.

Returns true when a table shows its header row.
raw docstring

table-modelclj

(table-model {:keys [column-types row-count cell-value set-cell-value!]})

Creates a table model driven by Clojure callbacks.

:column-types is a vector of :string, :int, :color or :image, one per model column; libui-ng requires it to stay constant for the model's lifetime. :row-count is called with no arguments and returns the current number of rows. :cell-value receives a zero-based row and column and returns that cell's value, or nil for the column's default. :set-cell-value! is optional and receives a row, a column, and the edited value whenever the user commits an edit.

Values are converted by column type: :string accepts anything str handles, :int accepts integers and booleans, and :color accepts an [r g b] or [r g b a] vector of 0.0-to-1.0 components.

The callbacks run on the libui-ng thread. Retaining them requires an allocation that is never reclaimed, so create models once rather than per refresh.

Creates a table model driven by Clojure callbacks.

`:column-types` is a vector of `:string`, `:int`, `:color` or `:image`, one
per model column; libui-ng requires it to stay constant for the model's
lifetime. `:row-count` is called with no arguments and returns the current
number of rows. `:cell-value` receives a zero-based row and column and
returns that cell's value, or nil for the column's default. `:set-cell-value!`
is optional and receives a row, a column, and the edited value whenever the
user commits an edit.

Values are converted by column type: `:string` accepts anything `str`
handles, `:int` accepts integers and booleans, and `:color` accepts an
`[r g b]` or `[r g b a]` vector of 0.0-to-1.0 components.

The callbacks run on the libui-ng thread. Retaining them requires an
allocation that is never reclaimed, so create models once rather than per
refresh.
raw docstring

table-row-changed!clj

(table-row-changed! model index)

Tells the model's tables that the row at index changed.

Tells the model's tables that the row at `index` changed.
raw docstring

table-row-deleted!clj

(table-row-deleted! model index)

Tells the model's tables that the row previously at index was removed.

Tells the model's tables that the row previously at `index` was removed.
raw docstring

table-row-inserted!clj

(table-row-inserted! model index)

Tells the model's tables that a row was inserted at index.

Tells the model's tables that a row was inserted at `index`.
raw docstring

table-selectionclj

(table-selection table)

Returns the selected row indices as a vector, empty when nothing is selected.

Returns the selected row indices as a vector, empty when nothing is
selected.
raw docstring

table-selection-modeclj

(table-selection-mode table)

Returns a table's selection mode.

Returns a table's selection mode.
raw docstring

tabsclj

(tabs)

Creates a tab container.

Creates a tab container.
raw docstring

time-pickerclj

(time-picker)

Creates a picker for a wall-clock time.

Creates a picker for a wall-clock time.
raw docstring

timer!clj

(timer! milliseconds handler)

Calls handler on the libui-ng thread after milliseconds.

Return truthy from the handler to schedule another run, falsey to stop.

Calls `handler` on the libui-ng thread after `milliseconds`.

Return truthy from the handler to schedule another run, falsey to stop.
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

vertical-separatorclj

(vertical-separator)

Creates a vertical dividing line.

Creates a vertical dividing line.
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-borderless?clj

(window-borderless? window)

Returns true when a window has no system border.

Returns true when a window has no system border.
raw docstring

window-content-sizeclj

(window-content-size window)

Returns a window's content area as [width height].

Returns a window's content area as `[width height]`.
raw docstring

window-focused?clj

(window-focused? window)

Returns true when a window holds keyboard focus.

Returns true when a window holds keyboard focus.
raw docstring

window-fullscreen?clj

(window-fullscreen? window)

Returns true when a window is fullscreen.

Returns true when a window is fullscreen.
raw docstring

window-margined?clj

(window-margined? window)

Returns true when a window pads its child.

Returns true when a window pads its child.
raw docstring

window-positionclj

(window-position window)

Returns a window's position as [x y] in screen coordinates.

Returns a window's position as `[x y]` in screen coordinates.
raw docstring

window-resizeable?clj

(window-resizeable? window)

Returns true when a window can be resized by the user.

Returns true when a window can be resized by the user.
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