]> git.decadent.org.uk Git - ion3.git/blob - mod_query/input.h
8e9eef2c7674e5f64886e0421d2a2fb8b05ea656
[ion3.git] / mod_query / input.h
1 /*
2  * ion/mod_query/input.h
3  *
4  * Copyright (c) Tuomo Valkonen 1999-2008. 
5  *
6  * See the included file LICENSE for details.
7  */
8
9 #ifndef ION_MOD_QUERY_INPUT_H
10 #define ION_MOD_QUERY_INPUT_H
11
12 #include <ioncore/common.h>
13 #include <ioncore/window.h>
14 #include <ioncore/gr.h>
15 #include <ioncore/rectangle.h>
16
17 INTRCLASS(WInput);
18
19 DECLCLASS(WInput){
20     WWindow win;
21     WFitParams last_fp;
22     GrBrush *brush;
23 };
24
25 extern bool input_init(WInput *input, WWindow *par, const WFitParams *fp);
26 extern void input_deinit(WInput *input);
27
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);
33
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);
38
39 extern void mod_query_get_minimum_extents(GrBrush *brush, bool with_spacing, 
40                                           int *w, int *h);
41
42 #endif /* ION_MOD_QUERY_INPUT_H */