Lines Matching defs:editor
141 struct editor struct
143 …int mode; //editor mode - 1= keep while focused, 2= keep while used in gui, 3= keep forever (i.e. … argument
150 int maxx, maxy; // maxy=-1 if unlimited lines, 1 if single line editor argument
160 editor(const char *name, int mode, const char *initval) : in editor() argument
168 ~editor() in ~editor() argument
176 bool empty() { return lines.length() == 1 && lines[0].empty(); } in empty()
187 void init(const char *inittext) in init()
192 void updateheight() in updateheight()
198 void setfile(const char *fname) in setfile()
204 void load() in load()
218 void save() in save()
227 void mark(bool enable) in mark()
233 void selectall() in selectall()
241 bool region(int &sx, int &sy, int &ex, int &ey) in region()
276 void copyselectionto(editor *b) in copyselectionto() argument
301 char *tostring() in tostring()
318 char *selectiontostring() in selectiontostring()
342 void removelines(int start, int count) in removelines()
348 bool del() // removes the current selection (if any) in del()
380 void insert(char ch) in insert()
409 void insertallfrom(editor *b) in insertallfrom() argument
447 void scrollup() in scrollup()
452 void scrolldown() in scrolldown()
457 void key(int code) in key()
535 void input(const char *str, int len) in input()
540 void hit(int hitx, int hity, bool dragged) in hit()
560 int limitscrolly() in limitscrolly()
575 void draw(int x, int y, int color, bool hit) in draw()