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

add-draw-rectangle!clj

(add-draw-rectangle! path x y width height)

Adds a rectangle to a path.

Adds a rectangle to a path.
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-attributed-string!clj

(append-attributed-string! string text)

Appends unattributed text.

Appends unattributed text.
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-image!clj

(append-image! image pixels pixel-width pixel-height byte-stride)

Copies one premultiplied RGBA representation into an image.

pixels may be a byte array or a native memory segment. byte-stride is the number of bytes per row and must cover at least four bytes per pixel.

Copies one premultiplied RGBA representation into an image.

`pixels` may be a byte array or a native memory segment. `byte-stride` is
the number of bytes per row and must cover at least four bytes per pixel.
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

areaclj

(area handlers)

Creates a non-scrolling drawing canvas.

handlers supports :draw, :mouse-event, :mouse-crossed, :drag-broken and :key-event. Draw and input handlers receive the area followed by a Clojure map. A key handler returns truthy to consume the event. Callback storage is retained until uninit!, so create long-lived areas rather than replacing them on each redraw.

Creates a non-scrolling drawing canvas.

`handlers` supports `:draw`, `:mouse-event`, `:mouse-crossed`,
`:drag-broken` and `:key-event`. Draw and input handlers receive the area
followed by a Clojure map. A key handler returns truthy to consume the event.
Callback storage is retained until `uninit!`, so create long-lived areas
rather than replacing them on each redraw.
raw docstring

attributed-stringclj

(attributed-string text)

Creates an unattributed mutable UTF-8 string.

Creates an unattributed mutable UTF-8 string.
raw docstring

attributed-string-byte->graphemeclj

(attributed-string-byte->grapheme string byte-index)

Converts a UTF-8 byte index to a grapheme index.

Converts a UTF-8 byte index to a grapheme index.
raw docstring

attributed-string-byte-countclj

(attributed-string-byte-count string)

Returns the UTF-8 byte count of an attributed string.

Returns the UTF-8 byte count of an attributed string.
raw docstring

attributed-string-grapheme->byteclj

(attributed-string-grapheme->byte string grapheme-index)

Converts a grapheme index to a UTF-8 byte index.

Converts a grapheme index to a UTF-8 byte index.
raw docstring

attributed-string-grapheme-countclj

(attributed-string-grapheme-count string)

Returns the user-perceived character count of an attributed string.

Returns the user-perceived character count of an attributed string.
raw docstring

attributed-string-textclj

(attributed-string-text string)

Returns the current text of an attributed string.

Returns the current text of an attributed string.
raw docstring

begin-area-window-move!clj

(begin-area-window-move! area)

Begins an operating-system window move from an area's mouse-down handler.

Begins an operating-system window move from an area's mouse-down handler.
raw docstring

begin-area-window-resize!clj

(begin-area-window-resize! area edge)

Begins an operating-system resize from an area's mouse-down handler.

edge may be one of the public window-resize-edge-* values or the corresponding keyword such as :top-left.

Begins an operating-system resize from an area's mouse-down handler.

`edge` may be one of the public `window-resize-edge-*` values or the
corresponding keyword such as `:top-left`.
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

box-padded?clj

(box-padded? box)

Returns true when a box uses platform-standard spacing between children.

Returns true when a box uses platform-standard spacing between children.
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

clip!clj

(clip! context path)

Restricts subsequent drawing to an ended path.

Restricts subsequent drawing to an ended path.
raw docstring

close-draw-figure!clj

(close-draw-figure! path)

Closes the current path figure.

Closes the current path figure.
raw docstring

color-attributeclj

(color-attribute [r g b a])

Creates a foreground colour attribute from [r g b a] components.

Creates a foreground colour attribute from `[r g b a]` components.
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

control-handleclj

(control-handle control)

Returns the control's operating-system handle as a native memory address.

On macOS this is an NSView * for view-backed controls and an NSWindow * for windows. Windows returns an HWND; GTK returns its widget pointer. Treat the result as opaque unless the concrete control type is known. The handle is borrowed and remains valid only while the control exists.

Returns the control's operating-system handle as a native memory address.

On macOS this is an `NSView *` for view-backed controls and an `NSWindow *`
for windows. Windows returns an `HWND`; GTK returns its widget pointer. Treat
the result as opaque unless the concrete control type is known. The handle is
borrowed and remains valid only while the control exists.
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-attributed-string-range!clj

(delete-attributed-string-range! string start end)

Deletes the half-open UTF-8 byte range [start, end).

Deletes the half-open UTF-8 byte range `[start, end)`.
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

draw-arc-to!clj

(draw-arc-to! path x-center y-center radius start-angle sweep negative?)

Adds an arc to the current figure. Angles and sweep use radians.

Adds an arc to the current figure. Angles and sweep use radians.
raw docstring

draw-bezier-to!clj

(draw-bezier-to! path c1x c1y c2x c2y end-x end-y)

Adds a cubic Bezier curve through two control points to an end point.

Adds a cubic Bezier curve through two control points to an end point.
raw docstring

draw-line-to!clj

(draw-line-to! path x y)

Adds a straight line from the current point to [x y].

Adds a straight line from the current point to `[x y]`.
raw docstring

draw-pathclj

(draw-path)
(draw-path fill-mode)

Creates a mutable drawing path with :winding or :alternate fill mode.

The caller owns the path and must release it with free-draw-path!.

Creates a mutable drawing path with `:winding` or `:alternate` fill mode.

The caller owns the path and must release it with `free-draw-path!`.
raw docstring

draw-path-ended?clj

(draw-path-ended? path)

Returns true after end-draw-path! finalizes a path.

Returns true after `end-draw-path!` finalizes a path.
raw docstring

draw-text!clj

(draw-text! context layout x y)

Draws a text layout into an area's draw context.

Draws a text layout into an area's draw context.
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

end-draw-path!clj

(end-draw-path! path)

Finalizes a path before filling, stroking, or clipping with it.

Finalizes a path before filling, stroking, or clipping with it.
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

fill!clj

(fill! context path brush)

Fills an ended path with a brush descriptor.

Fills an ended path with a brush descriptor.
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-attribute!clj

(free-attribute! attribute)

Frees an unattached attribute.

Do not call this after set-attributed-string-attribute!, which transfers ownership to the string.

Frees an unattached attribute.

Do not call this after `set-attributed-string-attribute!`, which transfers
ownership to the string.
raw docstring

free-attributed-string!clj

(free-attributed-string! string)

Frees an attributed string and every attribute it owns.

Frees an attributed string and every attribute it owns.
raw docstring

free-draw-path!clj

(free-draw-path! path)

Frees a drawing path.

Frees a drawing path.
raw docstring

free-image!clj

(free-image! image)

Frees an image after every table or other native owner has released it.

Frees an image after every table or other native owner has released it.
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

free-text-layout!clj

(free-text-layout! layout)

Frees a text layout without freeing its attributed string.

Frees a text layout without freeing its attributed string.
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-margined?clj

(group-margined? group)

Returns true when a group pads its child.

Returns true when a group pads its 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

identity-matrixclj

(identity-matrix)

Returns the identity drawing matrix.

Returns the identity drawing matrix.
raw docstring

imageclj

(image width height)

Creates an image container whose logical dimensions are measured in points.

Creates an image container whose logical dimensions are measured in points.
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-attributed-string!clj

(insert-attributed-string! string byte-index text)

Inserts unattributed text at a UTF-8 byte index.

Inserts unattributed text at a UTF-8 byte index.
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

invert-matrixclj

(invert-matrix matrix)

Returns an inverted drawing matrix, or nil when it is singular.

Returns an inverted drawing matrix, or nil when it is singular.
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

linear-gradient-brushclj

(linear-gradient-brush [x0 y0] [x1 y1] stops)

Returns a linear-gradient brush descriptor.

stops contains maps such as {:position 0.0 :colour [1.0 0.0 0.0 1.0]}.

Returns a linear-gradient brush descriptor.

`stops` contains maps such as
`{:position 0.0 :colour [1.0 0.0 0.0 1.0]}`.
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

main-step!clj

(main-step!)
(main-step! wait?)

Runs one manually pumped event-loop iteration.

Call main-steps! once first. When wait? is true (the default), this blocks until an event is available. Returns true while the loop should continue.

Runs one manually pumped event-loop iteration.

Call `main-steps!` once first. When `wait?` is true (the default), this
blocks until an event is available. Returns true while the loop should
continue.
raw docstring

main-steps!clj

(main-steps!)

Prepares libui-ng for manual event-loop pumping with main-step!.

Prepares libui-ng for manual event-loop pumping with `main-step!`.
raw docstring

matrix-invertible?clj

(matrix-invertible? matrix)

Returns true when a drawing matrix can be inverted.

Returns true when a drawing matrix can be inverted.
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

multiply-matricesclj

(multiply-matrices destination source)

Returns the native product of destination and source.

Returns the native product of `destination` and `source`.
raw docstring

new-draw-figure!clj

(new-draw-figure! path x y)

Starts a path figure at [x y].

Starts a path figure at `[x y]`.
raw docstring

new-draw-figure-with-arc!clj

(new-draw-figure-with-arc! path
                           x-center
                           y-center
                           radius
                           start-angle
                           sweep
                           negative?)

Starts a figure with an arc. Angles and sweep are measured in radians.

Starts a figure with an arc. Angles and sweep are measured in radians.
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-area-redraw!clj

(queue-area-redraw! area)

Queues a complete redraw of an area.

Queues a complete redraw of an area.
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

radial-gradient-brushclj

(radial-gradient-brush [x0 y0] [x1 y1] outer-radius stops)

Returns a radial-gradient brush descriptor.

Returns a radial-gradient brush descriptor.
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

restore-draw-state!clj

(restore-draw-state! context)

Restores the most recently saved draw-context state.

Restores the most recently saved draw-context state.
raw docstring

rotate-matrixclj

(rotate-matrix matrix x y amount)

Returns matrix rotated around [x y] by amount radians.

Returns `matrix` rotated around `[x y]` by `amount` radians.
raw docstring

save-draw-state!clj

(save-draw-state! context)

Pushes the draw context's current transform and clipping state.

Pushes the draw context's current transform and clipping state.
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

scale-matrixclj

(scale-matrix matrix x-center y-center x-scale y-scale)

Returns matrix scaled around [x-center y-center].

Returns `matrix` scaled around `[x-center y-center]`.
raw docstring

scroll-area-to!clj

(scroll-area-to! area x y width height)

Scrolls an area enough to reveal the supplied rectangle.

Scrolls an area enough to reveal the supplied rectangle.
raw docstring

scrolling-areaclj

(scrolling-area handlers width height)

Creates a scrolling drawing canvas with the supplied logical size.

Handler options match area.

Creates a scrolling drawing canvas with the supplied logical size.

Handler options match `area`.
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-area-size!clj

(set-area-size! area width height)

Changes a scrolling area's logical size.

Changes a scrolling area's logical size.
raw docstring

set-attributed-string-attribute!clj

(set-attributed-string-attribute! string attribute start end)

Applies an attribute to [start, end) UTF-8 bytes and transfers ownership.

Applies an attribute to `[start, end)` UTF-8 bytes and transfers ownership.
raw docstring

set-attributed-string-bold!clj

(set-attributed-string-bold! string start end)

Applies bold weight to a UTF-8 byte range.

Applies bold weight to a UTF-8 byte range.
raw docstring

set-attributed-string-color!clj

(set-attributed-string-color! string start end colour)

Applies a foreground [r g b a] colour to a UTF-8 byte range.

Applies a foreground `[r g b a]` colour to a UTF-8 byte range.
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-always-on-top!clj

(set-window-always-on-top! window always-on-top?)

Places a macOS window at the floating level, or restores normal level.

Places a macOS window at the floating level, or restores normal level.
raw docstring

set-window-background-color!clj

(set-window-background-color! window colour)

Sets a macOS window background to [r g b] or [r g b a].

Sets a macOS window background to `[r g b]` or `[r g b a]`.
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-click-through!clj

(set-window-click-through! window click-through?)

Sets whether a macOS window ignores all mouse events.

Sets whether a macOS window ignores all mouse events.
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-ignores-mouse-events!clj

(set-window-ignores-mouse-events! window ignores?)

Sets whether a macOS window is click-through.

Sets whether a macOS window is click-through.
raw docstring

set-window-level!clj

(set-window-level! window level)

Sets a macOS window level.

level may be :normal, :floating, :status, :screen-saver, one of the public window-level-* values, or another native integer level.

Sets a macOS window level.

`level` may be `:normal`, `:floating`, `:status`, `:screen-saver`, one of the
public `window-level-*` values, or another native integer level.
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-opacity!clj

(set-window-opacity! window opacity)

Sets a macOS window's overall alpha from 0.0 through 1.0.

Sets a macOS window's overall alpha from 0.0 through 1.0.
raw docstring

set-window-opaque!clj

(set-window-opaque! window opaque?)

Sets whether a macOS window's backing surface is opaque.

Sets whether a macOS window's backing surface is opaque.
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

set-window-transparent!clj

(set-window-transparent! window transparent?)

Enables or disables a clear, non-opaque macOS window background.

Enables or disables a clear, non-opaque macOS window background.
raw docstring

show!clj

(show! control)

Shows a control.

Shows a control.
raw docstring

skew-matrixclj

(skew-matrix matrix x y x-amount y-amount)

Returns matrix skewed around [x y] by radian amounts.

Returns `matrix` skewed around `[x y]` by radian amounts.
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

solid-brushclj

(solid-brush colour)

Returns a solid brush descriptor from [r g b] or [r g b a].

Returns a solid brush descriptor from `[r g b]` or `[r g b a]`.
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

stroke!clj

(stroke! context path brush)
(stroke! context path brush stroke-params)

Strokes an ended path with a brush and optional stroke parameters.

Strokes an ended path with a brush and optional stroke parameters.
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

text-layoutclj

(text-layout string)
(text-layout string {:keys [font width align] :or {width -1.0 align :left}})

Creates an immutable layout for drawing an attributed string.

Options are :font, a complete descriptor map as returned by font-button-font, :width (default -1 for no wrapping), and :align (:left, :center or :right). The platform control font is used when :font is omitted.

Creates an immutable layout for drawing an attributed string.

Options are `:font`, a complete descriptor map as returned by
`font-button-font`, `:width` (default -1 for no wrapping), and `:align`
(`:left`, `:center` or `:right`). The platform control font is used when
`:font` is omitted.
raw docstring

text-layout-extentsclj

(text-layout-extents layout)

Returns a text layout's actual [width height].

Returns a text layout's actual `[width height]`.
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

transform!clj

(transform! context matrix)

Applies a drawing matrix to a draw context.

Applies a drawing matrix to a draw context.
raw docstring

transform-pointclj

(transform-point matrix x y)

Transforms a point through a drawing matrix.

Transforms a point through a drawing matrix.
raw docstring

transform-sizeclj

(transform-size matrix width height)

Transforms a size through a drawing matrix without applying translation.

Transforms a size through a drawing matrix without applying translation.
raw docstring

translate-matrixclj

(translate-matrix matrix x y)

Returns matrix translated by [x y].

Returns `matrix` translated by `[x y]`.
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

weight-attributeclj

(weight-attribute weight)

Creates a font-weight attribute from a CSS-style weight from 0 to 1000.

Creates a font-weight attribute from a CSS-style weight from 0 to 1000.
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-level-floatingclj

A macOS floating window level suitable for ordinary overlays.

A macOS floating window level suitable for ordinary overlays.
raw docstring

window-level-normalclj

The normal macOS window level.

The normal macOS window level.
raw docstring

window-level-screen-saverclj

The macOS screen-saver window level.

The macOS screen-saver window level.
raw docstring

window-level-statusclj

The macOS status-window level.

The macOS status-window level.
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-resize-edge-bottomclj

Bottom edge value accepted by begin-area-window-resize!.

Bottom edge value accepted by `begin-area-window-resize!`.
raw docstring

window-resize-edge-bottom-leftclj

Bottom-left corner value accepted by begin-area-window-resize!.

Bottom-left corner value accepted by `begin-area-window-resize!`.
raw docstring

window-resize-edge-bottom-rightclj

Bottom-right corner value accepted by begin-area-window-resize!.

Bottom-right corner value accepted by `begin-area-window-resize!`.
raw docstring

window-resize-edge-leftclj

Left edge value accepted by begin-area-window-resize!.

Left edge value accepted by `begin-area-window-resize!`.
raw docstring

window-resize-edge-rightclj

Right edge value accepted by begin-area-window-resize!.

Right edge value accepted by `begin-area-window-resize!`.
raw docstring

window-resize-edge-topclj

Top edge value accepted by begin-area-window-resize!.

Top edge value accepted by `begin-area-window-resize!`.
raw docstring

window-resize-edge-top-leftclj

Top-left corner value accepted by begin-area-window-resize!.

Top-left corner value accepted by `begin-area-window-resize!`.
raw docstring

window-resize-edge-top-rightclj

Top-right corner value accepted by begin-area-window-resize!.

Top-right corner value accepted by `begin-area-window-resize!`.
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