2
0
Эх сурвалжийг харах

doc: Sync classref with current source

Rémi Verschelde 5 жил өмнө
parent
commit
4daba9bfc5

+ 6 - 0
doc/classes/PopupMenu.xml

@@ -242,6 +242,12 @@
 				Removes all items from the [PopupMenu].
 			</description>
 		</method>
+		<method name="get_current_index" qualifiers="const">
+			<return type="int">
+			</return>
+			<description>
+			</description>
+		</method>
 		<method name="get_item_accelerator" qualifiers="const">
 			<return type="int">
 			</return>

+ 2 - 2
doc/classes/ProjectSettings.xml

@@ -418,8 +418,8 @@
 			Position offset for tooltips, relative to the mouse cursor's hotspot.
 		</member>
 		<member name="display/window/disable_wintab_api" type="bool" setter="" getter="" default="false">
-            Disables WinTab API and always use Windows Ink API for the pen input (Windows only).
-        </member>
+			Disables WinTab API and always use Windows Ink API for the pen input (Windows only).
+		</member>
 		<member name="display/window/dpi/allow_hidpi" type="bool" setter="" getter="" default="false">
 			If [code]true[/code], allows HiDPI display on Windows and macOS. This setting has no effect on desktop Linux, as DPI-awareness fallbacks are not supported there.
 		</member>

+ 6 - 6
doc/classes/TextEdit.xml

@@ -343,26 +343,26 @@
 				Select all the text.
 			</description>
 		</method>
-		<method name="set_line_as_hidden">
+		<method name="set_line">
 			<return type="void">
 			</return>
 			<argument index="0" name="line" type="int">
 			</argument>
-			<argument index="1" name="enable" type="bool">
+			<argument index="1" name="new_text" type="String">
 			</argument>
 			<description>
-				If [code]true[/code], hides the line of the specified index.
+				Sets the text for a specific line.
 			</description>
 		</method>
-		<method name="set_line">
+		<method name="set_line_as_hidden">
 			<return type="void">
 			</return>
 			<argument index="0" name="line" type="int">
 			</argument>
-			<argument index="1" name="new_text" type="String">
+			<argument index="1" name="enable" type="bool">
 			</argument>
 			<description>
-				Sets the text for a specific line.
+				If [code]true[/code], hides the line of the specified index.
 			</description>
 		</method>
 		<method name="toggle_fold_line">

+ 18 - 0
doc/classes/TreeItem.xml

@@ -249,6 +249,14 @@
 			<description>
 			</description>
 		</method>
+		<method name="get_suffix" qualifiers="const">
+			<return type="String">
+			</return>
+			<argument index="0" name="column" type="int">
+			</argument>
+			<description>
+			</description>
+		</method>
 		<method name="get_text" qualifiers="const">
 			<return type="String">
 			</return>
@@ -572,6 +580,16 @@
 				If [code]true[/code], the given column is selectable.
 			</description>
 		</method>
+		<method name="set_suffix">
+			<return type="void">
+			</return>
+			<argument index="0" name="column" type="int">
+			</argument>
+			<argument index="1" name="text" type="String">
+			</argument>
+			<description>
+			</description>
+		</method>
 		<method name="set_text">
 			<return type="void">
 			</return>