wxlistitemthis class stores information about a wxlistctrl item or column. derived from include files <wx/listctrl.h> members
wxlistitem::wxlistitem
wxlistitem::wxlistitemwxlistitem() constructor.
wxlistitem::clearvoid clear() resets the item state to the default.
wxlistitem::getalignwxlistcolumnformat getalign() const returns the alignment for this item. can be one of wxlist_format_left, wxlist_format_right or wxlist_format_centre.
wxlistitem::getbackgroundcolourwxcolour getbackgroundcolour() const returns the background colour for this item.
wxlistitem::getcolumnint getcolumn() const returns the zero-based column; meaningful only in report mode.
wxlistitem::getdatalong getdata() const returns client data associated with the control. please note that client data is associated with the item and not with subitems.
wxlistitem::getfontwxfont getfont() const returns the font used to display the item.
wxlistitem::getidlong getid() const returns the zero-based item position.
wxlistitem::getimageint getimage() const returns the zero-based index of the image associated with the item into the image list.
wxlistitem::getmasklong getmask() const returns a bit mask indicating which fields of the structure are valid; can be any combination of the following values:
wxlistitem::getstatelong getstate() const returns a bit field representing the state of the item. can be any combination of:
wxlistitem::gettextconst wxstring& gettext() const returns the label/header text.
wxlistitem::gettextcolourwxcolour gettextcolour() const returns the text colour.
wxlistitem::getwidthint getwidth() const meaningful only for column headers in report mode. returns the column width.
wxlistitem::setalignvoid setalign(wxlistcolumnformat align) sets the alignment for the item. see also wxlistitem::getalign
wxlistitem::setbackgroundcolourvoid setbackgroundcolour(const wxcolour& colback) sets the background colour for the item.
wxlistitem::setcolumnvoid setcolumn(int col) sets the zero-based column. meaningful only in report mode.
wxlistitem::setdatavoid setdata(long data) void setdata(void* data) sets client data for the item. please note that client data is associated with the item and not with subitems.
wxlistitem::setfontvoid setfont(const wxfont& font) sets the font for the item.
wxlistitem::setidvoid setid(long id) sets the zero-based item position.
wxlistitem::setimagevoid setimage(int image) sets the zero-based index of the image associated with the item into the image list.
wxlistitem::setmaskvoid setmask(long mask) sets the mask of valid fields. see wxlistitem::getmask.
wxlistitem::setstatevoid setstate(long state) sets the item state flags (note that the valid state flags are influenced by the value of the state mask, see wxlistitem::setstatemask). see wxlistitem::getstate for valid flag values.
wxlistitem::setstatemaskvoid setstatemask(long statemask) sets the bitmask that is used to determine which of the state flags are to be set. see also wxlistitem::setstate.
wxlistitem::settextvoid settext(const wxstring& text) sets the text label for the item.
wxlistitem::settextcolourvoid settextcolour(const wxcolour& coltext) sets the text colour for the item.
wxlistitem::setwidthvoid setwidth(int width) meaningful only for column headers in report mode. sets the column width.
|