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.
|