LEVIATHAN v962456e · 962456eee1

moby

class Button

since 0.1.0-alpha.1linux

bases
Focusable, Styleable, ISingleLine

Constructors

new

new()

Fields

enabled

bool enabled

flashing_

bool flashing_

key

string key

label

string label

pressHandlers_

Array<() => void> pressHandlers_

pressTokens_

Array<int> pressTokens_

Methods

contentDesired

contentDesired(Size avail) -> Size

displayText

displayText() -> string

firePress

firePress() -> void

offPress

offPress(int token) -> void

onPress

onPress(() => void h) -> int

paintContent

paintContent(Surface s) -> void

setEnabled

setEnabled(bool value) -> void

setKey

setKey(string value) -> void

setLabel

setLabel(string value) -> void