2 * $XConsortium: AsciiText.h,v 1.18 94/04/17 20:11:51 kaleb Exp $
5 /***********************************************************
7 Copyright (c) 1987, 1988, 1994 X Consortium
9 Permission is hereby granted, free of charge, to any person obtaining a copy
10 of this software and associated documentation files (the "Software"), to deal
11 in the Software without restriction, including without limitation the rights
12 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13 copies of the Software, and to permit persons to whom the Software is
14 furnished to do so, subject to the following conditions:
16 The above copyright notice and this permission notice shall be included in
17 all copies or substantial portions of the Software.
19 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22 X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
23 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
24 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
26 Except as contained in this notice, the name of the X Consortium shall not be
27 used in advertising or otherwise to promote the sale, use or other dealings
28 in this Software without prior written authorization from the X Consortium.
31 Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts.
35 Permission to use, copy, modify, and distribute this software and its
36 documentation for any purpose and without fee is hereby granted,
37 provided that the above copyright notice appear in all copies and that
38 both that copyright notice and this permission notice appear in
39 supporting documentation, and that the name of Digital not be
40 used in advertising or publicity pertaining to distribution of the
41 software without specific, written prior permission.
43 DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
44 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
45 DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
46 ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
47 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
48 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
51 ******************************************************************/
53 /***********************************************************************
57 ***********************************************************************/
60 * AsciiText.c - Public header file for AsciiText Widget.
62 * This Widget is intended to be used as a simple front end to the
63 * text widget with an ascii source and ascii sink attached to it.
67 * By: Chris D. Peterson
69 * kit@expo.lcs.mit.edu
75 /****************************************************************
79 ****************************************************************/
81 #include <X11/Xaw/Text.h> /* AsciiText is a subclass of Text */
82 #include <X11/Xaw/AsciiSrc.h>
83 #include <X11/Xaw/MultiSrc.h>
87 Name Class RepType Default Value
88 ---- ----- ------- -------------
89 autoFill AutoFill Boolean False
90 background Background Pixel XtDefaultBackground
91 border BorderColor Pixel XtDefaultForeground
92 borderWidth BorderWidth Dimension 1
93 bottomMargin Margin Position 2
94 cursor Cursor Cursor xterm
95 destroyCallback Callback Pointer NULL
96 displayCaret Output Boolean True
97 displayPosition TextPosition int 0
98 editType EditType XawTextEditType XawtextRead
99 font Font XFontStruct* Fixed
100 foreground Foreground Pixel Black
101 height Height Dimension font height
102 insertPosition TextPosition int 0
103 international International Boolean false
104 leftMargin Margin Position 2
105 mappedWhenManaged MappedWhenManaged Boolean True
106 resize Resize XawTextResizeMode XawtextResizeNever
107 rightMargin Margin Position 4
108 scrollHorizontal Scroll XawTextScrollMode XawtextScrollNever
109 scrollVertical Scroll XawTextScrollMode XawtextScrollNever
110 selectTypes SelectTypes Pointer pos/word/line/par/all
111 selection Selection Pointer (empty selection)
112 sensitive Sensitive Boolean True
113 sink TextSink Widget (none)
114 source TextSource Widget (none)
115 string String String NULL
116 topMargin Margin Position 2
117 width Width Dimension 100
118 wrap Wrap XawTextWrapMode XawtextWrapNever
119 x Position Position 0
120 y Position Position 0
122 (see also *Src.h and *Sink.h)
126 * Everything else we need is in StringDefs.h or Text.h
129 typedef struct _AsciiTextClassRec
*AsciiTextWidgetClass
;
130 typedef struct _AsciiRec
*AsciiWidget
;
132 extern WidgetClass asciiTextWidgetClass
;
134 /************************************************************
136 * Disk and String Emulation Info.
138 ************************************************************/
141 extern WidgetClass asciiStringWidgetClass
;
145 extern WidgetClass asciiDiskWidgetClass
;
148 #endif /* _AsciiText_h */