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_HIDDEN =
4 // column is hidden
27 \wxheading{Derived from
}
29 \helpref{wxObject
}{wxobject
}
31 \wxheading{Include files
}
37 \helpref{wxAdv
}{librarieslist
}
40 \latexignore{\rtfignore{\wxheading{Members
}}}
42 \membersection{wxDataViewColumn::wxDataViewColumn
}\label{wxdataviewcolumnwxdataviewcolumn
}
44 \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}}
46 \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}}
51 \membersection{wxDataViewColumn::
\destruct{wxDataViewColumn
}}\label{wxdataviewcolumndtor
}
53 \func{}{\destruct{wxDataViewColumn
}}{\void}
57 \membersection{wxDataViewColumn::GetBitmap
}\label{wxdataviewcolumngetbitmap
}
59 \func{const wxBitmap\&
}{GetBitmap
}{\void}
61 Returns the bitmap in the header of the column, if any.
63 \membersection{wxDataViewColumn::GetModelColumn
}\label{wxdataviewcolumngetmodelcolumn
}
65 \func{unsigned int
}{GetModelColumn
}{\void}
67 Returns the index of the column of the model, which this
68 wxDataViewColumn is displaying.
70 \membersection{wxDataViewColumn::GetOwner
}\label{wxdataviewcolumngetowner
}
72 \func{wxDataViewCtrl*
}{GetOwner
}{\void}
74 Returns the owning
\helpref{wxDataViewCtrl
}{wxdataviewctrl
}.
76 \membersection{wxDataViewColumn::GetRenderer
}\label{wxdataviewcolumngetrenderer
}
78 \func{wxDataViewRenderer*
}{GetRenderer
}{\void}
80 Returns the renderer of this wxDataViewColumn.
82 See also
\helpref{wxDataViewRenderer
}{wxdataviewrenderer
}.
84 \membersection{wxDataViewColumn::GetSortable
}\label{wxdataviewcolumngetsortable
}
86 \func{bool
}{GetSortable
}{\void}
88 Returns true if the column is sortable.
90 See
\helpref{SetSortable
}{wxdataviewcolumnsetsortable
}
92 \membersection{wxDataViewColumn::GetWidth
}\label{wxdataviewcolumngetwidth
}
94 \func{int
}{GetWidth
}{\void}
96 Returns the width of the column.
98 \membersection{wxDataViewColumn::IsSortOrderAscending
}\label{wxdataviewcolumnissortorderascending
}
100 \func{bool
}{IsSortOrderAscending
}{\void}
102 Returns true, if the sort order is ascending.
104 See also
\helpref{SetSortOrder
}{wxdataviewcolumnsetsortorder
}
106 \membersection{wxDataViewColumn::SetAlignment
}\label{wxdataviewcolumnsetalignment
}
108 \func{void
}{SetAlignment
}{\param{wxAlignment
}{align
}}
110 Set the alignment of the column header.
112 \membersection{wxDataViewColumn::SetBitmap
}\label{wxdataviewcolumnsetbitmap
}
114 \func{void
}{SetBitmap
}{\param{const wxBitmap\&
}{bitmap
}}
116 Set the bitmap of the column header.
118 \membersection{wxDataViewColumn::SetSortOrder
}\label{wxdataviewcolumnsetsortorder
}
120 \func{void
}{SetSortOrder
}{\param{bool
}{ascending
}}
122 Indicate the sort order if the implementation of the
123 wxDataViewCtrl supports it, most commonly by showing
126 \membersection{wxDataViewColumn::SetSortable
}\label{wxdataviewcolumnsetsortable
}
128 \func{void
}{SetSortable
}{\param{bool
}{sortable
}}
130 Indicate that the column is sortable. This does
131 not show any sorting indicate yet, but it does
132 make the column header clickable. Call
133 \helpref{SetSortOrder
}{wxdataviewcolumnsetsortorder
}
134 afterwards to actually make the sort indicator appear.
135 If
{\it sortable
} is false, the column header is
136 no longer clickable and the sort indicator (little
137 arrow) will disappear.
139 \membersection{wxDataViewColumn::SetTitle
}\label{wxdataviewcolumnsettitle
}
141 \func{void
}{SetTitle
}{\param{const wxString\&
}{title
}}
143 Set the title of the column header to
{\it title
}.