MenuBar
classin packageklyn.gui.windows
public class MenuBar extends Widget:
bar = MenuBar()
bar.addMenu(Menu("File"))
window.menuBar = bar
Properties inherited from Widget: accentColor,
backgroundColor,
borderColor,
bottom,
canFocus,
cornerRadius,
font,
foregroundColor,
hasFocus,
height,
isEnabled,
isHovered,
isManaged,
isTabStop,
isVisible,
layoutParams,
margin,
maxHeight,
maxWidth,
minHeight,
minWidth,
parent,
preferredHeight,
preferredWidth,
right,
sizePolicy,
styleClass,
width,
window,
x,
y
Constructors
| Modifier and Type |
Member |
Description |
| public |
MenuBar |
No summary. |
Methods
| Modifier and Type |
Member |
Description |
| public |
addMenuaddMenu(menu as Menu) as Void: |
Adds a top-level menu. |
| public |
menus |
Returns top-level menus. |
| public override |
paint |
No summary. |
| public override |
paintOverlaypaintOverlay(painter as Painter) as Void: |
No summary. |
| public |
removeMenu |
Removes a top-level menu. |
Methods inherited from Widget: blur,
containsPoint,
emitKeyPressed,
emitKeyReleased,
emitMouseMoved,
emitMousePressed,
emitMouseReleased,
emitMouseWheel,
handleTabKey,
notifyPaintRequested,
paint,
paintOverlay,
repaint,
requestFocus,
resolvePreferredHeight,
resolvePreferredWidth,
resolvedFont,
setBounds