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.
|