wxCalendarDateAttrwxCalendarDateAttr 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 Include files <wx/calctrl.h> Members
wxCalendarDateAttr::wxCalendarDateAttr
wxCalendarDateAttr::wxCalendarDateAttrwxCalendarDateAttr() 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::SetTextColourvoid SetTextColour(const wxColour& colText) Sets the text (foreground) colour to use.
wxCalendarDateAttr::SetBackgroundColourvoid SetBackgroundColour(const wxColour& colBack) Sets the text background colour to use.
wxCalendarDateAttr::SetBorderColourvoid SetBorderColour(const wxColour& col) Sets the border colour to use.
wxCalendarDateAttr::SetFontvoid SetFont(const wxFont& font) Sets the font to use.
wxCalendarDateAttr::SetBordervoid SetBorder(wxCalendarDateBorder border) Sets the border kind
wxCalendarDateAttr::SetHolidayvoid SetHoliday(bool holiday) Display the date with this attribute as a holiday.
wxCalendarDateAttr::HasTextColourbool HasTextColour() const Returns true if this item has a non-default text foreground colour.
wxCalendarDateAttr::HasBackgroundColourbool HasBackgroundColour() const Returns true if this attribute specifies a non-default text background colour.
wxCalendarDateAttr::HasBorderColourbool HasBorderColour() const Returns true if this attribute specifies a non-default border colour.
wxCalendarDateAttr::HasFontbool HasFont() const Returns true if this attribute specifies a non-default font.
wxCalendarDateAttr::HasBorderbool HasBorder() const Returns true if this attribute specifies a non-default (i.e. any) border.
wxCalendarDateAttr::IsHolidaybool IsHoliday() const Returns true if this attribute specifies that this item should be displayed as a holiday.
wxCalendarDateAttr::GetTextColourconst wxColour& GetTextColour() const Returns the text colour to use for the item with this attribute.
wxCalendarDateAttr::GetBackgroundColourconst wxColour& GetBackgroundColour() const Returns the background colour to use for the item with this attribute.
wxCalendarDateAttr::GetBorderColourconst wxColour& GetBorderColour() const Returns the border colour to use for the item with this attribute.
wxCalendarDateAttr::GetFontconst wxFont& GetFont() const Returns the font to use for the item with this attribute.
wxCalendarDateAttr::GetBorderwxCalendarDateBorder GetBorder() const Returns the border to use for the item with this attribute.
|