- Now puts cursor position in window title properly instead of overwriting
[tangerine.git] / workbench / tools / Edit / Jed.h
blobbd9e6ac24168fff7bfd545176a45216058cf5eb8
1 /**************************************************************
2 **** jed.h : prototypes of main functions. ****
3 **** Free software under GNU license, started on 15/2/2000 ****
4 **** © T.Pierron, C.Guillaume. ****
5 **************************************************************/
7 #ifndef JANOEDITOR_H
8 #define JANOEDITOR_H
10 #ifndef PROJECT_H
11 #include "Project.h"
12 #endif
13 #ifndef GUI_H
14 #include "Gui.h"
15 #endif
17 #include "Cursor.h"
19 /*** Classical macros ***/
20 #define MIN(a,b) ((a)<(b) ? (a):(b))
21 #define MAX(a,b) ((a)<(b) ? (b):(a))
22 #define SWAP(a,b) (a^=b, b^=a, a^=b)
24 /*** Prototypes ***/
25 void cleanup(UBYTE *, int ret); /* To cleanup properly */
26 void dispatch_events(void); /* Collect events */
28 void write_text (Project, LINE *); /* Render a line usign gui opts */
29 LONG curs_visible (Project, LONG); /* Be sure cursor always visible */
30 LONG center_horiz (Project); /* Adjust horizontal display position */
31 LONG center_vert (Project); /* Adjust vertical display position */
32 void scroll_disp (Project, BOOL); /* Scroll according to prop gadget */
33 void new_size (UBYTE Flags); /* Refresh main display, see flags below */
35 BOOL autoscroll (Project, WORD ystep); /* Delta scroll, returning TRUE if changes */
36 void scroll_xdelta (Project, LONG xstep);
37 void scroll_ydelta (Project, LONG ystep); /* Ditto for vertical scroll */
38 void scroll_xy (Project, LONG,LONG,BYTE adj); /* Jump display to absolute pos */
39 void scroll_up (Project, LINE *,WORD yc,LONG lp);
40 void redraw_content (Project, LINE *,WORD y,WORD nb);
41 void unmark_all (Project, BYTE); /* Deselect all marked region */
43 /** Possible values for flags in new_size() **/
44 #define EDIT_AREA 1 /* Refresh only text area */
45 #define EDIT_GUI 2 /* Refresh gui components */
46 #define EDIT_ALL 3 /* Refresh all */
48 #endif