Fixed bug #1734670: when logging off of MSN it did not hide the contacts
[centerim.git] / kkconsui / include / textwindow.h
blob4f3a0e6830451ccdebeb195d09a053bf45596387
1 #ifndef __KONST_UI_WINDOW_H_
2 #define __KONST_UI_WINDOW_H_
4 #include "conf.h"
5 #include "conscommon.h"
6 #include "abstractui.h"
8 enum textwindowtype {
9 TW_CENTERED = 2,
10 TW_NOBORDER = 4,
11 TW_SPACEBORDER = 8
14 __KTOOL_BEGIN_NAMESPACE
16 class textwindow: public abstractuicontrol {
17 private:
18 string title;
19 int wc, tc, options;
21 public:
22 textwindow();
23 textwindow(const textwindow &aw);
24 textwindow(int xx1, int yy1, int xx2, int yy2, int wcolor,
25 int noptions = 0, int tcolor = 0, const char *tfmt = 0, ...);
26 virtual ~textwindow();
28 void write(int x, int y, int c, const string &text);
29 void write(int x, int y, const string &text);
31 void writef(int x, int y, int c, const char *fmt, ...);
32 void writef(int x, int y, const char *fmt, ...);
34 void separatey(int y);
35 void separatex(int x);
37 void setoptions(int aoptions);
38 void setcolor(int awc);
39 void setcoords(int x1, int y1, int x2, int y2);
40 void set_titlef(int color, const char *fmt, ...);
41 void set_title(int color, const string &atitle);
43 void gotoxy(int x, int y);
44 void open();
45 void redraw();
46 void close();
48 bool isbordered();
51 __KTOOL_END_NAMESPACE
53 #ifdef __KTOOL_USE_NAMESPACES
55 using ktool::textwindow;
57 #endif
59 #endif