home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / include / Xm / SashP.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-06-30  |  2.4 KB  |  103 lines

  1. /* 
  2.  * (c) Copyright 1989, 1990, 1991, 1992, 1993 OPEN SOFTWARE FOUNDATION, INC. 
  3.  * ALL RIGHTS RESERVED 
  4. */ 
  5. /* 
  6.  * Motif Release 1.2.3
  7. */ 
  8. /*   $RCSfile: SashP.h,v $ $Revision: 10.1 $ $Date: 1994/02/03 15:48:05 $ */
  9. /*
  10. *  (c) Copyright 1989, DIGITAL EQUIPMENT CORPORATION, MAYNARD, MASS. */
  11. /*
  12. *  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */
  13. /*
  14. *  (c) Copyright 1988 MASSACHUSETTS INSTITUTE OF TECHNOLOGY  */
  15. /*
  16.  *  SashP.h - Private definitions for Sash widget (Used by VPane Widget)
  17.  *
  18.  */
  19.  
  20. #ifndef _XmSashP_h
  21. #define _XmSashP_h
  22.  
  23. #include <Xm/PrimitiveP.h>
  24.  
  25. #ifdef __cplusplus
  26. extern "C" {
  27. #endif
  28.  
  29. /*****************************************************************************
  30.  *
  31.  * Sash Widget Private Data
  32.  *
  33.  *****************************************************************************/
  34.  
  35. /* New fields for the Sash widget class record */
  36. typedef struct {
  37.    XtPointer extension;   /* Pointer to extension record */
  38. } XmSashClassPart;
  39.  
  40. /* Full Class record declaration */
  41. typedef struct _XmSashClassRec {
  42.     CoreClassPart         core_class;
  43.     XmPrimitiveClassPart  primitive_class;
  44.     XmSashClassPart    sash_class;
  45. } XmSashClassRec;
  46.  
  47. typedef struct _XmSashClassRec *XmSashWidgetClass;
  48.  
  49. externalref XmSashClassRec xmSashClassRec;
  50.  
  51. /* New fields for the Sash widget record */
  52. typedef struct {
  53.   XtCallbackList sash_action;
  54.   Boolean has_focus;
  55. } XmSashPart;
  56.  
  57. /*****************************************************************************
  58.  *
  59.  * Full instance record declaration
  60.  *
  61.  ****************************************************************************/
  62.  
  63. typedef struct _XmSashRec {
  64.    CorePart         core;
  65.    XmPrimitivePart  primitive;
  66.    XmSashPart       sash;
  67. } XmSashRec;
  68.  
  69. typedef struct _XmSashRec      *XmSashWidget;
  70.  
  71. typedef struct {
  72.   XEvent *event;        /* the event causing the SashAction */
  73.   String *params;        /* the TranslationTable params */
  74.   Cardinal num_params;        /* count of params */
  75. } SashCallDataRec, *SashCallData;
  76.  
  77. /* Class Record Constant */
  78.  
  79. externalref WidgetClass xmSashWidgetClass;
  80.  
  81. #ifndef XmIsSash
  82. #define XmIsSash(w)    XtIsSubclass(w, xmSashWidgetClass)
  83. #endif /* XmIsSash */
  84.  
  85.  
  86. /********    Private Function Declarations    ********/
  87. #ifdef _NO_PROTO
  88.  
  89.  
  90. #else
  91.  
  92.  
  93. #endif /* _NO_PROTO */
  94. /********    End Private Function Declarations    ********/
  95.  
  96.  
  97. #ifdef __cplusplus
  98. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  99. #endif
  100.  
  101. #endif /* _XmSashP_h */
  102. /* DON'T ADD ANYTHING AFTER THIS #endif */
  103.