[macOS] Add option for renaming system menus.

This commit is contained in:
Pāvels Nadtočajevs
2025-07-30 20:07:36 +03:00
parent 79603b2f28
commit 4fc07a8edb
8 changed files with 113 additions and 4 deletions

View File

@@ -401,6 +401,14 @@
[b]Note:[/b] This method is implemented only on macOS.
</description>
</method>
<method name="get_system_menu_text" qualifiers="const">
<return type="String" />
<param index="0" name="menu_id" type="int" enum="NativeMenu.SystemMenus" />
<description>
Returns the text of the system menu item.
[b]Note:[/b] This method is implemented on macOS.
</description>
</method>
<method name="has_feature" qualifiers="const">
<return type="bool" />
<param index="0" name="feature" type="int" enum="NativeMenu.Feature" />
@@ -720,6 +728,15 @@
[b]Note:[/b] This method is implemented only on macOS.
</description>
</method>
<method name="set_system_menu_text">
<return type="void" />
<param index="0" name="menu_id" type="int" enum="NativeMenu.SystemMenus" />
<param index="1" name="name" type="String" />
<description>
Sets the text of the system menu item.
[b]Note:[/b] This method is implemented on macOS.
</description>
</method>
</methods>
<constants>
<constant name="FEATURE_GLOBAL_MENU" value="0" enum="Feature">