wxListItem

wxListItem

wxListItem
Functions for wxListItem class

This class stores information about a wxListCtrl item or column.

wxListItem is a class which contains information about:

The wxListItem object can also contain item-specific colour and font information: for this you need to call one of setTextColour/2, setBackgroundColour/2 or setFont/2 functions on it passing it the colour/font to use. If the colour/font is not specified, the default list control colour/font is used.

See: wxListCtrl

wxWidgets docs: wxListItem

Types

Resets the item state to the default.

Types

Returns the alignment for this item.

Can be one of wxLIST_FORMAT_LEFT, wxLIST_FORMAT_RIGHT or wxLIST_FORMAT_CENTRE.

Types

Returns the zero-based column; meaningful only in report mode.

Types

Returns the zero-based index of the image associated with the item into the image list.

Types

Returns a bit mask indicating which fields of the structure are valid.

Can be any combination of the following values:

Types

Returns a bit field representing the state of the item.

Can be any combination of:

Types

Meaningful only for column headers in report mode.

Returns the column width.

Types

ColBack = wx:wx_colour()

Sets the background colour for the item.

Types

Col = integer()

Sets the zero-based column.

Meaningful only in report mode.

Types

Image = integer()

Sets the zero-based index of the image associated with the item into the image list.

Types

State = integer()

Sets the item state flags (note that the valid state flags are influenced by the value of the state mask, see setStateMask/2).

See getState/1 for valid flag values.

Types

StateMask = integer()

Sets the bitmask that is used to determine which of the state flags are to be set.

See also setState/2.

Types

Width = integer()

Meaningful only for column headers in report mode.

Sets the column width.