cdk_calendar(3) | Library Functions Manual | cdk_calendar(3) |
cdk_calendar - curses calendar widget.
cc [ flag ... ] file ... -lcdk [ library ... ]
#include <cdk.h>
chtype *actions);
CDKCALENDAR *calendar);
boolean box);
CDKCALENDAR *calendar);
CDKCALENDAR *calendar);
int *day, int *month, int *year);
CDKCALENDAR *calendar);
CDKCALENDAR *calendar);
CDKCALENDAR *calendar, int day, int month, int year);
CDKCALENDAR *calendar);
CDKCALENDAR *calendar);
CDKCALENDAR *calendar, chtype input);
CDKCALENDAR *calendar, int xpos, int ypos, boolean relative, boolean refresh);
int xpos, int ypos, const char *title, int day, int month, int year, chtype dayAttrib, chtype monthAttrib, chtype yearAttrib, chtype highlight, boolean box, boolean shadow);
CDKCALENDAR *calendar);
CDKCALENDAR *calendar, int day, int month, int year);
CDKCALENDAR *calendar, int day, int month, int year, chtype dayAttrib, chtype monthAttrib, chtype yearAttrib, chtype highlight, boolean box);
CDKCALENDAR *calendar, chtype attribute);
CDKCALENDAR *calendar, const char * color);
CDKCALENDAR *calendar, boolean box);
CDKCALENDAR *calendar, chtype ch);
CDKCALENDAR *calendar, int day, int month, int year);
CDKCALENDAR *calendar, chtype attribute);
CDKCALENDAR *calendar, const char *days);
CDKCALENDAR *calendar, chtype attribute);
CDKCALENDAR *calendar, chtype ch);
CDKCALENDAR *calendar, chtype ch);
CDKCALENDAR *calendar, chtype ch);
CDKCALENDAR *calendar, int day, int month, int year, chtype marker);
CDKCALENDAR *calendar, chtype attribute);
CDKCALENDAR *calendar, CDK_CONST char **months);
CDKCALENDAR *calendar, PROCESSFN callback, void * data);
CDKCALENDAR *calendar, PROCESSFN callback, void * data);
CDKCALENDAR *calendar, chtype ch);
CDKCALENDAR *calendar, chtype ch);
CDKCALENDAR *calendar, chtype ch);
CDKCALENDAR *calendar, chtype attribute);
The Cdk calendar widget creates a pop-up calendar. The calendar widget allows the user to traverse through months/years using the cursor keys.
When the widget is activated there are several default key bindings which will help the user enter or manipulate the information quickly. The following table outlines the keys and their actions for this widget.
Key | Action |
Left Arrow | Moves the cursor to the previous day. |
Right Arrow | Moves the cursor to the next day. |
Up Arrow | Moves the cursor to the next week. |
Down Arrow | Moves the cursor to the previous week. |
t | Sets the calendar to the current date. |
T | Sets the calendar to the current date. |
n | Advances the calendar one month ahead. |
N | Advances the calendar six months ahead. |
p | Advances the calendar one month back. |
P | Advances the calendar six months back. |
- | Advances the calendar one year ahead. |
+ | Advances the calendar one year back. |
Return | Exits the widget and returns a value of time_t which represents the day selected at 1 second after midnight. This also sets the widget data exitType to vNORMAL. |
Tab | Exits the widget and returns a value of time_t which represents the day selected at 1 second after midnight. This also sets the widget data exitType to vNORMAL. |
Escape | Exits the widget and returns (time_)-1. This also sets the widget data exitType to vESCAPE_HIT. |
Ctrl-L | Refreshes the screen. |
cdk(3), cdk_binding(3), cdk_display(3), cdk_position(3), cdk_screen(3)