123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749 |
- :github_url: hide
- .. DO NOT EDIT THIS FILE!!!
- .. Generated automatically from Godot engine sources.
- .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
- .. XML source: https://github.com/godotengine/godot/tree/master/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>`\ (\ column\: :ref:`int<class_int>`, button\: :ref:`Texture2D<class_Texture2D>`, id\: :ref:`int<class_int>` = -1, disabled\: :ref:`bool<class_bool>` = false, tooltip_text\: :ref:`String<class_String>` = ""\ ) |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`add_child<class_TreeItem_method_add_child>`\ (\ child\: :ref:`TreeItem<class_TreeItem>`\ ) |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`call_recursive<class_TreeItem_method_call_recursive>`\ (\ method\: :ref:`StringName<class_StringName>`, ...\ ) |vararg| |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`clear_buttons<class_TreeItem_method_clear_buttons>`\ (\ ) |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`clear_custom_bg_color<class_TreeItem_method_clear_custom_bg_color>`\ (\ column\: :ref:`int<class_int>`\ ) |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`clear_custom_color<class_TreeItem_method_clear_custom_color>`\ (\ column\: :ref:`int<class_int>`\ ) |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`TreeItem<class_TreeItem>` | :ref:`create_child<class_TreeItem_method_create_child>`\ (\ index\: :ref:`int<class_int>` = -1\ ) |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`deselect<class_TreeItem_method_deselect>`\ (\ column\: :ref:`int<class_int>`\ ) |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`erase_button<class_TreeItem_method_erase_button>`\ (\ column\: :ref:`int<class_int>`, button_index\: :ref:`int<class_int>`\ ) |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`AutoTranslateMode<enum_Node_AutoTranslateMode>` | :ref:`get_auto_translate_mode<class_TreeItem_method_get_auto_translate_mode>`\ (\ column\: :ref:`int<class_int>`\ ) |const| |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`AutowrapMode<enum_TextServer_AutowrapMode>` | :ref:`get_autowrap_mode<class_TreeItem_method_get_autowrap_mode>`\ (\ column\: :ref:`int<class_int>`\ ) |const| |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Texture2D<class_Texture2D>` | :ref:`get_button<class_TreeItem_method_get_button>`\ (\ column\: :ref:`int<class_int>`, button_index\: :ref:`int<class_int>`\ ) |const| |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`get_button_by_id<class_TreeItem_method_get_button_by_id>`\ (\ column\: :ref:`int<class_int>`, id\: :ref:`int<class_int>`\ ) |const| |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Color<class_Color>` | :ref:`get_button_color<class_TreeItem_method_get_button_color>`\ (\ column\: :ref:`int<class_int>`, id\: :ref:`int<class_int>`\ ) |const| |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`get_button_count<class_TreeItem_method_get_button_count>`\ (\ column\: :ref:`int<class_int>`\ ) |const| |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`get_button_id<class_TreeItem_method_get_button_id>`\ (\ column\: :ref:`int<class_int>`, button_index\: :ref:`int<class_int>`\ ) |const| |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`String<class_String>` | :ref:`get_button_tooltip_text<class_TreeItem_method_get_button_tooltip_text>`\ (\ column\: :ref:`int<class_int>`, button_index\: :ref:`int<class_int>`\ ) |const| |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`TreeCellMode<enum_TreeItem_TreeCellMode>` | :ref:`get_cell_mode<class_TreeItem_method_get_cell_mode>`\ (\ column\: :ref:`int<class_int>`\ ) |const| |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`TreeItem<class_TreeItem>` | :ref:`get_child<class_TreeItem_method_get_child>`\ (\ index\: :ref:`int<class_int>`\ ) |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`get_child_count<class_TreeItem_method_get_child_count>`\ (\ ) |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Array<class_Array>`\[: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>`\ (\ column\: :ref:`int<class_int>`\ ) |const| |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Color<class_Color>` | :ref:`get_custom_color<class_TreeItem_method_get_custom_color>`\ (\ column\: :ref:`int<class_int>`\ ) |const| |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Callable<class_Callable>` | :ref:`get_custom_draw_callback<class_TreeItem_method_get_custom_draw_callback>`\ (\ column\: :ref:`int<class_int>`\ ) |const| |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Font<class_Font>` | :ref:`get_custom_font<class_TreeItem_method_get_custom_font>`\ (\ column\: :ref:`int<class_int>`\ ) |const| |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`get_custom_font_size<class_TreeItem_method_get_custom_font_size>`\ (\ column\: :ref:`int<class_int>`\ ) |const| |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`get_expand_right<class_TreeItem_method_get_expand_right>`\ (\ column\: :ref:`int<class_int>`\ ) |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>`\ (\ column\: :ref:`int<class_int>`\ ) |const| |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`get_icon_max_width<class_TreeItem_method_get_icon_max_width>`\ (\ column\: :ref:`int<class_int>`\ ) |const| |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Color<class_Color>` | :ref:`get_icon_modulate<class_TreeItem_method_get_icon_modulate>`\ (\ column\: :ref:`int<class_int>`\ ) |const| |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Texture2D<class_Texture2D>` | :ref:`get_icon_overlay<class_TreeItem_method_get_icon_overlay>`\ (\ column\: :ref:`int<class_int>`\ ) |const| |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Rect2<class_Rect2>` | :ref:`get_icon_region<class_TreeItem_method_get_icon_region>`\ (\ column\: :ref:`int<class_int>`\ ) |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>`\ (\ column\: :ref:`int<class_int>`\ ) |const| |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Variant<class_Variant>` | :ref:`get_metadata<class_TreeItem_method_get_metadata>`\ (\ column\: :ref:`int<class_int>`\ ) |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>`\ (\ wrap\: :ref:`bool<class_bool>` = false\ ) |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`TreeItem<class_TreeItem>` | :ref:`get_next_visible<class_TreeItem_method_get_next_visible>`\ (\ wrap\: :ref:`bool<class_bool>` = 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>`\ (\ wrap\: :ref:`bool<class_bool>` = false\ ) |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`TreeItem<class_TreeItem>` | :ref:`get_prev_visible<class_TreeItem_method_get_prev_visible>`\ (\ wrap\: :ref:`bool<class_bool>` = false\ ) |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`float<class_float>` | :ref:`get_range<class_TreeItem_method_get_range>`\ (\ column\: :ref:`int<class_int>`\ ) |const| |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Dictionary<class_Dictionary>` | :ref:`get_range_config<class_TreeItem_method_get_range_config>`\ (\ column\: :ref:`int<class_int>`\ ) |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`StructuredTextParser<enum_TextServer_StructuredTextParser>` | :ref:`get_structured_text_bidi_override<class_TreeItem_method_get_structured_text_bidi_override>`\ (\ column\: :ref:`int<class_int>`\ ) |const| |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Array<class_Array>` | :ref:`get_structured_text_bidi_override_options<class_TreeItem_method_get_structured_text_bidi_override_options>`\ (\ column\: :ref:`int<class_int>`\ ) |const| |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`String<class_String>` | :ref:`get_suffix<class_TreeItem_method_get_suffix>`\ (\ column\: :ref:`int<class_int>`\ ) |const| |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`String<class_String>` | :ref:`get_text<class_TreeItem_method_get_text>`\ (\ column\: :ref:`int<class_int>`\ ) |const| |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`HorizontalAlignment<enum_@GlobalScope_HorizontalAlignment>` | :ref:`get_text_alignment<class_TreeItem_method_get_text_alignment>`\ (\ column\: :ref:`int<class_int>`\ ) |const| |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`TextDirection<enum_Control_TextDirection>` | :ref:`get_text_direction<class_TreeItem_method_get_text_direction>`\ (\ column\: :ref:`int<class_int>`\ ) |const| |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`OverrunBehavior<enum_TextServer_OverrunBehavior>` | :ref:`get_text_overrun_behavior<class_TreeItem_method_get_text_overrun_behavior>`\ (\ column\: :ref:`int<class_int>`\ ) |const| |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`String<class_String>` | :ref:`get_tooltip_text<class_TreeItem_method_get_tooltip_text>`\ (\ column\: :ref:`int<class_int>`\ ) |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>`\ (\ only_visible\: :ref:`bool<class_bool>` = false\ ) |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`is_button_disabled<class_TreeItem_method_is_button_disabled>`\ (\ column\: :ref:`int<class_int>`, button_index\: :ref:`int<class_int>`\ ) |const| |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`is_checked<class_TreeItem_method_is_checked>`\ (\ column\: :ref:`int<class_int>`\ ) |const| |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`is_custom_set_as_button<class_TreeItem_method_is_custom_set_as_button>`\ (\ column\: :ref:`int<class_int>`\ ) |const| |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`is_edit_multiline<class_TreeItem_method_is_edit_multiline>`\ (\ column\: :ref:`int<class_int>`\ ) |const| |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`is_editable<class_TreeItem_method_is_editable>`\ (\ column\: :ref:`int<class_int>`\ ) |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`is_indeterminate<class_TreeItem_method_is_indeterminate>`\ (\ column\: :ref:`int<class_int>`\ ) |const| |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`is_selectable<class_TreeItem_method_is_selectable>`\ (\ column\: :ref:`int<class_int>`\ ) |const| |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`is_selected<class_TreeItem_method_is_selected>`\ (\ column\: :ref:`int<class_int>`\ ) |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`is_visible_in_tree<class_TreeItem_method_is_visible_in_tree>`\ (\ ) |const| |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`move_after<class_TreeItem_method_move_after>`\ (\ item\: :ref:`TreeItem<class_TreeItem>`\ ) |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`move_before<class_TreeItem_method_move_before>`\ (\ item\: :ref:`TreeItem<class_TreeItem>`\ ) |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`propagate_check<class_TreeItem_method_propagate_check>`\ (\ column\: :ref:`int<class_int>`, emit_signal\: :ref:`bool<class_bool>` = true\ ) |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`remove_child<class_TreeItem_method_remove_child>`\ (\ child\: :ref:`TreeItem<class_TreeItem>`\ ) |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`select<class_TreeItem_method_select>`\ (\ column\: :ref:`int<class_int>`\ ) |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_auto_translate_mode<class_TreeItem_method_set_auto_translate_mode>`\ (\ column\: :ref:`int<class_int>`, mode\: :ref:`AutoTranslateMode<enum_Node_AutoTranslateMode>`\ ) |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_autowrap_mode<class_TreeItem_method_set_autowrap_mode>`\ (\ column\: :ref:`int<class_int>`, autowrap_mode\: :ref:`AutowrapMode<enum_TextServer_AutowrapMode>`\ ) |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_button<class_TreeItem_method_set_button>`\ (\ column\: :ref:`int<class_int>`, button_index\: :ref:`int<class_int>`, button\: :ref:`Texture2D<class_Texture2D>`\ ) |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_button_color<class_TreeItem_method_set_button_color>`\ (\ column\: :ref:`int<class_int>`, button_index\: :ref:`int<class_int>`, color\: :ref:`Color<class_Color>`\ ) |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_button_disabled<class_TreeItem_method_set_button_disabled>`\ (\ column\: :ref:`int<class_int>`, button_index\: :ref:`int<class_int>`, disabled\: :ref:`bool<class_bool>`\ ) |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_button_tooltip_text<class_TreeItem_method_set_button_tooltip_text>`\ (\ column\: :ref:`int<class_int>`, button_index\: :ref:`int<class_int>`, tooltip\: :ref:`String<class_String>`\ ) |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_cell_mode<class_TreeItem_method_set_cell_mode>`\ (\ column\: :ref:`int<class_int>`, mode\: :ref:`TreeCellMode<enum_TreeItem_TreeCellMode>`\ ) |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_checked<class_TreeItem_method_set_checked>`\ (\ column\: :ref:`int<class_int>`, checked\: :ref:`bool<class_bool>`\ ) |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_collapsed_recursive<class_TreeItem_method_set_collapsed_recursive>`\ (\ enable\: :ref:`bool<class_bool>`\ ) |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_custom_as_button<class_TreeItem_method_set_custom_as_button>`\ (\ column\: :ref:`int<class_int>`, enable\: :ref:`bool<class_bool>`\ ) |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_custom_bg_color<class_TreeItem_method_set_custom_bg_color>`\ (\ column\: :ref:`int<class_int>`, color\: :ref:`Color<class_Color>`, just_outline\: :ref:`bool<class_bool>` = false\ ) |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_custom_color<class_TreeItem_method_set_custom_color>`\ (\ column\: :ref:`int<class_int>`, color\: :ref:`Color<class_Color>`\ ) |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_custom_draw<class_TreeItem_method_set_custom_draw>`\ (\ column\: :ref:`int<class_int>`, object\: :ref:`Object<class_Object>`, callback\: :ref:`StringName<class_StringName>`\ ) |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_custom_draw_callback<class_TreeItem_method_set_custom_draw_callback>`\ (\ column\: :ref:`int<class_int>`, callback\: :ref:`Callable<class_Callable>`\ ) |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_custom_font<class_TreeItem_method_set_custom_font>`\ (\ column\: :ref:`int<class_int>`, font\: :ref:`Font<class_Font>`\ ) |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_custom_font_size<class_TreeItem_method_set_custom_font_size>`\ (\ column\: :ref:`int<class_int>`, font_size\: :ref:`int<class_int>`\ ) |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_edit_multiline<class_TreeItem_method_set_edit_multiline>`\ (\ column\: :ref:`int<class_int>`, multiline\: :ref:`bool<class_bool>`\ ) |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_editable<class_TreeItem_method_set_editable>`\ (\ column\: :ref:`int<class_int>`, enabled\: :ref:`bool<class_bool>`\ ) |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_expand_right<class_TreeItem_method_set_expand_right>`\ (\ column\: :ref:`int<class_int>`, enable\: :ref:`bool<class_bool>`\ ) |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_icon<class_TreeItem_method_set_icon>`\ (\ column\: :ref:`int<class_int>`, texture\: :ref:`Texture2D<class_Texture2D>`\ ) |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_icon_max_width<class_TreeItem_method_set_icon_max_width>`\ (\ column\: :ref:`int<class_int>`, width\: :ref:`int<class_int>`\ ) |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_icon_modulate<class_TreeItem_method_set_icon_modulate>`\ (\ column\: :ref:`int<class_int>`, modulate\: :ref:`Color<class_Color>`\ ) |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_icon_overlay<class_TreeItem_method_set_icon_overlay>`\ (\ column\: :ref:`int<class_int>`, texture\: :ref:`Texture2D<class_Texture2D>`\ ) |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_icon_region<class_TreeItem_method_set_icon_region>`\ (\ column\: :ref:`int<class_int>`, region\: :ref:`Rect2<class_Rect2>`\ ) |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_indeterminate<class_TreeItem_method_set_indeterminate>`\ (\ column\: :ref:`int<class_int>`, indeterminate\: :ref:`bool<class_bool>`\ ) |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_language<class_TreeItem_method_set_language>`\ (\ column\: :ref:`int<class_int>`, language\: :ref:`String<class_String>`\ ) |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_metadata<class_TreeItem_method_set_metadata>`\ (\ column\: :ref:`int<class_int>`, meta\: :ref:`Variant<class_Variant>`\ ) |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_range<class_TreeItem_method_set_range>`\ (\ column\: :ref:`int<class_int>`, value\: :ref:`float<class_float>`\ ) |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_range_config<class_TreeItem_method_set_range_config>`\ (\ column\: :ref:`int<class_int>`, min\: :ref:`float<class_float>`, max\: :ref:`float<class_float>`, step\: :ref:`float<class_float>`, expr\: :ref:`bool<class_bool>` = false\ ) |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_selectable<class_TreeItem_method_set_selectable>`\ (\ column\: :ref:`int<class_int>`, selectable\: :ref:`bool<class_bool>`\ ) |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_structured_text_bidi_override<class_TreeItem_method_set_structured_text_bidi_override>`\ (\ column\: :ref:`int<class_int>`, parser\: :ref:`StructuredTextParser<enum_TextServer_StructuredTextParser>`\ ) |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_structured_text_bidi_override_options<class_TreeItem_method_set_structured_text_bidi_override_options>`\ (\ column\: :ref:`int<class_int>`, args\: :ref:`Array<class_Array>`\ ) |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_suffix<class_TreeItem_method_set_suffix>`\ (\ column\: :ref:`int<class_int>`, text\: :ref:`String<class_String>`\ ) |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_text<class_TreeItem_method_set_text>`\ (\ column\: :ref:`int<class_int>`, text\: :ref:`String<class_String>`\ ) |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_text_alignment<class_TreeItem_method_set_text_alignment>`\ (\ column\: :ref:`int<class_int>`, text_alignment\: :ref:`HorizontalAlignment<enum_@GlobalScope_HorizontalAlignment>`\ ) |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_text_direction<class_TreeItem_method_set_text_direction>`\ (\ column\: :ref:`int<class_int>`, direction\: :ref:`TextDirection<enum_Control_TextDirection>`\ ) |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_text_overrun_behavior<class_TreeItem_method_set_text_overrun_behavior>`\ (\ column\: :ref:`int<class_int>`, overrun_behavior\: :ref:`OverrunBehavior<enum_TextServer_OverrunBehavior>`\ ) |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_tooltip_text<class_TreeItem_method_set_tooltip_text>`\ (\ column\: :ref:`int<class_int>`, tooltip\: :ref:`String<class_String>`\ ) |
- +-------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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**: :ref:`๐<enum_TreeItem_TreeCellMode>`
- .. _class_TreeItem_constant_CELL_MODE_STRING:
- .. rst-class:: classref-enumeration-constant
- :ref:`TreeCellMode<enum_TreeItem_TreeCellMode>` **CELL_MODE_STRING** = ``0``
- Cell shows a string label, optionally with an icon. When editable, the text can be edited using a :ref:`LineEdit<class_LineEdit>`, or a :ref:`TextEdit<class_TextEdit>` popup if :ref:`set_edit_multiline()<class_TreeItem_method_set_edit_multiline>` is used.
- .. _class_TreeItem_constant_CELL_MODE_CHECK:
- .. rst-class:: classref-enumeration-constant
- :ref:`TreeCellMode<enum_TreeItem_TreeCellMode>` **CELL_MODE_CHECK** = ``1``
- Cell shows a checkbox, optionally with text and an icon. The checkbox can be pressed, released, or indeterminate (via :ref:`set_indeterminate()<class_TreeItem_method_set_indeterminate>`). The checkbox can't be clicked unless the cell is editable.
- .. _class_TreeItem_constant_CELL_MODE_RANGE:
- .. rst-class:: classref-enumeration-constant
- :ref:`TreeCellMode<enum_TreeItem_TreeCellMode>` **CELL_MODE_RANGE** = ``2``
- Cell shows a numeric range. When editable, it can be edited using a range slider. Use :ref:`set_range()<class_TreeItem_method_set_range>` to set the value and :ref:`set_range_config()<class_TreeItem_method_set_range_config>` to configure the range.
- This cell can also be used in a text dropdown mode when you assign a text with :ref:`set_text()<class_TreeItem_method_set_text>`. Separate options with a comma, e.g. ``"Option1,Option2,Option3"``.
- .. _class_TreeItem_constant_CELL_MODE_ICON:
- .. rst-class:: classref-enumeration-constant
- :ref:`TreeCellMode<enum_TreeItem_TreeCellMode>` **CELL_MODE_ICON** = ``3``
- Cell shows an icon. It can't be edited nor display text. The icon is always centered within the cell.
- .. _class_TreeItem_constant_CELL_MODE_CUSTOM:
- .. rst-class:: classref-enumeration-constant
- :ref:`TreeCellMode<enum_TreeItem_TreeCellMode>` **CELL_MODE_CUSTOM** = ``4``
- Cell shows as a clickable button. It will display an arrow similar to :ref:`OptionButton<class_OptionButton>`, but doesn't feature a dropdown (for that you can use :ref:`CELL_MODE_RANGE<class_TreeItem_constant_CELL_MODE_RANGE>`). Clicking the button emits the :ref:`Tree.item_edited<class_Tree_signal_item_edited>` signal. The button is flat by default, you can use :ref:`set_custom_as_button()<class_TreeItem_method_set_custom_as_button>` to display it with a :ref:`StyleBox<class_StyleBox>`.
- This mode also supports custom drawing using :ref:`set_custom_draw_callback()<class_TreeItem_method_set_custom_draw_callback>`.
- .. 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** :ref:`๐<class_TreeItem_property_collapsed>`
- .. rst-class:: classref-property-setget
- - |void| **set_collapsed**\ (\ value\: :ref:`bool<class_bool>`\ )
- - :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** :ref:`๐<class_TreeItem_property_custom_minimum_height>`
- .. rst-class:: classref-property-setget
- - |void| **set_custom_minimum_height**\ (\ value\: :ref:`int<class_int>`\ )
- - :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** :ref:`๐<class_TreeItem_property_disable_folding>`
- .. rst-class:: classref-property-setget
- - |void| **set_disable_folding**\ (\ value\: :ref:`bool<class_bool>`\ )
- - :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** :ref:`๐<class_TreeItem_property_visible>`
- .. rst-class:: classref-property-setget
- - |void| **set_visible**\ (\ value\: :ref:`bool<class_bool>`\ )
- - :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**\ (\ column\: :ref:`int<class_int>`, button\: :ref:`Texture2D<class_Texture2D>`, id\: :ref:`int<class_int>` = -1, disabled\: :ref:`bool<class_bool>` = false, tooltip_text\: :ref:`String<class_String>` = ""\ ) :ref:`๐<class_TreeItem_method_add_button>`
- Adds a button with :ref:`Texture2D<class_Texture2D>` ``button`` to the end of the cell 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**\ (\ child\: :ref:`TreeItem<class_TreeItem>`\ ) :ref:`๐<class_TreeItem_method_add_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**\ (\ method\: :ref:`StringName<class_StringName>`, ...\ ) |vararg| :ref:`๐<class_TreeItem_method_call_recursive>`
- 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_buttons:
- .. rst-class:: classref-method
- |void| **clear_buttons**\ (\ ) :ref:`๐<class_TreeItem_method_clear_buttons>`
- Removes all buttons from all columns of this item.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_clear_custom_bg_color:
- .. rst-class:: classref-method
- |void| **clear_custom_bg_color**\ (\ column\: :ref:`int<class_int>`\ ) :ref:`๐<class_TreeItem_method_clear_custom_bg_color>`
- 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**\ (\ column\: :ref:`int<class_int>`\ ) :ref:`๐<class_TreeItem_method_clear_custom_color>`
- 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**\ (\ index\: :ref:`int<class_int>` = -1\ ) :ref:`๐<class_TreeItem_method_create_child>`
- 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**\ (\ column\: :ref:`int<class_int>`\ ) :ref:`๐<class_TreeItem_method_deselect>`
- Deselects the given column.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_erase_button:
- .. rst-class:: classref-method
- |void| **erase_button**\ (\ column\: :ref:`int<class_int>`, button_index\: :ref:`int<class_int>`\ ) :ref:`๐<class_TreeItem_method_erase_button>`
- Removes the button at index ``button_index`` in column ``column``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_get_auto_translate_mode:
- .. rst-class:: classref-method
- :ref:`AutoTranslateMode<enum_Node_AutoTranslateMode>` **get_auto_translate_mode**\ (\ column\: :ref:`int<class_int>`\ ) |const| :ref:`๐<class_TreeItem_method_get_auto_translate_mode>`
- Returns the column's auto translate mode.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_get_autowrap_mode:
- .. rst-class:: classref-method
- :ref:`AutowrapMode<enum_TextServer_AutowrapMode>` **get_autowrap_mode**\ (\ column\: :ref:`int<class_int>`\ ) |const| :ref:`๐<class_TreeItem_method_get_autowrap_mode>`
- 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**\ (\ column\: :ref:`int<class_int>`, button_index\: :ref:`int<class_int>`\ ) |const| :ref:`๐<class_TreeItem_method_get_button>`
- 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**\ (\ column\: :ref:`int<class_int>`, id\: :ref:`int<class_int>`\ ) |const| :ref:`๐<class_TreeItem_method_get_button_by_id>`
- 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_color:
- .. rst-class:: classref-method
- :ref:`Color<class_Color>` **get_button_color**\ (\ column\: :ref:`int<class_int>`, id\: :ref:`int<class_int>`\ ) |const| :ref:`๐<class_TreeItem_method_get_button_color>`
- Returns the color of the button with ID ``id`` in column ``column``. If the specified button does not exist, returns :ref:`Color.BLACK<class_Color_constant_BLACK>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_get_button_count:
- .. rst-class:: classref-method
- :ref:`int<class_int>` **get_button_count**\ (\ column\: :ref:`int<class_int>`\ ) |const| :ref:`๐<class_TreeItem_method_get_button_count>`
- 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**\ (\ column\: :ref:`int<class_int>`, button_index\: :ref:`int<class_int>`\ ) |const| :ref:`๐<class_TreeItem_method_get_button_id>`
- 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**\ (\ column\: :ref:`int<class_int>`, button_index\: :ref:`int<class_int>`\ ) |const| :ref:`๐<class_TreeItem_method_get_button_tooltip_text>`
- 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**\ (\ column\: :ref:`int<class_int>`\ ) |const| :ref:`๐<class_TreeItem_method_get_cell_mode>`
- 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**\ (\ index\: :ref:`int<class_int>`\ ) :ref:`๐<class_TreeItem_method_get_child>`
- 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**\ (\ ) :ref:`๐<class_TreeItem_method_get_child_count>`
- Returns the number of child items.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_get_children:
- .. rst-class:: classref-method
- :ref:`Array<class_Array>`\[:ref:`TreeItem<class_TreeItem>`\] **get_children**\ (\ ) :ref:`๐<class_TreeItem_method_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**\ (\ column\: :ref:`int<class_int>`\ ) |const| :ref:`๐<class_TreeItem_method_get_custom_bg_color>`
- 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**\ (\ column\: :ref:`int<class_int>`\ ) |const| :ref:`๐<class_TreeItem_method_get_custom_color>`
- Returns the custom color of column ``column``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_get_custom_draw_callback:
- .. rst-class:: classref-method
- :ref:`Callable<class_Callable>` **get_custom_draw_callback**\ (\ column\: :ref:`int<class_int>`\ ) |const| :ref:`๐<class_TreeItem_method_get_custom_draw_callback>`
- Returns the custom callback 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**\ (\ column\: :ref:`int<class_int>`\ ) |const| :ref:`๐<class_TreeItem_method_get_custom_font>`
- 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**\ (\ column\: :ref:`int<class_int>`\ ) |const| :ref:`๐<class_TreeItem_method_get_custom_font_size>`
- 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**\ (\ column\: :ref:`int<class_int>`\ ) |const| :ref:`๐<class_TreeItem_method_get_expand_right>`
- 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| :ref:`๐<class_TreeItem_method_get_first_child>`
- 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**\ (\ column\: :ref:`int<class_int>`\ ) |const| :ref:`๐<class_TreeItem_method_get_icon>`
- 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**\ (\ column\: :ref:`int<class_int>`\ ) |const| :ref:`๐<class_TreeItem_method_get_icon_max_width>`
- 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**\ (\ column\: :ref:`int<class_int>`\ ) |const| :ref:`๐<class_TreeItem_method_get_icon_modulate>`
- Returns the :ref:`Color<class_Color>` modulating the column's icon.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_get_icon_overlay:
- .. rst-class:: classref-method
- :ref:`Texture2D<class_Texture2D>` **get_icon_overlay**\ (\ column\: :ref:`int<class_int>`\ ) |const| :ref:`๐<class_TreeItem_method_get_icon_overlay>`
- Returns the given column's icon overlay :ref:`Texture2D<class_Texture2D>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_get_icon_region:
- .. rst-class:: classref-method
- :ref:`Rect2<class_Rect2>` **get_icon_region**\ (\ column\: :ref:`int<class_int>`\ ) |const| :ref:`๐<class_TreeItem_method_get_icon_region>`
- 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**\ (\ ) :ref:`๐<class_TreeItem_method_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**\ (\ column\: :ref:`int<class_int>`\ ) |const| :ref:`๐<class_TreeItem_method_get_language>`
- 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**\ (\ column\: :ref:`int<class_int>`\ ) |const| :ref:`๐<class_TreeItem_method_get_metadata>`
- 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| :ref:`๐<class_TreeItem_method_get_next>`
- 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**\ (\ wrap\: :ref:`bool<class_bool>` = false\ ) :ref:`๐<class_TreeItem_method_get_next_in_tree>`
- 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**\ (\ wrap\: :ref:`bool<class_bool>` = false\ ) :ref:`๐<class_TreeItem_method_get_next_visible>`
- 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| :ref:`๐<class_TreeItem_method_get_parent>`
- 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**\ (\ ) :ref:`๐<class_TreeItem_method_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**\ (\ wrap\: :ref:`bool<class_bool>` = false\ ) :ref:`๐<class_TreeItem_method_get_prev_in_tree>`
- 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**\ (\ wrap\: :ref:`bool<class_bool>` = false\ ) :ref:`๐<class_TreeItem_method_get_prev_visible>`
- 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**\ (\ column\: :ref:`int<class_int>`\ ) |const| :ref:`๐<class_TreeItem_method_get_range>`
- 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**\ (\ column\: :ref:`int<class_int>`\ ) :ref:`๐<class_TreeItem_method_get_range_config>`
- 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**\ (\ column\: :ref:`int<class_int>`\ ) |const| :ref:`๐<class_TreeItem_method_get_structured_text_bidi_override>`
- Returns the BiDi algorithm override set for this cell.
- .. 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**\ (\ column\: :ref:`int<class_int>`\ ) |const| :ref:`๐<class_TreeItem_method_get_structured_text_bidi_override_options>`
- Returns the additional BiDi options set for this cell.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_get_suffix:
- .. rst-class:: classref-method
- :ref:`String<class_String>` **get_suffix**\ (\ column\: :ref:`int<class_int>`\ ) |const| :ref:`๐<class_TreeItem_method_get_suffix>`
- 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**\ (\ column\: :ref:`int<class_int>`\ ) |const| :ref:`๐<class_TreeItem_method_get_text>`
- 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**\ (\ column\: :ref:`int<class_int>`\ ) |const| :ref:`๐<class_TreeItem_method_get_text_alignment>`
- 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**\ (\ column\: :ref:`int<class_int>`\ ) |const| :ref:`๐<class_TreeItem_method_get_text_direction>`
- 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**\ (\ column\: :ref:`int<class_int>`\ ) |const| :ref:`๐<class_TreeItem_method_get_text_overrun_behavior>`
- 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**\ (\ column\: :ref:`int<class_int>`\ ) |const| :ref:`๐<class_TreeItem_method_get_tooltip_text>`
- 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| :ref:`๐<class_TreeItem_method_get_tree>`
- 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**\ (\ only_visible\: :ref:`bool<class_bool>` = false\ ) :ref:`๐<class_TreeItem_method_is_any_collapsed>`
- 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**\ (\ column\: :ref:`int<class_int>`, button_index\: :ref:`int<class_int>`\ ) |const| :ref:`๐<class_TreeItem_method_is_button_disabled>`
- 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**\ (\ column\: :ref:`int<class_int>`\ ) |const| :ref:`๐<class_TreeItem_method_is_checked>`
- 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**\ (\ column\: :ref:`int<class_int>`\ ) |const| :ref:`๐<class_TreeItem_method_is_custom_set_as_button>`
- Returns ``true`` if the cell was made into a button with :ref:`set_custom_as_button()<class_TreeItem_method_set_custom_as_button>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_is_edit_multiline:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **is_edit_multiline**\ (\ column\: :ref:`int<class_int>`\ ) |const| :ref:`๐<class_TreeItem_method_is_edit_multiline>`
- 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**\ (\ column\: :ref:`int<class_int>`\ ) :ref:`๐<class_TreeItem_method_is_editable>`
- 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**\ (\ column\: :ref:`int<class_int>`\ ) |const| :ref:`๐<class_TreeItem_method_is_indeterminate>`
- 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**\ (\ column\: :ref:`int<class_int>`\ ) |const| :ref:`๐<class_TreeItem_method_is_selectable>`
- 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**\ (\ column\: :ref:`int<class_int>`\ ) :ref:`๐<class_TreeItem_method_is_selected>`
- Returns ``true`` if the given ``column`` is selected.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_is_visible_in_tree:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **is_visible_in_tree**\ (\ ) |const| :ref:`๐<class_TreeItem_method_is_visible_in_tree>`
- Returns ``true`` if :ref:`visible<class_TreeItem_property_visible>` is ``true`` and all its ancestors are also visible.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_move_after:
- .. rst-class:: classref-method
- |void| **move_after**\ (\ item\: :ref:`TreeItem<class_TreeItem>`\ ) :ref:`๐<class_TreeItem_method_move_after>`
- 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**\ (\ item\: :ref:`TreeItem<class_TreeItem>`\ ) :ref:`๐<class_TreeItem_method_move_before>`
- 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**\ (\ column\: :ref:`int<class_int>`, emit_signal\: :ref:`bool<class_bool>` = true\ ) :ref:`๐<class_TreeItem_method_propagate_check>`
- 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**\ (\ child\: :ref:`TreeItem<class_TreeItem>`\ ) :ref:`๐<class_TreeItem_method_remove_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**\ (\ column\: :ref:`int<class_int>`\ ) :ref:`๐<class_TreeItem_method_select>`
- Selects the given ``column``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_set_auto_translate_mode:
- .. rst-class:: classref-method
- |void| **set_auto_translate_mode**\ (\ column\: :ref:`int<class_int>`, mode\: :ref:`AutoTranslateMode<enum_Node_AutoTranslateMode>`\ ) :ref:`๐<class_TreeItem_method_set_auto_translate_mode>`
- Sets the given column's auto translate mode to ``mode``.
- All columns use :ref:`Node.AUTO_TRANSLATE_MODE_INHERIT<class_Node_constant_AUTO_TRANSLATE_MODE_INHERIT>` by default, which uses the same auto translate mode as the :ref:`Tree<class_Tree>` itself.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_set_autowrap_mode:
- .. rst-class:: classref-method
- |void| **set_autowrap_mode**\ (\ column\: :ref:`int<class_int>`, autowrap_mode\: :ref:`AutowrapMode<enum_TextServer_AutowrapMode>`\ ) :ref:`๐<class_TreeItem_method_set_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**\ (\ column\: :ref:`int<class_int>`, button_index\: :ref:`int<class_int>`, button\: :ref:`Texture2D<class_Texture2D>`\ ) :ref:`๐<class_TreeItem_method_set_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**\ (\ column\: :ref:`int<class_int>`, button_index\: :ref:`int<class_int>`, color\: :ref:`Color<class_Color>`\ ) :ref:`๐<class_TreeItem_method_set_button_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**\ (\ column\: :ref:`int<class_int>`, button_index\: :ref:`int<class_int>`, disabled\: :ref:`bool<class_bool>`\ ) :ref:`๐<class_TreeItem_method_set_button_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**\ (\ column\: :ref:`int<class_int>`, button_index\: :ref:`int<class_int>`, tooltip\: :ref:`String<class_String>`\ ) :ref:`๐<class_TreeItem_method_set_button_tooltip_text>`
- 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**\ (\ column\: :ref:`int<class_int>`, mode\: :ref:`TreeCellMode<enum_TreeItem_TreeCellMode>`\ ) :ref:`๐<class_TreeItem_method_set_cell_mode>`
- Sets the given column's cell mode to ``mode``. This determines how the cell is displayed and edited. See :ref:`TreeCellMode<enum_TreeItem_TreeCellMode>` constants for details.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_set_checked:
- .. rst-class:: classref-method
- |void| **set_checked**\ (\ column\: :ref:`int<class_int>`, checked\: :ref:`bool<class_bool>`\ ) :ref:`๐<class_TreeItem_method_set_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**\ (\ enable\: :ref:`bool<class_bool>`\ ) :ref:`๐<class_TreeItem_method_set_collapsed_recursive>`
- 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**\ (\ column\: :ref:`int<class_int>`, enable\: :ref:`bool<class_bool>`\ ) :ref:`๐<class_TreeItem_method_set_custom_as_button>`
- Makes a cell with :ref:`CELL_MODE_CUSTOM<class_TreeItem_constant_CELL_MODE_CUSTOM>` display as a non-flat button with a :ref:`StyleBox<class_StyleBox>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_set_custom_bg_color:
- .. rst-class:: classref-method
- |void| **set_custom_bg_color**\ (\ column\: :ref:`int<class_int>`, color\: :ref:`Color<class_Color>`, just_outline\: :ref:`bool<class_bool>` = false\ ) :ref:`๐<class_TreeItem_method_set_custom_bg_color>`
- 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**\ (\ column\: :ref:`int<class_int>`, color\: :ref:`Color<class_Color>`\ ) :ref:`๐<class_TreeItem_method_set_custom_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**\ (\ column\: :ref:`int<class_int>`, object\: :ref:`Object<class_Object>`, callback\: :ref:`StringName<class_StringName>`\ ) :ref:`๐<class_TreeItem_method_set_custom_draw>`
- **Deprecated:** Use :ref:`set_custom_draw_callback()<class_TreeItem_method_set_custom_draw_callback>` instead.
- Sets the given column's custom draw callback to the ``callback`` method on ``object``.
- The method named ``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_draw_callback:
- .. rst-class:: classref-method
- |void| **set_custom_draw_callback**\ (\ column\: :ref:`int<class_int>`, callback\: :ref:`Callable<class_Callable>`\ ) :ref:`๐<class_TreeItem_method_set_custom_draw_callback>`
- Sets the given column's custom draw callback. Use an empty :ref:`Callable<class_Callable>` (``Callable()``) to clear the custom callback. The cell has to be in :ref:`CELL_MODE_CUSTOM<class_TreeItem_constant_CELL_MODE_CUSTOM>` to use this feature.
- 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**\ (\ column\: :ref:`int<class_int>`, font\: :ref:`Font<class_Font>`\ ) :ref:`๐<class_TreeItem_method_set_custom_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**\ (\ column\: :ref:`int<class_int>`, font_size\: :ref:`int<class_int>`\ ) :ref:`๐<class_TreeItem_method_set_custom_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**\ (\ column\: :ref:`int<class_int>`, multiline\: :ref:`bool<class_bool>`\ ) :ref:`๐<class_TreeItem_method_set_edit_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**\ (\ column\: :ref:`int<class_int>`, enabled\: :ref:`bool<class_bool>`\ ) :ref:`๐<class_TreeItem_method_set_editable>`
- 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**\ (\ column\: :ref:`int<class_int>`, enable\: :ref:`bool<class_bool>`\ ) :ref:`๐<class_TreeItem_method_set_expand_right>`
- 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**\ (\ column\: :ref:`int<class_int>`, texture\: :ref:`Texture2D<class_Texture2D>`\ ) :ref:`๐<class_TreeItem_method_set_icon>`
- Sets the given cell's icon :ref:`Texture2D<class_Texture2D>`. If the cell is in :ref:`CELL_MODE_ICON<class_TreeItem_constant_CELL_MODE_ICON>` mode, the icon is displayed in the center of the cell. Otherwise, the icon is displayed before the cell's text. :ref:`CELL_MODE_RANGE<class_TreeItem_constant_CELL_MODE_RANGE>` does not display an icon.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_set_icon_max_width:
- .. rst-class:: classref-method
- |void| **set_icon_max_width**\ (\ column\: :ref:`int<class_int>`, width\: :ref:`int<class_int>`\ ) :ref:`๐<class_TreeItem_method_set_icon_max_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**\ (\ column\: :ref:`int<class_int>`, modulate\: :ref:`Color<class_Color>`\ ) :ref:`๐<class_TreeItem_method_set_icon_modulate>`
- Modulates the given column's icon with ``modulate``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_set_icon_overlay:
- .. rst-class:: classref-method
- |void| **set_icon_overlay**\ (\ column\: :ref:`int<class_int>`, texture\: :ref:`Texture2D<class_Texture2D>`\ ) :ref:`๐<class_TreeItem_method_set_icon_overlay>`
- Sets the given cell's icon overlay :ref:`Texture2D<class_Texture2D>`. The cell has to be in :ref:`CELL_MODE_ICON<class_TreeItem_constant_CELL_MODE_ICON>` mode, and icon has to be set. Overlay is drawn on top of icon, in the bottom left corner.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_set_icon_region:
- .. rst-class:: classref-method
- |void| **set_icon_region**\ (\ column\: :ref:`int<class_int>`, region\: :ref:`Rect2<class_Rect2>`\ ) :ref:`๐<class_TreeItem_method_set_icon_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**\ (\ column\: :ref:`int<class_int>`, indeterminate\: :ref:`bool<class_bool>`\ ) :ref:`๐<class_TreeItem_method_set_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**\ (\ column\: :ref:`int<class_int>`, language\: :ref:`String<class_String>`\ ) :ref:`๐<class_TreeItem_method_set_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**\ (\ column\: :ref:`int<class_int>`, meta\: :ref:`Variant<class_Variant>`\ ) :ref:`๐<class_TreeItem_method_set_metadata>`
- 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**\ (\ column\: :ref:`int<class_int>`, value\: :ref:`float<class_float>`\ ) :ref:`๐<class_TreeItem_method_set_range>`
- 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**\ (\ column\: :ref:`int<class_int>`, min\: :ref:`float<class_float>`, max\: :ref:`float<class_float>`, step\: :ref:`float<class_float>`, expr\: :ref:`bool<class_bool>` = false\ ) :ref:`๐<class_TreeItem_method_set_range_config>`
- 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**\ (\ column\: :ref:`int<class_int>`, selectable\: :ref:`bool<class_bool>`\ ) :ref:`๐<class_TreeItem_method_set_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**\ (\ column\: :ref:`int<class_int>`, parser\: :ref:`StructuredTextParser<enum_TextServer_StructuredTextParser>`\ ) :ref:`๐<class_TreeItem_method_set_structured_text_bidi_override>`
- Set BiDi algorithm override for the structured text. Has effect for cells that display text.
- .. 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**\ (\ column\: :ref:`int<class_int>`, args\: :ref:`Array<class_Array>`\ ) :ref:`๐<class_TreeItem_method_set_structured_text_bidi_override_options>`
- Set additional options for BiDi override. Has effect for cells that display text.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_set_suffix:
- .. rst-class:: classref-method
- |void| **set_suffix**\ (\ column\: :ref:`int<class_int>`, text\: :ref:`String<class_String>`\ ) :ref:`๐<class_TreeItem_method_set_suffix>`
- 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**\ (\ column\: :ref:`int<class_int>`, text\: :ref:`String<class_String>`\ ) :ref:`๐<class_TreeItem_method_set_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**\ (\ column\: :ref:`int<class_int>`, text_alignment\: :ref:`HorizontalAlignment<enum_@GlobalScope_HorizontalAlignment>`\ ) :ref:`๐<class_TreeItem_method_set_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**\ (\ column\: :ref:`int<class_int>`, direction\: :ref:`TextDirection<enum_Control_TextDirection>`\ ) :ref:`๐<class_TreeItem_method_set_text_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**\ (\ column\: :ref:`int<class_int>`, overrun_behavior\: :ref:`OverrunBehavior<enum_TextServer_OverrunBehavior>`\ ) :ref:`๐<class_TreeItem_method_set_text_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**\ (\ column\: :ref:`int<class_int>`, tooltip\: :ref:`String<class_String>`\ ) :ref:`๐<class_TreeItem_method_set_tooltip_text>`
- Sets the given column's tooltip text.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TreeItem_method_uncollapse_tree:
- .. rst-class:: classref-method
- |void| **uncollapse_tree**\ (\ ) :ref:`๐<class_TreeItem_method_uncollapse_tree>`
- Uncollapses all **TreeItem**\ s necessary to reveal this **TreeItem**, i.e. all ancestor **TreeItem**\ s.
- .. |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.)`
- .. |void| replace:: :abbr:`void (No return value.)`
|