]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/dataviewcolumn.tex
typo
[wxWidgets.git] / docs / latex / wx / dataviewcolumn.tex
CommitLineData
b6b9d556
RR
1
2\section{\class{wxDataViewColumn}}\label{wxdataviewcolumn}
3
4
5This class represents a column in a \helpref{wxDataViewCtrl}{wxdataviewctrl}.
6One wxDataViewColumn is bound to one column in the data model,
7to which the wxDataViewCtrl has been associated.
8
9An instance of \helpref{wxDataViewRenderer}{wxdataviewrenderer} is used by
10this class to render its data.
11
12\wxheading{Constants}
13
c7074d44 14These flags define behaviour of the column:
b6b9d556
RR
15
16{\small
17\begin{verbatim}
18enum wxDataViewColumnFlags
19{
e483dfcb
RR
20 wxDATAVIEW_COL_RESIZABLE = 1, // the user can resize the column
21 wxDATAVIEW_COL_SORTABLE = 2, // same as SetSortable()
22 wxDATAVIEW_COL_REORDERABLE = 4, // column can be reordered
23 wxDATAVIEW_COL_HIDDEN = 8 // column is hidden
b6b9d556
RR
24};
25\end{verbatim}
26}
27
28\wxheading{Derived from}
29
30\helpref{wxObject}{wxobject}
31
32\wxheading{Include files}
33
34<wx/dataview.h>
35
a7af285d
VZ
36\wxheading{Library}
37
38\helpref{wxAdv}{librarieslist}
39
b6b9d556 40
809e21b5
FM
41\latexignore{\rtfignore{\wxheading{Members}}}
42
b6b9d556
RR
43\membersection{wxDataViewColumn::wxDataViewColumn}\label{wxdataviewcolumnwxdataviewcolumn}
44
ef974c00 45\func{}{wxDataViewColumn}{\param{const wxString\& }{title}, \param{wxDataViewRenderer* }{renderer}, \param{unsigned int }{model\_column}, \param{int }{width = wxDVC\_DEFAULT\_WIDTH}, \param{wxAlignment }{align = wxALIGN\_CENTRE}, \param{int }{flags = wxDATAVIEW\_COL\_RESIZABLE}}
b6b9d556 46
ef974c00 47\func{}{wxDataViewColumn}{\param{const wxBitmap\& }{bitmap}, \param{wxDataViewRenderer* }{renderer}, \param{unsigned int }{model\_column}, \param{int }{width = wxDVC\_DEFAULT\_WIDTH}, \param{wxAlignment }{align = wxALIGN\_CENTRE}, \param{int }{flags = wxDATAVIEW\_COL\_RESIZABLE}}
b6b9d556
RR
48
49Constructors.
50
51
52\membersection{wxDataViewColumn::\destruct{wxDataViewColumn}}\label{wxdataviewcolumndtor}
53
54\func{}{\destruct{wxDataViewColumn}}{\void}
55
56Destructor.
57
58\membersection{wxDataViewColumn::GetBitmap}\label{wxdataviewcolumngetbitmap}
59
60\func{const wxBitmap\&}{GetBitmap}{\void}
61
62Returns the bitmap in the header of the column, if any.
63
64\membersection{wxDataViewColumn::GetModelColumn}\label{wxdataviewcolumngetmodelcolumn}
65
66\func{unsigned int}{GetModelColumn}{\void}
67
68Returns the index of the column of the model, which this
69wxDataViewColumn is displaying.
70
71\membersection{wxDataViewColumn::GetOwner}\label{wxdataviewcolumngetowner}
72
73\func{wxDataViewCtrl*}{GetOwner}{\void}
74
75Returns the owning \helpref{wxDataViewCtrl}{wxdataviewctrl}.
76
77\membersection{wxDataViewColumn::GetRenderer}\label{wxdataviewcolumngetrenderer}
78
79\func{wxDataViewRenderer*}{GetRenderer}{\void}
80
81Returns the renderer of this wxDataViewColumn.
82
83See also \helpref{wxDataViewRenderer}{wxdataviewrenderer}.
84
99c75ebc
RR
85\membersection{wxDataViewColumn::GetReorderable}\label{wxdataviewcolumngetreorderable}
86
87\func{bool}{GetReorderable}{\void}
88
89Returns true if the column is reorderable.
90
b6b9d556
RR
91\membersection{wxDataViewColumn::GetSortable}\label{wxdataviewcolumngetsortable}
92
93\func{bool}{GetSortable}{\void}
94
95Returns true if the column is sortable.
96
97See \helpref{SetSortable}{wxdataviewcolumnsetsortable}
98
99\membersection{wxDataViewColumn::GetWidth}\label{wxdataviewcolumngetwidth}
100
101\func{int}{GetWidth}{\void}
102
103Returns the width of the column.
104
105\membersection{wxDataViewColumn::IsSortOrderAscending}\label{wxdataviewcolumnissortorderascending}
106
107\func{bool}{IsSortOrderAscending}{\void}
108
109Returns true, if the sort order is ascending.
110
111See also \helpref{SetSortOrder}{wxdataviewcolumnsetsortorder}
112
113\membersection{wxDataViewColumn::SetAlignment}\label{wxdataviewcolumnsetalignment}
114
115\func{void}{SetAlignment}{\param{wxAlignment }{align}}
116
117Set the alignment of the column header.
118
119\membersection{wxDataViewColumn::SetBitmap}\label{wxdataviewcolumnsetbitmap}
120
121\func{void}{SetBitmap}{\param{const wxBitmap\& }{bitmap}}
122
123Set the bitmap of the column header.
124
99c75ebc
RR
125\membersection{wxDataViewColumn::SetReorderable}\label{wxdataviewcolumnsetreorderable}
126
127\func{void}{SetReorderable}{\param{bool }{reorderable}}
128
129Indicate wether the column can be reordered by the
130user using the mouse. This is typically implemented
131visually by dragging the header button around.
132
b6b9d556
RR
133\membersection{wxDataViewColumn::SetSortOrder}\label{wxdataviewcolumnsetsortorder}
134
135\func{void}{SetSortOrder}{\param{bool }{ascending}}
136
137Indicate the sort order if the implementation of the
138wxDataViewCtrl supports it, most commonly by showing
c7074d44 139a little arrow.
b6b9d556
RR
140
141\membersection{wxDataViewColumn::SetSortable}\label{wxdataviewcolumnsetsortable}
142
143\func{void}{SetSortable}{\param{bool }{sortable}}
144
0bd26819
RR
145Indicate that the column is sortable. This does
146not show any sorting indicate yet, but it does
147make the column header clickable. Call
148\helpref{SetSortOrder}{wxdataviewcolumnsetsortorder}
149afterwards to actually make the sort indicator appear.
150If {\it sortable} is false, the column header is
151no longer clickable and the sort indicator (little
152arrow) will disappear.
b6b9d556
RR
153
154\membersection{wxDataViewColumn::SetTitle}\label{wxdataviewcolumnsettitle}
155
156\func{void}{SetTitle}{\param{const wxString\& }{title}}
157
158Set the title of the column header to {\it title}.
159