/usr/include/xgks/input.h is in libxgks-dev 2.6.1+dfsg.2-3ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 | /*
* Copyright IBM Corporation 1989
*
* All Rights Reserved
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose and without fee is hereby granted,
* provided that the above copyright notice appear in all copies and that
* both that copyright notice and this permission notice appear in
* supporting documentation, and that the name of IBM not be
* used in advertising or publicity pertaining to distribution of the
* software without specific, written prior permission.
*
* IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
* ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
* IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
* ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
* WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
* ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
* SOFTWARE.
*
*
* University of Illinois at Urbana-Champaign
* Department of Computer Science
* 1304 W. Springfield Ave.
* Urbana, IL 61801
*
* (C) Copyright 1987, 1988 by The University of Illinois Board of Trustees.
* All rights reserved.
*
* Tool: X 11 Graphical Kernel System
* Author: Gregory Scott Rogers
* Author: Sung Hsien Ching Kelvin
* Author: Yu Pan
*
* GKS Input processing structures
*
* This header-file depends upon header-file "xgks.h".
*
* $Id: input.h,v 2.6 2000/08/01 16:38:01 steve Exp $
* $__Header$
*/
#ifndef INPUT_H
#define INPUT_H
/*
* Each workstation structure contains a list of input devices that have been
* accessed by the application. These devices may be active or inactive.
* Each logical input device is represented by a structure that completely
* defines the initial state, current state of that device, and implementation
* details of that device. When a physical device is triggered, this list
* is search for active logical devices that must be triggered. The echo area
* and current location of the physical device determine if the logical device
* is triggered. Each triggered input device updates its value and prompt.
* When a logical device that is operating in EVENT mode is triggered, it
* creates an event record and places that record in the GKS state event queue.
*/
typedef struct {
Gchoicest initst; /* initial state */
/* implementation state */
Gint curcho; /* current choice */
/*
* X space coordinates are computed each time PROMPTON is envoked
*/
XPoint origin; /* top left corner of menu in X space */
int iheight; /* height of each item in X space */
int width; /* width of each item in X space */
int height; /* total height of menu in X space */
} WSCHOICE;
typedef struct {
Glocst initst; /* initial state */
/* implementation state */
Gpoint initpos; /* initial position in DC */
Gpoint curpos; /* current position in DC */
} WSLOCATOR;
typedef struct {
Gpoint curpos; /* current position in DC */
Gpickst initst; /* initial state */
/* implementation state */
} WSPICK;
typedef struct {
Gstringst initst; /* initial state */
/* implementation state */
Gchar *strbuf; /* input string buffer */
Gint editpos; /* edit position */
XPoint curpos; /* current position of the cursor in
* X space */
} WSSTRING;
typedef struct {
Gstrokest initst; /* initial state */
/* implementation state */
Gpoint *stkbuf; /* input stroke buffer */
Gpoint interval; /* minimum interval between points DC */
Gint editpos; /* insertion point */
} WSSTROKE;
typedef struct {
Gvalst initst; /* initial state */
VAL_AXIS axis; /* Orientation of echo area */
Gfloat convert[2]; /* convertion from DC to valuator
* output val == (DC*convert[0] -
* convert[1]) */
Gfloat BarWidth; /* Width of the sliding bar */
Gfloat BarHeight; /* Height of Sliding Bar */
/*
* Note the sliding bar is always constructed with input DC at center, so
* what is being saved here are actually OFFSETS FROM CENTER to construct
* the sliging bar
*/
Gfloat CurPos; /* Current position (in DC) w.r.t.
* the echo min This is either X or Y
* value */
Gpoint SlidRule[2]; /* Location of the Slide Ruler in DC */
Gqval val; /* Response record in valuator-ratio */
/* implementation state */
} WSVALUATOR;
typedef struct INPUT_DEV {
Giclass class; /* device class */
Gint dev; /* device number */
Bool active; /* is this device active? */
Bool touched; /* has the device been used lately? */
Bool breakhit; /* was break hit? */
GC gc; /* graphics context */
struct INPUT_DEV *next; /* linked list */
union {
WSCHOICE cho;
WSLOCATOR loc;
WSPICK pic;
WSSTRING str;
WSSTROKE stk;
WSVALUATOR val;
} data;
} INPUT_DEV;
typedef struct EQEntry {
struct EQEntry *next; /* Event queue is a linked list */
Gevent event; /* Data returned by Await Event */
char *data; /* Data returned by Get<class>
* functions */
int id; /* event id (simultaneous events
* have same id) */
} EQEntry;
typedef enum {
PROMPTON,
PROMPTOFF,
PROMPTMOVE
} PromptStatus;
extern void XgksIDevAdd();
extern INPUT_DEV *XgksIDevLookup();
extern INPUT_DEV *XgksIDevNew();
extern Gpstat XgksFindPickSeg();
#endif
|