Download

Support

lib/ewl_datepicker.h

Go to the documentation of this file.
00001 /* vim: set sw=8 ts=8 sts=8 expandtab: */
00002 #ifndef EWL_DATEPICKER_H
00003 #define EWL_DATEPICKER_H
00004 
00005 #include "ewl_text.h"
00006 
00028 #define EWL_DATEPICKER_TYPE "datepicker"
00029 
00034 #define EWL_DATEPICKER_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_DATEPICKER_TYPE))
00035 
00039 typedef struct Ewl_Datepicker Ewl_Datepicker;
00040 
00045 #define EWL_DATEPICKER(datepicker) ((Ewl_Datepicker *) datepicker)
00046 
00050 struct Ewl_Datepicker
00051 {
00052         Ewl_Text  text;                 
00054         Ewl_Widget *calendar;                
00055         Ewl_Widget *calendar_window;        
00057 };
00058 
00059 Ewl_Widget        *ewl_datepicker_new(void);
00060 int                 ewl_datepicker_init(Ewl_Datepicker* datepicker);
00061 
00062 /*
00063  * Internally used callbacks, override at your risk
00064  */
00065 void ewl_datepicker_cb_destroy(Ewl_Widget *w, void *ev, void *user_data);
00066 void ewl_datepicker_cb_value_changed(Ewl_Widget *w, void *ev, void *user_data);
00067 void ewl_datepicker_cb_window_mouse_down(Ewl_Widget *w, void *ev,
00068                                                         void *user_data);
00069 
00074 #endif

Copyright © Enlightenment.org

Enlightened Widget Library Documentation Generated: Sat May 17 16:49:04 2008