diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-07-08 11:48:33 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-07-08 11:48:33 +0200 |
commit | 9804a8eb307cc9733fc3b7a80bb61b616cb34be0 (patch) | |
tree | 095ff1b2c30bb83f4c3ee80cf2b810c09f7da5a4 /doc/classes | |
parent | f4bf25cb357e96c6730cf85522f96948f4528b45 (diff) | |
parent | eddc9cea117ac13ee357bc66740633d01d2ae084 (diff) | |
download | redot-engine-9804a8eb307cc9733fc3b7a80bb61b616cb34be0.tar.gz |
Merge pull request #94061 from bruvzg/menu_is_native
[NativeMenu] Do not auto toggle check/multi-state items. Add `is_native_menu` method.
Diffstat (limited to 'doc/classes')
-rw-r--r-- | doc/classes/PopupMenu.xml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/classes/PopupMenu.xml b/doc/classes/PopupMenu.xml index 0f5687f091..004bbe2286 100644 --- a/doc/classes/PopupMenu.xml +++ b/doc/classes/PopupMenu.xml @@ -395,6 +395,12 @@ Returns [code]true[/code] if the specified item's shortcut is disabled. </description> </method> + <method name="is_native_menu" qualifiers="const"> + <return type="bool" /> + <description> + Returns [code]true[/code] if the system native menu is supported and currently used by this [PopupMenu]. + </description> + </method> <method name="is_system_menu" qualifiers="const"> <return type="bool" /> <description> @@ -636,6 +642,7 @@ </member> <member name="prefer_native_menu" type="bool" setter="set_prefer_native_menu" getter="is_prefer_native_menu" default="false"> If [code]true[/code], [MenuBar] will use native menu when supported. + [b]Note:[/b] If [PopupMenu] is linked to [StatusIndicator], [MenuBar], or another [PopupMenu] item it can use native menu regardless of this property, use [method is_native_menu] to check it. </member> <member name="submenu_popup_delay" type="float" setter="set_submenu_popup_delay" getter="get_submenu_popup_delay" default="0.3"> Sets the delay time in seconds for the submenu item to popup on mouse hovering. If the popup menu is added as a child of another (acting as a submenu), it will inherit the delay time of the parent menu item. |