Version: 2.9.4
Public Member Functions
wxListItemAttr Class Reference

#include </home/zeitlin/src/wx/github/interface/wx/listctrl.h>


Detailed Description

Represents the attributes (color, font, ...) of a wxListCtrl's wxListItem.

Library:  wxBase
Category:  Data Structures
参照:
wxListCtrl Overview, wxListCtrl, wxListItem

Public Member Functions

 wxListItemAttr ()
 Default Constructor.
 wxListItemAttr (const wxColour &colText, const wxColour &colBack, const wxFont &font)
 Construct a wxListItemAttr with the specified foreground and background colors and font.
const wxColourGetBackgroundColour () const
 Returns the currently set background color.
const wxFontGetFont () const
 Returns the currently set font.
const wxColourGetTextColour () const
 Returns the currently set text color.
bool HasBackgroundColour () const
 Returns true if the currently set background color is valid.
bool HasFont () const
 Returns true if the currently set font is valid.
bool HasTextColour () const
 Returns true if the currently set text color is valid.
void SetBackgroundColour (const wxColour &colour)
 Sets a new background color.
void SetFont (const wxFont &font)
 Sets a new font.
void SetTextColour (const wxColour &colour)
 Sets a new text color.

List of all members.


Constructor & Destructor Documentation

wxListItemAttr::wxListItemAttr ( )

Default Constructor.

wxListItemAttr::wxListItemAttr ( const wxColour colText,
const wxColour colBack,
const wxFont font 
)

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


Member Function Documentation

const wxColour& wxListItemAttr::GetBackgroundColour ( ) const

Returns the currently set background color.

const wxFont& wxListItemAttr::GetFont ( ) const

Returns the currently set font.

const wxColour& wxListItemAttr::GetTextColour ( ) const

Returns the currently set text color.

bool wxListItemAttr::HasBackgroundColour ( ) const

Returns true if the currently set background color is valid.

bool wxListItemAttr::HasFont ( ) const

Returns true if the currently set font is valid.

bool wxListItemAttr::HasTextColour ( ) const

Returns true if the currently set text color is valid.

void wxListItemAttr::SetBackgroundColour ( const wxColour colour)

Sets a new background color.

void wxListItemAttr::SetFont ( const wxFont font)

Sets a new font.

void wxListItemAttr::SetTextColour ( const wxColour colour)

Sets a new text color.

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines