From 151a4ba6a59f6e965bb56ce8fbc75b14d056fa79 Mon Sep 17 00:00:00 2001 From: VolTer Date: Sun, 30 Apr 2023 16:26:09 +0200 Subject: Overhaul the top sections of the class reference (GUI classes) --- doc/classes/TreeItem.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'doc/classes/TreeItem.xml') diff --git a/doc/classes/TreeItem.xml b/doc/classes/TreeItem.xml index ffa79ed085..2bd8f57bd2 100644 --- a/doc/classes/TreeItem.xml +++ b/doc/classes/TreeItem.xml @@ -1,12 +1,12 @@ - Control for a single item inside a [Tree]. + An internal control for a single item inside [Tree]. - Control for a single item inside a [Tree]. May have child [TreeItem]s and be styled as well as contain buttons. - You can remove a [TreeItem] by using [method Object.free]. - [b]Note:[/b] The ID values used for buttons are limited to 32 bits, not full 64 bits of [int]. This has a range of [code]-2^32[/code] to [code]2^32 - 1[/code], i.e. [code]-2147483648[/code] to [code]2147483647[/code]. + A single item of a [Tree] control. It can contain other [TreeItem]s as children, which allows it to create a hierarchy. It can also contain text and buttons. [TreeItem] is not a [Node], it is internal to the [Tree]. + To create a [TreeItem], use [method Tree.create_item] or [method TreeItem.create_child]. To remove a [TreeItem], use [method Object.free]. + [b]Note:[/b] The ID values used for buttons are 32-bit, unlike [int] which is always 64-bit. They go from [code]-2147483648[/code] to [code]2147483647[/code]. -- cgit v1.2.3