00001 /* 00002 * $XConsortium: AsciiText.h,v 1.18 94/04/17 20:11:51 kaleb Exp $ 00003 */ 00004 00005 /*********************************************************** 00006 00007 Copyright (c) 1987, 1988, 1994 X Consortium 00008 00009 Permission is hereby granted, free of charge, to any person obtaining a copy 00010 of this software and associated documentation files (the "Software"), to deal 00011 in the Software without restriction, including without limitation the rights 00012 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 00013 copies of the Software, and to permit persons to whom the Software is 00014 furnished to do so, subject to the following conditions: 00015 00016 The above copyright notice and this permission notice shall be included in 00017 all copies or substantial portions of the Software. 00018 00019 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 00020 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 00021 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 00022 X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 00023 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 00024 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 00025 00026 Except as contained in this notice, the name of the X Consortium shall not be 00027 used in advertising or otherwise to promote the sale, use or other dealings 00028 in this Software without prior written authorization from the X Consortium. 00029 00030 00031 Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts. 00032 00033 All Rights Reserved 00034 00035 Permission to use, copy, modify, and distribute this software and its 00036 documentation for any purpose and without fee is hereby granted, 00037 provided that the above copyright notice appear in all copies and that 00038 both that copyright notice and this permission notice appear in 00039 supporting documentation, and that the name of Digital not be 00040 used in advertising or publicity pertaining to distribution of the 00041 software without specific, written prior permission. 00042 00043 DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING 00044 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL 00045 DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR 00046 ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 00047 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, 00048 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 00049 SOFTWARE. 00050 00051 ******************************************************************/ 00052 00053 /*********************************************************************** 00054 * 00055 * AsciiText Widget 00056 * 00057 ***********************************************************************/ 00058 00059 /* 00060 * AsciiText.c - Public header file for AsciiText Widget. 00061 * 00062 * This Widget is intended to be used as a simple front end to the 00063 * text widget with an ascii source and ascii sink attached to it. 00064 * 00065 * Date: June 29, 1989 00066 * 00067 * By: Chris D. Peterson 00068 * MIT X Consortium 00069 * kit@expo.lcs.mit.edu 00070 */ 00071 00072 #ifndef _AsciiText_h 00073 #define _AsciiText_h 00074 00075 /**************************************************************** 00076 * 00077 * AsciiText widgets 00078 * 00079 ****************************************************************/ 00080 00081 #include <X11/Xaw3d/Text.h> /* AsciiText is a subclass of Text */ 00082 #include <X11/Xaw3d/AsciiSrc.h> 00083 #include <X11/Xaw3d/MultiSrc.h> 00084 00085 /* Resources: 00086 00087 Name Class RepType Default Value 00088 ---- ----- ------- ------------- 00089 autoFill AutoFill Boolean False 00090 background Background Pixel XtDefaultBackground 00091 border BorderColor Pixel XtDefaultForeground 00092 borderWidth BorderWidth Dimension 1 00093 bottomMargin Margin Position 2 00094 cursor Cursor Cursor xterm 00095 destroyCallback Callback Pointer NULL 00096 displayCaret Output Boolean True 00097 displayPosition TextPosition int 0 00098 editType EditType XawTextEditType XawtextRead 00099 font Font XFontStruct* Fixed 00100 foreground Foreground Pixel Black 00101 height Height Dimension font height 00102 insertPosition TextPosition int 0 00103 international International Boolean false 00104 leftMargin Margin Position 2 00105 mappedWhenManaged MappedWhenManaged Boolean True 00106 resize Resize XawTextResizeMode XawtextResizeNever 00107 rightMargin Margin Position 4 00108 scrollHorizontal Scroll XawTextScrollMode XawtextScrollNever 00109 scrollVertical Scroll XawTextScrollMode XawtextScrollNever 00110 selectTypes SelectTypes Pointer pos/word/line/par/all 00111 selection Selection Pointer (empty selection) 00112 sensitive Sensitive Boolean True 00113 sink TextSink Widget (none) 00114 source TextSource Widget (none) 00115 string String String NULL 00116 topMargin Margin Position 2 00117 width Width Dimension 100 00118 wrap Wrap XawTextWrapMode XawtextWrapNever 00119 x Position Position 0 00120 y Position Position 0 00121 00122 (see also *Src.h and *Sink.h) 00123 */ 00124 00125 /* 00126 * Everything else we need is in StringDefs.h or Text.h 00127 */ 00128 00129 typedef struct _AsciiTextClassRec *AsciiTextWidgetClass; 00130 typedef struct _AsciiRec *AsciiWidget; 00131 00132 extern WidgetClass asciiTextWidgetClass; 00133 00134 /************************************************************ 00135 * 00136 * Disk and String Emulation Info. 00137 * 00138 ************************************************************/ 00139 00140 #ifdef ASCII_STRING 00141 extern WidgetClass asciiStringWidgetClass; 00142 #endif 00143 00144 #ifdef ASCII_DISK 00145 extern WidgetClass asciiDiskWidgetClass; 00146 #endif 00147 00148 #endif /* _AsciiText_h */
1.5.1