Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 10:26:36

0001 /*
0002  * Copyright 1991 by OMRON Corporation
0003  *
0004  * Permission to use, copy, modify, distribute, and sell this software and its
0005  * documentation for any purpose is hereby granted without fee, provided that
0006  * the above copyright notice appear in all copies and that both that
0007  * copyright notice and this permission notice appear in supporting
0008  * documentation, and that the name OMRON not be used in
0009  * advertising or publicity pertaining to distribution of the software without
0010  * specific, written prior permission.  OMRON make no representations
0011  * about the suitability of this software for any purpose.  It is provided
0012  * "as is" without express or implied warranty.
0013  *
0014  * OMRON DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
0015  * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
0016  * EVENT SHALL OMRON BE LIABLE FOR ANY SPECIAL, INDIRECT OR
0017  * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
0018  * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
0019  * TORTUOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
0020  * PERFORMANCE OF THIS SOFTWARE.
0021  *
0022  *      Author: Li Yuhong    OMRON Corporation
0023  */
0024 
0025 
0026 /***********************************************************
0027 
0028 Copyright 1987, 1988, 1994, 1998  The Open Group
0029 
0030 Permission to use, copy, modify, distribute, and sell this software and its
0031 documentation for any purpose is hereby granted without fee, provided that
0032 the above copyright notice appear in all copies and that both that
0033 copyright notice and this permission notice appear in supporting
0034 documentation.
0035 
0036 The above copyright notice and this permission notice shall be included in
0037 all copies or substantial portions of the Software.
0038 
0039 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
0040 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
0041 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
0042 OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
0043 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
0044 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
0045 
0046 Except as contained in this notice, the name of The Open Group shall not be
0047 used in advertising or otherwise to promote the sale, use or other dealings
0048 in this Software without prior written authorization from The Open Group.
0049 
0050 
0051 Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts.
0052 
0053                         All Rights Reserved
0054 
0055 Permission to use, copy, modify, and distribute this software and its
0056 documentation for any purpose and without fee is hereby granted,
0057 provided that the above copyright notice appear in all copies and that
0058 both that copyright notice and this permission notice appear in
0059 supporting documentation, and that the name of Digital not be
0060 used in advertising or publicity pertaining to distribution of the
0061 software without specific, written prior permission.
0062 
0063 DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
0064 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
0065 DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
0066 ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
0067 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
0068 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
0069 SOFTWARE.
0070 
0071 ******************************************************************/
0072 
0073 #ifndef _XawMultiSinkP_h
0074 #define _XawMultiSinkP_h
0075 
0076 #include <X11/Xfuncproto.h>
0077 
0078 /*
0079  * MultiSink Object Private Data
0080  */
0081 #include <X11/Xaw/TextSinkP.h>
0082 #include <X11/Xaw/MultiSink.h>
0083 
0084 /* new fields for the MultiSink object class */
0085 typedef struct _MultiSinkClassPart {
0086     XtPointer extension;
0087 } MultiSinkClassPart;
0088 
0089 /* Full class record declaration */
0090 typedef struct _MultiSinkClassRec {
0091     ObjectClassPart     object_class;
0092     TextSinkClassPart   text_sink_class;
0093     MultiSinkClassPart  multi_sink_class;
0094 } MultiSinkClassRec;
0095 
0096 extern MultiSinkClassRec multiSinkClassRec;
0097 
0098 /* New fields for the MultiSink object record */
0099 typedef struct {
0100     /* resources */
0101     Boolean echo;
0102     Boolean display_nonprinting;
0103 
0104     /* private */
0105     GC normgc, invgc, xorgc;
0106     XawTextPosition cursor_position;
0107     XawTextInsertState laststate;
0108     short cursor_x, cursor_y;       /* Cursor Location */
0109     XFontSet fontset;           /* font set to draw */
0110 #ifndef OLDXAW
0111     XtPointer pad[4];   /* for future use and keep binary compatibility */
0112 #endif
0113 } MultiSinkPart;
0114 
0115 /* Full instance record declaration */
0116 typedef struct _MultiSinkRec {
0117     ObjectPart          object;
0118     TextSinkPart    text_sink;
0119     MultiSinkPart   multi_sink;
0120 } MultiSinkRec;
0121 
0122 /*
0123  * Semi-private functions
0124  * for use by other Xaw modules only
0125  */
0126 _XFUNCPROTOBEGIN
0127 
0128 void _XawMultiSinkPosToXY
0129 (
0130  Widget         w,
0131  XawTextPosition    pos,
0132  Position       *x,
0133  Position       *y
0134 );
0135 
0136 _XFUNCPROTOEND
0137 
0138 #endif /* _XawMultiSinkP_h */