#include </home/zeitlin/src/wx/github/interface/wx/dataview.h>
This class is used to indicate to a wxDataViewCtrl that a certain item (see wxDataViewItem) has extra font attributes for its renderer.
For this, it is required to override wxDataViewModel::GetAttr.
Attributes are currently only supported by wxDataViewTextRendererText.
Public Member Functions | |
wxDataViewItemAttr () | |
Constructor. | |
void | SetBold (bool set) |
Call this to indicate that the item shall be displayed in bold text. | |
void | SetColour (const wxColour &colour) |
Call this to indicate that the item shall be displayed with that colour. | |
void | SetBackgroundColour (const wxColour &colour) |
Call this to set the background colour to use. | |
void | SetItalic (bool set) |
Call this to indicate that the item shall be displayed in italic text. |
wxDataViewItemAttr::wxDataViewItemAttr | ( | ) |
Constructor.
void wxDataViewItemAttr::SetBackgroundColour | ( | const wxColour & | colour | ) |
Call this to set the background colour to use.
Currently this attribute is only supported in the generic version of wxDataViewCtrl and ignored by the native GTK+ and OS X implementations.
void wxDataViewItemAttr::SetBold | ( | bool | set | ) |
Call this to indicate that the item shall be displayed in bold text.
void wxDataViewItemAttr::SetColour | ( | const wxColour & | colour | ) |
Call this to indicate that the item shall be displayed with that colour.
void wxDataViewItemAttr::SetItalic | ( | bool | set | ) |
Call this to indicate that the item shall be displayed in italic text.