12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625 |
- :github_url: hide
- .. DO NOT EDIT THIS FILE!!!
- .. Generated automatically from Godot engine sources.
- .. Generator: https://github.com/godotengine/godot/tree/4.2/doc/tools/make_rst.py.
- .. XML source: https://github.com/godotengine/godot/tree/4.2/doc/classes/TreeItem.xml.
- .. _class_TreeItem:
- TreeItem
- ========
- **Inherits:** :ref:`Object<class_Object>`
- An internal control for a single item inside :ref:`Tree<class_Tree>`.
- .. rst-class:: classref-introduction-group
- Description
- -----------
- A single item of a :ref:`Tree<class_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 :ref:`Node<class_Node>`, it is internal to the :ref:`Tree<class_Tree>`.
- To create a **TreeItem**, use :ref:`Tree.create_item<class_Tree_method_create_item>` or :ref:`create_child<class_TreeItem_method_create_child>`. To remove a **TreeItem**, use :ref:`Object.free<class_Object_method_free>`.
- \ **Note:** The ID values used for buttons are 32-bit, unlike :ref:`int<class_int>` which is always 64-bit. They go from ``-2147483648`` to ``2147483647``.
- .. rst-class:: classref-reftable-group
- Properties
- ----------
- .. table::
- :widths: auto
- +-------------------------+-----------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`collapsed<class_TreeItem_property_collapsed>` |
- +-------------------------+-----------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`custom_minimum_height<class_TreeItem_property_custom_minimum_height>` |
- +-------------------------+-----------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`disable_folding<class_TreeItem_property_disable_folding>` |
- +-------------------------+-----------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`visible<class_TreeItem_property_visible>` |
- +-------------------------+-----------------------------------------------------------------------------+
- .. rst-class:: classref-reftable-group
- Methods
- -------
- .. table::
- :widths: auto
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`add_button<class_TreeItem_method_add_button>` **(** :ref:`int<class_int>` column, :ref:`Texture2D<class_Texture2D>` button, :ref:`int<class_int>` id=-1, :ref:`bool<class_bool>` disabled=false, :ref:`String<class_String>` tooltip_text="" **)** |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`add_child<class_TreeItem_method_add_child>` **(** :ref:`TreeItem<class_TreeItem>` child **)** |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`call_recursive<class_TreeItem_method_call_recursive>` **(** :ref:`StringName<class_StringName>` method, ... **)** |vararg| |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`clear_custom_bg_color<class_TreeItem_method_clear_custom_bg_color>` **(** :ref:`int<class_int>` column **)** |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`clear_custom_color<class_TreeItem_method_clear_custom_color>` **(** :ref:`int<class_int>` column **)** |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`TreeItem<class_TreeItem>` | :ref:`create_child<class_TreeItem_method_create_child>` **(** :ref:`int<class_int>` index=-1 **)** |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`deselect<class_TreeItem_method_deselect>` **(** :ref:`int<class_int>` column **)** |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`erase_button<class_TreeItem_method_erase_button>` **(** :ref:`int<class_int>` column, :ref:`int<class_int>` button_index **)** |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`AutowrapMode<enum_TextServer_AutowrapMode>` | :ref:`get_autowrap_mode<class_TreeItem_method_get_autowrap_mode>` **(** :ref:`int<class_int>` column **)** |const| |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Texture2D<class_Texture2D>` | :ref:`get_button<class_TreeItem_method_get_button>` **(** :ref:`int<class_int>` column, :ref:`int<class_int>` button_index **)** |const| |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`get_button_by_id<class_TreeItem_method_get_button_by_id>` **(** :ref:`int<class_int>` column, :ref:`int<class_int>` id **)** |const| |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`get_button_count<class_TreeItem_method_get_button_count>` **(** :ref:`int<class_int>` column **)** |const| |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`get_button_id<class_TreeItem_method_get_button_id>` **(** :ref:`int<class_int>` column, :ref:`int<class_int>` button_index **)** |const| |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`String<class_String>` | :ref:`get_button_tooltip_text<class_TreeItem_method_get_button_tooltip_text>` **(** :ref:`int<class_int>` column, :ref:`int<class_int>` button_index **)** |const| |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`TreeCellMode<enum_TreeItem_TreeCellMode>` | :ref:`get_cell_mode<class_TreeItem_method_get_cell_mode>` **(** :ref:`int<class_int>` column **)** |const| |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`TreeItem<class_TreeItem>` | :ref:`get_child<class_TreeItem_method_get_child>` **(** :ref:`int<class_int>` index **)** |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`get_child_count<class_TreeItem_method_get_child_count>` **(** **)** |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`TreeItem[]<class_TreeItem>` | :ref:`get_children<class_TreeItem_method_get_children>` **(** **)** |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Color<class_Color>` | :ref:`get_custom_bg_color<class_TreeItem_method_get_custom_bg_color>` **(** :ref:`int<class_int>` column **)** |const| |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Color<class_Color>` | :ref:`get_custom_color<class_TreeItem_method_get_custom_color>` **(** :ref:`int<class_int>` column **)** |const| |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Font<class_Font>` | :ref:`get_custom_font<class_TreeItem_method_get_custom_font>` **(** :ref:`int<class_int>` column **)** |const| |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`get_custom_font_size<class_TreeItem_method_get_custom_font_size>` **(** :ref:`int<class_int>` column **)** |const| |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`get_expand_right<class_TreeItem_method_get_expand_right>` **(** :ref:`int<class_int>` column **)** |const| |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`TreeItem<class_TreeItem>` | :ref:`get_first_child<class_TreeItem_method_get_first_child>` **(** **)** |const| |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Texture2D<class_Texture2D>` | :ref:`get_icon<class_TreeItem_method_get_icon>` **(** :ref:`int<class_int>` column **)** |const| |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`get_icon_max_width<class_TreeItem_method_get_icon_max_width>` **(** :ref:`int<class_int>` column **)** |const| |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Color<class_Color>` | :ref:`get_icon_modulate<class_TreeItem_method_get_icon_modulate>` **(** :ref:`int<class_int>` column **)** |const| |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Rect2<class_Rect2>` | :ref:`get_icon_region<class_TreeItem_method_get_icon_region>` **(** :ref:`int<class_int>` column **)** |const| |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`get_index<class_TreeItem_method_get_index>` **(** **)** |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`String<class_String>` | :ref:`get_language<class_TreeItem_method_get_language>` **(** :ref:`int<class_int>` column **)** |const| |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Variant<class_Variant>` | :ref:`get_metadata<class_TreeItem_method_get_metadata>` **(** :ref:`int<class_int>` column **)** |const| |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`TreeItem<class_TreeItem>` | :ref:`get_next<class_TreeItem_method_get_next>` **(** **)** |const| |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`TreeItem<class_TreeItem>` | :ref:`get_next_in_tree<class_TreeItem_method_get_next_in_tree>` **(** :ref:`bool<class_bool>` wrap=false **)** |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`TreeItem<class_TreeItem>` | :ref:`get_next_visible<class_TreeItem_method_get_next_visible>` **(** :ref:`bool<class_bool>` wrap=false **)** |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`TreeItem<class_TreeItem>` | :ref:`get_parent<class_TreeItem_method_get_parent>` **(** **)** |const| |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`TreeItem<class_TreeItem>` | :ref:`get_prev<class_TreeItem_method_get_prev>` **(** **)** |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`TreeItem<class_TreeItem>` | :ref:`get_prev_in_tree<class_TreeItem_method_get_prev_in_tree>` **(** :ref:`bool<class_bool>` wrap=false **)** |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`TreeItem<class_TreeItem>` | :ref:`get_prev_visible<class_TreeItem_method_get_prev_visible>` **(** :ref:`bool<class_bool>` wrap=false **)** |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`float<class_float>` | :ref:`get_range<class_TreeItem_method_get_range>` **(** :ref:`int<class_int>` column **)** |const| |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Dictionary<class_Dictionary>` | :ref:`get_range_config<class_TreeItem_method_get_range_config>` **(** :ref:`int<class_int>` column **)** |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`StructuredTextParser<enum_TextServer_StructuredTextParser>` | :ref:`get_structured_text_bidi_override<class_TreeItem_method_get_structured_text_bidi_override>` **(** :ref:`int<class_int>` column **)** |const| |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Array<class_Array>` | :ref:`get_structured_text_bidi_override_options<class_TreeItem_method_get_structured_text_bidi_override_options>` **(** :ref:`int<class_int>` column **)** |const| |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`String<class_String>` | :ref:`get_suffix<class_TreeItem_method_get_suffix>` **(** :ref:`int<class_int>` column **)** |const| |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`String<class_String>` | :ref:`get_text<class_TreeItem_method_get_text>` **(** :ref:`int<class_int>` column **)** |const| |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`HorizontalAlignment<enum_@GlobalScope_HorizontalAlignment>` | :ref:`get_text_alignment<class_TreeItem_method_get_text_alignment>` **(** :ref:`int<class_int>` column **)** |const| |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`TextDirection<enum_Control_TextDirection>` | :ref:`get_text_direction<class_TreeItem_method_get_text_direction>` **(** :ref:`int<class_int>` column **)** |const| |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`OverrunBehavior<enum_TextServer_OverrunBehavior>` | :ref:`get_text_overrun_behavior<class_TreeItem_method_get_text_overrun_behavior>` **(** :ref:`int<class_int>` column **)** |const| |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`String<class_String>` | :ref:`get_tooltip_text<class_TreeItem_method_get_tooltip_text>` **(** :ref:`int<class_int>` column **)** |const| |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Tree<class_Tree>` | :ref:`get_tree<class_TreeItem_method_get_tree>` **(** **)** |const| |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`is_any_collapsed<class_TreeItem_method_is_any_collapsed>` **(** :ref:`bool<class_bool>` only_visible=false **)** |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`is_button_disabled<class_TreeItem_method_is_button_disabled>` **(** :ref:`int<class_int>` column, :ref:`int<class_int>` button_index **)** |const| |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`is_checked<class_TreeItem_method_is_checked>` **(** :ref:`int<class_int>` column **)** |const| |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`is_custom_set_as_button<class_TreeItem_method_is_custom_set_as_button>` **(** :ref:`int<class_int>` column **)** |const| |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`is_edit_multiline<class_TreeItem_method_is_edit_multiline>` **(** :ref:`int<class_int>` column **)** |const| |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`is_editable<class_TreeItem_method_is_editable>` **(** :ref:`int<class_int>` column **)** |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`is_indeterminate<class_TreeItem_method_is_indeterminate>` **(** :ref:`int<class_int>` column **)** |const| |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`is_selectable<class_TreeItem_method_is_selectable>` **(** :ref:`int<class_int>` column **)** |const| |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`is_selected<class_TreeItem_method_is_selected>` **(** :ref:`int<class_int>` column **)** |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`move_after<class_TreeItem_method_move_after>` **(** :ref:`TreeItem<class_TreeItem>` item **)** |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`move_before<class_TreeItem_method_move_before>` **(** :ref:`TreeItem<class_TreeItem>` item **)** |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`propagate_check<class_TreeItem_method_propagate_check>` **(** :ref:`int<class_int>` column, :ref:`bool<class_bool>` emit_signal=true **)** |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`remove_child<class_TreeItem_method_remove_child>` **(** :ref:`TreeItem<class_TreeItem>` child **)** |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`select<class_TreeItem_method_select>` **(** :ref:`int<class_int>` column **)** |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_autowrap_mode<class_TreeItem_method_set_autowrap_mode>` **(** :ref:`int<class_int>` column, :ref:`AutowrapMode<enum_TextServer_AutowrapMode>` autowrap_mode **)** |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_button<class_TreeItem_method_set_button>` **(** :ref:`int<class_int>` column, :ref:`int<class_int>` button_index, :ref:`Texture2D<class_Texture2D>` button **)** |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_button_color<class_TreeItem_method_set_button_color>` **(** :ref:`int<class_int>` column, :ref:`int<class_int>` button_index, :ref:`Color<class_Color>` color **)** |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_button_disabled<class_TreeItem_method_set_button_disabled>` **(** :ref:`int<class_int>` column, :ref:`int<class_int>` button_index, :ref:`bool<class_bool>` disabled **)** |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_button_tooltip_text<class_TreeItem_method_set_button_tooltip_text>` **(** :ref:`int<class_int>` column, :ref:`int<class_int>` button_index, :ref:`String<class_String>` tooltip **)** |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_cell_mode<class_TreeItem_method_set_cell_mode>` **(** :ref:`int<class_int>` column, :ref:`TreeCellMode<enum_TreeItem_TreeCellMode>` mode **)** |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_checked<class_TreeItem_method_set_checked>` **(** :ref:`int<class_int>` column, :ref:`bool<class_bool>` checked **)** |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_collapsed_recursive<class_TreeItem_method_set_collapsed_recursive>` **(** :ref:`bool<class_bool>` enable **)** |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_custom_as_button<class_TreeItem_method_set_custom_as_button>` **(** :ref:`int<class_int>` column, :ref:`bool<class_bool>` enable **)** |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_custom_bg_color<class_TreeItem_method_set_custom_bg_color>` **(** :ref:`int<class_int>` column, :ref:`Color<class_Color>` color, :ref:`bool<class_bool>` just_outline=false **)** |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_custom_color<class_TreeItem_method_set_custom_color>` **(** :ref:`int<class_int>` column, :ref:`Color<class_Color>` color **)** |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_custom_draw<class_TreeItem_method_set_custom_draw>` **(** :ref:`int<class_int>` column, :ref:`Object<class_Object>` object, :ref:`StringName<class_StringName>` callback **)** |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_custom_font<class_TreeItem_method_set_custom_font>` **(** :ref:`int<class_int>` column, :ref:`Font<class_Font>` font **)** |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_custom_font_size<class_TreeItem_method_set_custom_font_size>` **(** :ref:`int<class_int>` column, :ref:`int<class_int>` font_size **)** |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_edit_multiline<class_TreeItem_method_set_edit_multiline>` **(** :ref:`int<class_int>` column, :ref:`bool<class_bool>` multiline **)** |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_editable<class_TreeItem_method_set_editable>` **(** :ref:`int<class_int>` column, :ref:`bool<class_bool>` enabled **)** |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_expand_right<class_TreeItem_method_set_expand_right>` **(** :ref:`int<class_int>` column, :ref:`bool<class_bool>` enable **)** |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_icon<class_TreeItem_method_set_icon>` **(** :ref:`int<class_int>` column, :ref:`Texture2D<class_Texture2D>` texture **)** |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_icon_max_width<class_TreeItem_method_set_icon_max_width>` **(** :ref:`int<class_int>` column, :ref:`int<class_int>` width **)** |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_icon_modulate<class_TreeItem_method_set_icon_modulate>` **(** :ref:`int<class_int>` column, :ref:`Color<class_Color>` modulate **)** |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_icon_region<class_TreeItem_method_set_icon_region>` **(** :ref:`int<class_int>` column, :ref:`Rect2<class_Rect2>` region **)** |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_indeterminate<class_TreeItem_method_set_indeterminate>` **(** :ref:`int<class_int>` column, :ref:`bool<class_bool>` indeterminate **)** |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_language<class_TreeItem_method_set_language>` **(** :ref:`int<class_int>` column, :ref:`String<class_String>` language **)** |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_metadata<class_TreeItem_method_set_metadata>` **(** :ref:`int<class_int>` column, :ref:`Variant<class_Variant>` meta **)** |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_range<class_TreeItem_method_set_range>` **(** :ref:`int<class_int>` column, :ref:`float<class_float>` value **)** |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_range_config<class_TreeItem_method_set_range_config>` **(** :ref:`int<class_int>` column, :ref:`float<class_float>` min, :ref:`float<class_float>` max, :ref:`float<class_float>` step, :ref:`bool<class_bool>` expr=false **)** |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_selectable<class_TreeItem_method_set_selectable>` **(** :ref:`int<class_int>` column, :ref:`bool<class_bool>` selectable **)** |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_structured_text_bidi_override<class_TreeItem_method_set_structured_text_bidi_override>` **(** :ref:`int<class_int>` column, :ref:`StructuredTextParser<enum_TextServer_StructuredTextParser>` parser **)** |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_structured_text_bidi_override_options<class_TreeItem_method_set_structured_text_bidi_override_options>` **(** :ref:`int<class_int>` column, :ref:`Array<class_Array>` args **)** |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_suffix<class_TreeItem_method_set_suffix>` **(** :ref:`int<class_int>` column, :ref:`String<class_String>` text **)** |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_text<class_TreeItem_method_set_text>` **(** :ref:`int<class_int>` column, :ref:`String<class_String>` text **)** |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_text_alignment<class_TreeItem_method_set_text_alignment>` **(** :ref:`int<class_int>` column, :ref:`HorizontalAlignment<enum_@GlobalScope_HorizontalAlignment>` text_alignment **)** |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_text_direction<class_TreeItem_method_set_text_direction>` **(** :ref:`int<class_int>` column, :ref:`TextDirection<enum_Control_TextDirection>` direction **)** |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_text_overrun_behavior<class_TreeItem_method_set_text_overrun_behavior>` **(** :ref:`int<class_int>` column, :ref:`OverrunBehavior<enum_TextServer_OverrunBehavior>` overrun_behavior **)** |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_tooltip_text<class_TreeItem_method_set_tooltip_text>` **(** :ref:`int<class_int>` column, :ref:`String<class_String>` tooltip **)** |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`uncollapse_tree<class_TreeItem_method_uncollapse_tree>` **(** **)** |
- +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- .. rst-class:: classref-section-separator
- ----
- .. rst-class:: classref-descriptions-group
- Enumerations
- ------------
- .. _enum_TreeItem_TreeCellMode:
- .. rst-class:: classref-enumeration
- enum **TreeCellMode**:
- .. _class_TreeItem_constant_CELL_MODE_STRING:
- .. rst-class:: classref-enumeration-constant
- :ref:`TreeCellMode<enum_TreeItem_TreeCellMode>` **CELL_MODE_STRING** = ``0``
- Cell contains a string.
- .. _class_TreeItem_constant_CELL_MODE_CHECK:
- .. rst-class:: classref-enumeration-constant
- :ref:`TreeCellMode<enum_TreeItem_TreeCellMode>` **CELL_MODE_CHECK** = ``1``
- Cell contains a checkbox.
- .. _class_TreeItem_constant_CELL_MODE_RANGE:
- .. rst-class:: classref-enumeration-constant
- :ref:`TreeCellMode<enum_TreeItem_TreeCellMode>` **CELL_MODE_RANGE** = ``2``
- Cell contains a range.
- .. _class_TreeItem_constant_CELL_MODE_ICON:
- .. rst-class:: classref-enumeration-constant
- :ref:`TreeCellMode<enum_TreeItem_TreeCellMode>` **CELL_MODE_ICON** = ``3``
- Cell contains an icon.
- .. _class_TreeItem_constant_CELL_MODE_CUSTOM:
- .. rst-class:: classref-enumeration-constant
- :ref:`TreeCellMode<enum_TreeItem_TreeCellMode>` **CELL_MODE_CUSTOM** = ``4``
- .. rst-class:: classref-section-separator
- ----
- .. rst-class:: classref-descriptions-group
- Property Descriptions
- ---------------------
- .. _class_TreeItem_property_collapsed:
- .. rst-class:: classref-property
- :ref:`bool<class_bool>` **collapsed**
- .. rst-class:: classref-property-setget
- - void **set_collapsed** **(** :ref:`bool<class_bool>` value **)**
- - :ref:`bool<class_bool>` **is_collapsed** **(** **)**
- If ``true``, the TreeItem is collapsed.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_property_custom_minimum_height:
- .. rst-class:: classref-property
- :ref:`int<class_int>` **custom_minimum_height**
- .. rst-class:: classref-property-setget
- - void **set_custom_minimum_height** **(** :ref:`int<class_int>` value **)**
- - :ref:`int<class_int>` **get_custom_minimum_height** **(** **)**
- The custom minimum height.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_property_disable_folding:
- .. rst-class:: classref-property
- :ref:`bool<class_bool>` **disable_folding**
- .. rst-class:: classref-property-setget
- - void **set_disable_folding** **(** :ref:`bool<class_bool>` value **)**
- - :ref:`bool<class_bool>` **is_folding_disabled** **(** **)**
- If ``true``, folding is disabled for this TreeItem.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_property_visible:
- .. rst-class:: classref-property
- :ref:`bool<class_bool>` **visible**
- .. rst-class:: classref-property-setget
- - void **set_visible** **(** :ref:`bool<class_bool>` value **)**
- - :ref:`bool<class_bool>` **is_visible** **(** **)**
- If ``true``, the **TreeItem** is visible (default).
- Note that if a **TreeItem** is set to not be visible, none of its children will be visible either.
- .. rst-class:: classref-section-separator
- ----
- .. rst-class:: classref-descriptions-group
- Method Descriptions
- -------------------
- .. _class_TreeItem_method_add_button:
- .. rst-class:: classref-method
- void **add_button** **(** :ref:`int<class_int>` column, :ref:`Texture2D<class_Texture2D>` button, :ref:`int<class_int>` id=-1, :ref:`bool<class_bool>` disabled=false, :ref:`String<class_String>` tooltip_text="" **)**
- Adds a button with :ref:`Texture2D<class_Texture2D>` ``button`` at column ``column``. The ``id`` is used to identify the button in the according :ref:`Tree.button_clicked<class_Tree_signal_button_clicked>` signal and can be different from the buttons index. If not specified, the next available index is used, which may be retrieved by calling :ref:`get_button_count<class_TreeItem_method_get_button_count>` immediately before this method. Optionally, the button can be ``disabled`` and have a ``tooltip_text``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_add_child:
- .. rst-class:: classref-method
- void **add_child** **(** :ref:`TreeItem<class_TreeItem>` child **)**
- Adds a previously unparented **TreeItem** as a direct child of this one. The ``child`` item must not be a part of any :ref:`Tree<class_Tree>` or parented to any **TreeItem**. See also :ref:`remove_child<class_TreeItem_method_remove_child>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_call_recursive:
- .. rst-class:: classref-method
- void **call_recursive** **(** :ref:`StringName<class_StringName>` method, ... **)** |vararg|
- Calls the ``method`` on the actual TreeItem and its children recursively. Pass parameters as a comma separated list.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_clear_custom_bg_color:
- .. rst-class:: classref-method
- void **clear_custom_bg_color** **(** :ref:`int<class_int>` column **)**
- Resets the background color for the given column to default.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_clear_custom_color:
- .. rst-class:: classref-method
- void **clear_custom_color** **(** :ref:`int<class_int>` column **)**
- Resets the color for the given column to default.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_create_child:
- .. rst-class:: classref-method
- :ref:`TreeItem<class_TreeItem>` **create_child** **(** :ref:`int<class_int>` index=-1 **)**
- Creates an item and adds it as a child.
- The new item will be inserted as position ``index`` (the default value ``-1`` means the last position), or it will be the last child if ``index`` is higher than the child count.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_deselect:
- .. rst-class:: classref-method
- void **deselect** **(** :ref:`int<class_int>` column **)**
- Deselects the given column.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_erase_button:
- .. rst-class:: classref-method
- void **erase_button** **(** :ref:`int<class_int>` column, :ref:`int<class_int>` button_index **)**
- Removes the button at index ``button_index`` in column ``column``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_get_autowrap_mode:
- .. rst-class:: classref-method
- :ref:`AutowrapMode<enum_TextServer_AutowrapMode>` **get_autowrap_mode** **(** :ref:`int<class_int>` column **)** |const|
- Returns the text autowrap mode in the given ``column``. By default it is :ref:`TextServer.AUTOWRAP_OFF<class_TextServer_constant_AUTOWRAP_OFF>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_get_button:
- .. rst-class:: classref-method
- :ref:`Texture2D<class_Texture2D>` **get_button** **(** :ref:`int<class_int>` column, :ref:`int<class_int>` button_index **)** |const|
- Returns the :ref:`Texture2D<class_Texture2D>` of the button at index ``button_index`` in column ``column``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_get_button_by_id:
- .. rst-class:: classref-method
- :ref:`int<class_int>` **get_button_by_id** **(** :ref:`int<class_int>` column, :ref:`int<class_int>` id **)** |const|
- Returns the button index if there is a button with ID ``id`` in column ``column``, otherwise returns -1.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_get_button_count:
- .. rst-class:: classref-method
- :ref:`int<class_int>` **get_button_count** **(** :ref:`int<class_int>` column **)** |const|
- Returns the number of buttons in column ``column``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_get_button_id:
- .. rst-class:: classref-method
- :ref:`int<class_int>` **get_button_id** **(** :ref:`int<class_int>` column, :ref:`int<class_int>` button_index **)** |const|
- Returns the ID for the button at index ``button_index`` in column ``column``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_get_button_tooltip_text:
- .. rst-class:: classref-method
- :ref:`String<class_String>` **get_button_tooltip_text** **(** :ref:`int<class_int>` column, :ref:`int<class_int>` button_index **)** |const|
- Returns the tooltip text for the button at index ``button_index`` in column ``column``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_get_cell_mode:
- .. rst-class:: classref-method
- :ref:`TreeCellMode<enum_TreeItem_TreeCellMode>` **get_cell_mode** **(** :ref:`int<class_int>` column **)** |const|
- Returns the column's cell mode.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_get_child:
- .. rst-class:: classref-method
- :ref:`TreeItem<class_TreeItem>` **get_child** **(** :ref:`int<class_int>` index **)**
- Returns a child item by its ``index`` (see :ref:`get_child_count<class_TreeItem_method_get_child_count>`). This method is often used for iterating all children of an item.
- Negative indices access the children from the last one.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_get_child_count:
- .. rst-class:: classref-method
- :ref:`int<class_int>` **get_child_count** **(** **)**
- Returns the number of child items.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_get_children:
- .. rst-class:: classref-method
- :ref:`TreeItem[]<class_TreeItem>` **get_children** **(** **)**
- Returns an array of references to the item's children.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_get_custom_bg_color:
- .. rst-class:: classref-method
- :ref:`Color<class_Color>` **get_custom_bg_color** **(** :ref:`int<class_int>` column **)** |const|
- Returns the custom background color of column ``column``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_get_custom_color:
- .. rst-class:: classref-method
- :ref:`Color<class_Color>` **get_custom_color** **(** :ref:`int<class_int>` column **)** |const|
- Returns the custom color of column ``column``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_get_custom_font:
- .. rst-class:: classref-method
- :ref:`Font<class_Font>` **get_custom_font** **(** :ref:`int<class_int>` column **)** |const|
- Returns custom font used to draw text in the column ``column``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_get_custom_font_size:
- .. rst-class:: classref-method
- :ref:`int<class_int>` **get_custom_font_size** **(** :ref:`int<class_int>` column **)** |const|
- Returns custom font size used to draw text in the column ``column``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_get_expand_right:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **get_expand_right** **(** :ref:`int<class_int>` column **)** |const|
- Returns ``true`` if ``expand_right`` is set.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_get_first_child:
- .. rst-class:: classref-method
- :ref:`TreeItem<class_TreeItem>` **get_first_child** **(** **)** |const|
- Returns the TreeItem's first child.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_get_icon:
- .. rst-class:: classref-method
- :ref:`Texture2D<class_Texture2D>` **get_icon** **(** :ref:`int<class_int>` column **)** |const|
- Returns the given column's icon :ref:`Texture2D<class_Texture2D>`. Error if no icon is set.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_get_icon_max_width:
- .. rst-class:: classref-method
- :ref:`int<class_int>` **get_icon_max_width** **(** :ref:`int<class_int>` column **)** |const|
- Returns the maximum allowed width of the icon in the given ``column``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_get_icon_modulate:
- .. rst-class:: classref-method
- :ref:`Color<class_Color>` **get_icon_modulate** **(** :ref:`int<class_int>` column **)** |const|
- Returns the :ref:`Color<class_Color>` modulating the column's icon.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_get_icon_region:
- .. rst-class:: classref-method
- :ref:`Rect2<class_Rect2>` **get_icon_region** **(** :ref:`int<class_int>` column **)** |const|
- Returns the icon :ref:`Texture2D<class_Texture2D>` region as :ref:`Rect2<class_Rect2>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_get_index:
- .. rst-class:: classref-method
- :ref:`int<class_int>` **get_index** **(** **)**
- Returns the node's order in the tree. For example, if called on the first child item the position is ``0``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_get_language:
- .. rst-class:: classref-method
- :ref:`String<class_String>` **get_language** **(** :ref:`int<class_int>` column **)** |const|
- Returns item's text language code.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_get_metadata:
- .. rst-class:: classref-method
- :ref:`Variant<class_Variant>` **get_metadata** **(** :ref:`int<class_int>` column **)** |const|
- Returns the metadata value that was set for the given column using :ref:`set_metadata<class_TreeItem_method_set_metadata>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_get_next:
- .. rst-class:: classref-method
- :ref:`TreeItem<class_TreeItem>` **get_next** **(** **)** |const|
- Returns the next sibling TreeItem in the tree or a null object if there is none.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_get_next_in_tree:
- .. rst-class:: classref-method
- :ref:`TreeItem<class_TreeItem>` **get_next_in_tree** **(** :ref:`bool<class_bool>` wrap=false **)**
- Returns the next TreeItem in the tree (in the context of a depth-first search) or a ``null`` object if there is none.
- If ``wrap`` is enabled, the method will wrap around to the first element in the tree when called on the last element, otherwise it returns ``null``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_get_next_visible:
- .. rst-class:: classref-method
- :ref:`TreeItem<class_TreeItem>` **get_next_visible** **(** :ref:`bool<class_bool>` wrap=false **)**
- Returns the next visible TreeItem in the tree (in the context of a depth-first search) or a ``null`` object if there is none.
- If ``wrap`` is enabled, the method will wrap around to the first visible element in the tree when called on the last visible element, otherwise it returns ``null``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_get_parent:
- .. rst-class:: classref-method
- :ref:`TreeItem<class_TreeItem>` **get_parent** **(** **)** |const|
- Returns the parent TreeItem or a null object if there is none.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_get_prev:
- .. rst-class:: classref-method
- :ref:`TreeItem<class_TreeItem>` **get_prev** **(** **)**
- Returns the previous sibling TreeItem in the tree or a null object if there is none.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_get_prev_in_tree:
- .. rst-class:: classref-method
- :ref:`TreeItem<class_TreeItem>` **get_prev_in_tree** **(** :ref:`bool<class_bool>` wrap=false **)**
- Returns the previous TreeItem in the tree (in the context of a depth-first search) or a ``null`` object if there is none.
- If ``wrap`` is enabled, the method will wrap around to the last element in the tree when called on the first visible element, otherwise it returns ``null``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_get_prev_visible:
- .. rst-class:: classref-method
- :ref:`TreeItem<class_TreeItem>` **get_prev_visible** **(** :ref:`bool<class_bool>` wrap=false **)**
- Returns the previous visible sibling TreeItem in the tree (in the context of a depth-first search) or a ``null`` object if there is none.
- If ``wrap`` is enabled, the method will wrap around to the last visible element in the tree when called on the first visible element, otherwise it returns ``null``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_get_range:
- .. rst-class:: classref-method
- :ref:`float<class_float>` **get_range** **(** :ref:`int<class_int>` column **)** |const|
- Returns the value of a :ref:`CELL_MODE_RANGE<class_TreeItem_constant_CELL_MODE_RANGE>` column.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_get_range_config:
- .. rst-class:: classref-method
- :ref:`Dictionary<class_Dictionary>` **get_range_config** **(** :ref:`int<class_int>` column **)**
- Returns a dictionary containing the range parameters for a given column. The keys are "min", "max", "step", and "expr".
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_get_structured_text_bidi_override:
- .. rst-class:: classref-method
- :ref:`StructuredTextParser<enum_TextServer_StructuredTextParser>` **get_structured_text_bidi_override** **(** :ref:`int<class_int>` column **)** |const|
- .. container:: contribute
- There is currently no description for this method. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_get_structured_text_bidi_override_options:
- .. rst-class:: classref-method
- :ref:`Array<class_Array>` **get_structured_text_bidi_override_options** **(** :ref:`int<class_int>` column **)** |const|
- .. container:: contribute
- There is currently no description for this method. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_get_suffix:
- .. rst-class:: classref-method
- :ref:`String<class_String>` **get_suffix** **(** :ref:`int<class_int>` column **)** |const|
- Gets the suffix string shown after the column value.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_get_text:
- .. rst-class:: classref-method
- :ref:`String<class_String>` **get_text** **(** :ref:`int<class_int>` column **)** |const|
- Returns the given column's text.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_get_text_alignment:
- .. rst-class:: classref-method
- :ref:`HorizontalAlignment<enum_@GlobalScope_HorizontalAlignment>` **get_text_alignment** **(** :ref:`int<class_int>` column **)** |const|
- Returns the given column's text alignment.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_get_text_direction:
- .. rst-class:: classref-method
- :ref:`TextDirection<enum_Control_TextDirection>` **get_text_direction** **(** :ref:`int<class_int>` column **)** |const|
- Returns item's text base writing direction.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_get_text_overrun_behavior:
- .. rst-class:: classref-method
- :ref:`OverrunBehavior<enum_TextServer_OverrunBehavior>` **get_text_overrun_behavior** **(** :ref:`int<class_int>` column **)** |const|
- Returns the clipping behavior when the text exceeds the item's bounding rectangle in the given ``column``. By default it is :ref:`TextServer.OVERRUN_TRIM_ELLIPSIS<class_TextServer_constant_OVERRUN_TRIM_ELLIPSIS>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_get_tooltip_text:
- .. rst-class:: classref-method
- :ref:`String<class_String>` **get_tooltip_text** **(** :ref:`int<class_int>` column **)** |const|
- Returns the given column's tooltip text.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_get_tree:
- .. rst-class:: classref-method
- :ref:`Tree<class_Tree>` **get_tree** **(** **)** |const|
- Returns the :ref:`Tree<class_Tree>` that owns this TreeItem.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_is_any_collapsed:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **is_any_collapsed** **(** :ref:`bool<class_bool>` only_visible=false **)**
- Returns ``true`` if this **TreeItem**, or any of its descendants, is collapsed.
- If ``only_visible`` is ``true`` it ignores non-visible **TreeItem**\ s.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_is_button_disabled:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **is_button_disabled** **(** :ref:`int<class_int>` column, :ref:`int<class_int>` button_index **)** |const|
- Returns ``true`` if the button at index ``button_index`` for the given ``column`` is disabled.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_is_checked:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **is_checked** **(** :ref:`int<class_int>` column **)** |const|
- Returns ``true`` if the given ``column`` is checked.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_is_custom_set_as_button:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **is_custom_set_as_button** **(** :ref:`int<class_int>` column **)** |const|
- .. container:: contribute
- There is currently no description for this method. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_is_edit_multiline:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **is_edit_multiline** **(** :ref:`int<class_int>` column **)** |const|
- Returns ``true`` if the given ``column`` is multiline editable.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_is_editable:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **is_editable** **(** :ref:`int<class_int>` column **)**
- Returns ``true`` if the given ``column`` is editable.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_is_indeterminate:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **is_indeterminate** **(** :ref:`int<class_int>` column **)** |const|
- Returns ``true`` if the given ``column`` is indeterminate.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_is_selectable:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **is_selectable** **(** :ref:`int<class_int>` column **)** |const|
- Returns ``true`` if the given ``column`` is selectable.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_is_selected:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **is_selected** **(** :ref:`int<class_int>` column **)**
- Returns ``true`` if the given ``column`` is selected.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_move_after:
- .. rst-class:: classref-method
- void **move_after** **(** :ref:`TreeItem<class_TreeItem>` item **)**
- Moves this TreeItem right after the given ``item``.
- \ **Note:** You can't move to the root or move the root.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_move_before:
- .. rst-class:: classref-method
- void **move_before** **(** :ref:`TreeItem<class_TreeItem>` item **)**
- Moves this TreeItem right before the given ``item``.
- \ **Note:** You can't move to the root or move the root.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_propagate_check:
- .. rst-class:: classref-method
- void **propagate_check** **(** :ref:`int<class_int>` column, :ref:`bool<class_bool>` emit_signal=true **)**
- Propagates this item's checked status to its children and parents for the given ``column``. It is possible to process the items affected by this method call by connecting to :ref:`Tree.check_propagated_to_item<class_Tree_signal_check_propagated_to_item>`. The order that the items affected will be processed is as follows: the item invoking this method, children of that item, and finally parents of that item. If ``emit_signal`` is ``false``, then :ref:`Tree.check_propagated_to_item<class_Tree_signal_check_propagated_to_item>` will not be emitted.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_remove_child:
- .. rst-class:: classref-method
- void **remove_child** **(** :ref:`TreeItem<class_TreeItem>` child **)**
- Removes the given child **TreeItem** and all its children from the :ref:`Tree<class_Tree>`. Note that it doesn't free the item from memory, so it can be reused later (see :ref:`add_child<class_TreeItem_method_add_child>`). To completely remove a **TreeItem** use :ref:`Object.free<class_Object_method_free>`.
- \ **Note:** If you want to move a child from one :ref:`Tree<class_Tree>` to another, then instead of removing and adding it manually you can use :ref:`move_before<class_TreeItem_method_move_before>` or :ref:`move_after<class_TreeItem_method_move_after>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_select:
- .. rst-class:: classref-method
- void **select** **(** :ref:`int<class_int>` column **)**
- Selects the given ``column``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_set_autowrap_mode:
- .. rst-class:: classref-method
- void **set_autowrap_mode** **(** :ref:`int<class_int>` column, :ref:`AutowrapMode<enum_TextServer_AutowrapMode>` autowrap_mode **)**
- Sets the autowrap mode in the given ``column``. If set to something other than :ref:`TextServer.AUTOWRAP_OFF<class_TextServer_constant_AUTOWRAP_OFF>`, the text gets wrapped inside the cell's bounding rectangle.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_set_button:
- .. rst-class:: classref-method
- void **set_button** **(** :ref:`int<class_int>` column, :ref:`int<class_int>` button_index, :ref:`Texture2D<class_Texture2D>` button **)**
- Sets the given column's button :ref:`Texture2D<class_Texture2D>` at index ``button_index`` to ``button``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_set_button_color:
- .. rst-class:: classref-method
- void **set_button_color** **(** :ref:`int<class_int>` column, :ref:`int<class_int>` button_index, :ref:`Color<class_Color>` color **)**
- Sets the given column's button color at index ``button_index`` to ``color``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_set_button_disabled:
- .. rst-class:: classref-method
- void **set_button_disabled** **(** :ref:`int<class_int>` column, :ref:`int<class_int>` button_index, :ref:`bool<class_bool>` disabled **)**
- If ``true``, disables the button at index ``button_index`` in the given ``column``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_set_button_tooltip_text:
- .. rst-class:: classref-method
- void **set_button_tooltip_text** **(** :ref:`int<class_int>` column, :ref:`int<class_int>` button_index, :ref:`String<class_String>` tooltip **)**
- Sets the tooltip text for the button at index ``button_index`` in the given ``column``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_set_cell_mode:
- .. rst-class:: classref-method
- void **set_cell_mode** **(** :ref:`int<class_int>` column, :ref:`TreeCellMode<enum_TreeItem_TreeCellMode>` mode **)**
- Sets the given column's cell mode to ``mode``. See :ref:`TreeCellMode<enum_TreeItem_TreeCellMode>` constants.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_set_checked:
- .. rst-class:: classref-method
- void **set_checked** **(** :ref:`int<class_int>` column, :ref:`bool<class_bool>` checked **)**
- If ``checked`` is ``true``, the given ``column`` is checked. Clears column's indeterminate status.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_set_collapsed_recursive:
- .. rst-class:: classref-method
- void **set_collapsed_recursive** **(** :ref:`bool<class_bool>` enable **)**
- Collapses or uncollapses this **TreeItem** and all the descendants of this item.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_set_custom_as_button:
- .. rst-class:: classref-method
- void **set_custom_as_button** **(** :ref:`int<class_int>` column, :ref:`bool<class_bool>` enable **)**
- .. container:: contribute
- There is currently no description for this method. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_set_custom_bg_color:
- .. rst-class:: classref-method
- void **set_custom_bg_color** **(** :ref:`int<class_int>` column, :ref:`Color<class_Color>` color, :ref:`bool<class_bool>` just_outline=false **)**
- Sets the given column's custom background color and whether to just use it as an outline.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_set_custom_color:
- .. rst-class:: classref-method
- void **set_custom_color** **(** :ref:`int<class_int>` column, :ref:`Color<class_Color>` color **)**
- Sets the given column's custom color.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_set_custom_draw:
- .. rst-class:: classref-method
- void **set_custom_draw** **(** :ref:`int<class_int>` column, :ref:`Object<class_Object>` object, :ref:`StringName<class_StringName>` callback **)**
- Sets the given column's custom draw callback to ``callback`` method on ``object``.
- The ``callback`` should accept two arguments: the **TreeItem** that is drawn and its position and size as a :ref:`Rect2<class_Rect2>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_set_custom_font:
- .. rst-class:: classref-method
- void **set_custom_font** **(** :ref:`int<class_int>` column, :ref:`Font<class_Font>` font **)**
- Sets custom font used to draw text in the given ``column``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_set_custom_font_size:
- .. rst-class:: classref-method
- void **set_custom_font_size** **(** :ref:`int<class_int>` column, :ref:`int<class_int>` font_size **)**
- Sets custom font size used to draw text in the given ``column``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_set_edit_multiline:
- .. rst-class:: classref-method
- void **set_edit_multiline** **(** :ref:`int<class_int>` column, :ref:`bool<class_bool>` multiline **)**
- If ``multiline`` is ``true``, the given ``column`` is multiline editable.
- \ **Note:** This option only affects the type of control (:ref:`LineEdit<class_LineEdit>` or :ref:`TextEdit<class_TextEdit>`) that appears when editing the column. You can set multiline values with :ref:`set_text<class_TreeItem_method_set_text>` even if the column is not multiline editable.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_set_editable:
- .. rst-class:: classref-method
- void **set_editable** **(** :ref:`int<class_int>` column, :ref:`bool<class_bool>` enabled **)**
- If ``enabled`` is ``true``, the given ``column`` is editable.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_set_expand_right:
- .. rst-class:: classref-method
- void **set_expand_right** **(** :ref:`int<class_int>` column, :ref:`bool<class_bool>` enable **)**
- If ``enable`` is ``true``, the given ``column`` is expanded to the right.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_set_icon:
- .. rst-class:: classref-method
- void **set_icon** **(** :ref:`int<class_int>` column, :ref:`Texture2D<class_Texture2D>` texture **)**
- Sets the given column's icon :ref:`Texture2D<class_Texture2D>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_set_icon_max_width:
- .. rst-class:: classref-method
- void **set_icon_max_width** **(** :ref:`int<class_int>` column, :ref:`int<class_int>` width **)**
- Sets the maximum allowed width of the icon in the given ``column``. This limit is applied on top of the default size of the icon and on top of :ref:`Tree.icon_max_width<class_Tree_theme_constant_icon_max_width>`. The height is adjusted according to the icon's ratio.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_set_icon_modulate:
- .. rst-class:: classref-method
- void **set_icon_modulate** **(** :ref:`int<class_int>` column, :ref:`Color<class_Color>` modulate **)**
- Modulates the given column's icon with ``modulate``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_set_icon_region:
- .. rst-class:: classref-method
- void **set_icon_region** **(** :ref:`int<class_int>` column, :ref:`Rect2<class_Rect2>` region **)**
- Sets the given column's icon's texture region.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_set_indeterminate:
- .. rst-class:: classref-method
- void **set_indeterminate** **(** :ref:`int<class_int>` column, :ref:`bool<class_bool>` indeterminate **)**
- If ``indeterminate`` is ``true``, the given ``column`` is marked indeterminate.
- \ **Note:** If set ``true`` from ``false``, then column is cleared of checked status.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_set_language:
- .. rst-class:: classref-method
- void **set_language** **(** :ref:`int<class_int>` column, :ref:`String<class_String>` language **)**
- Sets language code of item's text used for line-breaking and text shaping algorithms, if left empty current locale is used instead.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_set_metadata:
- .. rst-class:: classref-method
- void **set_metadata** **(** :ref:`int<class_int>` column, :ref:`Variant<class_Variant>` meta **)**
- Sets the metadata value for the given column, which can be retrieved later using :ref:`get_metadata<class_TreeItem_method_get_metadata>`. This can be used, for example, to store a reference to the original data.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_set_range:
- .. rst-class:: classref-method
- void **set_range** **(** :ref:`int<class_int>` column, :ref:`float<class_float>` value **)**
- Sets the value of a :ref:`CELL_MODE_RANGE<class_TreeItem_constant_CELL_MODE_RANGE>` column.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_set_range_config:
- .. rst-class:: classref-method
- void **set_range_config** **(** :ref:`int<class_int>` column, :ref:`float<class_float>` min, :ref:`float<class_float>` max, :ref:`float<class_float>` step, :ref:`bool<class_bool>` expr=false **)**
- Sets the range of accepted values for a column. The column must be in the :ref:`CELL_MODE_RANGE<class_TreeItem_constant_CELL_MODE_RANGE>` mode.
- If ``expr`` is ``true``, the edit mode slider will use an exponential scale as with :ref:`Range.exp_edit<class_Range_property_exp_edit>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_set_selectable:
- .. rst-class:: classref-method
- void **set_selectable** **(** :ref:`int<class_int>` column, :ref:`bool<class_bool>` selectable **)**
- If ``selectable`` is ``true``, the given ``column`` is selectable.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_set_structured_text_bidi_override:
- .. rst-class:: classref-method
- void **set_structured_text_bidi_override** **(** :ref:`int<class_int>` column, :ref:`StructuredTextParser<enum_TextServer_StructuredTextParser>` parser **)**
- .. container:: contribute
- There is currently no description for this method. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_set_structured_text_bidi_override_options:
- .. rst-class:: classref-method
- void **set_structured_text_bidi_override_options** **(** :ref:`int<class_int>` column, :ref:`Array<class_Array>` args **)**
- .. container:: contribute
- There is currently no description for this method. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_set_suffix:
- .. rst-class:: classref-method
- void **set_suffix** **(** :ref:`int<class_int>` column, :ref:`String<class_String>` text **)**
- Sets a string to be shown after a column's value (for example, a unit abbreviation).
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_set_text:
- .. rst-class:: classref-method
- void **set_text** **(** :ref:`int<class_int>` column, :ref:`String<class_String>` text **)**
- Sets the given column's text value.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_set_text_alignment:
- .. rst-class:: classref-method
- void **set_text_alignment** **(** :ref:`int<class_int>` column, :ref:`HorizontalAlignment<enum_@GlobalScope_HorizontalAlignment>` text_alignment **)**
- Sets the given column's text alignment. See :ref:`HorizontalAlignment<enum_@GlobalScope_HorizontalAlignment>` for possible values.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_set_text_direction:
- .. rst-class:: classref-method
- void **set_text_direction** **(** :ref:`int<class_int>` column, :ref:`TextDirection<enum_Control_TextDirection>` direction **)**
- Sets item's text base writing direction.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_set_text_overrun_behavior:
- .. rst-class:: classref-method
- void **set_text_overrun_behavior** **(** :ref:`int<class_int>` column, :ref:`OverrunBehavior<enum_TextServer_OverrunBehavior>` overrun_behavior **)**
- Sets the clipping behavior when the text exceeds the item's bounding rectangle in the given ``column``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_set_tooltip_text:
- .. rst-class:: classref-method
- void **set_tooltip_text** **(** :ref:`int<class_int>` column, :ref:`String<class_String>` tooltip **)**
- Sets the given column's tooltip text.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_uncollapse_tree:
- .. rst-class:: classref-method
- void **uncollapse_tree** **(** **)**
- .. container:: contribute
- There is currently no description for this method. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
- .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
- .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
- .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
- .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
- .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
- .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
- .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
|