[macOS] Add default Window and Help menus, allow special menu customization.

This commit is contained in:
bruvzg 2023-10-15 20:52:56 +03:00
parent aa5b6ed13e
commit 0d44b50520
No known key found for this signature in database
GPG key ID: 7960FCF39844EC38
11 changed files with 477 additions and 228 deletions

View file

@ -346,6 +346,12 @@
Returns [code]true[/code] if the specified item's shortcut is disabled.
</description>
</method>
<method name="is_system_menu" qualifiers="const">
<return type="bool" />
<description>
Returns [code]true[/code] if the menu is bound to the special system menu.
</description>
</method>
<method name="remove_item">
<return type="void" />
<param index="0" name="index" type="int" />
@ -566,6 +572,9 @@
<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.
</member>
<member name="system_menu_root" type="String" setter="set_system_menu_root" getter="get_system_menu_root" default="&quot;&quot;">
If set to one of the values returned by [method DisplayServer.global_menu_get_system_menu_roots], this [PopupMenu] is bound to the special system menu. Only one [PopupMenu] can be bound to each special menu at a time.
</member>
</members>
<signals>
<signal name="id_focused">