1 /* 2 * $XConsortium: AsciiText.h,v 1.18 94/04/17 20:11:51 kaleb Exp $ 3 */ 4 5 /*********************************************************** 6 7 Copyright (c) 1987, 1988, 1994 X Consortium 8 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: 15 16 The above copyright notice and this permission notice shall be included in 17 all copies or substantial portions of the Software. 18 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. 25 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. 29 30 31 Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts. 32 33 All Rights Reserved 34 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. 42 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 49 SOFTWARE. 50 51 ******************************************************************/ 52 53 /*********************************************************************** 54 * 55 * AsciiText Widget 56 * 57 ***********************************************************************/ 58 59 /* 60 * AsciiText.c - Public header file for AsciiText Widget. 61 * 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. 64 * 65 * Date: June 29, 1989 66 * 67 * By: Chris D. Peterson 68 * MIT X Consortium 69 * kit@expo.lcs.mit.edu 70 */ 71 72 #ifndef _AsciiText_h 73 #define _AsciiText_h 74 75 /**************************************************************** 76 * 77 * AsciiText widgets 78 * 79 ****************************************************************/ 80 81 #include "Xaw3dP.h" 82 #include <X11/Xaw3d/Text.h> /* AsciiText is a subclass of Text */ 83 #include <X11/Xaw3d/AsciiSrc.h> 84 #ifdef XAW_INTERNATIONALIZATION 85 #include <X11/Xaw3d/MultiSrc.h> 86 #endif 87 88 /* Resources: 89 90 Name Class RepType Default Value 91 ---- ----- ------- ------------- 92 autoFill AutoFill Boolean False 93 background Background Pixel XtDefaultBackground 94 border BorderColor Pixel XtDefaultForeground 95 borderWidth BorderWidth Dimension 1 96 bottomMargin Margin Position 2 97 cursor Cursor Cursor xterm 98 destroyCallback Callback Pointer NULL 99 displayCaret Output Boolean True 100 displayPosition TextPosition int 0 101 editType EditType XawTextEditType XawtextRead 102 font Font XFontStruct* Fixed 103 foreground Foreground Pixel Black 104 height Height Dimension font height 105 insertPosition TextPosition int 0 106 international International Boolean false 107 leftMargin Margin Position 2 108 mappedWhenManaged MappedWhenManaged Boolean True 109 resize Resize XawTextResizeMode XawtextResizeNever 110 rightMargin Margin Position 4 111 scrollHorizontal Scroll XawTextScrollMode XawtextScrollNever 112 scrollVertical Scroll XawTextScrollMode XawtextScrollNever 113 selectTypes SelectTypes Pointer pos/word/line/par/all 114 selection Selection Pointer (empty selection) 115 sensitive Sensitive Boolean True 116 sink TextSink Widget (none) 117 source TextSource Widget (none) 118 string String String NULL 119 topMargin Margin Position 2 120 width Width Dimension 100 121 wrap Wrap XawTextWrapMode XawtextWrapNever 122 x Position Position 0 123 y Position Position 0 124 125 (see also *Src.h and *Sink.h) 126 */ 127 128 /* 129 * Everything else we need is in StringDefs.h or Text.h 130 */ 131 132 typedef struct _AsciiTextClassRec *AsciiTextWidgetClass; 133 typedef struct _AsciiRec *AsciiWidget; 134 135 extern WidgetClass asciiTextWidgetClass; 136 137 /************************************************************ 138 * 139 * Disk and String Emulation Info. 140 * 141 ************************************************************/ 142 143 #ifdef ASCII_STRING 144 extern WidgetClass asciiStringWidgetClass; 145 #endif 146 147 #ifdef ASCII_DISK 148 extern WidgetClass asciiDiskWidgetClass; 149 #endif 150 151 #endif /* _AsciiText_h */ 152