Minor syntactical changes for readability.
[xuni.git] / src / widget / box.h
blob7ac7cc517dcf19ceb10565e8aa7b1ed8e372af58
1 /*! \file box.h
3 */
5 #ifndef XUNI_GUARD_BOX_H
6 #define XUNI_GUARD_BOX_H
8 #include "widgets.h"
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
14 enum box_state_t {
15 BOX_STATE_HOVER = 1 << 0,
16 BOX_STATE_ACTIVE = 1 << 1
19 enum box_style_t {
20 BOX_STYLE_NORMAL,
21 BOX_STYLE_INVERTED,
22 BOX_STYLE_ALWAYSIN,
23 BOX_STYLE_ALWAYSOUT
26 struct box_t {
27 enum box_style_t style;
28 enum box_state_t state, allowstate;
31 void box_widget_event(struct xuni_t *xuni, struct widget_t *widget,
32 enum widget_event_t event);
34 void init_box(struct widget_t *widget, enum box_style_t style,
35 struct widget_t *selwidget);
36 void set_box_type(struct gui_t *gui, struct widget_t *widget,
37 struct widget_t *box);
38 void paint_box_previous_state(struct xuni_t *xuni, struct widget_t *widget);
40 #ifdef __cplusplus
42 #endif
44 #endif