X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/12f5e1e78fe906050ff2fee9529476db332633f0..3c3ead1d1513a5eb79091a604f4e42b45d1bdf5d:/interface/wx/treebase.h diff --git a/interface/wx/treebase.h b/interface/wx/treebase.h index e1122c9c29..e9eaf7da5d 100644 --- a/interface/wx/treebase.h +++ b/interface/wx/treebase.h @@ -12,7 +12,7 @@ An opaque reference to a tree item. @library{wxcore} - @category{misc} + @category{data} @see wxTreeCtrl, wxTreeItemData, @ref overview_treectrl */ @@ -83,22 +83,28 @@ public: /** Virtual destructor. */ - ~wxTreeItemData(); + virtual ~wxTreeItemData(); /** Returns the item associated with this node. */ - const wxTreeItemId GetId(); + const wxTreeItemId& GetId() const; /** Sets the item associated with this node. + + Notice that this function is automatically called by wxTreeCtrl methods + associating an object of this class with a tree control item such as + wxTreeCtrl::AppendItem(), wxTreeCtrl::InsertItem() and + wxTreeCtrl::SetItemData() so there is usually no need to call it + yourself. */ void SetId(const wxTreeItemId& id); }; /** Indicates which type to associate an image with a wxTreeCtrl item. - + @see wxTreeCtrl::GetItemImage(), wxTreeCtrl::SetItemImage() */ enum wxTreeItemIcon