X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/518cef04707760634dd3937c3a928bbc2db24836..3cc638ed7f1c7f114a6683714567d90f0ba9ded2:/include/wx/dataview.h diff --git a/include/wx/dataview.h b/include/wx/dataview.h index 9e1ad7bac1..f393e0384f 100644 --- a/include/wx/dataview.h +++ b/include/wx/dataview.h @@ -229,7 +229,7 @@ public: return true; } - // define hierachy + // define hierarchy virtual wxDataViewItem GetParent( const wxDataViewItem &item ) const = 0; virtual bool IsContainer( const wxDataViewItem &item ) const = 0; // Is the container just a header or an item with all columns @@ -972,6 +972,8 @@ public: void DeleteItem( unsigned int pos ); void DeleteAllItems(); + unsigned int GetItemCount() const; + void SetItemData( const wxDataViewItem& item, wxUIntPtr data ); wxUIntPtr GetItemData( const wxDataViewItem& item ) const; @@ -1085,6 +1087,9 @@ public: wxUIntPtr GetItemData( const wxDataViewItem& item ) const { return GetStore()->GetItemData( item ); } + int GetItemCount() const + { return GetStore()->GetItemCount(); } + void OnSize( wxSizeEvent &event ); private: