浏览代码

Merge pull request #22638 from Dragoncraft89/master

Add critical info to TreeItem.set_custom_draw documentation
Rémi Verschelde 7 年之前
父节点
当前提交
723e2e9654
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      doc/classes/TreeItem.xml

+ 1 - 0
doc/classes/TreeItem.xml

@@ -400,6 +400,7 @@
 			</argument>
 			</argument>
 			<description>
 			<description>
 				Sets the given column's custom draw callback to [code]callback[/code] method on [code]object[/code].
 				Sets the given column's custom draw callback to [code]callback[/code] method on [code]object[/code].
+				The [code]callback[/code] should accept two arguments: the [TreeItem] that is drawn and its position and size as a [Rect2].
 			</description>
 			</description>
 		</method>
 		</method>
 		<method name="set_editable">
 		<method name="set_editable">