17a84e134Smrg/* 27a84e134Smrg * Copyright 1991 by OMRON Corporation 37a84e134Smrg * 47a84e134Smrg * Permission to use, copy, modify, distribute, and sell this software and its 57a84e134Smrg * documentation for any purpose is hereby granted without fee, provided that 67a84e134Smrg * the above copyright notice appear in all copies and that both that 77a84e134Smrg * copyright notice and this permission notice appear in supporting 87a84e134Smrg * documentation, and that the name OMRON not be used in 97a84e134Smrg * advertising or publicity pertaining to distribution of the software without 107a84e134Smrg * specific, written prior permission. OMRON make no representations 117a84e134Smrg * about the suitability of this software for any purpose. It is provided 127a84e134Smrg * "as is" without express or implied warranty. 137a84e134Smrg * 147a84e134Smrg * OMRON DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 157a84e134Smrg * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 167a84e134Smrg * EVENT SHALL OMRON BE LIABLE FOR ANY SPECIAL, INDIRECT OR 177a84e134Smrg * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 187a84e134Smrg * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 197a84e134Smrg * TORTUOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 207a84e134Smrg * PERFORMANCE OF THIS SOFTWARE. 217a84e134Smrg * 227a84e134Smrg * Author: Li Yuhong OMRON Corporation 237a84e134Smrg */ 247a84e134Smrg 257a84e134Smrg 267a84e134Smrg/*********************************************************** 277a84e134Smrg 287a84e134SmrgCopyright 1987, 1988, 1994, 1998 The Open Group 297a84e134Smrg 307a84e134SmrgPermission to use, copy, modify, distribute, and sell this software and its 317a84e134Smrgdocumentation for any purpose is hereby granted without fee, provided that 327a84e134Smrgthe above copyright notice appear in all copies and that both that 337a84e134Smrgcopyright notice and this permission notice appear in supporting 347a84e134Smrgdocumentation. 357a84e134Smrg 367a84e134SmrgThe above copyright notice and this permission notice shall be included in 377a84e134Smrgall copies or substantial portions of the Software. 387a84e134Smrg 397a84e134SmrgTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 407a84e134SmrgIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 417a84e134SmrgFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 427a84e134SmrgOPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 437a84e134SmrgAN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 447a84e134SmrgCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 457a84e134Smrg 467a84e134SmrgExcept as contained in this notice, the name of The Open Group shall not be 477a84e134Smrgused in advertising or otherwise to promote the sale, use or other dealings 487a84e134Smrgin this Software without prior written authorization from The Open Group. 497a84e134Smrg 507a84e134Smrg 517a84e134SmrgCopyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts. 527a84e134Smrg 537a84e134Smrg All Rights Reserved 547a84e134Smrg 55421c997bSmrgPermission to use, copy, modify, and distribute this software and its 56421c997bSmrgdocumentation for any purpose and without fee is hereby granted, 577a84e134Smrgprovided that the above copyright notice appear in all copies and that 58421c997bSmrgboth that copyright notice and this permission notice appear in 597a84e134Smrgsupporting documentation, and that the name of Digital not be 607a84e134Smrgused in advertising or publicity pertaining to distribution of the 61421c997bSmrgsoftware without specific, written prior permission. 627a84e134Smrg 637a84e134SmrgDIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING 647a84e134SmrgALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL 657a84e134SmrgDIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR 667a84e134SmrgANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 677a84e134SmrgWHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, 687a84e134SmrgARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 697a84e134SmrgSOFTWARE. 707a84e134Smrg 717a84e134Smrg******************************************************************/ 727a84e134Smrg 737a84e134Smrg#ifndef _XawMultiSinkP_h 747a84e134Smrg#define _XawMultiSinkP_h 757a84e134Smrg 767a84e134Smrg#include <X11/Xfuncproto.h> 777a84e134Smrg 787a84e134Smrg/* 797a84e134Smrg * MultiSink Object Private Data 807a84e134Smrg */ 81421c997bSmrg#include <X11/Xaw/TextSinkP.h> 82421c997bSmrg#include <X11/Xaw/MultiSink.h> 837a84e134Smrg 847a84e134Smrg/* new fields for the MultiSink object class */ 857a84e134Smrgtypedef struct _MultiSinkClassPart { 867a84e134Smrg XtPointer extension; 877a84e134Smrg} MultiSinkClassPart; 887a84e134Smrg 897a84e134Smrg/* Full class record declaration */ 907a84e134Smrgtypedef struct _MultiSinkClassRec { 917a84e134Smrg ObjectClassPart object_class; 927a84e134Smrg TextSinkClassPart text_sink_class; 937a84e134Smrg MultiSinkClassPart multi_sink_class; 947a84e134Smrg} MultiSinkClassRec; 957a84e134Smrg 967a84e134Smrgextern MultiSinkClassRec multiSinkClassRec; 977a84e134Smrg 987a84e134Smrg/* New fields for the MultiSink object record */ 997a84e134Smrgtypedef struct { 1007a84e134Smrg /* resources */ 1017a84e134Smrg Boolean echo; 1027a84e134Smrg Boolean display_nonprinting; 1037a84e134Smrg 1047a84e134Smrg /* private */ 1057a84e134Smrg GC normgc, invgc, xorgc; 1067a84e134Smrg XawTextPosition cursor_position; 1077a84e134Smrg XawTextInsertState laststate; 1087a84e134Smrg short cursor_x, cursor_y; /* Cursor Location */ 1097a84e134Smrg XFontSet fontset; /* font set to draw */ 1107a84e134Smrg#ifndef OLDXAW 1115b16253fSmrg XtPointer pad[4]; /* for future use and keep binary compatibility */ 1127a84e134Smrg#endif 1137a84e134Smrg} MultiSinkPart; 1147a84e134Smrg 1157a84e134Smrg/* Full instance record declaration */ 1167a84e134Smrgtypedef struct _MultiSinkRec { 1177a84e134Smrg ObjectPart object; 1187a84e134Smrg TextSinkPart text_sink; 1197a84e134Smrg MultiSinkPart multi_sink; 1207a84e134Smrg} MultiSinkRec; 1217a84e134Smrg 1227a84e134Smrg/* 1237a84e134Smrg * Semi-private functions 1247a84e134Smrg * for use by other Xaw modules only 1257a84e134Smrg */ 1267a84e134Smrg_XFUNCPROTOBEGIN 1277a84e134Smrg 1287a84e134Smrgvoid _XawMultiSinkPosToXY 1297a84e134Smrg( 1307a84e134Smrg Widget w, 1317a84e134Smrg XawTextPosition pos, 1327a84e134Smrg Position *x, 1337a84e134Smrg Position *y 1347a84e134Smrg); 1357a84e134Smrg 1367a84e134Smrg_XFUNCPROTOEND 1377a84e134Smrg 1387a84e134Smrg#endif /* _XawMultiSinkP_h */ 139