123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659 |
- :github_url: hide
- .. DO NOT EDIT THIS FILE!!!
- .. Generated automatically from Godot engine sources.
- .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
- .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/MenuBar.xml.
- .. _class_MenuBar:
- MenuBar
- =======
- **Inherits:** :ref:`Control<class_Control>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
- A horizontal menu bar that creates a menu for each :ref:`PopupMenu<class_PopupMenu>` child.
- .. rst-class:: classref-introduction-group
- Description
- -----------
- A horizontal menu bar that creates a menu for each :ref:`PopupMenu<class_PopupMenu>` child. New items are created by adding :ref:`PopupMenu<class_PopupMenu>`\ s to this node.
- .. rst-class:: classref-reftable-group
- Properties
- ----------
- .. table::
- :widths: auto
- +--------------------------------------------------+----------------------------------------------------------------------+-----------+
- | :ref:`bool<class_bool>` | :ref:`flat<class_MenuBar_property_flat>` | ``false`` |
- +--------------------------------------------------+----------------------------------------------------------------------+-----------+
- | :ref:`String<class_String>` | :ref:`language<class_MenuBar_property_language>` | ``""`` |
- +--------------------------------------------------+----------------------------------------------------------------------+-----------+
- | :ref:`bool<class_bool>` | :ref:`prefer_global_menu<class_MenuBar_property_prefer_global_menu>` | ``true`` |
- +--------------------------------------------------+----------------------------------------------------------------------+-----------+
- | :ref:`int<class_int>` | :ref:`start_index<class_MenuBar_property_start_index>` | ``-1`` |
- +--------------------------------------------------+----------------------------------------------------------------------+-----------+
- | :ref:`bool<class_bool>` | :ref:`switch_on_hover<class_MenuBar_property_switch_on_hover>` | ``true`` |
- +--------------------------------------------------+----------------------------------------------------------------------+-----------+
- | :ref:`TextDirection<enum_Control_TextDirection>` | :ref:`text_direction<class_MenuBar_property_text_direction>` | ``0`` |
- +--------------------------------------------------+----------------------------------------------------------------------+-----------+
- .. rst-class:: classref-reftable-group
- Methods
- -------
- .. table::
- :widths: auto
- +-----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`get_menu_count<class_MenuBar_method_get_menu_count>`\ (\ ) |const| |
- +-----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`PopupMenu<class_PopupMenu>` | :ref:`get_menu_popup<class_MenuBar_method_get_menu_popup>`\ (\ menu\: :ref:`int<class_int>`\ ) |const| |
- +-----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`String<class_String>` | :ref:`get_menu_title<class_MenuBar_method_get_menu_title>`\ (\ menu\: :ref:`int<class_int>`\ ) |const| |
- +-----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`String<class_String>` | :ref:`get_menu_tooltip<class_MenuBar_method_get_menu_tooltip>`\ (\ menu\: :ref:`int<class_int>`\ ) |const| |
- +-----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`is_menu_disabled<class_MenuBar_method_is_menu_disabled>`\ (\ menu\: :ref:`int<class_int>`\ ) |const| |
- +-----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`is_menu_hidden<class_MenuBar_method_is_menu_hidden>`\ (\ menu\: :ref:`int<class_int>`\ ) |const| |
- +-----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`is_native_menu<class_MenuBar_method_is_native_menu>`\ (\ ) |const| |
- +-----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_disable_shortcuts<class_MenuBar_method_set_disable_shortcuts>`\ (\ disabled\: :ref:`bool<class_bool>`\ ) |
- +-----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_menu_disabled<class_MenuBar_method_set_menu_disabled>`\ (\ menu\: :ref:`int<class_int>`, disabled\: :ref:`bool<class_bool>`\ ) |
- +-----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_menu_hidden<class_MenuBar_method_set_menu_hidden>`\ (\ menu\: :ref:`int<class_int>`, hidden\: :ref:`bool<class_bool>`\ ) |
- +-----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_menu_title<class_MenuBar_method_set_menu_title>`\ (\ menu\: :ref:`int<class_int>`, title\: :ref:`String<class_String>`\ ) |
- +-----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_menu_tooltip<class_MenuBar_method_set_menu_tooltip>`\ (\ menu\: :ref:`int<class_int>`, tooltip\: :ref:`String<class_String>`\ ) |
- +-----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+
- .. rst-class:: classref-reftable-group
- Theme Properties
- ----------------
- .. table::
- :widths: auto
- +---------------------------------+-------------------------------------------------------------------------------------+-------------------------------------+
- | :ref:`Color<class_Color>` | :ref:`font_color<class_MenuBar_theme_color_font_color>` | ``Color(0.875, 0.875, 0.875, 1)`` |
- +---------------------------------+-------------------------------------------------------------------------------------+-------------------------------------+
- | :ref:`Color<class_Color>` | :ref:`font_disabled_color<class_MenuBar_theme_color_font_disabled_color>` | ``Color(0.875, 0.875, 0.875, 0.5)`` |
- +---------------------------------+-------------------------------------------------------------------------------------+-------------------------------------+
- | :ref:`Color<class_Color>` | :ref:`font_focus_color<class_MenuBar_theme_color_font_focus_color>` | ``Color(0.95, 0.95, 0.95, 1)`` |
- +---------------------------------+-------------------------------------------------------------------------------------+-------------------------------------+
- | :ref:`Color<class_Color>` | :ref:`font_hover_color<class_MenuBar_theme_color_font_hover_color>` | ``Color(0.95, 0.95, 0.95, 1)`` |
- +---------------------------------+-------------------------------------------------------------------------------------+-------------------------------------+
- | :ref:`Color<class_Color>` | :ref:`font_hover_pressed_color<class_MenuBar_theme_color_font_hover_pressed_color>` | ``Color(1, 1, 1, 1)`` |
- +---------------------------------+-------------------------------------------------------------------------------------+-------------------------------------+
- | :ref:`Color<class_Color>` | :ref:`font_outline_color<class_MenuBar_theme_color_font_outline_color>` | ``Color(0, 0, 0, 1)`` |
- +---------------------------------+-------------------------------------------------------------------------------------+-------------------------------------+
- | :ref:`Color<class_Color>` | :ref:`font_pressed_color<class_MenuBar_theme_color_font_pressed_color>` | ``Color(1, 1, 1, 1)`` |
- +---------------------------------+-------------------------------------------------------------------------------------+-------------------------------------+
- | :ref:`int<class_int>` | :ref:`h_separation<class_MenuBar_theme_constant_h_separation>` | ``4`` |
- +---------------------------------+-------------------------------------------------------------------------------------+-------------------------------------+
- | :ref:`int<class_int>` | :ref:`outline_size<class_MenuBar_theme_constant_outline_size>` | ``0`` |
- +---------------------------------+-------------------------------------------------------------------------------------+-------------------------------------+
- | :ref:`Font<class_Font>` | :ref:`font<class_MenuBar_theme_font_font>` | |
- +---------------------------------+-------------------------------------------------------------------------------------+-------------------------------------+
- | :ref:`int<class_int>` | :ref:`font_size<class_MenuBar_theme_font_size_font_size>` | |
- +---------------------------------+-------------------------------------------------------------------------------------+-------------------------------------+
- | :ref:`StyleBox<class_StyleBox>` | :ref:`disabled<class_MenuBar_theme_style_disabled>` | |
- +---------------------------------+-------------------------------------------------------------------------------------+-------------------------------------+
- | :ref:`StyleBox<class_StyleBox>` | :ref:`disabled_mirrored<class_MenuBar_theme_style_disabled_mirrored>` | |
- +---------------------------------+-------------------------------------------------------------------------------------+-------------------------------------+
- | :ref:`StyleBox<class_StyleBox>` | :ref:`hover<class_MenuBar_theme_style_hover>` | |
- +---------------------------------+-------------------------------------------------------------------------------------+-------------------------------------+
- | :ref:`StyleBox<class_StyleBox>` | :ref:`hover_mirrored<class_MenuBar_theme_style_hover_mirrored>` | |
- +---------------------------------+-------------------------------------------------------------------------------------+-------------------------------------+
- | :ref:`StyleBox<class_StyleBox>` | :ref:`hover_pressed<class_MenuBar_theme_style_hover_pressed>` | |
- +---------------------------------+-------------------------------------------------------------------------------------+-------------------------------------+
- | :ref:`StyleBox<class_StyleBox>` | :ref:`hover_pressed_mirrored<class_MenuBar_theme_style_hover_pressed_mirrored>` | |
- +---------------------------------+-------------------------------------------------------------------------------------+-------------------------------------+
- | :ref:`StyleBox<class_StyleBox>` | :ref:`normal<class_MenuBar_theme_style_normal>` | |
- +---------------------------------+-------------------------------------------------------------------------------------+-------------------------------------+
- | :ref:`StyleBox<class_StyleBox>` | :ref:`normal_mirrored<class_MenuBar_theme_style_normal_mirrored>` | |
- +---------------------------------+-------------------------------------------------------------------------------------+-------------------------------------+
- | :ref:`StyleBox<class_StyleBox>` | :ref:`pressed<class_MenuBar_theme_style_pressed>` | |
- +---------------------------------+-------------------------------------------------------------------------------------+-------------------------------------+
- | :ref:`StyleBox<class_StyleBox>` | :ref:`pressed_mirrored<class_MenuBar_theme_style_pressed_mirrored>` | |
- +---------------------------------+-------------------------------------------------------------------------------------+-------------------------------------+
- .. rst-class:: classref-section-separator
- ----
- .. rst-class:: classref-descriptions-group
- Property Descriptions
- ---------------------
- .. _class_MenuBar_property_flat:
- .. rst-class:: classref-property
- :ref:`bool<class_bool>` **flat** = ``false`` :ref:`๐<class_MenuBar_property_flat>`
- .. rst-class:: classref-property-setget
- - |void| **set_flat**\ (\ value\: :ref:`bool<class_bool>`\ )
- - :ref:`bool<class_bool>` **is_flat**\ (\ )
- Flat **MenuBar** don't display item decoration.
- .. rst-class:: classref-item-separator
- ----
- .. _class_MenuBar_property_language:
- .. rst-class:: classref-property
- :ref:`String<class_String>` **language** = ``""`` :ref:`๐<class_MenuBar_property_language>`
- .. rst-class:: classref-property-setget
- - |void| **set_language**\ (\ value\: :ref:`String<class_String>`\ )
- - :ref:`String<class_String>` **get_language**\ (\ )
- Language code used for line-breaking and text shaping algorithms, if left empty current locale is used instead.
- .. rst-class:: classref-item-separator
- ----
- .. _class_MenuBar_property_prefer_global_menu:
- .. rst-class:: classref-property
- :ref:`bool<class_bool>` **prefer_global_menu** = ``true`` :ref:`๐<class_MenuBar_property_prefer_global_menu>`
- .. rst-class:: classref-property-setget
- - |void| **set_prefer_global_menu**\ (\ value\: :ref:`bool<class_bool>`\ )
- - :ref:`bool<class_bool>` **is_prefer_global_menu**\ (\ )
- 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 :ref:`PopupMenu<class_PopupMenu>`\ s are inaccessible.
- \ **Note:** This property overrides the value of the :ref:`PopupMenu.prefer_native_menu<class_PopupMenu_property_prefer_native_menu>` property of the child nodes.
- .. rst-class:: classref-item-separator
- ----
- .. _class_MenuBar_property_start_index:
- .. rst-class:: classref-property
- :ref:`int<class_int>` **start_index** = ``-1`` :ref:`๐<class_MenuBar_property_start_index>`
- .. rst-class:: classref-property-setget
- - |void| **set_start_index**\ (\ value\: :ref:`int<class_int>`\ )
- - :ref:`int<class_int>` **get_start_index**\ (\ )
- 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 :ref:`start_index<class_MenuBar_property_start_index>` are inserted first. Menus with :ref:`start_index<class_MenuBar_property_start_index>` equal to ``-1`` are inserted last.
- .. rst-class:: classref-item-separator
- ----
- .. _class_MenuBar_property_switch_on_hover:
- .. rst-class:: classref-property
- :ref:`bool<class_bool>` **switch_on_hover** = ``true`` :ref:`๐<class_MenuBar_property_switch_on_hover>`
- .. rst-class:: classref-property-setget
- - |void| **set_switch_on_hover**\ (\ value\: :ref:`bool<class_bool>`\ )
- - :ref:`bool<class_bool>` **is_switch_on_hover**\ (\ )
- If ``true``, when the cursor hovers above menu item, it will close the current :ref:`PopupMenu<class_PopupMenu>` and open the other one.
- .. rst-class:: classref-item-separator
- ----
- .. _class_MenuBar_property_text_direction:
- .. rst-class:: classref-property
- :ref:`TextDirection<enum_Control_TextDirection>` **text_direction** = ``0`` :ref:`๐<class_MenuBar_property_text_direction>`
- .. rst-class:: classref-property-setget
- - |void| **set_text_direction**\ (\ value\: :ref:`TextDirection<enum_Control_TextDirection>`\ )
- - :ref:`TextDirection<enum_Control_TextDirection>` **get_text_direction**\ (\ )
- Base text writing direction.
- .. rst-class:: classref-section-separator
- ----
- .. rst-class:: classref-descriptions-group
- Method Descriptions
- -------------------
- .. _class_MenuBar_method_get_menu_count:
- .. rst-class:: classref-method
- :ref:`int<class_int>` **get_menu_count**\ (\ ) |const| :ref:`๐<class_MenuBar_method_get_menu_count>`
- Returns number of menu items.
- .. rst-class:: classref-item-separator
- ----
- .. _class_MenuBar_method_get_menu_popup:
- .. rst-class:: classref-method
- :ref:`PopupMenu<class_PopupMenu>` **get_menu_popup**\ (\ menu\: :ref:`int<class_int>`\ ) |const| :ref:`๐<class_MenuBar_method_get_menu_popup>`
- Returns :ref:`PopupMenu<class_PopupMenu>` associated with menu item.
- .. rst-class:: classref-item-separator
- ----
- .. _class_MenuBar_method_get_menu_title:
- .. rst-class:: classref-method
- :ref:`String<class_String>` **get_menu_title**\ (\ menu\: :ref:`int<class_int>`\ ) |const| :ref:`๐<class_MenuBar_method_get_menu_title>`
- Returns menu item title.
- .. rst-class:: classref-item-separator
- ----
- .. _class_MenuBar_method_get_menu_tooltip:
- .. rst-class:: classref-method
- :ref:`String<class_String>` **get_menu_tooltip**\ (\ menu\: :ref:`int<class_int>`\ ) |const| :ref:`๐<class_MenuBar_method_get_menu_tooltip>`
- Returns menu item tooltip.
- .. rst-class:: classref-item-separator
- ----
- .. _class_MenuBar_method_is_menu_disabled:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **is_menu_disabled**\ (\ menu\: :ref:`int<class_int>`\ ) |const| :ref:`๐<class_MenuBar_method_is_menu_disabled>`
- Returns ``true``, if menu item is disabled.
- .. rst-class:: classref-item-separator
- ----
- .. _class_MenuBar_method_is_menu_hidden:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **is_menu_hidden**\ (\ menu\: :ref:`int<class_int>`\ ) |const| :ref:`๐<class_MenuBar_method_is_menu_hidden>`
- Returns ``true``, if menu item is hidden.
- .. rst-class:: classref-item-separator
- ----
- .. _class_MenuBar_method_is_native_menu:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **is_native_menu**\ (\ ) |const| :ref:`๐<class_MenuBar_method_is_native_menu>`
- Returns ``true``, if system global menu is supported and used by this **MenuBar**.
- .. rst-class:: classref-item-separator
- ----
- .. _class_MenuBar_method_set_disable_shortcuts:
- .. rst-class:: classref-method
- |void| **set_disable_shortcuts**\ (\ disabled\: :ref:`bool<class_bool>`\ ) :ref:`๐<class_MenuBar_method_set_disable_shortcuts>`
- If ``true``, shortcuts are disabled and cannot be used to trigger the button.
- .. rst-class:: classref-item-separator
- ----
- .. _class_MenuBar_method_set_menu_disabled:
- .. rst-class:: classref-method
- |void| **set_menu_disabled**\ (\ menu\: :ref:`int<class_int>`, disabled\: :ref:`bool<class_bool>`\ ) :ref:`๐<class_MenuBar_method_set_menu_disabled>`
- If ``true``, menu item is disabled.
- .. rst-class:: classref-item-separator
- ----
- .. _class_MenuBar_method_set_menu_hidden:
- .. rst-class:: classref-method
- |void| **set_menu_hidden**\ (\ menu\: :ref:`int<class_int>`, hidden\: :ref:`bool<class_bool>`\ ) :ref:`๐<class_MenuBar_method_set_menu_hidden>`
- If ``true``, menu item is hidden.
- .. rst-class:: classref-item-separator
- ----
- .. _class_MenuBar_method_set_menu_title:
- .. rst-class:: classref-method
- |void| **set_menu_title**\ (\ menu\: :ref:`int<class_int>`, title\: :ref:`String<class_String>`\ ) :ref:`๐<class_MenuBar_method_set_menu_title>`
- Sets menu item title.
- .. rst-class:: classref-item-separator
- ----
- .. _class_MenuBar_method_set_menu_tooltip:
- .. rst-class:: classref-method
- |void| **set_menu_tooltip**\ (\ menu\: :ref:`int<class_int>`, tooltip\: :ref:`String<class_String>`\ ) :ref:`๐<class_MenuBar_method_set_menu_tooltip>`
- Sets menu item tooltip.
- .. rst-class:: classref-section-separator
- ----
- .. rst-class:: classref-descriptions-group
- Theme Property Descriptions
- ---------------------------
- .. _class_MenuBar_theme_color_font_color:
- .. rst-class:: classref-themeproperty
- :ref:`Color<class_Color>` **font_color** = ``Color(0.875, 0.875, 0.875, 1)`` :ref:`๐<class_MenuBar_theme_color_font_color>`
- Default text :ref:`Color<class_Color>` of the menu item.
- .. rst-class:: classref-item-separator
- ----
- .. _class_MenuBar_theme_color_font_disabled_color:
- .. rst-class:: classref-themeproperty
- :ref:`Color<class_Color>` **font_disabled_color** = ``Color(0.875, 0.875, 0.875, 0.5)`` :ref:`๐<class_MenuBar_theme_color_font_disabled_color>`
- Text :ref:`Color<class_Color>` used when the menu item is disabled.
- .. rst-class:: classref-item-separator
- ----
- .. _class_MenuBar_theme_color_font_focus_color:
- .. rst-class:: classref-themeproperty
- :ref:`Color<class_Color>` **font_focus_color** = ``Color(0.95, 0.95, 0.95, 1)`` :ref:`๐<class_MenuBar_theme_color_font_focus_color>`
- Text :ref:`Color<class_Color>` used when the menu item is focused. Only replaces the normal text color of the menu item. Disabled, hovered, and pressed states take precedence over this color.
- .. rst-class:: classref-item-separator
- ----
- .. _class_MenuBar_theme_color_font_hover_color:
- .. rst-class:: classref-themeproperty
- :ref:`Color<class_Color>` **font_hover_color** = ``Color(0.95, 0.95, 0.95, 1)`` :ref:`๐<class_MenuBar_theme_color_font_hover_color>`
- Text :ref:`Color<class_Color>` used when the menu item is being hovered.
- .. rst-class:: classref-item-separator
- ----
- .. _class_MenuBar_theme_color_font_hover_pressed_color:
- .. rst-class:: classref-themeproperty
- :ref:`Color<class_Color>` **font_hover_pressed_color** = ``Color(1, 1, 1, 1)`` :ref:`๐<class_MenuBar_theme_color_font_hover_pressed_color>`
- Text :ref:`Color<class_Color>` used when the menu item is being hovered and pressed.
- .. rst-class:: classref-item-separator
- ----
- .. _class_MenuBar_theme_color_font_outline_color:
- .. rst-class:: classref-themeproperty
- :ref:`Color<class_Color>` **font_outline_color** = ``Color(0, 0, 0, 1)`` :ref:`๐<class_MenuBar_theme_color_font_outline_color>`
- The tint of text outline of the menu item.
- .. rst-class:: classref-item-separator
- ----
- .. _class_MenuBar_theme_color_font_pressed_color:
- .. rst-class:: classref-themeproperty
- :ref:`Color<class_Color>` **font_pressed_color** = ``Color(1, 1, 1, 1)`` :ref:`๐<class_MenuBar_theme_color_font_pressed_color>`
- Text :ref:`Color<class_Color>` used when the menu item is being pressed.
- .. rst-class:: classref-item-separator
- ----
- .. _class_MenuBar_theme_constant_h_separation:
- .. rst-class:: classref-themeproperty
- :ref:`int<class_int>` **h_separation** = ``4`` :ref:`๐<class_MenuBar_theme_constant_h_separation>`
- The horizontal space between menu items.
- .. rst-class:: classref-item-separator
- ----
- .. _class_MenuBar_theme_constant_outline_size:
- .. rst-class:: classref-themeproperty
- :ref:`int<class_int>` **outline_size** = ``0`` :ref:`๐<class_MenuBar_theme_constant_outline_size>`
- The size of the text outline.
- \ **Note:** If using a font with :ref:`FontFile.multichannel_signed_distance_field<class_FontFile_property_multichannel_signed_distance_field>` enabled, its :ref:`FontFile.msdf_pixel_range<class_FontFile_property_msdf_pixel_range>` must be set to at least *twice* the value of :ref:`outline_size<class_MenuBar_theme_constant_outline_size>` for outline rendering to look correct. Otherwise, the outline may appear to be cut off earlier than intended.
- .. rst-class:: classref-item-separator
- ----
- .. _class_MenuBar_theme_font_font:
- .. rst-class:: classref-themeproperty
- :ref:`Font<class_Font>` **font** :ref:`๐<class_MenuBar_theme_font_font>`
- :ref:`Font<class_Font>` of the menu item's text.
- .. rst-class:: classref-item-separator
- ----
- .. _class_MenuBar_theme_font_size_font_size:
- .. rst-class:: classref-themeproperty
- :ref:`int<class_int>` **font_size** :ref:`๐<class_MenuBar_theme_font_size_font_size>`
- Font size of the menu item's text.
- .. rst-class:: classref-item-separator
- ----
- .. _class_MenuBar_theme_style_disabled:
- .. rst-class:: classref-themeproperty
- :ref:`StyleBox<class_StyleBox>` **disabled** :ref:`๐<class_MenuBar_theme_style_disabled>`
- :ref:`StyleBox<class_StyleBox>` used when the menu item is disabled.
- .. rst-class:: classref-item-separator
- ----
- .. _class_MenuBar_theme_style_disabled_mirrored:
- .. rst-class:: classref-themeproperty
- :ref:`StyleBox<class_StyleBox>` **disabled_mirrored** :ref:`๐<class_MenuBar_theme_style_disabled_mirrored>`
- :ref:`StyleBox<class_StyleBox>` used when the menu item is disabled (for right-to-left layouts).
- .. rst-class:: classref-item-separator
- ----
- .. _class_MenuBar_theme_style_hover:
- .. rst-class:: classref-themeproperty
- :ref:`StyleBox<class_StyleBox>` **hover** :ref:`๐<class_MenuBar_theme_style_hover>`
- :ref:`StyleBox<class_StyleBox>` used when the menu item is being hovered.
- .. rst-class:: classref-item-separator
- ----
- .. _class_MenuBar_theme_style_hover_mirrored:
- .. rst-class:: classref-themeproperty
- :ref:`StyleBox<class_StyleBox>` **hover_mirrored** :ref:`๐<class_MenuBar_theme_style_hover_mirrored>`
- :ref:`StyleBox<class_StyleBox>` used when the menu item is being hovered (for right-to-left layouts).
- .. rst-class:: classref-item-separator
- ----
- .. _class_MenuBar_theme_style_hover_pressed:
- .. rst-class:: classref-themeproperty
- :ref:`StyleBox<class_StyleBox>` **hover_pressed** :ref:`๐<class_MenuBar_theme_style_hover_pressed>`
- :ref:`StyleBox<class_StyleBox>` used when the menu item is being pressed and hovered at the same time.
- .. rst-class:: classref-item-separator
- ----
- .. _class_MenuBar_theme_style_hover_pressed_mirrored:
- .. rst-class:: classref-themeproperty
- :ref:`StyleBox<class_StyleBox>` **hover_pressed_mirrored** :ref:`๐<class_MenuBar_theme_style_hover_pressed_mirrored>`
- :ref:`StyleBox<class_StyleBox>` used when the menu item is being pressed and hovered at the same time (for right-to-left layouts).
- .. rst-class:: classref-item-separator
- ----
- .. _class_MenuBar_theme_style_normal:
- .. rst-class:: classref-themeproperty
- :ref:`StyleBox<class_StyleBox>` **normal** :ref:`๐<class_MenuBar_theme_style_normal>`
- Default :ref:`StyleBox<class_StyleBox>` for the menu item.
- .. rst-class:: classref-item-separator
- ----
- .. _class_MenuBar_theme_style_normal_mirrored:
- .. rst-class:: classref-themeproperty
- :ref:`StyleBox<class_StyleBox>` **normal_mirrored** :ref:`๐<class_MenuBar_theme_style_normal_mirrored>`
- Default :ref:`StyleBox<class_StyleBox>` for the menu item (for right-to-left layouts).
- .. rst-class:: classref-item-separator
- ----
- .. _class_MenuBar_theme_style_pressed:
- .. rst-class:: classref-themeproperty
- :ref:`StyleBox<class_StyleBox>` **pressed** :ref:`๐<class_MenuBar_theme_style_pressed>`
- :ref:`StyleBox<class_StyleBox>` used when the menu item is being pressed.
- .. rst-class:: classref-item-separator
- ----
- .. _class_MenuBar_theme_style_pressed_mirrored:
- .. rst-class:: classref-themeproperty
- :ref:`StyleBox<class_StyleBox>` **pressed_mirrored** :ref:`๐<class_MenuBar_theme_style_pressed_mirrored>`
- :ref:`StyleBox<class_StyleBox>` used when the menu item is being pressed (for right-to-left layouts).
- .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
- .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
- .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
- .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
- .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
- .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
- .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
- .. |void| replace:: :abbr:`void (No return value.)`
|