Renamed package to ion1, and made it conflict with package 'ion'.
[ion1.git] / src / inputp.h
blob6bb94e3a498f3124592d306c37fecac9c2c32a34
1 /*
2 * ion/inputp.h
4 * Copyright (c) Tuomo Valkonen 1999-2001.
5 * See the included file LICENSE for details.
6 */
8 #ifndef INPUTP_H
9 #define INPUTP_H
11 #include "input.h"
12 #include "drawp.h"
13 #include "thingp.h"
15 #define INPUT_BORDER_SIZE(GRDATA) \
16 (BORDER_TL_TOTAL(&(GRDATA->input_border))+ \
17 BORDER_BR_TOTAL(&(GRDATA->input_border)))
19 #define INPUT_MASK (ExposureMask|KeyPressMask| \
20 ButtonPressMask|FocusChangeMask)
22 #define INPUT_FONT(GRDATA) ((GRDATA)->font)
24 typedef void WInputCalcSizeFn(WInput*, WRectangle*);
25 typedef void WInputScrollFn(WInput*);
26 typedef void WInputDrawFn(WInput*, bool complete);
28 DECLSTRUCT(WInputFuntab){
29 WThingFuntab thing_funtab;
30 void (*calcsize_fn)();
31 void (*scrollup_fn)();
32 void (*scrolldown_fn)();
33 void (*draw_fn)();
36 extern void setup_input_dinfo(WInput *input, DrawInfo *dinfo);
38 #endif /* INPUTP_H */