2 \section{\class{wxDataViewColumn
}}\label{wxdataviewcolumn
}
5 This class represents a column in a
\helpref{wxDataViewCtrl
}{wxdataviewctrl
}.
6 One wxDataViewColumn is bound to one column in the data model,
7 to which the wxDataViewCtrl has been associated.
9 An instance of
\helpref{wxDataViewRenderer
}{wxdataviewrenderer
} is used by
10 this class to render its data.
14 These flags define behavi
18 enum wxDataViewColumnFlags
20 wxDATAVIEW_COL_RESIZABLE =
1, // the user can resize the column
21 wxDATAVIEW_COL_SORTABLE =
2, // same as SetSortable()
22 wxDATAVIEW_COL_HIDDEN =
4 // column is hidden
27 \wxheading{Derived from
}
29 \helpref{wxObject
}{wxobject
}
31 \wxheading{Include files
}
37 \helpref{wxAdv
}{librarieslist
}
40 \membersection{wxDataViewColumn::wxDataViewColumn
}\label{wxdataviewcolumnwxdataviewcolumn
}
42 \func{}{wxDataViewColumn
}{\param{const wxString\&
}{title
},
\param{wxDataViewRenderer*
}{renderer
},
\param{unsigned int
}{model
\_column},
\param{int
}{width =
80},
\param{int
}{flags = wxDATAVIEW
\_COL\_RESIZABLE}}
45 \func{}{wxDataViewColumn
}{\param{const wxBitmap\&
}{bitmap
},
\param{wxDataViewRenderer*
}{renderer
},
\param{unsigned int
}{model
\_column},
\param{int
}{width =
80},
\param{int
}{flags = wxDATAVIEW
\_COL\_RESIZABLE}}
50 \membersection{wxDataViewColumn::
\destruct{wxDataViewColumn
}}\label{wxdataviewcolumndtor
}
52 \func{}{\destruct{wxDataViewColumn
}}{\void}
56 \membersection{wxDataViewColumn::GetBitmap
}\label{wxdataviewcolumngetbitmap
}
58 \func{const wxBitmap\&
}{GetBitmap
}{\void}
60 Returns the bitmap in the header of the column, if any.
62 \membersection{wxDataViewColumn::GetModelColumn
}\label{wxdataviewcolumngetmodelcolumn
}
64 \func{unsigned int
}{GetModelColumn
}{\void}
66 Returns the index of the column of the model, which this
67 wxDataViewColumn is displaying.
69 \membersection{wxDataViewColumn::GetOwner
}\label{wxdataviewcolumngetowner
}
71 \func{wxDataViewCtrl*
}{GetOwner
}{\void}
73 Returns the owning
\helpref{wxDataViewCtrl
}{wxdataviewctrl
}.
75 \membersection{wxDataViewColumn::GetRenderer
}\label{wxdataviewcolumngetrenderer
}
77 \func{wxDataViewRenderer*
}{GetRenderer
}{\void}
79 Returns the renderer of this wxDataViewColumn.
81 See also
\helpref{wxDataViewRenderer
}{wxdataviewrenderer
}.
83 \membersection{wxDataViewColumn::GetSortable
}\label{wxdataviewcolumngetsortable
}
85 \func{bool
}{GetSortable
}{\void}
87 Returns true if the column is sortable.
89 See
\helpref{SetSortable
}{wxdataviewcolumnsetsortable
}
91 \membersection{wxDataViewColumn::GetWidth
}\label{wxdataviewcolumngetwidth
}
93 \func{int
}{GetWidth
}{\void}
95 Returns the width of the column.
97 \membersection{wxDataViewColumn::IsSortOrderAscending
}\label{wxdataviewcolumnissortorderascending
}
99 \func{bool
}{IsSortOrderAscending
}{\void}
101 Returns true, if the sort order is ascending.
103 See also
\helpref{SetSortOrder
}{wxdataviewcolumnsetsortorder
}
105 \membersection{wxDataViewColumn::SetAlignment
}\label{wxdataviewcolumnsetalignment
}
107 \func{void
}{SetAlignment
}{\param{wxAlignment
}{align
}}
109 Set the alignment of the column header.
111 \membersection{wxDataViewColumn::SetBitmap
}\label{wxdataviewcolumnsetbitmap
}
113 \func{void
}{SetBitmap
}{\param{const wxBitmap\&
}{bitmap
}}
115 Set the bitmap of the column header.
117 \membersection{wxDataViewColumn::SetSortOrder
}\label{wxdataviewcolumnsetsortorder
}
119 \func{void
}{SetSortOrder
}{\param{bool
}{ascending
}}
121 Indicate the sort order if the implementation of the
122 wxDataViewCtrl supports it, most commonly by showing
123 a little arrow. Use this in conjunction with
124 \helpref{wxDataViewSortedListModel::SetAscending
}{wxdataviewsortedlistmodelsetascending
}
125 to sort the actual data.
127 \membersection{wxDataViewColumn::SetSortable
}\label{wxdataviewcolumnsetsortable
}
129 \func{void
}{SetSortable
}{\param{bool
}{sortable
}}
131 Indicate that the column is sortable. This is only to provide a
132 visual hint in the column (such as a sort order indicator). It
133 will not actually sort the data. Use a
134 \helpref{wxDataViewSortedListModel
}{wxdataviewsortedlistmodel
}
137 \membersection{wxDataViewColumn::SetTitle
}\label{wxdataviewcolumnsettitle
}
139 \func{void
}{SetTitle
}{\param{const wxString\&
}{title
}}
141 Set the title of the column header to
{\it title
}.