Created common signature for panel event handling functions.
[xuni.git] / src / loop.h
blob6b6c2b9cf2f65a952875eee283523a6d01e2ff7a
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 void call_init_funcs(struct xuni_t *xuni, struct widget_t *widget,
13 struct resource_t *settings);
14 int panel_event_recursive(struct xuni_t *xuni, struct panel_event_t *data,
15 enum panel_event_type_t type, struct widget_t *widget);
16 void call_deactivate_func(struct xuni_t *xuni, struct widget_t *widget);
18 int default_panel_sel(struct xuni_t *xuni, struct panel_data_t *data);
19 int set_default_widget_sel(struct xuni_t *xuni, panel_type_t mode,
20 int xp, int yp, int click, void *vdata);
22 void set_panel_callbacks(struct widget_t *widget, void *vdata,
23 int frameupdate,
24 panel_event_func_t init_func,
25 panel_event_func_t start_func,
26 panel_event_func_t event_func,
27 panel_event_func_t set_widget_sel_func,
28 panel_event_func_t perform_click_func,
29 panel_event_func_t deactivate_func,
30 panel_event_func_t paint_func,
31 panel_event_func_t free_func);
33 void execute_callback(struct xuni_t *xuni, struct xuni_callback_t *callback);
34 void main_loop(struct xuni_t *xuni, struct xuni_callback_t *always,
35 panel_type_t mode);
37 #endif