wxCalendarDateAttr is a custom attributes for a calendar date. The objects of this class are used with wxCalendarCtrl.
Derived from
No base class
Constants
Here are the possible kinds of borders which may be used to decorate a date:
enum wxCalendarDateBorder { wxCAL_BORDER_NONE, // no border (default) wxCAL_BORDER_SQUARE, // a rectangular border wxCAL_BORDER_ROUND // a round border }See also
Members
wxCalendarDateAttr::wxCalendarDateAttr
wxCalendarDateAttr::SetTextColour
wxCalendarDateAttr::SetBackgroundColour
wxCalendarDateAttr::SetBorderColour
wxCalendarDateAttr::SetFont
wxCalendarDateAttr::SetBorder
wxCalendarDateAttr::SetHoliday
wxCalendarDateAttr::HasTextColour
wxCalendarDateAttr::HasBackgroundColour
wxCalendarDateAttr::HasBorderColour
wxCalendarDateAttr::HasFont
wxCalendarDateAttr::HasBorder
wxCalendarDateAttr::IsHoliday
wxCalendarDateAttr::GetTextColour
wxCalendarDateAttr::GetBackgroundColour
wxCalendarDateAttr::GetBorderColour
wxCalendarDateAttr::GetFont
wxCalendarDateAttr::GetBorder
wxCalendarDateAttr()
wxCalendarDateAttr(const wxColour& colText, const wxColour& colBack = wxNullColour, const wxColour& colBorder = wxNullColour, const wxFont& font = wxNullFont, wxCalendarDateBorder border = wxCAL_BORDER_NONE)
wxCalendarDateAttr(wxCalendarDateBorder border, const wxColour& colBorder = wxNullColour)
The constructors.
void SetTextColour(const wxColour& colText)
Sets the text (foreground) colour to use.
void SetBackgroundColour(const wxColour& colBack)
Sets the text background colour to use.
void SetBorderColour(const wxColour& col)
Sets the border colour to use.
void SetFont(const wxFont& font)
Sets the font to use.
void SetBorder(wxCalendarDateBorder border)
Sets the border kind
void SetHoliday(bool holiday)
Display the date with this attribute as a holiday.
bool HasTextColour() const
Returns true if this item has a non default text foreground colour.
bool HasBackgroundColour() const
Returns true if this attribute specifies a non default text background colour.
bool HasBorderColour() const
Returns true if this attribute specifies a non default border colour.
bool HasFont() const
Returns true if this attribute specifies a non default font.
bool HasBorder() const
Returns true if this attribute specifies a non default (i.e. any) border.
bool IsHoliday() const
Returns true if this attribute specifies that this item should be displayed as a holiday.
const wxColour& GetTextColour() const
Returns the text colour to use for the item with this attribute.
const wxColour& GetBackgroundColour() const
Returns the background colour to use for the item with this attribute.
const wxColour& GetBorderColour() const
Returns the border colour to use for the item with this attribute.
const wxFont& GetFont() const
Returns the font to use for the item with this attribute.
wxCalendarDateBorder GetBorder() const
Returns the border to use for the item with this attribute.