Eobj: Added docs to the examples (needed for introspection).
[profile/ivi/eobj.git] / examples / evas / elw_button.h
1 #ifndef ELW_BUTTON_H
2 #define ELW_BUTTON_H
3
4 #include "Eobj.h"
5
6 extern EAPI Eobj_Op ELW_BUTTON_BASE_ID;
7
8 enum {
9      ELW_BUTTON_SUB_ID_TEXT_SET,
10      ELW_BUTTON_SUB_ID_LAST
11 };
12
13 #define ELW_BUTTON_ID(sub_id) (ELW_BUTTON_BASE_ID + sub_id)
14
15 /**
16  * @def ELW_BUTTON_TEXT_SET(text)
17  * @brief Set button text
18  * @param[in] text text to assing to button
19  * FIXME Doesn't belong here, but just for the example...
20  */
21 #define ELW_BUTTON_TEXT_SET(text) ELW_BUTTON_ID(ELW_BUTTON_SUB_ID_TEXT_SET), EOBJ_TYPECHECK(const char *, text)
22
23 extern const Eobj_Event_Description _SIG_CLICKED;
24 #define SIG_CLICKED (&(_SIG_CLICKED))
25
26 #define ELW_BUTTON_CLASS elw_button_class_get()
27 const Eobj_Class *elw_button_class_get(void) EINA_CONST;
28
29 #endif