quakeforge/ruamoko/qwaq/qwaq-draw.h

31 lines
643 B
C
Raw Normal View History

#ifndef __qwaq_draw_h
#define __qwaq_draw_h
#include <Object.h>
#include "qwaq-rect.h"
@interface DrawBuffer : Object
{
int *buffer;
Extent size;
Point cursor;
}
+ (DrawBuffer *) buffer: (Extent) size;
- initWithSize: (Extent) size;
- (Extent) size;
- (int *) buffer;
- blitFromBuffer: (DrawBuffer *) srcBuffer to: (Point) pos from: (Rect) rect;
- (void) printf: (string) fmt, ...;
- (void) vprintf: (string) fmt, @va_list args;
- (void) addch: (int) ch;
- (void) mvprintf: (Point) pos, string fmt, ...;
- (void) mvvprintf: (Point) pos, string fmt, @va_list args;
- (void) mvaddch: (Point) pos, int ch;
@end
#endif