LEVIATHAN v962456e · 962456eee1

moby

class Menu

since 0.1.0-alpha.1linux

bases
Container, Focusable, Styleable, Bordered

Constructors

new

new()

Fields

focusIndex_

int focusIndex_

group_

int group_

label

string label

positioned_

bool positioned_

Methods

__mobyChildren

__mobyChildren() -> Array<IComponent>

__mobyContentRect

__mobyContentRect() -> Rect

activateFocused

activateFocused() -> void

arrange

arrange(Rect assigned) -> void

closeAll

closeAll() -> void

contentDesired

contentDesired(Size avail) -> Size

contentRect

contentRect() -> Rect

focusFirst

focusFirst() -> void

handleNav

handleNav(KeyEvent e) -> void

isSelectable

isSelectable(IComponent c) -> bool

item

item(string text, () => void onSelect) -> Menu

label

label(string s) -> Menu

moveHighlight

moveHighlight(int dir) -> void

openAt

openAt(int x, int y, int group) -> void

paint

paint(Surface s) -> void

paintBackground

paintBackground(Surface s) -> void

paintChrome

paintChrome(Surface s) -> void

separator

separator() -> Menu

setHighlight

setHighlight(int idx) -> void

wireClose

wireClose(IComponent c) -> void