Addons updated to new doc format
[io.git] / addons / Curses / source / IoCurses.h
blob4c2655fb36c24b4c5c3636101e04a38bc5bf9728
1 //metadoc Curses Steve Dekorte and Edwin Zacharias, 2002
2 //metadoc Curses license BSD revised
4 #ifndef IOCURSES_DEFINED
5 #define IOCURSES_DEFINED 1
7 #include "IoObject.h"
9 #define ISCURSES(self) IoObject_hasCloneFunc_(self, (IoTagCloneFunc *)IoCurses_rawClone)
11 typedef IoObject IoCurses;
13 typedef struct
15 int colorOn;
16 short fgColor;
17 short bgColor;
18 } IoCursesData;
20 IoCurses *IoCurses_proto(void *state);
21 IoCurses *IoCurses_rawClone(IoCurses *self);
22 IoCurses *IoCurses_new(void *state);
23 void IoCurses_free(IoCurses *self);
25 /* ----------------------------------------------------------- */
26 IoObject *IoCurses_begin(IoCurses *self, IoObject *locals, IoMessage *m);
27 IoObject *IoCurses_end(IoCurses *self, IoObject *locals, IoMessage *m);
29 IoObject *IoCurses_writeCharacter(IoCurses *self, IoObject *locals, IoMessage *m);
31 IoObject *IoCurses_nodelay(IoCurses *self, IoObject *locals, IoMessage *m);
32 IoObject *IoCurses_cBreak(IoCurses *self, IoObject *locals, IoMessage *m);
33 IoObject *IoCurses_noCBreak(IoCurses *self, IoObject *locals, IoMessage *m);
34 IoObject *IoCurses_echo(IoCurses *self, IoObject *locals, IoMessage *m);
35 IoObject *IoCurses_noEcho(IoCurses *self, IoObject *locals, IoMessage *m);
36 IoObject *IoCurses_move(IoCurses *self, IoObject *locals, IoMessage *m);
37 IoObject *IoCurses_print(IoCurses *self, IoObject *locals, IoMessage *m);
38 IoObject *IoCurses_insert(IoCurses *self, IoObject *locals, IoMessage *m);
39 IoObject *IoCurses_delete(IoCurses *self, IoObject *locals, IoMessage *m);
40 IoObject *IoCurses_get(IoCurses *self, IoObject *locals, IoMessage *m);
41 IoObject *IoCurses_getCh(IoCurses *self, IoObject *locals, IoMessage *m);
42 IoObject *IoCurses_input(IoCurses *self, IoObject *locals, IoMessage *m);
43 IoObject *IoCurses_erase(IoCurses *self, IoObject *locals, IoMessage *m);
44 IoObject *IoCurses_clear(IoCurses *self, IoObject *locals, IoMessage *m);
45 IoObject *IoCurses_clearToEndOfLine(IoCurses *self, IoObject *locals, IoMessage *m);
46 IoObject *IoCurses_refresh(IoCurses *self, IoObject *locals, IoMessage *m);
48 IoObject *IoCurses_width(IoCurses *self, IoObject *locals, IoMessage *m);
49 IoObject *IoCurses_height(IoCurses *self, IoObject *locals, IoMessage *m);
51 IoObject *IoCurses_hasColors(IoCurses *self, IoObject *locals, IoMessage *m);
53 /* ------------------------------------- */
54 IoObject *IoCurses_setBackgroundBlack(IoCurses *self, IoObject *locals, IoMessage *m);
55 IoObject *IoCurses_setBackgroundBlue(IoCurses *self, IoObject *locals, IoMessage *m);
56 IoObject *IoCurses_setBackgroundGreen(IoCurses *self, IoObject *locals, IoMessage *m);
57 IoObject *IoCurses_setBackgroundCyan(IoCurses *self, IoObject *locals, IoMessage *m);
58 IoObject *IoCurses_setBackgroundRed(IoCurses *self, IoObject *locals, IoMessage *m);
59 IoObject *IoCurses_setBackgroundMagenta(IoCurses *self, IoObject *locals, IoMessage *m);
60 IoObject *IoCurses_setBackgroundYellow(IoCurses *self, IoObject *locals, IoMessage *m);
61 IoObject *IoCurses_setBackgroundWhite(IoCurses *self, IoObject *locals, IoMessage *m);
63 /* ------------------------------------- */
64 IoObject *IoCurses_setForegroundBlack(IoCurses *self, IoObject *locals, IoMessage *m);
65 IoObject *IoCurses_setForegroundBlue(IoCurses *self, IoObject *locals, IoMessage *m);
66 IoObject *IoCurses_setForegroundGreen(IoCurses *self, IoObject *locals, IoMessage *m);
67 IoObject *IoCurses_setForegroundCyan(IoCurses *self, IoObject *locals, IoMessage *m);
68 IoObject *IoCurses_setForegroundRed(IoCurses *self, IoObject *locals, IoMessage *m);
69 IoObject *IoCurses_setForegroundMagenta(IoCurses *self, IoObject *locals, IoMessage *m);
70 IoObject *IoCurses_setForegroundYellow(IoCurses *self, IoObject *locals, IoMessage *m);
71 IoObject *IoCurses_setForegroundWhite(IoCurses *self, IoObject *locals, IoMessage *m);
73 IoObject *IoCurses_x(IoCurses *self, IoObject *locals, IoMessage *m);
74 IoObject *IoCurses_y(IoCurses *self, IoObject *locals, IoMessage *m);
76 #endif