<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE erlref SYSTEM "erlref.dtd">

<!-- THIS FILE IS GENERATED DO NOT EDIT -->


<erlref>
<header>
  <copyright>
    <year>2020</year>
    <holder>Ericsson AB. All Rights Reserved.</holder></copyright>
  <legalnotice>
      Licensed under the Apache License, Version 2.0 (the "License");
      you may not use this file except in compliance with the License.
      You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

      Unless required by applicable law or agreed to in writing, software
      distributed under the License is distributed on an "AS IS" BASIS,
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      See the License for the specific language governing permissions and
      limitations under the License.

  </legalnotice>
  <title>wxTreeCtrl</title>
</header>
<module>wxTreeCtrl</module>
<modulesummary>Functions for wxTreeCtrl class</modulesummary>
<description><p>A tree control presents information as a hierarchy, with items that may be expanded to show further items. Items in a tree control are referenced by <c>wxTreeItemId</c> (not implemented in wx) handles, which may be tested for validity by calling <c>wxTreeItemId::IsOk()</c> (not implemented in wx).
      </p><p>A similar control with a fully native implementation for GTK+ and macOS as well is <c>wxDataViewTreeCtrl</c> (not implemented in wx).
      </p><p>To intercept events from a tree control, use the event table macros described in <seeerl marker="wxTreeEvent"><c>wxTreeEvent</c></seeerl>.
      </p><p>Styles</p><p>This class supports the following styles:
      </p><p> See also overview_windowstyles.
      </p><p><c>Win32</c> <c>notes:</c>
      </p><p><seeerl marker="wxTreeCtrl"><c>wxTreeCtrl</c></seeerl> class uses the standard common treeview control under Win32 implemented in the system library comctl32.dll. Some versions of this library are known to have bugs with handling the tree control colours: the usual symptom is that the expanded items leave black (or otherwise incorrectly coloured) background behind them, especially for the controls using non-default background colour. The recommended solution is to upgrade the comctl32.dll to a newer version: see <url href="http://www.microsoft.com/downloads/details.aspx?familyid=cb2cf3a2-8025-4e8f-8511-9b476a8d35d2">http://www.microsoft.com/downloads/details.aspx?familyid=cb2cf3a2-8025-4e8f-8511-9b476a8d35d2</url>
      </p><p>See: <c>wxDataViewTreeCtrl</c> (not implemented in wx), <seeerl marker="wxTreeEvent"><c>wxTreeEvent</c></seeerl>, <c>wxTreeItemData</c> (not implemented in wx), <url href="https://docs.wxwidgets.org/3.1/overview_treectrl.html#overview_treectrl">Overview treectrl</url>, <seeerl marker="wxListBox"><c>wxListBox</c></seeerl>, <seeerl marker="wxListCtrl"><c>wxListCtrl</c></seeerl>, <seeerl marker="wxImageList"><c>wxImageList</c></seeerl>
      </p>
  <p>This class is derived (and can use functions) from: 
    <seeerl marker="wxControl"><c>wxControl</c></seeerl> <seeerl marker="wxWindow"><c>wxWindow</c></seeerl> <seeerl marker="wxEvtHandler"><c>wxEvtHandler</c></seeerl></p>
  
  <p>wxWidgets docs: <url href="https://docs.wxwidgets.org/3.1/classwx_tree_ctrl.html">wxTreeCtrl</url></p>
  </description><section><title>Events</title><p>Event types emitted from this class: <seeerl marker="wxTreeEvent"><c>command_tree_begin_drag</c></seeerl>, <seeerl marker="wxTreeEvent"><c>command_tree_begin_rdrag</c></seeerl>, <seeerl marker="wxTreeEvent"><c>command_tree_end_drag</c></seeerl>, <seeerl marker="wxTreeEvent"><c>command_tree_begin_label_edit</c></seeerl>, <seeerl marker="wxTreeEvent"><c>command_tree_end_label_edit</c></seeerl>, <seeerl marker="wxTreeEvent"><c>command_tree_delete_item</c></seeerl>, <seeerl marker="wxTreeEvent"><c>command_tree_get_info</c></seeerl>, <seeerl marker="wxTreeEvent"><c>command_tree_set_info</c></seeerl>, <seeerl marker="wxTreeEvent"><c>command_tree_item_activated</c></seeerl>, <seeerl marker="wxTreeEvent"><c>command_tree_item_collapsed</c></seeerl>, <seeerl marker="wxTreeEvent"><c>command_tree_item_collapsing</c></seeerl>, <seeerl marker="wxTreeEvent"><c>command_tree_item_expanded</c></seeerl>, <seeerl marker="wxTreeEvent"><c>command_tree_item_expanding</c></seeerl>, <seeerl marker="wxTreeEvent"><c>command_tree_item_right_click</c></seeerl>, <seeerl marker="wxTreeEvent"><c>command_tree_item_middle_click</c></seeerl>, <seeerl marker="wxTreeEvent"><c>command_tree_sel_changed</c></seeerl>, <seeerl marker="wxTreeEvent"><c>command_tree_sel_changing</c></seeerl>, <seeerl marker="wxTreeEvent"><c>command_tree_key_down</c></seeerl>, <seeerl marker="wxTreeEvent"><c>command_tree_item_gettooltip</c></seeerl>, <seeerl marker="wxTreeEvent"><c>command_tree_item_menu</c></seeerl>, <seeerl marker="wxTreeEvent"><c>command_tree_state_image_click</c></seeerl></p></section>
<datatypes><datatype><name name="wxTreeCtrl"/></datatype></datatypes>

<funcs>
  <func>
    <name name="new" arity="0" clause_i="1" since=""/>
    <fsummary>Default Constructor. </fsummary>
    <desc><p>Default Constructor. 
      </p></desc>
  </func>
  
  <func>
    <name name="new" arity="1" clause_i="1" since=""/>
    <fsummary>See: <c>new/2</c></fsummary>
  </func>
  
  <func>
    <name name="new" arity="2" clause_i="1" since=""/>
    <fsummary>Constructor, creating and showing a tree control. </fsummary>
    <desc><p>Constructor, creating and showing a tree control. 
      </p><p>See: <seemfa marker="#create/3"><c>create/3</c></seemfa>, <c>wxValidator</c> (not implemented in wx)
      </p></desc>
  </func>
  
  <func>
    <name name="destroy" arity="1" clause_i="1" since=""/>
    <fsummary>Destructor, destroying the tree control. </fsummary>
    <desc><p>Destructor, destroying the tree control. 
      </p></desc>
  </func>
  
  <func>
    <name name="addRoot" arity="2" clause_i="1" since=""/>
    <fsummary>See: <c>addRoot/3</c></fsummary>
  </func>
  
  <func>
    <name name="addRoot" arity="3" clause_i="1" since=""/>
    <fsummary>Adds the root node to the tree, returning the new item. </fsummary>
    <desc><p>Adds the root node to the tree, returning the new item. 
      </p><p>The <c>image</c> and <c>selImage</c> parameters are an index within the normal image list specifying the image to use for unselected and selected items, respectively. If <c>image</c> &gt; -1 and <c>selImage</c> is -1, the same image is used for both selected and unselected items. 
      </p></desc>
  </func>
  
  <func>
    <name name="appendItem" arity="3" clause_i="1" since=""/>
    <fsummary>See: <c>appendItem/4</c></fsummary>
  </func>
  
  <func>
    <name name="appendItem" arity="4" clause_i="1" since=""/>
    <fsummary>Appends an item to the end of the branch identified by <c>parent</c>, return a new item id. </fsummary>
    <desc><p>Appends an item to the end of the branch identified by <c>parent</c>, return a new item id. 
      </p><p>The <c>image</c> and <c>selImage</c> parameters are an index within the normal image list specifying the image to use for unselected and selected items, respectively. If <c>image</c> &gt; -1 and <c>selImage</c> is -1, the same image is used for both selected and unselected items. 
      </p></desc>
  </func>
  
  <func>
    <name name="assignImageList" arity="2" clause_i="1" since=""/>
    <fsummary>Sets the normal image list. </fsummary>
    <desc><p>Sets the normal image list. 
      </p><p>The image list assigned with this method will be automatically deleted by <seeerl marker="wxTreeCtrl"><c>wxTreeCtrl</c></seeerl> as appropriate (i.e. it takes ownership of the list).
      </p><p>See: <seemfa marker="#setImageList/2"><c>setImageList/2</c></seemfa>
      </p></desc>
  </func>
  
  <func>
    <name name="assignStateImageList" arity="2" clause_i="1" since=""/>
    <fsummary>Sets the state image list. </fsummary>
    <desc><p>Sets the state image list. 
      </p><p>Image list assigned with this method will be automatically deleted by <seeerl marker="wxTreeCtrl"><c>wxTreeCtrl</c></seeerl> as appropriate (i.e. it takes ownership of the list).
      </p><p>See: <seemfa marker="#setStateImageList/2"><c>setStateImageList/2</c></seemfa>
      </p></desc>
  </func>
  
  <func>
    <name name="collapse" arity="2" clause_i="1" since=""/>
    <fsummary>Collapses the given item. </fsummary>
    <desc><p>Collapses the given item. 
      </p></desc>
  </func>
  
  <func>
    <name name="collapseAndReset" arity="2" clause_i="1" since=""/>
    <fsummary>Collapses the given item and removes all children. </fsummary>
    <desc><p>Collapses the given item and removes all children. 
      </p></desc>
  </func>
  
  <func>
    <name name="create" arity="2" clause_i="1" since=""/>
    <fsummary>See: <c>create/3</c></fsummary>
  </func>
  
  <func>
    <name name="create" arity="3" clause_i="1" since=""/>
    <fsummary>Creates the tree control. </fsummary>
    <desc><p>Creates the tree control. 
      </p><p>See <seemfa marker="#new/2"><c>new/2</c></seemfa> for further details. 
      </p></desc>
  </func>
  
  <func>
    <name name="delete" arity="2" clause_i="1" since=""/>
    <fsummary>Deletes the specified item. </fsummary>
    <desc><p>Deletes the specified item. 
      </p><p>A <c>EVT_TREE_DELETE_ITEM</c> event will be generated.
      </p><p>This function may cause a subsequent call to <seemfa marker="#getNextChild/3"><c>getNextChild/3</c></seemfa> to fail. 
      </p></desc>
  </func>
  
  <func>
    <name name="deleteAllItems" arity="1" clause_i="1" since=""/>
    <fsummary>Deletes all items in the control. </fsummary>
    <desc><p>Deletes all items in the control. 
      </p><p>This function generates <c>wxEVT_TREE_DELETE_ITEM</c> events for each item being deleted, including the root one if it is shown, i.e. unless wxTR_HIDE_ROOT style is used. 
      </p></desc>
  </func>
  
  <func>
    <name name="deleteChildren" arity="2" clause_i="1" since=""/>
    <fsummary>Deletes all children of the given item (but not the item itself). </fsummary>
    <desc><p>Deletes all children of the given item (but not the item itself). 
      </p><p>A <c>wxEVT_TREE_DELETE_ITEM</c> event will be generated for every item being deleted.
      </p><p>If you have called <seemfa marker="#setItemHasChildren/3"><c>setItemHasChildren/3</c></seemfa>, you may need to call it again since <seemfa marker="#deleteChildren/2"><c>deleteChildren/2</c></seemfa> does not automatically clear the setting. 
      </p></desc>
  </func>
  
  <func>
    <name name="editLabel" arity="2" clause_i="1" since=""/>
    <fsummary>Starts editing the label of the given <c>item</c>. </fsummary>
    <desc><p>Starts editing the label of the given <c>item</c>. 
      </p><p>This function generates a <c>EVT_TREE_BEGIN_LABEL_EDIT</c> event which can be vetoed so that no text control will appear for in-place editing.
      </p><p>If the user changed the label (i.e. s/he does not press ESC or leave the text control without changes, a <c>EVT_TREE_END_LABEL_EDIT</c> event will be sent which can be vetoed as well.
      </p><p>See: <c>EndEditLabel()</c> (not implemented in wx), <seeerl marker="wxTreeEvent"><c>wxTreeEvent</c></seeerl>
      </p></desc>
  </func>
  
  <func>
    <name name="ensureVisible" arity="2" clause_i="1" since=""/>
    <fsummary>Scrolls and/or expands items to ensure that the given item is visible. </fsummary>
    <desc><p>Scrolls and/or expands items to ensure that the given item is visible. 
      </p><p>This method can be used, and will work, even while the window is frozen (see <seemfa marker="wxWindow#freeze/1"><c>wxWindow:freeze/1</c></seemfa>). 
      </p></desc>
  </func>
  
  <func>
    <name name="expand" arity="2" clause_i="1" since=""/>
    <fsummary>Expands the given item. </fsummary>
    <desc><p>Expands the given item. 
      </p></desc>
  </func>
  
  <func>
    <name name="getBoundingRect" arity="2" clause_i="1" since=""/>
    <fsummary>See: <c>getBoundingRect/3</c></fsummary>
  </func>
  
  <func>
    <name name="getBoundingRect" arity="3" clause_i="1" since=""/>
    <fsummary>Retrieves the rectangle bounding the <c>item</c>. </fsummary>
    <desc><p>Retrieves the rectangle bounding the <c>item</c>. 
      </p><p>If <c>textOnly</c> is true, only the rectangle around the item's label will be returned, otherwise the item's image is also taken into account.
      </p><p>The return value is true if the rectangle was successfully retrieved or  false if it was not (in this case <c>rect</c> is not changed) - for example, if the item is currently invisible.
      </p><p>Notice that the rectangle coordinates are logical, not physical ones. So, for example, the x coordinate may be negative if the tree has a horizontal scrollbar and its position is not 0. 
      </p></desc>
  </func>
  
  <func>
    <name name="getChildrenCount" arity="2" clause_i="1" since=""/>
    <fsummary>See: <c>getChildrenCount/3</c></fsummary>
  </func>
  
  <func>
    <name name="getChildrenCount" arity="3" clause_i="1" since=""/>
    <fsummary>Returns the number of items in the branch. </fsummary>
    <desc><p>Returns the number of items in the branch. 
      </p><p>If <c>recursively</c> is true, returns the total number of descendants, otherwise only one level of children is counted. 
      </p></desc>
  </func>
  
  <func>
    <name name="getCount" arity="1" clause_i="1" since=""/>
    <fsummary>Returns the number of items in the control. </fsummary>
    <desc><p>Returns the number of items in the control. 
      </p></desc>
  </func>
  
  <func>
    <name name="getEditControl" arity="1" clause_i="1" since=""/>
    <fsummary>Returns the edit control being currently used to edit a label. </fsummary>
    <desc><p>Returns the edit control being currently used to edit a label. 
      </p><p>Returns NULL if no label is being edited.
      </p><p>Note: This is currently only implemented for wxMSW. 
      </p></desc>
  </func>
  
  <func>
    <name name="getFirstChild" arity="2" clause_i="1" since=""/>
    <fsummary>Returns the first child; call <c>getNextChild/3</c> for the next child. </fsummary>
    <desc><p>Returns the first child; call <seemfa marker="#getNextChild/3"><c>getNextChild/3</c></seemfa> for the next child. 
      </p><p>For this enumeration function you must pass in a 'cookie' parameter which is opaque for the application but is necessary for the library to make these functions reentrant (i.e. allow more than one enumeration on one and the same object simultaneously). The cookie passed to <seemfa marker="#getFirstChild/2"><c>getFirstChild/2</c></seemfa> and <seemfa marker="#getNextChild/3"><c>getNextChild/3</c></seemfa> should be the same variable.
      </p><p>Returns an invalid tree item (i.e. <c>wxTreeItemId::IsOk()</c> (not implemented in wx) returns false) if there are no further children.
      </p><p>See: <seemfa marker="#getNextChild/3"><c>getNextChild/3</c></seemfa>, <seemfa marker="#getNextSibling/2"><c>getNextSibling/2</c></seemfa>
      </p></desc>
  </func>
  
  <func>
    <name name="getNextChild" arity="3" clause_i="1" since=""/>
    <fsummary>Returns the next child; call <c>getFirstChild/2</c> for the first child. </fsummary>
    <desc><p>Returns the next child; call <seemfa marker="#getFirstChild/2"><c>getFirstChild/2</c></seemfa> for the first child. 
      </p><p>For this enumeration function you must pass in a 'cookie' parameter which is opaque for the application but is necessary for the library to make these functions reentrant (i.e. allow more than one enumeration on one and the same object simultaneously). The cookie passed to <seemfa marker="#getFirstChild/2"><c>getFirstChild/2</c></seemfa> and <seemfa marker="#getNextChild/3"><c>getNextChild/3</c></seemfa> should be the same.
      </p><p>Returns an invalid tree item if there are no further children.
      </p><p>See: <seemfa marker="#getFirstChild/2"><c>getFirstChild/2</c></seemfa>
      </p></desc>
  </func>
  
  <func>
    <name name="getFirstVisibleItem" arity="1" clause_i="1" since=""/>
    <fsummary>Returns the first visible item. </fsummary>
    <desc><p>Returns the first visible item. 
      </p></desc>
  </func>
  
  <func>
    <name name="getImageList" arity="1" clause_i="1" since=""/>
    <fsummary>Returns the normal image list. </fsummary>
    <desc><p>Returns the normal image list. 
      </p></desc>
  </func>
  
  <func>
    <name name="getIndent" arity="1" clause_i="1" since=""/>
    <fsummary>Returns the current tree control indentation. </fsummary>
    <desc><p>Returns the current tree control indentation. 
      </p></desc>
  </func>
  
  <func>
    <name name="getItemBackgroundColour" arity="2" clause_i="1" since=""/>
    <fsummary>Returns the background colour of the item. </fsummary>
    <desc><p>Returns the background colour of the item. 
      </p></desc>
  </func>
  
  <func>
    <name name="getItemData" arity="2" clause_i="1" since=""/>
    <fsummary>Returns the tree item data associated with the item. </fsummary>
    <desc><p>Returns the tree item data associated with the item. 
      </p><p>See: <c>wxTreeItemData</c> (not implemented in wx)
      </p></desc>
  </func>
  
  <func>
    <name name="getItemFont" arity="2" clause_i="1" since=""/>
    <fsummary>Returns the font of the item label. </fsummary>
    <desc><p>Returns the font of the item label. 
      </p><p>If the font hadn't been explicitly set for the specified <c>item</c> with <seemfa marker="#setItemFont/3"><c>setItemFont/3</c></seemfa>, returns an invalid ?wxNullFont font. <seemfa marker="wxWindow#getFont/1"><c>wxWindow:getFont/1</c></seemfa> can be used to retrieve the global tree control font used for the items without any specific font. 
      </p></desc>
  </func>
  
  <func>
    <name name="getItemImage" arity="2" clause_i="1" since=""/>
    <fsummary>See: <c>getItemImage/3</c></fsummary>
  </func>
  
  <func>
    <name name="getItemImage" arity="3" clause_i="1" since=""/>
    <fsummary>Gets the specified item image. </fsummary>
    <desc><p>Gets the specified item image. 
      </p><p>The value of <c>which</c> may be:
      </p></desc>
  </func>
  
  <func>
    <name name="getItemText" arity="2" clause_i="1" since=""/>
    <fsummary>Returns the item label. </fsummary>
    <desc><p>Returns the item label. 
      </p></desc>
  </func>
  
  <func>
    <name name="getItemTextColour" arity="2" clause_i="1" since=""/>
    <fsummary>Returns the colour of the item label. </fsummary>
    <desc><p>Returns the colour of the item label. 
      </p></desc>
  </func>
  
  <func>
    <name name="getLastChild" arity="2" clause_i="1" since=""/>
    <fsummary>Returns the last child of the item (or an invalid tree item if this item has no children). </fsummary>
    <desc><p>Returns the last child of the item (or an invalid tree item if this item has no children). 
      </p><p>See: <seemfa marker="#getFirstChild/2"><c>getFirstChild/2</c></seemfa>, <seemfa marker="#getNextSibling/2"><c>getNextSibling/2</c></seemfa>, <seemfa marker="#getLastChild/2"><c>getLastChild/2</c></seemfa>
      </p></desc>
  </func>
  
  <func>
    <name name="getNextSibling" arity="2" clause_i="1" since=""/>
    <fsummary>Returns the next sibling of the specified item; call <c>getPrevSibling/2</c> for the previous sibling. </fsummary>
    <desc><p>Returns the next sibling of the specified item; call <seemfa marker="#getPrevSibling/2"><c>getPrevSibling/2</c></seemfa> for the previous sibling. 
      </p><p>Returns an invalid tree item if there are no further siblings.
      </p><p>See: <seemfa marker="#getPrevSibling/2"><c>getPrevSibling/2</c></seemfa>
      </p></desc>
  </func>
  
  <func>
    <name name="getNextVisible" arity="2" clause_i="1" since=""/>
    <fsummary>Returns the next visible item or an invalid item if this item is the last visible one. </fsummary>
    <desc><p>Returns the next visible item or an invalid item if this item is the last visible one. 
      </p><p>Note: The <c>item</c> itself must be visible. 
      </p></desc>
  </func>
  
  <func>
    <name name="getItemParent" arity="2" clause_i="1" since=""/>
    <fsummary>Returns the item's parent. </fsummary>
    <desc><p>Returns the item's parent. 
      </p></desc>
  </func>
  
  <func>
    <name name="getPrevSibling" arity="2" clause_i="1" since=""/>
    <fsummary>Returns the previous sibling of the specified item; call <c>getNextSibling/2</c> for the next sibling. </fsummary>
    <desc><p>Returns the previous sibling of the specified item; call <seemfa marker="#getNextSibling/2"><c>getNextSibling/2</c></seemfa> for the next sibling. 
      </p><p>Returns an invalid tree item if there are no further children.
      </p><p>See: <seemfa marker="#getNextSibling/2"><c>getNextSibling/2</c></seemfa>
      </p></desc>
  </func>
  
  <func>
    <name name="getPrevVisible" arity="2" clause_i="1" since=""/>
    <fsummary>Returns the previous visible item or an invalid item if this item is the first visible one. </fsummary>
    <desc><p>Returns the previous visible item or an invalid item if this item is the first visible one. 
      </p><p>Note: The <c>item</c> itself must be visible. 
      </p></desc>
  </func>
  
  <func>
    <name name="getRootItem" arity="1" clause_i="1" since=""/>
    <fsummary>Returns the root item for the tree control. </fsummary>
    <desc><p>Returns the root item for the tree control. 
      </p></desc>
  </func>
  
  <func>
    <name name="getSelection" arity="1" clause_i="1" since=""/>
    <fsummary>Returns the selection, or an invalid item if there is no selection. </fsummary>
    <desc><p>Returns the selection, or an invalid item if there is no selection. 
      </p><p>This function only works with the controls without <c>wxTR_MULTIPLE</c> style, use <seemfa marker="#getSelections/1"><c>getSelections/1</c></seemfa> for the controls which do have this style or, if a single item is wanted, use <c>GetFocusedItem()</c> (not implemented in wx). 
      </p></desc>
  </func>
  
  <func>
    <name name="getSelections" arity="1" clause_i="1" since=""/>
    <fsummary>Fills the array of tree items passed in with the currently selected items. </fsummary>
    <desc><p>Fills the array of tree items passed in with the currently selected items. 
      </p><p>This function can be called only if the control has the <c>wxTR_MULTIPLE</c> style.
      </p><p>Returns the number of selected items. 
      </p></desc>
  </func>
  
  <func>
    <name name="getStateImageList" arity="1" clause_i="1" since=""/>
    <fsummary>Returns the state image list (from which application-defined state images are taken). </fsummary>
    <desc><p>Returns the state image list (from which application-defined state images are taken). 
      </p></desc>
  </func>
  
  <func>
    <name name="hitTest" arity="2" clause_i="1" since=""/>
    <fsummary>Calculates which (if any) item is under the given <c>point</c>, returning the tree item id at this point plus extra information <c>flags</c>. </fsummary>
    <desc><p>Calculates which (if any) item is under the given <c>point</c>, returning the tree item id at this point plus extra information <c>flags</c>. 
      </p><p><c>flags</c> is a bitlist of the following:
      </p></desc>
  </func>
  
  <func>
    <name name="insertItem" arity="4" clause_i="1" since=""/>
    <fsummary>See: <c>insertItem/5</c></fsummary>
  </func>
  
  <func>
    <name name="insertItem" arity="5" clause_i="1" since=""/>
    <fsummary>Inserts an item after a given one (<c>previous</c>). </fsummary>
    <desc><p>Inserts an item after a given one (<c>previous</c>). 
      </p><p>The <c>image</c> and <c>selImage</c> parameters are an index within the normal image list specifying the image to use for unselected and selected items, respectively. If <c>image</c> &gt; -1 and <c>selImage</c> is -1, the same image is used for both selected and unselected items. 
      </p></desc>
  </func>
  
  <func>
    <name name="isBold" arity="2" clause_i="1" since=""/>
    <fsummary>Returns true if the given item is in bold state. </fsummary>
    <desc><p>Returns true if the given item is in bold state. 
      </p><p>See: <seemfa marker="#setItemBold/3"><c>setItemBold/3</c></seemfa>
      </p></desc>
  </func>
  
  <func>
    <name name="isExpanded" arity="2" clause_i="1" since=""/>
    <fsummary>Returns true if the item is expanded (only makes sense if it has children). </fsummary>
    <desc><p>Returns true if the item is expanded (only makes sense if it has children). 
      </p></desc>
  </func>
  
  <func>
    <name name="isSelected" arity="2" clause_i="1" since=""/>
    <fsummary>Returns true if the item is selected. </fsummary>
    <desc><p>Returns true if the item is selected. 
      </p></desc>
  </func>
  
  <func>
    <name name="isVisible" arity="2" clause_i="1" since=""/>
    <fsummary>Returns true if the item is visible on the screen. </fsummary>
    <desc><p>Returns true if the item is visible on the screen. 
      </p></desc>
  </func>
  
  <func>
    <name name="itemHasChildren" arity="2" clause_i="1" since=""/>
    <fsummary>Returns true if the item has children. </fsummary>
    <desc><p>Returns true if the item has children. 
      </p></desc>
  </func>
  
  <func>
    <name name="isTreeItemIdOk" arity="1" clause_i="1" since=""/>
    <fsummary>Returns true if the item is valid. </fsummary>
    <desc><p>Returns true if the item is valid. 
      </p></desc>
  </func>
  
  <func>
    <name name="prependItem" arity="3" clause_i="1" since=""/>
    <fsummary>See: <c>prependItem/4</c></fsummary>
  </func>
  
  <func>
    <name name="prependItem" arity="4" clause_i="1" since=""/>
    <fsummary>Appends an item as the first child of <c>parent</c>, return a new item id. </fsummary>
    <desc><p>Appends an item as the first child of <c>parent</c>, return a new item id. 
      </p><p>The <c>image</c> and <c>selImage</c> parameters are an index within the normal image list specifying the image to use for unselected and selected items, respectively. If <c>image</c> &gt; -1 and <c>selImage</c> is -1, the same image is used for both selected and unselected items. 
      </p></desc>
  </func>
  
  <func>
    <name name="scrollTo" arity="2" clause_i="1" since=""/>
    <fsummary>Scrolls the specified item into view. </fsummary>
    <desc><p>Scrolls the specified item into view. 
      </p><p>Note that this method doesn't work while the window is frozen (See <seemfa marker="wxWindow#freeze/1"><c>wxWindow:freeze/1</c></seemfa>), at least under MSW.
      </p><p>See: <seemfa marker="#ensureVisible/2"><c>ensureVisible/2</c></seemfa>
      </p></desc>
  </func>
  
  <func>
    <name name="selectItem" arity="2" clause_i="1" since=""/>
    <fsummary>See: <c>selectItem/3</c></fsummary>
  </func>
  
  <func>
    <name name="selectItem" arity="3" clause_i="1" since=""/>
    <fsummary>Selects the given item. </fsummary>
    <desc><p>Selects the given item. 
      </p><p>In multiple selection controls, can be also used to deselect a currently selected item if the value of <c>select</c> is false.
      </p><p>Notice that calling this method will generate <c>wxEVT_TREE_SEL_CHANGING</c> and <c>wxEVT_TREE_SEL_CHANGED</c> events and that the change could be vetoed by the former event handler. 
      </p></desc>
  </func>
  
  <func>
    <name name="setIndent" arity="2" clause_i="1" since=""/>
    <fsummary>Sets the indentation for the tree control. </fsummary>
    <desc><p>Sets the indentation for the tree control. 
      </p></desc>
  </func>
  
  <func>
    <name name="setImageList" arity="2" clause_i="1" since=""/>
    <fsummary>Sets the normal image list. </fsummary>
    <desc><p>Sets the normal image list. 
      </p><p>The image list assigned with this method will <c>not</c> be deleted by <seeerl marker="wxTreeCtrl"><c>wxTreeCtrl</c></seeerl>'s destructor, you must delete it yourself.
      </p><p>See: <seemfa marker="#assignImageList/2"><c>assignImageList/2</c></seemfa>
      </p></desc>
  </func>
  
  <func>
    <name name="setItemBackgroundColour" arity="3" clause_i="1" since=""/>
    <fsummary>Sets the colour of the item's background. </fsummary>
    <desc><p>Sets the colour of the item's background. 
      </p></desc>
  </func>
  
  <func>
    <name name="setItemBold" arity="2" clause_i="1" since=""/>
    <fsummary>See: <c>setItemBold/3</c></fsummary>
  </func>
  
  <func>
    <name name="setItemBold" arity="3" clause_i="1" since=""/>
    <fsummary>Makes item appear in bold font if <c>bold</c> parameter is true or resets it to the normal state. </fsummary>
    <desc><p>Makes item appear in bold font if <c>bold</c> parameter is true or resets it to the normal state. 
      </p><p>See: <seemfa marker="#isBold/2"><c>isBold/2</c></seemfa>
      </p></desc>
  </func>
  
  <func>
    <name name="setItemData" arity="3" clause_i="1" since=""/>
    <fsummary>Sets the item client data. </fsummary>
    <desc><p>Sets the item client data. 
      </p><p>Notice that the client data previously associated with the <c>item</c> (if any) is <c>not</c> freed by this function and so calling this function multiple times for the same item will result in memory leaks unless you delete the old item data pointer yourself. 
      </p></desc>
  </func>
  
  <func>
    <name name="setItemDropHighlight" arity="2" clause_i="1" since=""/>
    <fsummary>See: <c>setItemDropHighlight/3</c></fsummary>
  </func>
  
  <func>
    <name name="setItemDropHighlight" arity="3" clause_i="1" since=""/>
    <fsummary>Gives the item the visual feedback for Drag'n'Drop actions, which is useful if something is dragged from the outside onto the tree control (as opposed to a DnD operation within the tree control, which already is implemented internally). </fsummary>
    <desc><p>Gives the item the visual feedback for Drag'n'Drop actions, which is useful if something is dragged from the outside onto the tree control (as opposed to a DnD operation within the tree control, which already is implemented internally). 
      </p></desc>
  </func>
  
  <func>
    <name name="setItemFont" arity="3" clause_i="1" since=""/>
    <fsummary>Sets the item's font. </fsummary>
    <desc><p>Sets the item's font. 
      </p><p>All items in the tree should have the same height to avoid text clipping, so the fonts height should be the same for all of them, although font attributes may vary.
      </p><p>See: <seemfa marker="#setItemBold/3"><c>setItemBold/3</c></seemfa>
      </p></desc>
  </func>
  
  <func>
    <name name="setItemHasChildren" arity="2" clause_i="1" since=""/>
    <fsummary>See: <c>setItemHasChildren/3</c></fsummary>
  </func>
  
  <func>
    <name name="setItemHasChildren" arity="3" clause_i="1" since=""/>
    <fsummary>Force appearance of the button next to the item. </fsummary>
    <desc><p>Force appearance of the button next to the item. 
      </p><p>This is useful to allow the user to expand the items which don't have any children now, but instead adding them only when needed, thus minimizing memory usage and loading time. 
      </p></desc>
  </func>
  
  <func>
    <name name="setItemImage" arity="3" clause_i="1" since=""/>
    <fsummary>See: <c>setItemImage/4</c></fsummary>
  </func>
  
  <func>
    <name name="setItemImage" arity="4" clause_i="1" since=""/>
    <fsummary>Sets the specified item's image. </fsummary>
    <desc><p>Sets the specified item's image. 
      </p><p>See <seemfa marker="#getItemImage/3"><c>getItemImage/3</c></seemfa> for the description of the <c>which</c> parameter. 
      </p></desc>
  </func>
  
  <func>
    <name name="setItemText" arity="3" clause_i="1" since=""/>
    <fsummary>Sets the item label. </fsummary>
    <desc><p>Sets the item label. 
      </p></desc>
  </func>
  
  <func>
    <name name="setItemTextColour" arity="3" clause_i="1" since=""/>
    <fsummary>Sets the colour of the item's text. </fsummary>
    <desc><p>Sets the colour of the item's text. 
      </p></desc>
  </func>
  
  <func>
    <name name="setStateImageList" arity="2" clause_i="1" since=""/>
    <fsummary>Sets the state image list (from which application-defined state images are taken). </fsummary>
    <desc><p>Sets the state image list (from which application-defined state images are taken). 
      </p><p>Image list assigned with this method will <c>not</c> be deleted by <seeerl marker="wxTreeCtrl"><c>wxTreeCtrl</c></seeerl>'s destructor, you must delete it yourself.
      </p><p>See: <seemfa marker="#assignStateImageList/2"><c>assignStateImageList/2</c></seemfa>
      </p></desc>
  </func>
  
  <func>
    <name name="setWindowStyle" arity="2" clause_i="1" since=""/>
    <fsummary>Sets the mode flags associated with the display of the tree control. </fsummary>
    <desc><p>Sets the mode flags associated with the display of the tree control. 
      </p><p>The new mode takes effect immediately.
      </p><p>Note: Generic only; MSW ignores changes. 
      </p></desc>
  </func>
  
  <func>
    <name name="sortChildren" arity="2" clause_i="1" since=""/>
    <fsummary>Sorts the children of the given item using <c>OnCompareItems()</c> (not implemented in wx). </fsummary>
    <desc><p>Sorts the children of the given item using <c>OnCompareItems()</c> (not implemented in wx). 
      </p><p>You should override that method to change the sort order (the default is ascending case-sensitive alphabetical order).
      </p><p>See: <c>wxTreeItemData</c> (not implemented in wx), <c>OnCompareItems()</c> (not implemented in wx)
      </p></desc>
  </func>
  
  <func>
    <name name="toggle" arity="2" clause_i="1" since=""/>
    <fsummary>Toggles the given item between collapsed and expanded states. </fsummary>
    <desc><p>Toggles the given item between collapsed and expanded states. 
      </p></desc>
  </func>
  
  <func>
    <name name="toggleItemSelection" arity="2" clause_i="1" since=""/>
    <fsummary>Toggles the given item between selected and unselected states. </fsummary>
    <desc><p>Toggles the given item between selected and unselected states. 
      </p><p>For multiselection controls only. 
      </p></desc>
  </func>
  
  <func>
    <name name="unselect" arity="1" clause_i="1" since=""/>
    <fsummary>Removes the selection from the currently selected item (if any). </fsummary>
    <desc><p>Removes the selection from the currently selected item (if any). 
      </p></desc>
  </func>
  
  <func>
    <name name="unselectAll" arity="1" clause_i="1" since=""/>
    <fsummary>This function either behaves the same as <c>unselect/1</c> if the control doesn't have <c>wxTR_MULTIPLE</c> style, or removes the selection from all items if it does have this style. </fsummary>
    <desc><p>This function either behaves the same as <seemfa marker="#unselect/1"><c>unselect/1</c></seemfa> if the control doesn't have <c>wxTR_MULTIPLE</c> style, or removes the selection from all items if it does have this style. 
      </p></desc>
  </func>
  
  <func>
    <name name="unselectItem" arity="2" clause_i="1" since=""/>
    <fsummary>Unselects the given item. </fsummary>
    <desc><p>Unselects the given item. 
      </p><p>This works in multiselection controls only. 
      </p></desc>
  </func>
  </funcs>
</erlref>
