dagon
class Menu
since 0.1.0-alpha.1linux
Constructors
new
new()Fields
highlightIndex_
int highlightIndex_label_
string label_menuX_
menuY_
open_
bool open_openSubmenu_
parentMenu_
Menu | None parentMenu_window_
Window | None window_Methods
__dagonChildren
__dagonChildren() -> Array<IComponent>__dagonContentRect
__dagonContentRect() -> RectactivateFocused
activateFocused() -> voidarrange
arrange(Rect assigned) -> voidchainRoot
chainRoot() -> Menuchrome
chrome() -> Insetsclose
close() -> voidcloseAll
closeAll() -> voidcloseFromRoot
closeFromRoot() -> voidcontentDesired
contentRect
contentRect() -> RectfocusFirst
focusFirst() -> voidhandleNav
isSelectable
isSelectable(IComponent c) -> boolitem
item(string text, () => void onSelect) -> Menulabel
label(string s) -> Menulabel() -> stringmoveHighlight
moveHighlight(int dir) -> voidopenAt
openAt(Window win, int x, int y) -> voidopenSubmenu
paint
paint(Canvas c) -> voidpaintChrome
paintChrome(Canvas c) -> voidseparator
separator() -> MenusetHighlight
setHighlight(int idx) -> voidwireClose
wireClose(IComponent c) -> void