class_menubar.rst 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/4.2/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/4.2/doc/classes/MenuBar.xml.
  6. .. _class_MenuBar:
  7. MenuBar
  8. =======
  9. **Inherits:** :ref:`Control<class_Control>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  10. A horizontal menu bar that creates a :ref:`MenuButton<class_MenuButton>` for each :ref:`PopupMenu<class_PopupMenu>` child.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. A horizontal menu bar that creates a :ref:`MenuButton<class_MenuButton>` for each :ref:`PopupMenu<class_PopupMenu>` child. New items are created by adding :ref:`PopupMenu<class_PopupMenu>`\ s to this node.
  15. .. rst-class:: classref-reftable-group
  16. Properties
  17. ----------
  18. .. table::
  19. :widths: auto
  20. +--------------------------------------------------+----------------------------------------------------------------------+-----------+
  21. | :ref:`bool<class_bool>` | :ref:`flat<class_MenuBar_property_flat>` | ``false`` |
  22. +--------------------------------------------------+----------------------------------------------------------------------+-----------+
  23. | :ref:`String<class_String>` | :ref:`language<class_MenuBar_property_language>` | ``""`` |
  24. +--------------------------------------------------+----------------------------------------------------------------------+-----------+
  25. | :ref:`bool<class_bool>` | :ref:`prefer_global_menu<class_MenuBar_property_prefer_global_menu>` | ``true`` |
  26. +--------------------------------------------------+----------------------------------------------------------------------+-----------+
  27. | :ref:`int<class_int>` | :ref:`start_index<class_MenuBar_property_start_index>` | ``-1`` |
  28. +--------------------------------------------------+----------------------------------------------------------------------+-----------+
  29. | :ref:`bool<class_bool>` | :ref:`switch_on_hover<class_MenuBar_property_switch_on_hover>` | ``true`` |
  30. +--------------------------------------------------+----------------------------------------------------------------------+-----------+
  31. | :ref:`TextDirection<enum_Control_TextDirection>` | :ref:`text_direction<class_MenuBar_property_text_direction>` | ``0`` |
  32. +--------------------------------------------------+----------------------------------------------------------------------+-----------+
  33. .. rst-class:: classref-reftable-group
  34. Methods
  35. -------
  36. .. table::
  37. :widths: auto
  38. +-----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------+
  39. | :ref:`int<class_int>` | :ref:`get_menu_count<class_MenuBar_method_get_menu_count>` **(** **)** |const| |
  40. +-----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------+
  41. | :ref:`PopupMenu<class_PopupMenu>` | :ref:`get_menu_popup<class_MenuBar_method_get_menu_popup>` **(** :ref:`int<class_int>` menu **)** |const| |
  42. +-----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------+
  43. | :ref:`String<class_String>` | :ref:`get_menu_title<class_MenuBar_method_get_menu_title>` **(** :ref:`int<class_int>` menu **)** |const| |
  44. +-----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------+
  45. | :ref:`String<class_String>` | :ref:`get_menu_tooltip<class_MenuBar_method_get_menu_tooltip>` **(** :ref:`int<class_int>` menu **)** |const| |
  46. +-----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------+
  47. | :ref:`bool<class_bool>` | :ref:`is_menu_disabled<class_MenuBar_method_is_menu_disabled>` **(** :ref:`int<class_int>` menu **)** |const| |
  48. +-----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------+
  49. | :ref:`bool<class_bool>` | :ref:`is_menu_hidden<class_MenuBar_method_is_menu_hidden>` **(** :ref:`int<class_int>` menu **)** |const| |
  50. +-----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------+
  51. | :ref:`bool<class_bool>` | :ref:`is_native_menu<class_MenuBar_method_is_native_menu>` **(** **)** |const| |
  52. +-----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------+
  53. | void | :ref:`set_disable_shortcuts<class_MenuBar_method_set_disable_shortcuts>` **(** :ref:`bool<class_bool>` disabled **)** |
  54. +-----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------+
  55. | void | :ref:`set_menu_disabled<class_MenuBar_method_set_menu_disabled>` **(** :ref:`int<class_int>` menu, :ref:`bool<class_bool>` disabled **)** |
  56. +-----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------+
  57. | void | :ref:`set_menu_hidden<class_MenuBar_method_set_menu_hidden>` **(** :ref:`int<class_int>` menu, :ref:`bool<class_bool>` hidden **)** |
  58. +-----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------+
  59. | void | :ref:`set_menu_title<class_MenuBar_method_set_menu_title>` **(** :ref:`int<class_int>` menu, :ref:`String<class_String>` title **)** |
  60. +-----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------+
  61. | void | :ref:`set_menu_tooltip<class_MenuBar_method_set_menu_tooltip>` **(** :ref:`int<class_int>` menu, :ref:`String<class_String>` tooltip **)** |
  62. +-----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------+
  63. .. rst-class:: classref-reftable-group
  64. Theme Properties
  65. ----------------
  66. .. table::
  67. :widths: auto
  68. +---------------------------------+-------------------------------------------------------------------------------------+-------------------------------------+
  69. | :ref:`Color<class_Color>` | :ref:`font_color<class_MenuBar_theme_color_font_color>` | ``Color(0.875, 0.875, 0.875, 1)`` |
  70. +---------------------------------+-------------------------------------------------------------------------------------+-------------------------------------+
  71. | :ref:`Color<class_Color>` | :ref:`font_disabled_color<class_MenuBar_theme_color_font_disabled_color>` | ``Color(0.875, 0.875, 0.875, 0.5)`` |
  72. +---------------------------------+-------------------------------------------------------------------------------------+-------------------------------------+
  73. | :ref:`Color<class_Color>` | :ref:`font_focus_color<class_MenuBar_theme_color_font_focus_color>` | ``Color(0.95, 0.95, 0.95, 1)`` |
  74. +---------------------------------+-------------------------------------------------------------------------------------+-------------------------------------+
  75. | :ref:`Color<class_Color>` | :ref:`font_hover_color<class_MenuBar_theme_color_font_hover_color>` | ``Color(0.95, 0.95, 0.95, 1)`` |
  76. +---------------------------------+-------------------------------------------------------------------------------------+-------------------------------------+
  77. | :ref:`Color<class_Color>` | :ref:`font_hover_pressed_color<class_MenuBar_theme_color_font_hover_pressed_color>` | ``Color(1, 1, 1, 1)`` |
  78. +---------------------------------+-------------------------------------------------------------------------------------+-------------------------------------+
  79. | :ref:`Color<class_Color>` | :ref:`font_outline_color<class_MenuBar_theme_color_font_outline_color>` | ``Color(1, 1, 1, 1)`` |
  80. +---------------------------------+-------------------------------------------------------------------------------------+-------------------------------------+
  81. | :ref:`Color<class_Color>` | :ref:`font_pressed_color<class_MenuBar_theme_color_font_pressed_color>` | ``Color(1, 1, 1, 1)`` |
  82. +---------------------------------+-------------------------------------------------------------------------------------+-------------------------------------+
  83. | :ref:`int<class_int>` | :ref:`h_separation<class_MenuBar_theme_constant_h_separation>` | ``4`` |
  84. +---------------------------------+-------------------------------------------------------------------------------------+-------------------------------------+
  85. | :ref:`int<class_int>` | :ref:`outline_size<class_MenuBar_theme_constant_outline_size>` | ``0`` |
  86. +---------------------------------+-------------------------------------------------------------------------------------+-------------------------------------+
  87. | :ref:`Font<class_Font>` | :ref:`font<class_MenuBar_theme_font_font>` | |
  88. +---------------------------------+-------------------------------------------------------------------------------------+-------------------------------------+
  89. | :ref:`int<class_int>` | :ref:`font_size<class_MenuBar_theme_font_size_font_size>` | |
  90. +---------------------------------+-------------------------------------------------------------------------------------+-------------------------------------+
  91. | :ref:`StyleBox<class_StyleBox>` | :ref:`disabled<class_MenuBar_theme_style_disabled>` | |
  92. +---------------------------------+-------------------------------------------------------------------------------------+-------------------------------------+
  93. | :ref:`StyleBox<class_StyleBox>` | :ref:`disabled_mirrored<class_MenuBar_theme_style_disabled_mirrored>` | |
  94. +---------------------------------+-------------------------------------------------------------------------------------+-------------------------------------+
  95. | :ref:`StyleBox<class_StyleBox>` | :ref:`hover<class_MenuBar_theme_style_hover>` | |
  96. +---------------------------------+-------------------------------------------------------------------------------------+-------------------------------------+
  97. | :ref:`StyleBox<class_StyleBox>` | :ref:`hover_mirrored<class_MenuBar_theme_style_hover_mirrored>` | |
  98. +---------------------------------+-------------------------------------------------------------------------------------+-------------------------------------+
  99. | :ref:`StyleBox<class_StyleBox>` | :ref:`hover_pressed<class_MenuBar_theme_style_hover_pressed>` | |
  100. +---------------------------------+-------------------------------------------------------------------------------------+-------------------------------------+
  101. | :ref:`StyleBox<class_StyleBox>` | :ref:`hover_pressed_mirrored<class_MenuBar_theme_style_hover_pressed_mirrored>` | |
  102. +---------------------------------+-------------------------------------------------------------------------------------+-------------------------------------+
  103. | :ref:`StyleBox<class_StyleBox>` | :ref:`normal<class_MenuBar_theme_style_normal>` | |
  104. +---------------------------------+-------------------------------------------------------------------------------------+-------------------------------------+
  105. | :ref:`StyleBox<class_StyleBox>` | :ref:`normal_mirrored<class_MenuBar_theme_style_normal_mirrored>` | |
  106. +---------------------------------+-------------------------------------------------------------------------------------+-------------------------------------+
  107. | :ref:`StyleBox<class_StyleBox>` | :ref:`pressed<class_MenuBar_theme_style_pressed>` | |
  108. +---------------------------------+-------------------------------------------------------------------------------------+-------------------------------------+
  109. | :ref:`StyleBox<class_StyleBox>` | :ref:`pressed_mirrored<class_MenuBar_theme_style_pressed_mirrored>` | |
  110. +---------------------------------+-------------------------------------------------------------------------------------+-------------------------------------+
  111. .. rst-class:: classref-section-separator
  112. ----
  113. .. rst-class:: classref-descriptions-group
  114. Property Descriptions
  115. ---------------------
  116. .. _class_MenuBar_property_flat:
  117. .. rst-class:: classref-property
  118. :ref:`bool<class_bool>` **flat** = ``false``
  119. .. rst-class:: classref-property-setget
  120. - void **set_flat** **(** :ref:`bool<class_bool>` value **)**
  121. - :ref:`bool<class_bool>` **is_flat** **(** **)**
  122. Flat **MenuBar** don't display item decoration.
  123. .. rst-class:: classref-item-separator
  124. ----
  125. .. _class_MenuBar_property_language:
  126. .. rst-class:: classref-property
  127. :ref:`String<class_String>` **language** = ``""``
  128. .. rst-class:: classref-property-setget
  129. - void **set_language** **(** :ref:`String<class_String>` value **)**
  130. - :ref:`String<class_String>` **get_language** **(** **)**
  131. Language code used for line-breaking and text shaping algorithms, if left empty current locale is used instead.
  132. .. rst-class:: classref-item-separator
  133. ----
  134. .. _class_MenuBar_property_prefer_global_menu:
  135. .. rst-class:: classref-property
  136. :ref:`bool<class_bool>` **prefer_global_menu** = ``true``
  137. .. rst-class:: classref-property-setget
  138. - void **set_prefer_global_menu** **(** :ref:`bool<class_bool>` value **)**
  139. - :ref:`bool<class_bool>` **is_prefer_global_menu** **(** **)**
  140. If ``true``, **MenuBar** will use system global menu when supported.
  141. .. rst-class:: classref-item-separator
  142. ----
  143. .. _class_MenuBar_property_start_index:
  144. .. rst-class:: classref-property
  145. :ref:`int<class_int>` **start_index** = ``-1``
  146. .. rst-class:: classref-property-setget
  147. - void **set_start_index** **(** :ref:`int<class_int>` value **)**
  148. - :ref:`int<class_int>` **get_start_index** **(** **)**
  149. Position in the global menu to insert first **MenuBar** item at.
  150. .. rst-class:: classref-item-separator
  151. ----
  152. .. _class_MenuBar_property_switch_on_hover:
  153. .. rst-class:: classref-property
  154. :ref:`bool<class_bool>` **switch_on_hover** = ``true``
  155. .. rst-class:: classref-property-setget
  156. - void **set_switch_on_hover** **(** :ref:`bool<class_bool>` value **)**
  157. - :ref:`bool<class_bool>` **is_switch_on_hover** **(** **)**
  158. If ``true``, when the cursor hovers above menu item, it will close the current :ref:`PopupMenu<class_PopupMenu>` and open the other one.
  159. .. rst-class:: classref-item-separator
  160. ----
  161. .. _class_MenuBar_property_text_direction:
  162. .. rst-class:: classref-property
  163. :ref:`TextDirection<enum_Control_TextDirection>` **text_direction** = ``0``
  164. .. rst-class:: classref-property-setget
  165. - void **set_text_direction** **(** :ref:`TextDirection<enum_Control_TextDirection>` value **)**
  166. - :ref:`TextDirection<enum_Control_TextDirection>` **get_text_direction** **(** **)**
  167. Base text writing direction.
  168. .. rst-class:: classref-section-separator
  169. ----
  170. .. rst-class:: classref-descriptions-group
  171. Method Descriptions
  172. -------------------
  173. .. _class_MenuBar_method_get_menu_count:
  174. .. rst-class:: classref-method
  175. :ref:`int<class_int>` **get_menu_count** **(** **)** |const|
  176. Returns number of menu items.
  177. .. rst-class:: classref-item-separator
  178. ----
  179. .. _class_MenuBar_method_get_menu_popup:
  180. .. rst-class:: classref-method
  181. :ref:`PopupMenu<class_PopupMenu>` **get_menu_popup** **(** :ref:`int<class_int>` menu **)** |const|
  182. Returns :ref:`PopupMenu<class_PopupMenu>` associated with menu item.
  183. .. rst-class:: classref-item-separator
  184. ----
  185. .. _class_MenuBar_method_get_menu_title:
  186. .. rst-class:: classref-method
  187. :ref:`String<class_String>` **get_menu_title** **(** :ref:`int<class_int>` menu **)** |const|
  188. Returns menu item title.
  189. .. rst-class:: classref-item-separator
  190. ----
  191. .. _class_MenuBar_method_get_menu_tooltip:
  192. .. rst-class:: classref-method
  193. :ref:`String<class_String>` **get_menu_tooltip** **(** :ref:`int<class_int>` menu **)** |const|
  194. Returns menu item tooltip.
  195. .. rst-class:: classref-item-separator
  196. ----
  197. .. _class_MenuBar_method_is_menu_disabled:
  198. .. rst-class:: classref-method
  199. :ref:`bool<class_bool>` **is_menu_disabled** **(** :ref:`int<class_int>` menu **)** |const|
  200. Returns ``true``, if menu item is disabled.
  201. .. rst-class:: classref-item-separator
  202. ----
  203. .. _class_MenuBar_method_is_menu_hidden:
  204. .. rst-class:: classref-method
  205. :ref:`bool<class_bool>` **is_menu_hidden** **(** :ref:`int<class_int>` menu **)** |const|
  206. Returns ``true``, if menu item is hidden.
  207. .. rst-class:: classref-item-separator
  208. ----
  209. .. _class_MenuBar_method_is_native_menu:
  210. .. rst-class:: classref-method
  211. :ref:`bool<class_bool>` **is_native_menu** **(** **)** |const|
  212. Returns ``true``, if system global menu is supported and used by this **MenuBar**.
  213. .. rst-class:: classref-item-separator
  214. ----
  215. .. _class_MenuBar_method_set_disable_shortcuts:
  216. .. rst-class:: classref-method
  217. void **set_disable_shortcuts** **(** :ref:`bool<class_bool>` disabled **)**
  218. If ``true``, shortcuts are disabled and cannot be used to trigger the button.
  219. .. rst-class:: classref-item-separator
  220. ----
  221. .. _class_MenuBar_method_set_menu_disabled:
  222. .. rst-class:: classref-method
  223. void **set_menu_disabled** **(** :ref:`int<class_int>` menu, :ref:`bool<class_bool>` disabled **)**
  224. If ``true``, menu item is disabled.
  225. .. rst-class:: classref-item-separator
  226. ----
  227. .. _class_MenuBar_method_set_menu_hidden:
  228. .. rst-class:: classref-method
  229. void **set_menu_hidden** **(** :ref:`int<class_int>` menu, :ref:`bool<class_bool>` hidden **)**
  230. If ``true``, menu item is hidden.
  231. .. rst-class:: classref-item-separator
  232. ----
  233. .. _class_MenuBar_method_set_menu_title:
  234. .. rst-class:: classref-method
  235. void **set_menu_title** **(** :ref:`int<class_int>` menu, :ref:`String<class_String>` title **)**
  236. Sets menu item title.
  237. .. rst-class:: classref-item-separator
  238. ----
  239. .. _class_MenuBar_method_set_menu_tooltip:
  240. .. rst-class:: classref-method
  241. void **set_menu_tooltip** **(** :ref:`int<class_int>` menu, :ref:`String<class_String>` tooltip **)**
  242. Sets menu item tooltip.
  243. .. rst-class:: classref-section-separator
  244. ----
  245. .. rst-class:: classref-descriptions-group
  246. Theme Property Descriptions
  247. ---------------------------
  248. .. _class_MenuBar_theme_color_font_color:
  249. .. rst-class:: classref-themeproperty
  250. :ref:`Color<class_Color>` **font_color** = ``Color(0.875, 0.875, 0.875, 1)``
  251. Default text :ref:`Color<class_Color>` of the menu item.
  252. .. rst-class:: classref-item-separator
  253. ----
  254. .. _class_MenuBar_theme_color_font_disabled_color:
  255. .. rst-class:: classref-themeproperty
  256. :ref:`Color<class_Color>` **font_disabled_color** = ``Color(0.875, 0.875, 0.875, 0.5)``
  257. Text :ref:`Color<class_Color>` used when the menu item is disabled.
  258. .. rst-class:: classref-item-separator
  259. ----
  260. .. _class_MenuBar_theme_color_font_focus_color:
  261. .. rst-class:: classref-themeproperty
  262. :ref:`Color<class_Color>` **font_focus_color** = ``Color(0.95, 0.95, 0.95, 1)``
  263. 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.
  264. .. rst-class:: classref-item-separator
  265. ----
  266. .. _class_MenuBar_theme_color_font_hover_color:
  267. .. rst-class:: classref-themeproperty
  268. :ref:`Color<class_Color>` **font_hover_color** = ``Color(0.95, 0.95, 0.95, 1)``
  269. Text :ref:`Color<class_Color>` used when the menu item is being hovered.
  270. .. rst-class:: classref-item-separator
  271. ----
  272. .. _class_MenuBar_theme_color_font_hover_pressed_color:
  273. .. rst-class:: classref-themeproperty
  274. :ref:`Color<class_Color>` **font_hover_pressed_color** = ``Color(1, 1, 1, 1)``
  275. Text :ref:`Color<class_Color>` used when the menu item is being hovered and pressed.
  276. .. rst-class:: classref-item-separator
  277. ----
  278. .. _class_MenuBar_theme_color_font_outline_color:
  279. .. rst-class:: classref-themeproperty
  280. :ref:`Color<class_Color>` **font_outline_color** = ``Color(1, 1, 1, 1)``
  281. The tint of text outline of the menu item.
  282. .. rst-class:: classref-item-separator
  283. ----
  284. .. _class_MenuBar_theme_color_font_pressed_color:
  285. .. rst-class:: classref-themeproperty
  286. :ref:`Color<class_Color>` **font_pressed_color** = ``Color(1, 1, 1, 1)``
  287. Text :ref:`Color<class_Color>` used when the menu item is being pressed.
  288. .. rst-class:: classref-item-separator
  289. ----
  290. .. _class_MenuBar_theme_constant_h_separation:
  291. .. rst-class:: classref-themeproperty
  292. :ref:`int<class_int>` **h_separation** = ``4``
  293. The horizontal space between menu items.
  294. .. rst-class:: classref-item-separator
  295. ----
  296. .. _class_MenuBar_theme_constant_outline_size:
  297. .. rst-class:: classref-themeproperty
  298. :ref:`int<class_int>` **outline_size** = ``0``
  299. The size of the text outline.
  300. \ **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.
  301. .. rst-class:: classref-item-separator
  302. ----
  303. .. _class_MenuBar_theme_font_font:
  304. .. rst-class:: classref-themeproperty
  305. :ref:`Font<class_Font>` **font**
  306. :ref:`Font<class_Font>` of the menu item's text.
  307. .. rst-class:: classref-item-separator
  308. ----
  309. .. _class_MenuBar_theme_font_size_font_size:
  310. .. rst-class:: classref-themeproperty
  311. :ref:`int<class_int>` **font_size**
  312. Font size of the menu item's text.
  313. .. rst-class:: classref-item-separator
  314. ----
  315. .. _class_MenuBar_theme_style_disabled:
  316. .. rst-class:: classref-themeproperty
  317. :ref:`StyleBox<class_StyleBox>` **disabled**
  318. :ref:`StyleBox<class_StyleBox>` used when the menu item is disabled.
  319. .. rst-class:: classref-item-separator
  320. ----
  321. .. _class_MenuBar_theme_style_disabled_mirrored:
  322. .. rst-class:: classref-themeproperty
  323. :ref:`StyleBox<class_StyleBox>` **disabled_mirrored**
  324. :ref:`StyleBox<class_StyleBox>` used when the menu item is disabled (for right-to-left layouts).
  325. .. rst-class:: classref-item-separator
  326. ----
  327. .. _class_MenuBar_theme_style_hover:
  328. .. rst-class:: classref-themeproperty
  329. :ref:`StyleBox<class_StyleBox>` **hover**
  330. :ref:`StyleBox<class_StyleBox>` used when the menu item is being hovered.
  331. .. rst-class:: classref-item-separator
  332. ----
  333. .. _class_MenuBar_theme_style_hover_mirrored:
  334. .. rst-class:: classref-themeproperty
  335. :ref:`StyleBox<class_StyleBox>` **hover_mirrored**
  336. :ref:`StyleBox<class_StyleBox>` used when the menu item is being hovered (for right-to-left layouts).
  337. .. rst-class:: classref-item-separator
  338. ----
  339. .. _class_MenuBar_theme_style_hover_pressed:
  340. .. rst-class:: classref-themeproperty
  341. :ref:`StyleBox<class_StyleBox>` **hover_pressed**
  342. :ref:`StyleBox<class_StyleBox>` used when the menu item is being pressed and hovered at the same time.
  343. .. rst-class:: classref-item-separator
  344. ----
  345. .. _class_MenuBar_theme_style_hover_pressed_mirrored:
  346. .. rst-class:: classref-themeproperty
  347. :ref:`StyleBox<class_StyleBox>` **hover_pressed_mirrored**
  348. :ref:`StyleBox<class_StyleBox>` used when the menu item is being pressed and hovered at the same time (for right-to-left layouts).
  349. .. rst-class:: classref-item-separator
  350. ----
  351. .. _class_MenuBar_theme_style_normal:
  352. .. rst-class:: classref-themeproperty
  353. :ref:`StyleBox<class_StyleBox>` **normal**
  354. Default :ref:`StyleBox<class_StyleBox>` for the menu item.
  355. .. rst-class:: classref-item-separator
  356. ----
  357. .. _class_MenuBar_theme_style_normal_mirrored:
  358. .. rst-class:: classref-themeproperty
  359. :ref:`StyleBox<class_StyleBox>` **normal_mirrored**
  360. Default :ref:`StyleBox<class_StyleBox>` for the menu item (for right-to-left layouts).
  361. .. rst-class:: classref-item-separator
  362. ----
  363. .. _class_MenuBar_theme_style_pressed:
  364. .. rst-class:: classref-themeproperty
  365. :ref:`StyleBox<class_StyleBox>` **pressed**
  366. :ref:`StyleBox<class_StyleBox>` used when the menu item is being pressed.
  367. .. rst-class:: classref-item-separator
  368. ----
  369. .. _class_MenuBar_theme_style_pressed_mirrored:
  370. .. rst-class:: classref-themeproperty
  371. :ref:`StyleBox<class_StyleBox>` **pressed_mirrored**
  372. :ref:`StyleBox<class_StyleBox>` used when the menu item is being pressed (for right-to-left layouts).
  373. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  374. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  375. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  376. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  377. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  378. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  379. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`