$szTitle = "wxdataviewcolumn"; include "./_header.inc"; ?>
this class represents a column in a wxdataviewctrl. one wxdataviewcolumn is bound to one column in the data model, to which the wxdataviewctrl has been associated.
an instance of wxdataviewrenderer is used by this class to render its data.
constants
these flags define behavi
enum wxdataviewcolumnflags
{
wxdataview_col_resizable = 1, // the user can resize the column
wxdataview_col_sortable = 2, // same as setsortable()
wxdataview_col_hidden = 4 // column is hidden
};
derived from
include files
<wx/dataview.h>
wxdataviewcolumn::wxdataviewcolumn
wxdataviewcolumn::~wxdataviewcolumn
wxdataviewcolumn::getbitmap
wxdataviewcolumn::getmodelcolumn
wxdataviewcolumn::getowner
wxdataviewcolumn::getrenderer
wxdataviewcolumn::getsortable
wxdataviewcolumn::getwidth
wxdataviewcolumn::issortorderascending
wxdataviewcolumn::setalignment
wxdataviewcolumn::setbitmap
wxdataviewcolumn::setsortorder
wxdataviewcolumn::setsortable
wxdataviewcolumn::settitle
wxdataviewcolumn(const wxstring& title, wxdataviewrenderer* renderer, unsigned int model_column, int width = 80, int flags = wxdataview_col_resizable)
wxdataviewcolumn(const wxbitmap& bitmap, wxdataviewrenderer* renderer, unsigned int model_column, int width = 80, int flags = wxdataview_col_resizable)
constructors.
~wxdataviewcolumn()
destructor.
const wxbitmap& getbitmap()
returns the bitmap in the header of the column, if any.
unsigned int getmodelcolumn()
returns the index of the column of the model, which this wxdataviewcolumn is displaying.
wxdataviewctrl* getowner()
returns the owning wxdataviewctrl.
wxdataviewrenderer* getrenderer()
returns the renderer of this wxdataviewcolumn.
see also wxdataviewrenderer.
bool getsortable()
returns true if the column is sortable.
see setsortable
int getwidth()
returns the width of the column.
bool issortorderascending()
returns true, if the sort order is ascending.
see also setsortorder
void setalignment(wxalignment align)
set the alignment of the column header.
void setbitmap(const wxbitmap& bitmap)
set the bitmap of the column header.
void setsortorder(bool ascending)
indicate the sort order if the implementation of the wxdataviewctrl supports it, most commonly by showing a little arrow. use this in conjunction with wxdataviewsortedlistmodel::setascending to sort the actual data.
void setsortable(bool sortable)
indicate that the column is sortable. this is only to provide a visual hint in the column (such as a sort order indicator). it will not actually sort the data. use a wxdataviewsortedlistmodel to so the sorting.
void settitle(const wxstring& title)
set the title of the column header to title.
include "./_footer.inc"; ?>