Version: 2.9.4
Public Member Functions
wxDataViewItemAttr Class Reference

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


Detailed Description

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.

Library:  wxAdvanced
Category:  wxDataViewCtrl Related Classes

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.

List of all members.


Constructor & Destructor Documentation

wxDataViewItemAttr::wxDataViewItemAttr ( )

Constructor.


Member Function Documentation

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.

Since:
2.9.4
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.

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines