1 #ifndef __KONST_UI_WINDOW_H_
2 #define __KONST_UI_WINDOW_H_
5 #include "conscommon.h"
6 #include "abstractui.h"
14 __KTOOL_BEGIN_NAMESPACE
16 class textwindow
: public abstractuicontrol
{
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
);
53 #ifdef __KTOOL_USE_NAMESPACES
55 using ktool::textwindow
;