Released version 3-2014010900
[notion/jeffpc.git] / mod_query / input.h
blob9e4ef04ad96a3336792304cd3e4efa014c29c92f
1 /*
2 * ion/mod_query/input.h
4 * Copyright (c) Tuomo Valkonen 1999-2009.
6 * See the included file LICENSE for details.
7 */
9 #ifndef ION_MOD_QUERY_INPUT_H
10 #define ION_MOD_QUERY_INPUT_H
12 #include <ioncore/common.h>
13 #include <ioncore/window.h>
14 #include <ioncore/gr.h>
15 #include <ioncore/rectangle.h>
17 INTRCLASS(WInput);
19 DECLCLASS(WInput){
20 WWindow win;
21 WFitParams last_fp;
22 GrBrush *brush;
25 extern bool input_init(WInput *input, WWindow *par, const WFitParams *fp);
26 extern void input_deinit(WInput *input);
28 extern bool input_fitrep(WInput *input, WWindow *par, const WFitParams *fp);
29 extern void input_refit(WInput *input);
30 extern void input_cancel(WInput *input);
31 extern bool input_rqclose(WInput *input);
32 extern void input_updategr(WInput *input);
34 DYNFUN void input_scrollup(WInput *input);
35 DYNFUN void input_scrolldown(WInput *input);
36 DYNFUN void input_calc_size(WInput *input, WRectangle *geom);
37 DYNFUN const char *input_style(WInput *input);
39 extern void mod_query_get_minimum_extents(GrBrush *brush, bool with_spacing,
40 int *w, int *h);
42 #endif /* ION_MOD_QUERY_INPUT_H */