home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-bin / x11r6.1 / include / x11 / xaw / multisinkp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-10-17  |  5.5 KB  |  158 lines

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