.\" This is a wxWidgets manpage page generated from the XML docs .TH wxTreeItemData 3wx 2005-02-15 "wxWidgets" "wxWidgets class documentation" .SH NAME wxTreeItemData \- .SH DESCRIPTION wxTreeItemData is some (arbitrary) user class associated with some item. The main advantage of having this class is that wxTreeItemData objects are destroyed automatically by the tree and, as this class has virtual destructor, it means that the memory and any other resources associated with a tree item will be automatically freed when it is deleted. Note that we don't use wxObject as the base class for wxTreeItemData because the size of this class is critical: in many applications, each tree leaf will have wxTreeItemData associated with it and the number of leaves may be quite big. Also please note that because the objects of this class are deleted by the tree using the operator delete , they must always be allocated on the heap using new . .SH "PARENTS" wxClientData .SH "INCLUDE FILES" wx/treectrl.h .SH MEMBERS .SS wxTreeItemData () Default constructor. .SS void ~wxTreeItemData () Virtual destructor. .SS const wxTreeItemId& GetId () Returns the item associated with this node. .SS void SetId (const wxTreeItemId& id) Sets the item associated with this node. .SH "SEE ALSO" wxClientData wxTreeCtrl .SH "AUTHORS" Documentation content by Julian Smart, Robert Roebling, Vadim Zeitlin, Robin Dunn, et al Conversion to manpage format by Arnout Engelen (http://bzzt.net), bugreports welcome.