X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e895ec451398f039d577e3e77b0b626531c901d9..8c10faf1bdfc5b827c4361216cfd39e3bbf027a4:/include/wx/gtk1/treectrl.h diff --git a/include/wx/gtk1/treectrl.h b/include/wx/gtk1/treectrl.h index 63c6aece95..34ac6d2df6 100644 --- a/include/wx/gtk1/treectrl.h +++ b/include/wx/gtk1/treectrl.h @@ -6,7 +6,7 @@ // Created: 08/08/98 // RCS-ID: $Id$ // Copyright: (c) Denis Pershin -// Licence: wxWindows license +// Licence: wxWindows license ///////////////////////////////////////////////////////////////////////////// #ifndef _WX_TREECTRL_H_ @@ -234,6 +234,13 @@ public: // is this item currently selected (the same as has focus)? bool IsSelected(const wxTreeItemId& item) const; + // number of children + // ------------------ + + // if 'recursively' is FALSE, only immediate children count, otherwise + // the returned number is the number of all items in this branch + size_t GetChildrenCount(const wxTreeItemId& item, bool recursively = TRUE); + // navigation // ---------- @@ -375,6 +382,7 @@ public: void SendSelChanging(const wxTreeItemId& item); void SendSelChanged(const wxTreeItemId& item); protected: + wxTreeItemId m_editItem; GtkTree *m_tree; GtkTreeItem *m_anchor; wxTextCtrl* m_textCtrl;