membrane.lanterna

*context*

dynamic

*screen*

dynamic

*tg*

dynamic

-label

(-label text)

Graphical elem that can draw text.

label will use the default line spacing for newline.

add-resize-listener

(add-resize-listener terminal ch)

button

(button text)(button text on-click)(button text on-click hover?)

Graphical elem that draws a button. Optional on-click function may be provided that is called with no arguments when button has a mouse-down event.

checkbox

(checkbox {:keys [checked? extra context]})

Checkbox component.

checkbox-view

(checkbox-view checked?)

Graphical elem that will draw a checkbox.

default-handler

(default-handler ui event)

double-click-threshold

effect-finish-drag

(effect-finish-drag dispatch! $select-cursor $cursor $down-pos pos text)

effect-move-cursor-to-pos

(effect-move-cursor-to-pos dispatch! $cursor text mx)

effect-text-double-click

(effect-text-double-click dispatch! $last-click $select-cursor $cursor pos text)

IDraw

protocol

members

draw

(draw this)

in

label

log

(log s)

log-lines

log-ui

(log-ui)

out

preserve-system-io

(preserve-system-io h)

rectangle

(rectangle width height)

run

(run view-fn {:keys [handler repaint-ch close-ch in out], :as options})(run view-fn)

run-helper

(run-helper view-fn {:keys [repaint-ch close-ch handler in out], :as options})

run-sync

(run-sync view-fn)(run-sync view-fn {:keys [handler repaint-ch close-ch in out], :as options})

text-selection

(text-selection text [selection-start selection-end :as selection])

Graphical elem for drawing a selection of text.

textarea

(textarea {:keys [text focus textarea-state extra context]})

Textarea component.

textarea-view

(textarea-view {:keys [cursor focus? text down-pos mpos select-cursor last-click extra context], :or {cursor 0, text ""}})

Raw component for a basic textarea. textarea should be preferred.

tp

(tp col row)