]> git.decadent.org.uk Git - ion3.git/blob - ioncore/infowin.h
799c128d3b54d0763117bf3562020ffa4104f2c4
[ion3.git] / ioncore / infowin.h
1 /*
2  * ion/ioncore/infowin.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_IONCORE_INFOWIN_H
13 #define ION_IONCORE_INFOWIN_H
14
15 #include "common.h"
16 #include "window.h"
17 #include "gr.h"
18 #include "rectangle.h"
19
20 #define INFOWIN_BUFFER_LEN 256
21
22 DECLCLASS(WInfoWin){
23     WWindow wwin;
24     GrBrush *brush;
25     char *buffer;
26     char *style;
27     GrStyleSpec attr;
28 };
29
30 #define INFOWIN_BRUSH(INFOWIN) ((INFOWIN)->brush)
31 #define INFOWIN_BUFFER(INFOWIN) ((INFOWIN)->buffer)
32
33 extern bool infowin_init(WInfoWin *p, WWindow *parent, const WFitParams *fp,
34                          const char *style);
35 extern WInfoWin *create_infowin(WWindow *parent, const WFitParams *fp,
36                                 const char *style);
37
38 extern void infowin_deinit(WInfoWin *p);
39
40 extern void infowin_set_text(WInfoWin *p, const char *s, int maxw);
41 extern GrStyleSpec *infowin_stylespec(WInfoWin *p);
42
43 extern WRegion *infowin_load(WWindow *par, const WFitParams *fp, ExtlTab tab);
44
45 extern void infowin_updategr(WInfoWin *p);
46
47 #endif /* ION_IONCORE_INFOWIN_H */