1 ///////////////////////////////////////////////////////////////////////////// 
   3 // Purpose:     interface of wxTreeItemId 
   4 // Author:      wxWidgets team 
   6 // Licence:     wxWindows license 
   7 ///////////////////////////////////////////////////////////////////////////// 
  12     An opaque reference to a tree item. 
  17     @see wxTreeCtrl, wxTreeItemData, @ref overview_treectrl 
  23         Default constructor. A wxTreeItemId is not meant to be constructed 
  24         explicitly by the user; only those returned by the wxTreeCtrl functions 
  30         Returns @true if this instance is referencing a valid tree item. 
  36          Operators for comparison between wxTreeItemId objects. 
  38     bool operator ==(const wxTreeItemId
& item
) const; 
  39     bool operator !=(const wxTreeItemId
& item
) const; 
  43         Antonym of IsOk(), i.e. returns @true only if the item is not valid. 
  45     bool operator !() const; 
  51     wxTreeItemData is some (arbitrary) user class associated with some item. The 
  52     main advantage of having this class is that wxTreeItemData objects are 
  53     destroyed automatically by the tree and, as this class has virtual 
  54     destructor, it means that the memory and any other resources associated with 
  55     a tree item will be automatically freed when it is deleted. Note that we 
  56     don't use wxObject as the base class for wxTreeItemData because the size of 
  57     this class is critical: in many applications, each tree leaf will have 
  58     wxTreeItemData associated with it and the number of leaves may be quite big. 
  60     Also please note that because the objects of this class are deleted by the 
  61     tree using the operator @c delete, they must always be allocated on the heap 
  69 class wxTreeItemData 
: public wxClientData
 
  76         The following methods are added in wxPython for accessing the object: 
  77         - GetData(): Returns a reference to the Python Object. 
  78         - SetData(obj): Associates a new Python Object with the wxTreeItemData. 
  86     virtual ~wxTreeItemData(); 
  89         Returns the item associated with this node. 
  91     const wxTreeItemId
& GetId() const; 
  94         Sets the item associated with this node. 
  96     void SetId(const wxTreeItemId
& id
); 
 100     Indicates which type to associate an image with a wxTreeCtrl item. 
 102     @see wxTreeCtrl::GetItemImage(), wxTreeCtrl::SetItemImage() 
 107         To get/set the item image for when the item is 
 108         @b not selected and @b not expanded. 
 110     wxTreeItemIcon_Normal
, 
 112         To get/set the item image for when the item is 
 113         @b selected and @b not expanded. 
 115     wxTreeItemIcon_Selected
, 
 117         To get/set the item image for when the item is 
 118         @b not selected and @b expanded. 
 120     wxTreeItemIcon_Expanded
, 
 122         To get/set the item image for when the item is 
 123         @b selected and @b expanded. 
 125     wxTreeItemIcon_SelectedExpanded
,