#include <wx/calctrl.h>
wxCalendarDateAttr is a custom attributes for a calendar date.
The objects of this class are used with wxCalendarCtrl.
Public Member Functions | |
wxCalendarDateAttr (const wxColour &colText=wxNullColour, const wxColour &colBack=wxNullColour, const wxColour &colBorder=wxNullColour, const wxFont &font=wxNullFont, wxCalendarDateBorder border=wxCAL_BORDER_NONE) | |
Constructor for specifying all wxCalendarDateAttr properties. More... | |
wxCalendarDateAttr (wxCalendarDateBorder border, const wxColour &colBorder=wxNullColour) | |
Constructor using default properties except the given border. More... | |
const wxColour & | GetBackgroundColour () const |
Returns the background colour set for the calendar date. More... | |
wxCalendarDateBorder | GetBorder () const |
Returns the border set for the calendar date. More... | |
const wxColour & | GetBorderColour () const |
Returns the border colour set for the calendar date. More... | |
const wxFont & | GetFont () const |
Returns the font set for the calendar date. More... | |
const wxColour & | GetTextColour () const |
Returns the text colour set for the calendar date. More... | |
bool | HasBackgroundColour () const |
Returns true if a non-default text background colour is set. More... | |
bool | HasBorder () const |
Returns true if a non-default (i.e. any) border is set. More... | |
bool | HasBorderColour () const |
Returns true if a non-default border colour is set. More... | |
bool | HasFont () const |
Returns true if a non-default font is set. More... | |
bool | HasTextColour () const |
Returns true if a non-default text foreground colour is set. More... | |
bool | IsHoliday () const |
Returns true if this calendar day is displayed as a holiday. More... | |
void | SetBackgroundColour (const wxColour &colBack) |
Sets the text background colour to use. More... | |
void | SetBorder (wxCalendarDateBorder border) |
Sets the border to use. More... | |
void | SetBorderColour (const wxColour &col) |
Sets the border colour to use. More... | |
void | SetFont (const wxFont &font) |
Sets the font to use. More... | |
void | SetHoliday (bool holiday) |
If holiday is true, this calendar day will be displayed as a holiday. More... | |
void | SetTextColour (const wxColour &colText) |
Sets the text (foreground) colour to use. More... | |
Static Public Member Functions | |
static const wxCalendarDateAttr & | GetMark () |
Used (internally) by the generic wxCalendarCtrl::Mark(). More... | |
static void | SetMark (const wxCalendarDateAttr &m) |
Set the attributes that will be used to Mark() days on the generic wxCalendarCtrl. More... | |
wxCalendarDateAttr::wxCalendarDateAttr | ( | const wxColour & | colText = wxNullColour , |
const wxColour & | colBack = wxNullColour , |
||
const wxColour & | colBorder = wxNullColour , |
||
const wxFont & | font = wxNullFont , |
||
wxCalendarDateBorder | border = wxCAL_BORDER_NONE |
||
) |
Constructor for specifying all wxCalendarDateAttr properties.
wxCalendarDateAttr::wxCalendarDateAttr | ( | wxCalendarDateBorder | border, |
const wxColour & | colBorder = wxNullColour |
||
) |
Constructor using default properties except the given border.
const wxColour& wxCalendarDateAttr::GetBackgroundColour | ( | ) | const |
Returns the background colour set for the calendar date.
wxCalendarDateBorder wxCalendarDateAttr::GetBorder | ( | ) | const |
Returns the border set for the calendar date.
const wxColour& wxCalendarDateAttr::GetBorderColour | ( | ) | const |
Returns the border colour set for the calendar date.
const wxFont& wxCalendarDateAttr::GetFont | ( | ) | const |
Returns the font set for the calendar date.
|
static |
Used (internally) by the generic wxCalendarCtrl::Mark().
const wxColour& wxCalendarDateAttr::GetTextColour | ( | ) | const |
Returns the text colour set for the calendar date.
bool wxCalendarDateAttr::HasBackgroundColour | ( | ) | const |
Returns true if a non-default text background colour is set.
bool wxCalendarDateAttr::HasBorder | ( | ) | const |
Returns true if a non-default (i.e. any) border is set.
bool wxCalendarDateAttr::HasBorderColour | ( | ) | const |
Returns true if a non-default border colour is set.
bool wxCalendarDateAttr::HasFont | ( | ) | const |
Returns true if a non-default font is set.
bool wxCalendarDateAttr::HasTextColour | ( | ) | const |
Returns true if a non-default text foreground colour is set.
bool wxCalendarDateAttr::IsHoliday | ( | ) | const |
Returns true if this calendar day is displayed as a holiday.
void wxCalendarDateAttr::SetBackgroundColour | ( | const wxColour & | colBack | ) |
Sets the text background colour to use.
void wxCalendarDateAttr::SetBorder | ( | wxCalendarDateBorder | border | ) |
Sets the border to use.
void wxCalendarDateAttr::SetBorderColour | ( | const wxColour & | col | ) |
Sets the border colour to use.
void wxCalendarDateAttr::SetFont | ( | const wxFont & | font | ) |
Sets the font to use.
void wxCalendarDateAttr::SetHoliday | ( | bool | holiday | ) |
If holiday is true, this calendar day will be displayed as a holiday.
|
static |
Set the attributes that will be used to Mark() days on the generic wxCalendarCtrl.
void wxCalendarDateAttr::SetTextColour | ( | const wxColour & | colText | ) |
Sets the text (foreground) colour to use.