1 /* 2 * Copyright 1991 by OMRON Corporation 3 * 4 * Permission to use, copy, modify, distribute, and sell this software and its 5 * documentation for any purpose is hereby granted without fee, provided that 6 * the above copyright notice appear in all copies and that both that 7 * copyright notice and this permission notice appear in supporting 8 * documentation, and that the name OMRON not be used in 9 * advertising or publicity pertaining to distribution of the software without 10 * specific, written prior permission. OMRON make no representations 11 * about the suitability of this software for any purpose. It is provided 12 * "as is" without express or implied warranty. 13 * 14 * OMRON DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 15 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 16 * EVENT SHALL OMRON BE LIABLE FOR ANY SPECIAL, INDIRECT OR 17 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 18 * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 19 * TORTUOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 20 * PERFORMANCE OF THIS SOFTWARE. 21 * 22 * Author: Li Yuhong OMRON Corporation 23 */ 24 25 26 /*********************************************************** 27 28 Copyright 1987, 1988, 1994, 1998 The Open Group 29 30 Permission to use, copy, modify, distribute, and sell this software and its 31 documentation for any purpose is hereby granted without fee, provided that 32 the above copyright notice appear in all copies and that both that 33 copyright notice and this permission notice appear in supporting 34 documentation. 35 36 The above copyright notice and this permission notice shall be included in 37 all copies or substantial portions of the Software. 38 39 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 40 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 41 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 42 OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 43 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 44 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 45 46 Except as contained in this notice, the name of The Open Group shall not be 47 used in advertising or otherwise to promote the sale, use or other dealings 48 in this Software without prior written authorization from The Open Group. 49 50 51 Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts. 52 53 All Rights Reserved 54 55 Permission to use, copy, modify, and distribute this software and its 56 documentation for any purpose and without fee is hereby granted, 57 provided that the above copyright notice appear in all copies and that 58 both that copyright notice and this permission notice appear in 59 supporting documentation, and that the name of Digital not be 60 used in advertising or publicity pertaining to distribution of the 61 software without specific, written prior permission. 62 63 DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING 64 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL 65 DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR 66 ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 67 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, 68 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 69 SOFTWARE. 70 71 ******************************************************************/ 72 73 #ifndef _XawMultiSinkP_h 74 #define _XawMultiSinkP_h 75 76 #include <X11/Xfuncproto.h> 77 78 /* 79 * MultiSink Object Private Data 80 */ 81 #include <X11/Xaw/TextSinkP.h> 82 #include <X11/Xaw/MultiSink.h> 83 84 /* new fields for the MultiSink object class */ 85 typedef struct _MultiSinkClassPart { 86 XtPointer extension; 87 } MultiSinkClassPart; 88 89 /* Full class record declaration */ 90 typedef struct _MultiSinkClassRec { 91 ObjectClassPart object_class; 92 TextSinkClassPart text_sink_class; 93 MultiSinkClassPart multi_sink_class; 94 } MultiSinkClassRec; 95 96 extern MultiSinkClassRec multiSinkClassRec; 97 98 /* New fields for the MultiSink object record */ 99 typedef struct { 100 /* resources */ 101 Boolean echo; 102 Boolean display_nonprinting; 103 104 /* private */ 105 GC normgc, invgc, xorgc; 106 XawTextPosition cursor_position; 107 XawTextInsertState laststate; 108 short cursor_x, cursor_y; /* Cursor Location */ 109 XFontSet fontset; /* font set to draw */ 110 #ifndef OLDXAW 111 XtPointer pad[4]; /* for future use and keep binary compatability */ 112 #endif 113 } MultiSinkPart; 114 115 /* Full instance record declaration */ 116 typedef struct _MultiSinkRec { 117 ObjectPart object; 118 TextSinkPart text_sink; 119 MultiSinkPart multi_sink; 120 } MultiSinkRec; 121 122 /* 123 * Semi-private functions 124 * for use by other Xaw modules only 125 */ 126 _XFUNCPROTOBEGIN 127 128 void _XawMultiSinkPosToXY 129 ( 130 Widget w, 131 XawTextPosition pos, 132 Position *x, 133 Position *y 134 ); 135 136 _XFUNCPROTOEND 137 138 #endif /* _XawMultiSinkP_h */ 139