wxdataviewrendererthis class is used by wxdataviewctrl to render the individual cells. one instance of a renderer class is owned by wxdataviewcolumn. there is a number of ready-to-use renderers provided: wxdataviewtextrenderer, wxdataviewtogglerenderer, wxdataviewprogressrenderer, wxdataviewbitmaprenderer, wxdataviewdaterenderer. additionally, the user can write own renderers by deriving from wxdataviewcustomrenderer. these flags control the behaviour of the renderer and they are used for controlling in what mode the renderer shall render its contents:
derived from include files <wx/dataview.h>
wxdataviewrenderer::wxdataviewrenderer
wxdataviewrenderer::wxdataviewrendererwxdataviewrenderer(const wxstring& varianttype, wxdataviewcellmode mode = wxdataview_cell_inert) constructor.
wxdataviewrenderer::getmodevirtual wxdataviewcellmode getmode() returns the cell mode.
wxdataviewrenderer::getownervirtual wxdataviewcolumn* getowner() returns pointer to the owning wxdataviewcolumn.
wxdataviewrenderer::getvaluevirtual bool getvalue(wxvariant& value) this methods retrieves the value from the renderer in order to transfer the value back to the data model. returns false on failure.
wxdataviewrenderer::getvarianttypevirtual wxstring getvarianttype() returns a string with the type of the wxvariant supported by this renderer.
wxdataviewrenderer::setownervirtual void setowner(wxdataviewcolumn* owner) sets the owning wxdataviewcolumn. this is usually called from within wxdataviewcolumn.
wxdataviewrenderer::setvaluevirtual bool setvalue(const wxvariant& value) set the value of the renderer (and thus its cell) to value. the internal code will then render this cell with this data.
wxdataviewrenderer::validatevirtual bool validate(wxvariant& value) to be implemented.
|