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 28Copyright 1987, 1988, 1994, 1998 The Open Group 29 30Permission to use, copy, modify, distribute, and sell this software and its 31documentation for any purpose is hereby granted without fee, provided that 32the above copyright notice appear in all copies and that both that 33copyright notice and this permission notice appear in supporting 34documentation. 35 36The above copyright notice and this permission notice shall be included in 37all copies or substantial portions of the Software. 38 39THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 40IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 41FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 42OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 43AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 44CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 45 46Except as contained in this notice, the name of The Open Group shall not be 47used in advertising or otherwise to promote the sale, use or other dealings 48in this Software without prior written authorization from The Open Group. 49 50 51Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts. 52 53 All Rights Reserved 54 55Permission to use, copy, modify, and distribute this software and its 56documentation for any purpose and without fee is hereby granted, 57provided that the above copyright notice appear in all copies and that 58both that copyright notice and this permission notice appear in 59supporting documentation, and that the name of Digital not be 60used in advertising or publicity pertaining to distribution of the 61software without specific, written prior permission. 62 63DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING 64ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL 65DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR 66ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 67WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, 68ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 69SOFTWARE. 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 */ 85typedef struct _MultiSinkClassPart { 86 XtPointer extension; 87} MultiSinkClassPart; 88 89/* Full class record declaration */ 90typedef struct _MultiSinkClassRec { 91 ObjectClassPart object_class; 92 TextSinkClassPart text_sink_class; 93 MultiSinkClassPart multi_sink_class; 94} MultiSinkClassRec; 95 96extern MultiSinkClassRec multiSinkClassRec; 97 98/* New fields for the MultiSink object record */ 99typedef 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 compatibility */ 112#endif 113} MultiSinkPart; 114 115/* Full instance record declaration */ 116typedef 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 128void _XawMultiSinkPosToXY 129( 130 Widget w, 131 XawTextPosition pos, 132 Position *x, 133 Position *y 134); 135 136_XFUNCPROTOEND 137 138#endif /* _XawMultiSinkP_h */ 139