Correct signature of HitTest()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48369 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
fbda518cb7
commit
a87b466df3
@ -25,7 +25,7 @@
|
||||
|
||||
#if defined(__WXGTK20__)
|
||||
// for testing
|
||||
#define wxUSE_GENERICDATAVIEWCTRL 1
|
||||
// #define wxUSE_GENERICDATAVIEWCTRL 1
|
||||
#elif defined(__WXMAC__)
|
||||
#else
|
||||
#define wxUSE_GENERICDATAVIEWCTRL 1
|
||||
@ -487,7 +487,7 @@ public:
|
||||
|
||||
virtual void EnsureVisible( const wxDataViewItem & item,
|
||||
const wxDataViewColumn *column = NULL ) = 0;
|
||||
virtual void HitTest( const wxPoint & point, wxDataViewItem &item, wxDataViewColumn* column ) const = 0;
|
||||
virtual void HitTest( const wxPoint & point, wxDataViewItem &item, wxDataViewColumn* &column ) const = 0;
|
||||
virtual wxRect GetItemRect( const wxDataViewItem & item, const wxDataViewColumn *column = NULL ) const = 0;
|
||||
|
||||
protected:
|
||||
|
@ -366,7 +366,7 @@ public:
|
||||
|
||||
virtual void EnsureVisible( const wxDataViewItem & item,
|
||||
const wxDataViewColumn *column = NULL );
|
||||
virtual void HitTest( const wxPoint & point, wxDataViewItem & item, wxDataViewColumn* column ) const;
|
||||
virtual void HitTest( const wxPoint & point, wxDataViewItem & item, wxDataViewColumn* &column ) const;
|
||||
virtual wxRect GetItemRect( const wxDataViewItem & item, const wxDataViewColumn *column = NULL ) const;
|
||||
|
||||
protected:
|
||||
|
@ -319,7 +319,7 @@ public:
|
||||
const wxDataViewColumn *column = NULL );
|
||||
virtual void HitTest( const wxPoint &point,
|
||||
wxDataViewItem &item,
|
||||
wxDataViewColumn *column ) const;
|
||||
wxDataViewColumn *&column ) const;
|
||||
virtual wxRect GetItemRect( const wxDataViewItem &item,
|
||||
const wxDataViewColumn *column = NULL ) const;
|
||||
|
||||
|
@ -509,7 +509,7 @@ public:
|
||||
//Methods for building the mapping tree
|
||||
void BuildTree( wxDataViewModel * model );
|
||||
void DestroyTree();
|
||||
void HitTest( const wxPoint & point, wxDataViewItem & item, wxDataViewColumn* column );
|
||||
void HitTest( const wxPoint & point, wxDataViewItem & item, wxDataViewColumn* &column );
|
||||
wxRect GetItemRect( const wxDataViewItem & item, const wxDataViewColumn* column );
|
||||
private:
|
||||
wxDataViewTreeNode * GetTreeNodeByRow( unsigned int row );
|
||||
@ -2943,7 +2943,7 @@ wxDataViewTreeNode * wxDataViewMainWindow::FindNode( const wxDataViewItem & item
|
||||
return node;
|
||||
}
|
||||
|
||||
void wxDataViewMainWindow::HitTest( const wxPoint & point, wxDataViewItem & item, wxDataViewColumn* column )
|
||||
void wxDataViewMainWindow::HitTest( const wxPoint & point, wxDataViewItem & item, wxDataViewColumn* &column )
|
||||
{
|
||||
wxDataViewColumn *col = NULL;
|
||||
unsigned int cols = GetOwner()->GetColumnCount();
|
||||
@ -3791,7 +3791,7 @@ void wxDataViewCtrl::EnsureVisible( const wxDataViewItem & item, const wxDataVie
|
||||
|
||||
}
|
||||
|
||||
void wxDataViewCtrl::HitTest( const wxPoint & point, wxDataViewItem & item, wxDataViewColumn* column ) const
|
||||
void wxDataViewCtrl::HitTest( const wxPoint & point, wxDataViewItem & item, wxDataViewColumn* &column ) const
|
||||
{
|
||||
m_clientArea->HitTest(point, item, column);
|
||||
}
|
||||
|
@ -3102,10 +3102,10 @@ void wxDataViewCtrl::EnsureVisible( const wxDataViewItem & item, const wxDataVie
|
||||
}
|
||||
|
||||
void wxDataViewCtrl::HitTest( const wxPoint &point,
|
||||
wxDataViewItem &item, wxDataViewColumn *column ) const
|
||||
wxDataViewItem &item, wxDataViewColumn *&column ) const
|
||||
{
|
||||
item = wxDataViewItem(0);
|
||||
column = 0;
|
||||
column = NULL;
|
||||
}
|
||||
|
||||
wxRect wxDataViewCtrl::GetItemRect( const wxDataViewItem &item,
|
||||
|
Loading…
Reference in New Issue
Block a user