home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.5 Complementary Applications 2004 February / SGI IRIX 6.5 Complementary Applications 2004 February.iso / dist / cde.idb / usr / dt / share / include / Xm / ExtObjectP.h.z / ExtObjectP.h
Encoding:
C/C++ Source or Header  |  2003-11-18  |  3.5 KB  |  134 lines

  1. /*
  2.  * ExtObjectP.h
  3.  *
  4.  * Copyright 2000, Silicon Graphics, Inc.
  5.  * ALL RIGHTS RESERVED
  6.  * 
  7.  * UNPUBLISHED -- Rights reserved under the copyright laws of the United
  8.  * States.   Use of a copyright notice is precautionary only and does not
  9.  * imply publication or disclosure.
  10.  *
  11.  * U.S. GOVERNMENT RESTRICTED RIGHTS LEGEND:
  12.  * Use, duplication or disclosure by the Government is subject to restrictions
  13.  * as set forth in FAR 52.227.19(c)(2) or subparagraph (c)(1)(ii) of the Rights
  14.  * in Technical Data and Computer Software clause at DFARS 252.227-7013 and/or
  15.  * in similar or successor clauses in the FAR, or the DOD or NASA FAR
  16.  * Supplement.  Contractor/manufacturer is Silicon Graphics, Inc.,
  17.  * 2011 N. Shoreline Blvd. Mountain View, CA 94039-7311.
  18.  *
  19.  * THE CONTENT OF THIS WORK CONTAINS CONFIDENTIAL AND PROPRIETARY
  20.  * INFORMATION OF SILICON GRAPHICS, INC. ANY DUPLICATION, MODIFICATION,
  21.  * DISTRIBUTION, OR DISCLOSURE IN ANY FORM, IN WHOLE, OR IN PART, IS STRICTLY
  22.  * PROHIBITED WITHOUT THE PRIOR EXPRESS WRITTEN PERMISSION OF SILICON
  23.  * GRAPHICS, INC.
  24.  */
  25. /* 
  26.  * @OSF_COPYRIGHT@
  27.  * (c) Copyright 1990, 1991, 1992, 1993, 1994 OPEN SOFTWARE FOUNDATION, INC.
  28.  * ALL RIGHTS RESERVED
  29.  *  
  30. */ 
  31. /*
  32.  * HISTORY
  33.  * Motif Release 1.2.5
  34. */
  35. /*   $XConsortium: ExtObjectP.h /main/cde1_maint/2 1995/08/18 19:03:29 drk $ */
  36. /*
  37. *  (c) Copyright 1989, 1990  DIGITAL EQUIPMENT CORPORATION, MAYNARD, MASS. */
  38. /*
  39. *  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */
  40. /*
  41. *  (c) Copyright 1988 MASSACHUSETTS INSTITUTE OF TECHNOLOGY  */
  42. /*
  43. *  (c) Copyright 1988 MICROSOFT CORPORATION */
  44. #ifndef  _XmExtObjectP_h
  45. #define _XmExtObjectP_h
  46.  
  47. #include <Xm/XmP.h>
  48.  
  49. #ifdef __cplusplus
  50. extern "C" {
  51. #endif
  52.  
  53. enum{    XmCACHE_EXTENSION = 1,            XmDESKTOP_EXTENSION,
  54.     XmSHELL_EXTENSION,            XmPROTOCOL_EXTENSION,
  55.     XmDEFAULT_EXTENSION
  56.     } ;
  57.  
  58. #ifndef XmIsExtObject
  59. #define XmIsExtObject(w) XtIsSubclass(w, xmExtObjectClass)
  60. #endif /* XmIsExtObject */
  61.  
  62. /* Class record constants */
  63.  
  64. typedef struct _XmExtRec *XmExtObject;
  65. typedef struct _XmExtClassRec *XmExtObjectClass;
  66.  
  67. externalref WidgetClass xmExtObjectClass;
  68.  
  69. #define XmNUM_ELEMENTS 4
  70. #define XmNUM_BYTES 99
  71.  
  72. /* Class Extension definitions */
  73.  
  74. typedef struct _XmExtClassPart{
  75.     XmSyntheticResource *syn_resources;   
  76.     int                    num_syn_resources;   
  77. #ifdef notdef
  78.     XtResourceList    ext_resources;
  79.     XtResourceList    compiled_ext_resources;
  80.     Cardinal        num_ext_resources;
  81.     Boolean        use_sub_resources;
  82. #endif /* notdef */
  83.     XtPointer        extension;
  84. }XmExtClassPart, *XmExtClassPartPtr;
  85.  
  86. typedef struct _XmExtClassRec{
  87.     ObjectClassPart        object_class;
  88.     XmExtClassPart         ext_class;
  89. }XmExtClassRec;
  90.  
  91. typedef struct {
  92.     Widget        logicalParent;
  93.     unsigned char    extensionType;
  94. } XmExtPart, *XmExtPartPtr;
  95.  
  96. externalref XmExtClassRec     xmExtClassRec;
  97.  
  98. typedef struct _XmExtRec{
  99.     ObjectPart            object;
  100.     XmExtPart            ext;
  101. }XmExtRec;
  102.  
  103. typedef struct _XmExtCache {
  104.    char    data[XmNUM_BYTES];
  105.    Boolean inuse;
  106. }XmExtCache;
  107.  
  108.  
  109. /********    Private Function Declarations    ********/
  110. #ifdef _NO_PROTO
  111.  
  112. extern char * _XmExtObjAlloc() ;
  113. extern void _XmExtObjFree() ;
  114. extern void _XmBuildExtResources() ;
  115.  
  116. #else
  117.  
  118. extern char * _XmExtObjAlloc( 
  119.                         int size) ;
  120. extern void _XmExtObjFree( 
  121.                         XtPointer element) ;
  122. extern void _XmBuildExtResources( 
  123.                         WidgetClass c) ;
  124.  
  125. #endif /* _NO_PROTO */
  126. /********    End Private Function Declarations    ********/
  127.  
  128.  
  129. #ifdef __cplusplus
  130. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  131. #endif
  132.  
  133. #endif  /* _XmExtObjectP_h */
  134.