Calendar Class
Package: GHIElectronics.Endpoint.UI
Namespace: GHIElectronics.Endpoint.UI
Month calendar.
class Calendar : public Widget {};
Constructors
Calendar(Widget parent)
Calendar(const Widget& parent);
Create a calendar inside parent.
| Parameter | Type | Description |
|---|---|---|
parent | Widget | Containing widget. |
Methods
SetShowedDate(int year, int month)
void SetShowedDate(int32_t year, int32_t month);
Set the month shown by the calendar.
| Parameter | Type | Description |
|---|---|---|
year | int | Four-digit year. |
month | int | Month, 1 (January) to 12 (December). |
SetToday(int year, int month, int day)
void SetToday(int32_t year, int32_t month, int32_t day);
Set the day that is highlighted as "today".
| Parameter | Type | Description |
|---|---|---|
year | int | Four-digit year. |
month | int | Month, 1-12. |
day | int | Day of month, 1-31. |