4 * Copyright (c) Tuomo Valkonen 1999-2001.
5 * See the included file LICENSE for details.
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
)();
36 extern void setup_input_dinfo(WInput
*input
, DrawInfo
*dinfo
);