Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 49 lines (43 sloc) 2.116 kB
cf92e3b @mbert Import Elvis 2.0 (written by Steve Kirkendall)
authored
1 /* event.h */
2 /* Copyright 1995 by Steve Kirkendall */
3
4
5 typedef enum
6 {
7 CLICK_NONE, /* return the clicked cell's offset, but don't move */
8 CLICK_MOVE, /* move the cursor; if selecting, adjust selection endpoint */
9f1c6f0 @mbert Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
9 CLICK_SSCHAR, /* don't move, start selecting chars if no sel yet */
10 CLICK_SSLINE, /* don't move, start selecting lines if no sel yet */
11 CLICK_SELCHAR, /* move & start selecting characters */
12 CLICK_SELLINE, /* move & start selecting whole lines */
13 CLICK_SELRECT, /* move & start selecting a rectangle */
cf92e3b @mbert Import Elvis 2.0 (written by Steve Kirkendall)
authored
14 CLICK_CANCEL, /* cancel the selection; don't move cursor */
15 CLICK_YANK, /* copy selected text to GUI's clipboard; don't move */
16 CLICK_PASTE, /* copy text from GUI's clipboard; don't move */
17 CLICK_TAG, /* simulate a <Control-]> keystroke */
18 CLICK_UNTAG /* simulate a <Control-T> keystroke */
19 } CLICK;
20
21 typedef enum
22 {
23 SCROLL_FWDSCR, /* scroll forward one screen */
24 SCROLL_BACKSCR, /* scroll backward one screen */
25 SCROLL_FWDLN, /* scroll forward one line */
26 SCROLL_BACKLN, /* scroll backward one line */
27 SCROLL_COLUMN, /* scroll sideways to reveal a column */
28 SCROLL_PERCENT, /* move cursor to a given percent of the file */
29 SCROLL_LINE /* move cursor to a given line */
30 } SCROLL;
31
32 extern long eventcounter;
33
34 BEGIN_EXTERNC
9f1c6f0 @mbert Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
35 extern void eventupdatecustom P_((ELVBOOL later));
36 extern ELVBOOL eventcreate P_((GUIWIN *gw, OPTVAL *guivals, char *name, int rows, int columns));
cf92e3b @mbert Import Elvis 2.0 (written by Steve Kirkendall)
authored
37 extern void eventdestroy P_((GUIWIN *gw));
38 extern void eventresize P_((GUIWIN *gw, int rows, int columns));
9f1c6f0 @mbert Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
39 extern void eventreplace P_((GUIWIN *gw, ELVBOOL freeold, char *name));
cf92e3b @mbert Import Elvis 2.0 (written by Steve Kirkendall)
authored
40 extern void eventexpose P_((GUIWIN *gw, int top, int left, int bottom, int right));
41 extern ELVCURSOR eventdraw P_((GUIWIN *gw));
9f1c6f0 @mbert Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
42 extern ELVCURSOR eventfocus P_((GUIWIN *gw, ELVBOOL change));
cf92e3b @mbert Import Elvis 2.0 (written by Steve Kirkendall)
authored
43 extern long eventclick P_((GUIWIN *gw, int row, int column, CLICK what));
44 extern MAPSTATE eventkeys P_((GUIWIN *gw, CHAR *key, int nkeys));
9f1c6f0 @mbert Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
45 extern ELVBOOL eventscroll P_((GUIWIN *gw, SCROLL scroll, long count, long denom));
cf92e3b @mbert Import Elvis 2.0 (written by Steve Kirkendall)
authored
46 extern void eventsuspend P_((void));
9f1c6f0 @mbert Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
47 extern void eventex P_((GUIWIN *gw, char *excmd, ELVBOOL safer));
cf92e3b @mbert Import Elvis 2.0 (written by Steve Kirkendall)
authored
48 END_EXTERNC
Something went wrong with that request. Please try again.