Download

Support

lib/ewl_check.h

Go to the documentation of this file.
00001 /* vim: set sw=8 ts=8 sts=8 expandtab: */
00002 #ifndef EWL_CHECK_H
00003 #define EWL_CHECK_H
00004 
00027 #define EWL_CHECK_TYPE "check"
00028 
00033 #define EWL_CHECK_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_CHECK_TYPE))
00034 
00038 typedef struct Ewl_Check Ewl_Check;
00039 
00044 #define EWL_CHECK(c) ((Ewl_Check *)c)
00045 
00049 struct Ewl_Check
00050 {
00051         Ewl_Widget w; 
00052         int checked; 
00053 };
00054 
00055 Ewl_Widget         *ewl_check_new(void);
00056 int                  ewl_check_init(Ewl_Check *c);
00057 
00058 int                  ewl_check_is_checked(Ewl_Check *c);
00059 void                  ewl_check_checked_set(Ewl_Check *c, int checked);
00060 
00061 /*
00062  * Internally used callbacks.
00063  */
00064 void ewl_check_cb_clicked(Ewl_Widget *w, void *ev_data, void *user_data);
00065 void ewl_check_cb_update_check(Ewl_Widget *w, void *ev_data, void *user_data);
00066 
00071 #endif
00072 

Copyright © Enlightenment.org

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