This class stores information about a ListCtrl item or column.
Resets the item state to the default.
Returns the alignment for this item. Can be one of
LIST_FORMAT_LEFT, LIST_FORMAT_RIGHT or LIST_FORMAT_CENTRE.
Returns the background colour for this item.
Returns the zero-based column; meaningful only in report mode.
Returns the ruby object set as client data for this item (see
set_data, or nil
if no such data is set. Please
note that client data is associated with the item and not with subitems
in columns.
Returns the font used to display the item.
Returns the zero-based item position.
Returns the zero-based index of the image
associated with the item into the image list.
Returns a bit mask indicating which fields of the structure are valid;
can be any combination of the following values:
LIST_MASK_STATE | GetState is valid. |
LIST_MASK_TEXT | GetText is valid. |
LIST_MASK_IMAGE | GetImage is valid. |
LIST_MASK_DATA | GetData is valid. |
LIST_MASK_WIDTH | GetWidth is valid. |
LIST_MASK_FORMAT | GetFormat is valid. |
Returns a bit field representing the state of the item. Can be any
combination of:
LIST_STATE_DONTCARE | Don’t care what the state is. Win32 only. |
LIST_STATE_DROPHILITED | The item is highlighted to receive a drop event. Win32 only. |
LIST_STATE_FOCUSED | The item has the focus. |
LIST_STATE_SELECTED | The item is selected. |
LIST_STATE_CUT | The item is in the cut state. Win32 only. |
Returns the label/header text.
Returns the text colour.
Meaningful only for column headers in report mode. Returns the column width.
Sets the alignment for the item. See also
ListItem#get_align
Sets the background colour for the item.
Sets the zero-based column. Meaningful only in report mode.
Sets client data for the item, which can be any arbitrary object. Please
note that client data is associated with the item and not with subitem
columns..
Sets the font for the item.
Sets the zero-based item position.
Sets the zero-based index of the image associated with the item
into the image list.
Sets the mask of valid fields. See ListItem#get_mask.
Sets the item state flags (note that the valid state flags are influenced
by the value of the state mask, see
ListItem#set_state_mask).
See ListItem#get_state for valid flag
values.
Sets the bitmask that is used to determine which of the state flags
are to be set. See also ListItem#set_state.
Sets the text label for the item.
Sets the text colour for the item.
Meaningful only for column headers in report mode. Sets the column width.
[This page automatically generated from the Textile source at 2023-06-09 00:45:36 +0000]