2020-03-06 04:54:46 +00:00
|
|
|
#ifndef __qwaq_textcontect_h
|
|
|
|
#define __qwaq_textcontect_h
|
|
|
|
|
|
|
|
#ifdef __QFCC__
|
|
|
|
#include <Object.h>
|
|
|
|
#include "qwaq-curses.h"
|
|
|
|
#include "qwaq-rect.h"
|
|
|
|
|
|
|
|
@interface TextContext : Object
|
|
|
|
{
|
|
|
|
window_t window;
|
|
|
|
}
|
|
|
|
+ (int) max_colors;
|
|
|
|
+ (int) max_color_pairs;
|
|
|
|
+ (void) init_pair: (int) pair, int fg, int bg;
|
|
|
|
+ (int) acs_char: (int) acs;
|
|
|
|
+ (void) move: (Point) pos;
|
|
|
|
+ (void) curs_set: (int) visibility;
|
|
|
|
+ (void) doupdate;
|
2020-03-06 08:25:19 +00:00
|
|
|
+ (TextContext *) screen;
|
2020-03-06 04:54:46 +00:00
|
|
|
|
|
|
|
-init;
|
|
|
|
-initWithRect: (Rect) rect;
|
|
|
|
-initWithWindow: (window_t) window;
|
2020-03-06 08:25:19 +00:00
|
|
|
|
|
|
|
-(window_t) window;
|
|
|
|
|
2020-03-06 04:54:46 +00:00
|
|
|
- (void) printf: (string) fmt, ...;
|
|
|
|
- (void) vprintf: (string) mft, @va_list args;
|
2020-03-06 08:25:19 +00:00
|
|
|
- (void) mvprintf: (Point) pos, string fmt, ...;
|
2020-03-06 04:54:46 +00:00
|
|
|
- (void) mvvprintf: (Point) pos, string mft, @va_list args;
|
|
|
|
- (void) mvaddch: (Point) pos, int ch;
|
2020-03-06 08:25:19 +00:00
|
|
|
- (void) refresh;
|
2020-03-06 04:54:46 +00:00
|
|
|
- (void) bkgd: (int) ch;
|
|
|
|
- (void) scrollok: (int) flag;
|
|
|
|
- (void) border: (box_sides_t) sides, box_corners_t corners;
|
|
|
|
@end
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
#include "QF/pr_obj.h"
|
|
|
|
|
|
|
|
typedef struct qwaq_textcontext_s {
|
|
|
|
pr_id_t isa;
|
|
|
|
pointer_t window;
|
|
|
|
} qwaq_textcontext_t;
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif//__qwaq_textcontect_h
|