|
|
1.1 root 1: /* $Header: Text.h,v 1.1 87/09/11 07:58:49 toddb Exp $ */
2: /*
3: * sccsid: %W% %G%
4: */
5:
6: /*
7: * Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
8: *
9: * All Rights Reserved
10: *
11: * Permission to use, copy, modify, and distribute this software and its
12: * documentation for any purpose and without fee is hereby granted,
13: * provided that the above copyright notice appear in all copies and that
14: * both that copyright notice and this permission notice appear in
15: * supporting documentation, and that the name of Digital Equipment
16: * Corporation not be used in advertising or publicity pertaining to
17: * distribution of the software without specific, written prior permission.
18: *
19: *
20: * DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
21: * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
22: * DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
23: * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
24: * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
25: * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
26: * SOFTWARE.
27: */
28:
29: #ifndef _XtText_h
30: #define _XtText_h
31:
32: /****************************************************************
33: *
34: * Text widget
35: *
36: ****************************************************************/
37:
38: typedef long XtTextPosition;
39:
40:
41: #define XtNwindow "window"
42: #define XtNeditType "editType"
43: #define XtNtextOptions "textOptions"
44: #define XtNdisplayPosition "displayPosition"
45: #define XtNinsertPosition "insertPosition"
46: #define XtNleftMargin "leftMargin"
47: #define XtNselectionArray "selectionArray"
48: #define XtNforeground "foreground"
49: #define XtNbackground "background"
50: #define XtNborder "border"
51: #define XtNborderWidth "borderWidth"
52: #define XtNfile "file"
53: #define XtNstring "string"
54: #define XtNlength "length"
55: #define XtNfont "font"
56: #define XtNeventBindings "eventBindings"
57: #define XtNtextSource "textSource"
58: #define XtNtextSink "textSink"
59: #define XtNselection "selection"
60: #define XtNwidth "width"
61: #define XtNheight "height"
62:
63: extern Window XtTextDiskCreate(); /* parent, args, argCount */
64: /* Window parent; */
65: /* ArgList args; */
66: /* int argCount; */
67:
68: extern Window XtTextStringCreate(); /* parent, args, argCount */
69: /* Window parent; */
70: /* ArgList args; */
71: /* int argCount; */
72:
73: extern XtTextDiskDestroy(); /* w */
74: /* Window w; */
75:
76: extern XtTextStringDestroy(); /* w */
77: /* Window w; */
78:
79:
80: typedef enum {XttextRead, XttextAppend, XttextEdit} XtEditType;
81: #define wordBreak 0x01
82: #define scrollVertical 0x02
83: #define scrollHorizontal 0x04
84: #define scrollOnOverflow 0x08
85: #define resizeWidth 0x10
86: #define resizeHeight 0x20
87: #define editable 0x40
88:
89: extern Window XtTextCreate(); /* dpy, parent, args, argCount */
90: /* Display *dpy; */
91: /* Window parent; */
92: /* ArgList args; */
93: /* int argCount; */
94:
95: extern void XtTextSetValues(); /* dpy, window, args, argCount */
96: /* Display *dpy; */
97: /* Window window; */
98: /* ArgList args; */
99: /* int argCount; */
100:
101: extern void XtTextGetValues(); /* dpy, window, args, argCount */
102: /* Display *dpy; */
103: /* Window window; */
104: /* ArgList args; */
105: /* int argCount; */
106:
107: extern void XtTextDestroy(); /* dpy, w */
108: /* Display *dpy; */
109: /* Window w; */
110:
111: extern void XtTextDisplay(); /* dpy, w */
112: /* Display *dpy; */
113: /* Window w; */
114:
115: extern void XtTextSetSelectionArray(); /* dpy, w, sarray */
116: /* Display *dpy; */
117: /* Window w; */
118: /* SelectionType *sarray; */
119:
120: extern void XtTextSetLastPos(); /* dpy, w, lastPos */
121: /* Display *dpy; */
122: /* Window w; */
123: /* XtTextPosition lastPos; */
124:
125: extern void XtTextGetSelectionPos(); /* dpy, w, left, right */
126: /* Display *dpy; */
127: /* Window w; */
128: /* XtTextPosition *left, *right; */
129:
130: extern void XtTextNewSource(); /* dpy, w, source, startPos */
131: /* Display *dpy; */
132: /* Window w; */
133: /* XtTextSource *source; */
134: /* XtTextPosition startPos; */
135:
136: extern int XtTextReplace(); /* dpy, w, startPos, endPos, text */
137: /* Display *dpy; */
138: /* Window w; */
139: /* XtTextPosition startPos, endPos; */
140: /* XtTextBlock *text; */
141:
142: extern XtTextPosition XtTextTopPosition(); /* dpy, w */
143: /* Display *dpy; */
144: /* Window w; */
145:
146: extern void XtTextSetInsertionPoint(); /* dpy, w, position */
147: /* Display *dpy; */
148: /* Window w; */
149: /* XtTextPosition position; */
150:
151: extern XtTextPosition XtTextGetInsertionPoint(); /* dpy, w */
152: /* Display *dpy; */
153: /* Window w; */
154:
155: extern void XtTextUnsetSelection(); /* dpy, w */
156: /* Display *dpy; */
157: /* Window w; */
158:
159: extern void XtTextChangeOptions(); /* dpy, w, options */
160: /* Display *dpy; */
161: /* Window w; */
162: /* int options; */
163:
164: extern int XtTextGetOptions(); /* dpy, w */
165: /* Display *dpy; */
166: /* Window w; */
167:
168: extern void XtTextSetNewSelection(); /* dpy, w, left, right */
169: /* Display *dpy; */
170: /* Window w; */
171: /* XtTextPosition left, right; */
172:
173: extern void XtTextInvalidate(); /* dpy, w, from, to */
174: /* Display *dpy; */
175: /* Window w; */
176: /* XtTextPosition from, to; */
177:
178: extern Window XtTextGetInnerWindow(); /* dpy, w */
179: /* Display *dpy; */
180: /* Window w; */
181:
182: /*
183: * Stuff from AsciiSink
184: */
185:
186: extern caddr_t XtAsciiSinkCreate(); /* dpy, font, ink, background */
187: /* Display *dpy; */
188: /* XFontStruct *font; */
189: /* int ink, background */
190:
191: extern void XtAsciiSinkDestroy(); /* sink */
192: /* XtTextSink *sink */
193:
194: #endif _XtText_h
195: /* DON'T ADD STUFF AFTER THIS #endif */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.