summaryrefslogtreecommitdiffstats
path: root/doc/classes/NativeMenu.xml
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2024-03-25 10:41:03 +0200
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2024-03-25 10:58:05 +0200
commit5851f1e2dd8855666d3aeb750242277cd4158ae5 (patch)
treefafbd828011ea0aa921665e91db95db2323703fa /doc/classes/NativeMenu.xml
parent5d08c2631cadf29d80ca23c7d537e03c3e5edcc5 (diff)
downloadredot-engine-5851f1e2dd8855666d3aeb750242277cd4158ae5.tar.gz
[MenuBar] Use NativeMenu RIDs instead of indices to track items.
Diffstat (limited to 'doc/classes/NativeMenu.xml')
-rw-r--r--doc/classes/NativeMenu.xml13
1 files changed, 11 insertions, 2 deletions
diff --git a/doc/classes/NativeMenu.xml b/doc/classes/NativeMenu.xml
index cfe3f3f5c5..475874dee7 100644
--- a/doc/classes/NativeMenu.xml
+++ b/doc/classes/NativeMenu.xml
@@ -211,12 +211,21 @@
[b]Note:[/b] This method is implemented on macOS and Windows.
</description>
</method>
+ <method name="find_item_index_with_submenu" qualifiers="const">
+ <return type="int" />
+ <param index="0" name="rid" type="RID" />
+ <param index="1" name="submenu_rid" type="RID" />
+ <description>
+ Returns the index of the item with the submenu specified by [param submenu_rid]. Indices are automatically assigned to each item by the engine, and cannot be set manually.
+ [b]Note:[/b] This method is implemented on macOS and Windows.
+ </description>
+ </method>
<method name="find_item_index_with_tag" qualifiers="const">
<return type="int" />
<param index="0" name="rid" type="RID" />
<param index="1" name="tag" type="Variant" />
<description>
- Returns the index of the item with the specified [param tag]. Index is automatically assigned to each item by the engine. Index can not be set manually.
+ Returns the index of the item with the specified [param tag]. Indices are automatically assigned to each item by the engine, and cannot be set manually.
[b]Note:[/b] This method is implemented on macOS and Windows.
</description>
</method>
@@ -225,7 +234,7 @@
<param index="0" name="rid" type="RID" />
<param index="1" name="text" type="String" />
<description>
- Returns the index of the item with the specified [param text]. Index is automatically assigned to each item by the engine. Index can not be set manually.
+ Returns the index of the item with the specified [param text]. Indices are automatically assigned to each item by the engine, and cannot be set manually.
[b]Note:[/b] This method is implemented on macOS and Windows.
</description>
</method>