quakeforge/ruamoko/qwaq/qwaq-editor.h
Bill Currie 16c60655e7 [qwaq] Implement scrolling via mouse wheel
Line formatting segs when scrolling horizontally through a tab, but...
things ware working nicely.
2020-03-22 22:42:56 +09:00

29 lines
693 B
Objective-C

#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;
}
-initWithRect:(Rect) rect file:(string) filename;
-scrollUp:(unsigned) count;
-scrollDown:(unsigned) count;
-scrollLeft:(unsigned) count;
-scrollRight:(unsigned) count;
@end
#endif//__qwaq_editor_h