## wxCalendarDateAttr

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

wxCalendarCtrl

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

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.

### wxCalendarDateAttr::SetTextColour

void SetTextColour(const wxColour& colText)

Sets the text (foreground) colour to use.

### wxCalendarDateAttr::SetBackgroundColour

void SetBackgroundColour(const wxColour& colBack)

Sets the text background colour to use.

### wxCalendarDateAttr::SetBorderColour

void SetBorderColour(const wxColour& col)

Sets the border colour to use.

### wxCalendarDateAttr::SetFont

void SetFont(const wxFont& font)

Sets the font to use.

### wxCalendarDateAttr::SetBorder

void SetBorder(wxCalendarDateBorder border)

Sets the border kind

### wxCalendarDateAttr::SetHoliday

void SetHoliday(bool holiday)

Display the date with this attribute as a holiday.

### wxCalendarDateAttr::HasTextColour

bool HasTextColour() const

Returns `TRUE` if this item has a non default text foreground colour.

### wxCalendarDateAttr::HasBackgroundColour

bool HasBackgroundColour() const

Returns `TRUE` if this attribute specifies a non default text background colour.

### wxCalendarDateAttr::HasBorderColour

bool HasBorderColour() const

Returns `TRUE` if this attribute specifies a non default border colour.

### wxCalendarDateAttr::HasFont

bool HasFont() const

Returns `TRUE` if this attribute specifies a non default font.

### wxCalendarDateAttr::HasBorder

bool HasBorder() const

Returns `TRUE` if this attribute specifies a non default (i.e. any) border.

### wxCalendarDateAttr::IsHoliday

bool IsHoliday() const

Returns `TRUE` if this attribute specifies that this item should be displayed as a holiday.

### wxCalendarDateAttr::GetTextColour

const wxColour& GetTextColour() const

Returns the text colour to use for the item with this attribute.

### wxCalendarDateAttr::GetBackgroundColour

const wxColour& GetBackgroundColour() const

Returns the background colour to use for the item with this attribute.

### wxCalendarDateAttr::GetBorderColour

const wxColour& GetBorderColour() const

Returns the border colour to use for the item with this attribute.

### wxCalendarDateAttr::GetFont

const wxFont& GetFont() const

Returns the font to use for the item with this attribute.

### wxCalendarDateAttr::GetBorder

wxCalendarDateBorder GetBorder() const

Returns the border to use for the item with this attribute.