|
#include <CCalendar.h>

Public Member Functions | |
| CCalendar (const char *label, int layoutSize=20, CLayoutAlign layoutAlignment=SP_ALIGN_TOP) | |
| SPTK-style constructor. | |
| CCalendar (int x, int y, int w, int h, const char *label=0L) | |
| FLTK-style constructor. | |
| void | resize (int x, int y, int w, int h) |
| Widget resize. | |
| int | maxHeight () const |
| Reports the maximum height of the calendar widget. | |
| void | autoHeight (int minHeight) |
| Resizes widget to the optimal height, considering minHeight. | |
| void | date (CDateTime dt) |
| Sets the calendar date. | |
| CDateTime | date () const |
| Reports the calendar date. | |
Protected Member Functions | |
| void | dayButtonClicked (uint32_t day) |
| The reaction function for the clicking on one of the day buttons. | |
| void | switchButtonClicked (int32_t monthChange) |
| The reaction function for the clicking on one of the month change buttonss. | |
A calendar class implements one month calendar. The calendar window allows to select the date. You can change a day, a month and a year selected in the widget.
| sptk::CCalendar::CCalendar | ( | const char * | label, | |
| int | layoutSize = 20, |
|||
| CLayoutAlign | layoutAlignment = SP_ALIGN_TOP | |||
| ) |
SPTK-style constructor.
| label | const char *, the widget label | |
| layoutSize | int, the size of widget in layout | |
| layoutAlignment | CLayoutAlign, widget align in the layout |
| sptk::CCalendar::CCalendar | ( | int | x, | |
| int | y, | |||
| int | w, | |||
| int | h, | |||
| const char * | label = 0L | |||
| ) |
FLTK-style constructor.
| x | int, widget x-coordinate | |
| y | int, widget y-coordinate | |
| w | int, widget width | |
| h | int, widget height | |
| label | int, optional widget label |
| void sptk::CCalendar::resize | ( | int | x, | |
| int | y, | |||
| int | w, | |||
| int | h | |||
| ) |
Widget resize.
| x | int, widget x-coordinate | |
| y | int, widget y-coordinate | |
| w | int, widget width | |
| h | int, widget height |