From: Vadim Zeitlin Date: Thu, 2 Feb 2012 14:19:30 +0000 (+0000) Subject: Fix wxDataViewCtrl::GetItemRect() signature in wxOSX and document it better. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/7f15deea6d6e45b3ae37d4e1402ac9ce044305eb Fix wxDataViewCtrl::GetItemRect() signature in wxOSX and document it better. The second parameter of this method should be optional, so make it so in wxOSX. Also document what this method does exactly and the platforms under which it's implemented. Closes #13914. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70496 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/osx/dataview.h b/include/wx/osx/dataview.h index 5962127d7b..b8463c4c99 100644 --- a/include/wx/osx/dataview.h +++ b/include/wx/osx/dataview.h @@ -174,7 +174,8 @@ public: virtual bool IsExpanded(const wxDataViewItem & item) const; virtual unsigned int GetCount() const; - virtual wxRect GetItemRect(const wxDataViewItem& item, const wxDataViewColumn* columnPtr) const; + virtual wxRect GetItemRect(const wxDataViewItem& item, + const wxDataViewColumn* columnPtr = NULL) const; virtual int GetSelectedItemsCount() const; virtual int GetSelections(wxDataViewItemArray& sel) const; diff --git a/interface/wx/dataview.h b/interface/wx/dataview.h index c193002f53..bcd05e3cac 100644 --- a/interface/wx/dataview.h +++ b/interface/wx/dataview.h @@ -1098,7 +1098,18 @@ public: int GetIndent() const; /** - Returns item rect. + Returns item rectangle. + + This method is currently not implemented at all in wxGTK and only + implemented for non-@NULL @a col argument in wxOSX. It is fully + implemented in the generic version of the control. + + @param item + A valid item. + @param col + If non-@NULL, the rectangle returned corresponds to the + intersection of the item with the specified column. If @NULL, the + rectangle spans all the columns. */ virtual wxRect GetItemRect(const wxDataViewItem& item, const wxDataViewColumn* col = NULL) const;