]> git.decadent.org.uk Git - ion3.git/blob - mod_query/input.h
3dbde2e7706b0dfa1da1f9f22a726e21219061cb
[ion3.git] / mod_query / input.h
1 /*
2  * ion/mod_query/input.h
3  *
4  * Copyright (c) Tuomo Valkonen 1999-2007. 
5  *
6  * Ion is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU Lesser General Public License as published by
8  * the Free Software Foundation; either version 2.1 of the License, or
9  * (at your option) any later version.
10  */
11
12 #ifndef ION_MOD_QUERY_INPUT_H
13 #define ION_MOD_QUERY_INPUT_H
14
15 #include <ioncore/common.h>
16 #include <ioncore/window.h>
17 #include <ioncore/gr.h>
18 #include <ioncore/rectangle.h>
19
20 INTRCLASS(WInput);
21
22 DECLCLASS(WInput){
23     WWindow win;
24     WFitParams last_fp;
25     GrBrush *brush;
26 };
27
28 extern bool input_init(WInput *input, WWindow *par, const WFitParams *fp);
29 extern void input_deinit(WInput *input);
30
31 extern void input_fitrep(WInput *input, WWindow *par, const WFitParams *fp);
32 extern void input_refit(WInput *input);
33 extern void input_cancel(WInput *input);
34 extern bool input_rqclose(WInput *input);
35 extern void input_updategr(WInput *input);
36
37 DYNFUN void input_scrollup(WInput *input);
38 DYNFUN void input_scrolldown(WInput *input);
39 DYNFUN void input_calc_size(WInput *input, WRectangle *geom);
40 DYNFUN const char *input_style(WInput *input);
41
42 extern void mod_query_get_minimum_extents(GrBrush *brush, bool with_spacing, 
43                                           int *w, int *h);
44
45 #endif /* ION_MOD_QUERY_INPUT_H */