Made xuni more C++-compatible by adding extern "C" to all header files.
[xuni.git] / src / widget / textbox.h
blob670059ebc55d94a914a5a72ba8a89cff6ce38ca6
1 /*! \file textbox.h
3 */
5 #ifndef XUNI_GUARD_TEXTBOX_H
6 #define XUNI_GUARD_TEXTBOX_H
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
12 enum wid_textbox_t {
13 WID_TEXTBOX_BOX,
14 WID_TEXTBOX_LABEL
17 struct textbox_t {
18 size_t font;
19 /*struct edit_string_t data;*/
20 /*int editable;*/
21 int leftpos;
24 void textbox_widget_event(struct xuni_t *xuni, struct widget_t *widget,
25 enum widget_event_t event);
27 void init_textbox(struct widget_t *widget, struct xuni_t *xuni,
28 const char *text, size_t font);
30 int textbox_is_empty(struct widget_t *widget);
31 const char *get_textbox_data(struct widget_t *widget);
32 void clear_textbox_data(struct xuni_t *xuni, struct widget_t *widget);
33 void set_textbox_data(struct xuni_t *xuni, struct widget_t *widget,
34 const char *text);
36 #ifdef __cplusplus
38 #endif
40 #endif