X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/adaaa68635b4c8a4d8c5284add40366ea3eefb07..85b1997c095b18cd5e9e54e9d39feaa71c5ffa06:/interface/wx/treebase.h diff --git a/interface/wx/treebase.h b/interface/wx/treebase.h index 6debc4fae1..5bed652e0c 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 */ @@ -77,6 +77,13 @@ public: - GetData(): Returns a reference to the Python Object. - SetData(obj): Associates a new Python Object with the wxTreeItemData. @endWxPythonOnly + + @beginWxPerlOnly + In wxPerl the constructor accepts a scalar as an optional parameter + and stores it as client data; use + - GetData() to retrieve the value. + - SetData(data) to set it. + @endWxPerlOnly */ wxTreeItemData(); @@ -88,17 +95,23 @@ public: /** 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