A horizontal menu bar that creates a menu for each PopupMenu child. New items are created by adding PopupMenus to this node. Item title is determined by Window.title, or node name if Window.title is empty. Item title can be overridden using set_menu_title().
Flat MenuBar don't display item decoration.
Language code used for line-breaking and text shaping algorithms, if left empty current locale is used instead.
If true
, MenuBar will use system global menu when supported.
Note: If true
and global menu is supported, this node is not displayed, has zero size, and all its child nodes except PopupMenus are inaccessible.
Note: This property overrides the value of the PopupMenu.prefer_native_menu property of the child nodes.
Position order in the global menu to insert MenuBar items at. All menu items in the MenuBar are always inserted as a continuous range. Menus with lower start_index are inserted first. Menus with start_index equal to -1
are inserted last.
If true
, when the cursor hovers above menu item, it will close the current PopupMenu and open the other one.
Base text writing direction.
Returns number of menu items.
Returns PopupMenu associated with menu item.
Returns menu item title.
Returns menu item tooltip.
Returns true
, if menu item is disabled.
Returns true
, if menu item is hidden.
Returns true
, if system global menu is supported and used by this MenuBar.
If true
, shortcuts are disabled and cannot be used to trigger the button.
If true
, menu item is disabled.
If true
, menu item is hidden.
Sets menu item title.
Sets menu item tooltip.