membrane.basic-components
button
(button {:keys [hover? text on-click extra context]})
Button component with hover state.
effect-finish-drag
(effect-finish-drag dispatch! $select-cursor $cursor $down-pos pos text font)
effect-text-double-click
(effect-text-double-click dispatch! $last-click $select-cursor $cursor pos text font)
number-slider
(number-slider {:keys [num max-width min max integer? mdown? extra context], :or {max-width 100}})
on-hover
(on-hover {:keys [hover? body extra context]})
Component for adding a hover? state.
scrollview
(scrollview {:keys [offset scroll-bounds body extra context], :or {offset [0 0]}})
Basic scrollview.
scroll-bounds should be a two element vector of width height of the scrollview body should be an element.
selectable-text
(selectable-text {:keys [text down-pos mpos last-click cursor select-cursor font extra context]})
textarea
(textarea {:keys [text border? font focus textarea-state extra context], :or {border? true}})
Textarea component.
textarea-light
(textarea-light {:keys [text font focus textarea-state extra context]})
Alternate look for textarea component.
textarea-view
(textarea-view {:keys [cursor focus? text select-cursor font border? extra context], :or {cursor 0, text "", border? true}})
Raw component for a basic textarea. textarea should be preferred.
workspace
(workspace {:keys [offset scroll-bounds body extra context], :or {offset [0 0]}})
Basic workspace.
scroll-bounds should be a two element vector of width height of the scrollview body should be an element.
Acts similar to a scrollview, but no scroll bars are shown and the scroll offset isn't clamped.