CalendarDateAttr is a custom attributes for a calendar date. The objects of this class are used with CalendarCtrl.
No base class
Here are the possible kinds of borders which may be used to decorate a date:
enum CalendarDateBorder
{
CAL_BORDER_NONE, // no border (default)
CAL_BORDER_SQUARE, // a rectangular border
CAL_BORDER_ROUND // a round border
}
CalendarDateAttr.new(Colour colText, Colour colBack = NullColour,
Colour colBorder = NullColour,
Font font = NullFont,
CalendarDateBorder border = CAL_BORDER_NONE)
CalendarDateAttr.new(CalendarDateBorder border,
Colour colBorder = NullColour)
The constructors.
set_text_colour(Colour colText)
Sets the text (foreground) colour to use.
set_background_colour(Colour colBack)
Sets the text background colour to use.
set_border_colour(Colour col)
Sets the border colour to use.
set_font(Font font)
Sets the font to use.
set_border(CalendarDateBorder border)
Sets the border kind
set_holiday(Boolean holiday)
Display the date with this attribute as a holiday.
Boolean has_text_colour()
Returns true if this item has a non default text foreground colour.
Boolean has_background_colour()
Returns true if this attribute specifies a non default text background colour.
Boolean has_border_colour()
Returns true if this attribute specifies a non default border colour.
Boolean has_font()
Returns true if this attribute specifies a non default font.
Boolean has_border()
Returns true if this attribute specifies a non default (i.e. any) border.
Boolean is_holiday()
Returns true if this attribute specifies that this item should be
displayed as a holiday.
Colour get_text_colour()
Returns the text colour to use for the item with this attribute.
Colour get_background_colour()
Returns the background colour to use for the item with this attribute.
Colour get_border_colour()
Returns the border colour to use for the item with this attribute.
Font get_font()
Returns the font to use for the item with this attribute.
CalendarDateBorder get_border()
Returns the border to use for the item with this attribute.
[This page automatically generated from the Textile source at Thu May 01 00:50:33 +0100 2008]