]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/dataviewcolumn.tex
added ReadType convenience functions (patch 1764160)
[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
14These flags define behavi
15
16{\small
17\begin{verbatim}
18enum wxDataViewColumnFlags
19{
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
23};
24\end{verbatim}
25}
26
27\wxheading{Derived from}
28
29\helpref{wxObject}{wxobject}
30
31\wxheading{Include files}
32
33<wx/dataview.h>
34
a7af285d
VZ
35\wxheading{Library}
36
37\helpref{wxAdv}{librarieslist}
38
b6b9d556
RR
39
40\membersection{wxDataViewColumn::wxDataViewColumn}\label{wxdataviewcolumnwxdataviewcolumn}
41
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}}
43
44
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}}
46
47Constructors.
48
49
50\membersection{wxDataViewColumn::\destruct{wxDataViewColumn}}\label{wxdataviewcolumndtor}
51
52\func{}{\destruct{wxDataViewColumn}}{\void}
53
54Destructor.
55
56\membersection{wxDataViewColumn::GetBitmap}\label{wxdataviewcolumngetbitmap}
57
58\func{const wxBitmap\&}{GetBitmap}{\void}
59
60Returns the bitmap in the header of the column, if any.
61
62\membersection{wxDataViewColumn::GetModelColumn}\label{wxdataviewcolumngetmodelcolumn}
63
64\func{unsigned int}{GetModelColumn}{\void}
65
66Returns the index of the column of the model, which this
67wxDataViewColumn is displaying.
68
69\membersection{wxDataViewColumn::GetOwner}\label{wxdataviewcolumngetowner}
70
71\func{wxDataViewCtrl*}{GetOwner}{\void}
72
73Returns the owning \helpref{wxDataViewCtrl}{wxdataviewctrl}.
74
75\membersection{wxDataViewColumn::GetRenderer}\label{wxdataviewcolumngetrenderer}
76
77\func{wxDataViewRenderer*}{GetRenderer}{\void}
78
79Returns the renderer of this wxDataViewColumn.
80
81See also \helpref{wxDataViewRenderer}{wxdataviewrenderer}.
82
83\membersection{wxDataViewColumn::GetSortable}\label{wxdataviewcolumngetsortable}
84
85\func{bool}{GetSortable}{\void}
86
87Returns true if the column is sortable.
88
89See \helpref{SetSortable}{wxdataviewcolumnsetsortable}
90
91\membersection{wxDataViewColumn::GetWidth}\label{wxdataviewcolumngetwidth}
92
93\func{int}{GetWidth}{\void}
94
95Returns the width of the column.
96
97\membersection{wxDataViewColumn::IsSortOrderAscending}\label{wxdataviewcolumnissortorderascending}
98
99\func{bool}{IsSortOrderAscending}{\void}
100
101Returns true, if the sort order is ascending.
102
103See also \helpref{SetSortOrder}{wxdataviewcolumnsetsortorder}
104
105\membersection{wxDataViewColumn::SetAlignment}\label{wxdataviewcolumnsetalignment}
106
107\func{void}{SetAlignment}{\param{wxAlignment }{align}}
108
109Set the alignment of the column header.
110
111\membersection{wxDataViewColumn::SetBitmap}\label{wxdataviewcolumnsetbitmap}
112
113\func{void}{SetBitmap}{\param{const wxBitmap\& }{bitmap}}
114
115Set the bitmap of the column header.
116
117\membersection{wxDataViewColumn::SetSortOrder}\label{wxdataviewcolumnsetsortorder}
118
119\func{void}{SetSortOrder}{\param{bool }{ascending}}
120
121Indicate the sort order if the implementation of the
122wxDataViewCtrl supports it, most commonly by showing
123a little arrow. Use this in conjunction with
124\helpref{wxDataViewSortedListModel::SetAscending}{wxdataviewsortedlistmodelsetascending}
125to sort the actual data.
126
127\membersection{wxDataViewColumn::SetSortable}\label{wxdataviewcolumnsetsortable}
128
129\func{void}{SetSortable}{\param{bool }{sortable}}
130
131Indicate that the column is sortable. This is only to provide a
132visual hint in the column (such as a sort order indicator). It
133will not actually sort the data. Use a
134\helpref{wxDataViewSortedListModel}{wxdataviewsortedlistmodel}
135to so the sorting.
136
137\membersection{wxDataViewColumn::SetTitle}\label{wxdataviewcolumnsettitle}
138
139\func{void}{SetTitle}{\param{const wxString\& }{title}}
140
141Set the title of the column header to {\it title}.
142