position in the control which may change after reordering
columns by the user.
-\membersection{wxDataViewCtrl::GetModel}\label{wxdataviewctrlgetmodel}
-
-\constfunc{virtual wxDataViewModel*}{GetModel}{\void}
-
-Returns pointer to the data model associated with the
-control (if any).
-
\membersection{wxDataViewCtrl::GetColumnCount}\label{wxdataviewctrlgetcolumncount}
\constfunc{virtual unsigned int}{GetColumnCount}{\void}
Returns the number of columns.
+\membersection{wxDataViewCtrl::GetColumnPosition}\label{wxdataviewctrlgetcolumnposition}
+
+\constfunc{virtual int}{GetColumnPosition}{\param{const wxDataViewColumn* }{column}}
+
+Returns the position of the column or -1 if not found in the control.
+
\membersection{wxDataViewCtrl::EnsureVisible}\label{wxdataviewctrlensurevisible}
\func{void}{EnsureVisible}{\param{const wxDataViewItem \& }{item}, \param{const wxDataViewColumn* }{column = NULL}}
Returns item rect.
+\membersection{wxDataViewCtrl::GetModel}\label{wxdataviewctrlgetmodel}
+
+\constfunc{virtual wxDataViewModel*}{GetModel}{\void}
+
+Returns pointer to the data model associated with the
+control (if any).
+
\membersection{wxDataViewCtrl::GetSelection}\label{wxdataviewctrlgetselection}
\constfunc{wxDataViewItem}{GetSelection}{\void}
virtual unsigned int GetColumnCount() const = 0;
virtual wxDataViewColumn* GetColumn( unsigned int pos ) const = 0;
+ virtual int GetColumnPosition( const wxDataViewColumn *column ) const = 0;
virtual bool DeleteColumn( wxDataViewColumn *column ) = 0;
virtual bool ClearColumns() = 0;
virtual wxDataViewColumn* GetColumn( unsigned int pos ) const;
virtual bool DeleteColumn( wxDataViewColumn *column );
virtual bool ClearColumns();
+ virtual int GetColumnPosition( const wxDataViewColumn *column ) const;
virtual wxDataViewColumn *GetSortingColumn() const;
virtual wxDataViewColumn* GetColumn( unsigned int pos ) const;
virtual bool DeleteColumn( wxDataViewColumn *column );
virtual bool ClearColumns();
+ virtual int GetColumnPosition( const wxDataViewColumn *column ) const;
virtual wxDataViewColumn *GetSortingColumn() const;
virtual bool DeleteColumn(wxDataViewColumn* columnPtr);
virtual wxDataViewColumn* GetColumn(unsigned int pos) const;
virtual unsigned int GetColumnCount(void) const;
-
+ virtual int GetColumnPosition( const wxDataViewColumn *column ) const;
virtual wxDataViewColumn *GetSortingColumn() const;
virtual void Collapse(wxDataViewItem const& item);
return true;
}
+int wxDataViewCtrl::GetColumnPosition( const wxDataViewColumn *column ) const
+{
+ return -1;
+}
+
wxDataViewColumn *wxDataViewCtrl::GetSortingColumn() const
{
return NULL;
return true;
}
+int wxDataViewCtrl::GetColumnPosition( const wxDataViewColumn *column ) const
+{
+ return -1;
+}
+
wxDataViewColumn *wxDataViewCtrl::GetSortingColumn() const
{
return NULL;
return this->m_ColumnPointers.size();
} /* wxDataViewCtrl::GetColumnCount(void) const */
+int wxDataViewCtrl::GetColumnPosition( const wxDataViewColumn *column ) const
+{
+ return -1;
+}
+
wxDataViewColumn *wxDataViewCtrl::GetSortingColumn() const
{
return NULL;