lib/ewl_calendar.h
Go to the documentation of this file.00001 /* vim: set sw=8 ts=8 sts=8 expandtab: */ 00002 #ifndef EWL_CALENDAR_H 00003 #define EWL_CALENDAR_H 00004 00005 #include "ewl_box.h" 00006 00028 #define EWL_CALENDAR_TYPE "calendar" 00029 00034 #define EWL_CALENDAR_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_CALENDAR_TYPE)) 00035 00039 typedef struct Ewl_Calendar Ewl_Calendar; 00040 00045 #define EWL_CALENDAR(calendar) ((Ewl_Calendar *) calendar) 00046 00052 struct Ewl_Calendar 00053 { 00054 Ewl_Box box; 00056 int cur_day; 00057 int cur_month; 00058 int cur_year; 00059 Ewl_Widget *grid; 00060 Ewl_Widget *month_label; 00061 }; 00062 00063 Ewl_Widget *ewl_calendar_new(void); 00064 int ewl_calendar_init(Ewl_Calendar *calendar); 00065 char *ewl_calendar_ascii_time_get(Ewl_Calendar *cal); 00066 int ewl_calendar_day_get(Ewl_Calendar *c); 00067 int ewl_calendar_month_get(Ewl_Calendar *c); 00068 int ewl_calendar_year_get(Ewl_Calendar *c); 00069 00074 #endif 00075