wxRuby Documentation Home

Wx::ListItemAttr

Represents the attributes (color, font, ) of a
ListCtrl ListItem.

See also

ListCtrl overview, ListCtrl, ListItem

Methods

ListItemAttr.new

ListItemAttr.new(%(arg-type)Colour% colText, Colour colBack, Font font)

Construct a ListItemAttr with the specified foreground and
background colors and font.

ListItemAttr#get_background_colour

Colour get_background_colour()

Returns the currently set background color.

ListItemAttr#get_font

Font get_font()

Returns the currently set font.

ListItemAttr#get_text_colour

Colour get_text_colour()

Returns the currently set text color.

ListItemAttr#has_background_colour

Boolean has_background_colour()

Returns if the currently set background color is valid.

ListItemAttr#has_font

Boolean has_font()

Returns if the currently set font is valid.

ListItemAttr#has_text_colour

Boolean has_text_colour()

Returns if the currently set text color is valid.

ListItemAttr#set_background_colour

set_background_colour(%(arg-type)Colour% colour)

Sets a new background color.

ListItemAttr#set_font

set_font(%(arg-type)Font% font)

Sets a new font.

ListItemAttr#set_text_colour

set_text_colour(%(arg-type)Colour% colour)

Sets a new text color.

[This page automatically generated from the Textile source at 2023-06-13 21:31:41 +0000]