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 behaviour of the column:
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_REORDERABLE =
4, // column can be reordered
23 wxDATAVIEW_COL_HIDDEN =
8 // column is hidden
28 \wxheading{Derived from
}
30 \helpref{wxObject
}{wxobject
}
32 \wxheading{Include files
}
38 \helpref{wxAdv
}{librarieslist
}
41 \latexignore{\rtfignore{\wxheading{Members
}}}
43 \membersection{wxDataViewColumn::wxDataViewColumn
}\label{wxdataviewcolumnwxdataviewcolumn
}
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}}
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}}
52 \membersection{wxDataViewColumn::
\destruct{wxDataViewColumn
}}\label{wxdataviewcolumndtor
}
54 \func{}{\destruct{wxDataViewColumn
}}{\void}
58 \membersection{wxDataViewColumn::GetBitmap
}\label{wxdataviewcolumngetbitmap
}
60 \func{const wxBitmap\&
}{GetBitmap
}{\void}
62 Returns the bitmap in the header of the column, if any.
64 \membersection{wxDataViewColumn::GetModelColumn
}\label{wxdataviewcolumngetmodelcolumn
}
66 \func{unsigned int
}{GetModelColumn
}{\void}
68 Returns the index of the column of the model, which this
69 wxDataViewColumn is displaying.
71 \membersection{wxDataViewColumn::GetOwner
}\label{wxdataviewcolumngetowner
}
73 \func{wxDataViewCtrl*
}{GetOwner
}{\void}
75 Returns the owning
\helpref{wxDataViewCtrl
}{wxdataviewctrl
}.
77 \membersection{wxDataViewColumn::GetRenderer
}\label{wxdataviewcolumngetrenderer
}
79 \func{wxDataViewRenderer*
}{GetRenderer
}{\void}
81 Returns the renderer of this wxDataViewColumn.
83 See also
\helpref{wxDataViewRenderer
}{wxdataviewrenderer
}.
85 \membersection{wxDataViewColumn::GetReorderable
}\label{wxdataviewcolumngetreorderable
}
87 \func{bool
}{GetReorderable
}{\void}
89 Returns true if the column is reorderable.
91 \membersection{wxDataViewColumn::GetSortable
}\label{wxdataviewcolumngetsortable
}
93 \func{bool
}{GetSortable
}{\void}
95 Returns true if the column is sortable.
97 See
\helpref{SetSortable
}{wxdataviewcolumnsetsortable
}
99 \membersection{wxDataViewColumn::GetWidth
}\label{wxdataviewcolumngetwidth
}
101 \func{int
}{GetWidth
}{\void}
103 Returns the width of the column.
105 \membersection{wxDataViewColumn::IsSortOrderAscending
}\label{wxdataviewcolumnissortorderascending
}
107 \func{bool
}{IsSortOrderAscending
}{\void}
109 Returns true, if the sort order is ascending.
111 See also
\helpref{SetSortOrder
}{wxdataviewcolumnsetsortorder
}
113 \membersection{wxDataViewColumn::SetAlignment
}\label{wxdataviewcolumnsetalignment
}
115 \func{void
}{SetAlignment
}{\param{wxAlignment
}{align
}}
117 Set the alignment of the column header.
119 \membersection{wxDataViewColumn::SetBitmap
}\label{wxdataviewcolumnsetbitmap
}
121 \func{void
}{SetBitmap
}{\param{const wxBitmap\&
}{bitmap
}}
123 Set the bitmap of the column header.
125 \membersection{wxDataViewColumn::SetReorderable
}\label{wxdataviewcolumnsetreorderable
}
127 \func{void
}{SetReorderable
}{\param{bool
}{reorderable
}}
129 Indicate wether the column can be reordered by the
130 user using the mouse. This is typically implemented
131 visually by dragging the header button around.
133 \membersection{wxDataViewColumn::SetSortOrder
}\label{wxdataviewcolumnsetsortorder
}
135 \func{void
}{SetSortOrder
}{\param{bool
}{ascending
}}
137 Indicate the sort order if the implementation of the
138 wxDataViewCtrl supports it, most commonly by showing
141 \membersection{wxDataViewColumn::SetSortable
}\label{wxdataviewcolumnsetsortable
}
143 \func{void
}{SetSortable
}{\param{bool
}{sortable
}}
145 Indicate that the column is sortable. This does
146 not show any sorting indicate yet, but it does
147 make the column header clickable. Call
148 \helpref{SetSortOrder
}{wxdataviewcolumnsetsortorder
}
149 afterwards to actually make the sort indicator appear.
150 If
{\it sortable
} is false, the column header is
151 no longer clickable and the sort indicator (little
152 arrow) will disappear.
154 \membersection{wxDataViewColumn::SetTitle
}\label{wxdataviewcolumnsettitle
}
156 \func{void
}{SetTitle
}{\param{const wxString\&
}{title
}}
158 Set the title of the column header to
{\it title
}.