home *** CD-ROM | disk | FTP | other *** search
/ IRIS Development Option 6.2 / IRIS_Development_Option_6.2_814-0478-001.iso / dist / motif_dev.idb / usr / include / Sgm / GlxDrawP.h.z / GlxDrawP.h
C/C++ Source or Header  |  1996-03-14  |  3KB  |  100 lines

  1. /***********************************************************
  2.  
  3.  $Header: /hosts/bonnie/proj/banyan/isms/motif/src/lib/Sgm/RCS/GlxDrawP.h,v 1.5 1993/07/24 01:09:01 blean Exp $ 
  4.  
  5. Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts,
  6. and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
  7.  
  8.                         All Rights Reserved
  9.  
  10. Permission to use, copy, modify, and distribute this software and its 
  11. documentation for any purpose and without fee is hereby granted, 
  12. provided that the above copyright notice appear in all copies and that
  13. both that copyright notice and this permission notice appear in 
  14. supporting documentation, and that the names of Digital or MIT not be
  15. used in advertising or publicity pertaining to distribution of the
  16. software without specific, written prior permission.  
  17.  
  18. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  19. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  20. DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  21. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  22. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  23. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  24. SOFTWARE.
  25.  
  26. ******************************************************************/
  27.  
  28. #ifndef _GlxDrawP_h
  29. #define _GlxDrawP_h
  30.  
  31. #include <X11/IntrinsicP.h>
  32. #include <X11/StringDefs.h>
  33. #ifdef __GLX_MOTIF
  34. #include <Sgm/GlxMDraw.h>
  35. #else
  36. #include <Sgm/GlxDraw.h>
  37. #endif
  38.  
  39. typedef struct _GlxDrawClassPart
  40. {
  41.     caddr_t extension;
  42. } GlxDrawClassPart;
  43.  
  44. #ifdef __GLX_MOTIF
  45. typedef struct _GlxMDrawClassRec {
  46.     CoreClassPart        core_class;
  47.     XmPrimitiveClassPart    primitive_class;
  48.     GlxDrawClassPart        glxDraw_class;
  49. } GlxMDrawClassRec;
  50.  
  51. extern GlxMDrawClassRec glxMDrawClassRec;
  52.  
  53. #else /* not __GLX_MOTIF */
  54.  
  55. typedef struct _GlxDrawClassRec {
  56.     CoreClassPart    core_class;
  57.     GlxDrawClassPart    glxDraw_class;
  58. } GlxDrawClassRec;
  59.  
  60. extern GlxDrawClassRec glxDrawClassRec;
  61. #endif /* __GLX_MOTIF */
  62.  
  63. typedef struct {
  64.     Boolean        exists;
  65.     Window        window;
  66.     Colormap        colormap;
  67.     int            depth;
  68.     XVisualInfo *    visualInfo;
  69.     XtCallbackList    expose_callback;
  70. } GlxDrawWindowInfo;
  71.  
  72. typedef struct {
  73.     /* resources */
  74.     GLXconfig *        config;
  75.     XVisualInfo *    visualInfo;
  76.     Boolean        override_colormap;
  77.     XtCallbackList    ginit_callback;
  78.     XtCallbackList    resize_callback;
  79.     XtCallbackList    expose_callback;
  80.     XtCallbackList    input_callback;
  81.     GlxDrawWindowInfo    overlay_info;
  82.     GlxDrawWindowInfo    underlay_info;
  83.     GlxDrawWindowInfo    popup_info;
  84. } GlxDrawPart;
  85.  
  86. #ifdef __GLX_MOTIF
  87. typedef struct _GlxMDrawRec {
  88.     CorePart        core;
  89.     XmPrimitivePart    primitive;
  90.     GlxDrawPart        glxDraw;
  91. } GlxMDrawRec;
  92. #else /* not __GLX_MOTIF */
  93. typedef struct _GlxDrawRec {
  94.     CorePart    core;
  95.     GlxDrawPart    glxDraw;
  96. } GlxDrawRec;
  97. #endif /* __GLX_MOTIF */
  98.  
  99. #endif /* _GlxDrawP_h */
  100.