quakeforge/ruamoko/qwaq/qwaq-editor.h

32 lines
735 B
C
Raw Normal View History

#ifndef __qwaq_editor_h
#define __qwaq_editor_h
#include "qwaq-editbuffer.h"
#include "qwaq-view.h"
@class EditBuffer;
@interface Editor : View
{
EditBuffer *buffer;
DrawBuffer *linebuffer;
eb_sel_t selection;
unsigned base_index; // top left corner
unsigned line_index; // current line
unsigned x_index; // horizontal scrolling
unsigned char_index; // current character
unsigned old_cind; // previous character
Point cursor;
unsigned line_count;
string filename;
}
-initWithRect:(Rect) rect file:(string) filename;
-(string)filename;
-scrollUp:(unsigned) count;
-scrollDown:(unsigned) count;
-scrollLeft:(unsigned) count;
-scrollRight:(unsigned) count;
@end
#endif//__qwaq_editor_h