wxRuby Documentation Home

# Wx::ListItemAttr

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

## See also

ListCtrl overview, ListCtrl, ListItem

## Methods

- ListItemAttr.new
- ListItemAttr#get_background_colour
- ListItemAttr#get_font
- ListItemAttr#get_text_colour
- ListItemAttr#has_background_colour
- ListItemAttr#has_font
- ListItemAttr#has_text_colour
- ListItemAttr#set_background_colour
- ListItemAttr#set_font
- ListItemAttr#set_text_colour

### 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-09 00:45:35 +0000]