Minor syntactical changes for readability.
[xuni.git] / src / loop.h
blobe610db95ac2cb24a223c314972f70798af69b3ca
1 /*! \file loop.h
3 */
5 #ifndef XUNI_GUARD_LOOP_H
6 #define XUNI_GUARD_LOOP_H
8 #include "graphics.h"
9 #include "gui.h"
10 #include "resource/resource.h"
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
16 void call_init_funcs(struct xuni_t *xuni, struct widget_t *widget,
17 struct resource_t *settings);
18 void call_free_funcs(struct xuni_t *xuni, struct widget_t *widget);
19 int panel_event_recursive(struct xuni_t *xuni, struct panel_data_t *data,
20 enum panel_event_type_t type, struct widget_t *widget);
21 void call_deactivate_func(struct xuni_t *xuni, struct widget_t *widget);
23 int default_panel_sel(struct xuni_t *xuni, struct panel_data_t *data);
24 int set_default_widget_sel(struct xuni_t *xuni, panel_type_t mode,
25 int xp, int yp, int click, void *vdata);
27 /*void set_panel_callbacks(struct widget_t *widget, void *vdata,
28 int frameupdate,
29 panel_event_func_t init_func,
30 panel_event_func_t start_func,
31 panel_event_func_t event_func,
32 panel_event_func_t set_widget_sel_func,
33 panel_event_func_t perform_click_func,
34 panel_event_func_t deactivate_func,
35 panel_event_func_t paint_func,
36 panel_event_func_t free_func);*/
38 void execute_callback(struct xuni_t *xuni, struct xuni_callback_t *callback);
39 void main_loop(struct xuni_t *xuni, struct xuni_callback_t *always,
40 panel_type_t mode);
42 #ifdef __cplusplus
44 #endif
46 #endif