Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 8d1ac0c170
Fetching contributors…

Cannot retrieve contributors at this time

46 lines (40 sloc) 1.89 kb
/* event.h */
/* Copyright 1995 by Steve Kirkendall */
typedef enum
{
CLICK_NONE, /* return the clicked cell's offset, but don't move */
CLICK_MOVE, /* move the cursor; if selecting, adjust selection endpoint */
CLICK_SELCHAR, /* start selecting characters */
CLICK_SELLINE, /* start selecting whole lines */
CLICK_SELRECT, /* start selecting a rectangle */
CLICK_CANCEL, /* cancel the selection; don't move cursor */
CLICK_YANK, /* copy selected text to GUI's clipboard; don't move */
CLICK_PASTE, /* copy text from GUI's clipboard; don't move */
CLICK_TAG, /* simulate a <Control-]> keystroke */
CLICK_UNTAG /* simulate a <Control-T> keystroke */
} CLICK;
typedef enum
{
SCROLL_FWDSCR, /* scroll forward one screen */
SCROLL_BACKSCR, /* scroll backward one screen */
SCROLL_FWDLN, /* scroll forward one line */
SCROLL_BACKLN, /* scroll backward one line */
SCROLL_COLUMN, /* scroll sideways to reveal a column */
SCROLL_PERCENT, /* move cursor to a given percent of the file */
SCROLL_LINE /* move cursor to a given line */
} SCROLL;
extern long eventcounter;
BEGIN_EXTERNC
extern BOOLEAN eventcreate P_((GUIWIN *gw, OPTVAL *guivals, char *name, int rows, int columns));
extern void eventdestroy P_((GUIWIN *gw));
extern void eventresize P_((GUIWIN *gw, int rows, int columns));
extern void eventreplace P_((GUIWIN *gw, BOOLEAN freeold, char *name));
extern void eventexpose P_((GUIWIN *gw, int top, int left, int bottom, int right));
extern ELVCURSOR eventdraw P_((GUIWIN *gw));
extern ELVCURSOR eventfocus P_((GUIWIN *gw));
extern long eventclick P_((GUIWIN *gw, int row, int column, CLICK what));
extern MAPSTATE eventkeys P_((GUIWIN *gw, CHAR *key, int nkeys));
extern BOOLEAN eventscroll P_((GUIWIN *gw, SCROLL scroll, long count, long denom));
extern void eventsuspend P_((void));
extern void eventex P_((GUIWIN *gw, char *excmd, BOOLEAN safer));
END_EXTERNC
Jump to Line
Something went wrong with that request. Please try again.