wxListItem(3erl) | Erlang Module Definition | wxListItem(3erl) |
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
wxListItem() = wx:wx_object()
new() -> wxListItem()
Constructor.
new(Item) -> wxListItem()
Types:
clear(This) -> ok
Types:
Resets the item state to the default.
getAlign(This) -> wx:wx_enum()
Types:
Returns the alignment for this item.
Can be one of wxLIST_FORMAT_LEFT, wxLIST_FORMAT_RIGHT or wxLIST_FORMAT_CENTRE.
getBackgroundColour(This) -> wx:wx_colour4()
Types:
Returns the background colour for this item.
getColumn(This) -> integer()
Types:
Returns the zero-based column; meaningful only in report mode.
getFont(This) -> wxFont:wxFont()
Types:
Returns the font used to display the item.
getId(This) -> integer()
Types:
Returns the zero-based item position.
getImage(This) -> integer()
Types:
Returns the zero-based index of the image associated with the item into the image list.
getMask(This) -> integer()
Types:
Returns a bit mask indicating which fields of the structure are valid.
Can be any combination of the following values:
getState(This) -> integer()
Types:
Returns a bit field representing the state of the item.
Can be any combination of:
getText(This) -> unicode:charlist()
Types:
Returns the label/header text.
getTextColour(This) -> wx:wx_colour4()
Types:
Returns the text colour.
getWidth(This) -> integer()
Types:
Meaningful only for column headers in report mode.
Returns the column width.
setAlign(This, Align) -> ok
Types:
Sets the alignment for the item.
See also getAlign/1
setBackgroundColour(This, ColBack) -> ok
Types:
Sets the background colour for the item.
setColumn(This, Col) -> ok
Types:
Sets the zero-based column.
Meaningful only in report mode.
setFont(This, Font) -> ok
Types:
Sets the font for the item.
setId(This, Id) -> ok
Types:
Sets the zero-based item position.
setImage(This, Image) -> ok
Types:
Sets the zero-based index of the image associated with the item into the image list.
setMask(This, Mask) -> ok
Types:
Sets the mask of valid fields.
See getMask/1.
setState(This, State) -> ok
Types:
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.
setStateMask(This, StateMask) -> ok
Types:
Sets the bitmask that is used to determine which of the state flags are to be set.
See also setState/2.
setText(This, Text) -> ok
Types:
Sets the text label for the item.
setTextColour(This, ColText) -> ok
Types:
Sets the text colour for the item.
setWidth(This, Width) -> ok
Types:
Meaningful only for column headers in report mode.
Sets the column width.
destroy(This :: wxListItem()) -> ok
Destroys the object.
wx 2.2.1 | wxWidgets team. |