]> git.decadent.org.uk Git - ion3.git/blob - ioncore/infowin.h
Update cfg_kludge_flash for Flash 10
[ion3.git] / ioncore / infowin.h
1 /*
2  * ion/ioncore/infowin.h
3  *
4  * Copyright (c) Tuomo Valkonen 1999-2009. 
5  *
6  * See the included file LICENSE for details.
7  */
8
9 #ifndef ION_IONCORE_INFOWIN_H
10 #define ION_IONCORE_INFOWIN_H
11
12 #include "common.h"
13 #include "window.h"
14 #include "gr.h"
15 #include "rectangle.h"
16
17 #define INFOWIN_BUFFER_LEN 256
18
19 DECLCLASS(WInfoWin){
20     WWindow wwin;
21     GrBrush *brush;
22     char *buffer;
23     char *style;
24     GrStyleSpec attr;
25 };
26
27 #define INFOWIN_BRUSH(INFOWIN) ((INFOWIN)->brush)
28 #define INFOWIN_BUFFER(INFOWIN) ((INFOWIN)->buffer)
29
30 extern bool infowin_init(WInfoWin *p, WWindow *parent, const WFitParams *fp,
31                          const char *style);
32 extern WInfoWin *create_infowin(WWindow *parent, const WFitParams *fp,
33                                 const char *style);
34
35 extern void infowin_deinit(WInfoWin *p);
36
37 extern void infowin_set_text(WInfoWin *p, const char *s, int maxw);
38 extern GrStyleSpec *infowin_stylespec(WInfoWin *p);
39
40 extern WRegion *infowin_load(WWindow *par, const WFitParams *fp, ExtlTab tab);
41
42 extern void infowin_updategr(WInfoWin *p);
43
44 #endif /* ION_IONCORE_INFOWIN_H */