home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / include / Xm / ToggleBP.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-06-30  |  2.9 KB  |  120 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: ToggleBP.h,v $ $Revision: 10.2 $ $Date: 1994/02/27 10:08:49 $ */
  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.  *
  15.  *   No new fields need to be defined
  16.  *   for the Toggle widget class record
  17.  *
  18.  ********************************************/
  19.  
  20. #ifndef _XmToggleButtonP_h
  21. #define _XmToggleButtonP_h
  22.  
  23. #include <Xm/ToggleB.h>
  24. #include <Xm/LabelP.h>
  25.  
  26. #ifdef __cplusplus
  27. extern "C" {
  28. #endif
  29.  
  30. typedef struct _XmToggleButtonClassPart
  31.  {
  32.     XtPointer extension;   /* Pointer to extension record */
  33.  } XmToggleButtonClassPart;
  34.  
  35.  
  36. /****************************************************
  37.  *
  38.  * Full class record declaration for Toggle class
  39.  *
  40.  ****************************************************/
  41. typedef struct _XmToggleButtonClassRec {
  42.     CoreClassPart          core_class;
  43.     XmPrimitiveClassPart      primitive_class;
  44.     XmLabelClassPart          label_class;
  45.     XmToggleButtonClassPart    toggle_class;
  46. } XmToggleButtonClassRec;
  47.  
  48.  
  49. externalref XmToggleButtonClassRec xmToggleButtonClassRec;
  50.  
  51.  
  52. /********************************************
  53.  *
  54.  * No new fields needed for instance record
  55.  *
  56.  ********************************************/
  57.  
  58. typedef struct _XmToggleButtonPart
  59.    unsigned char    ind_type;
  60.    Boolean        visible;
  61.    Dimension        spacing;
  62.    Dimension        indicator_dim;
  63.    Boolean        indicator_set;
  64.    Pixmap        on_pixmap; 
  65.    Pixmap        insen_pixmap; 
  66.    Boolean        set;
  67.    Boolean             visual_set; /* used for visuals and does not reflect
  68.                                         the true state of the button */
  69.    Boolean        ind_on;
  70.    Boolean        fill_on_select;
  71.    Pixel        select_color;
  72.    GC            select_GC;
  73.    GC            background_gc;
  74.    XtCallbackList     value_changed_CB,
  75.                         arm_CB,
  76.                         disarm_CB;
  77.    Boolean          Armed;
  78. #ifdef WINTIF
  79.    GC                   thick_GC;
  80.    GC                   thin_GC;
  81.    Pixmap               toggle_pix[4];
  82.    Boolean              show_dashed_border;
  83. #endif
  84. } XmToggleButtonPart;
  85.  
  86.  
  87.  
  88. /****************************************************************
  89.  *
  90.  * Full instance record declaration
  91.  *
  92.  ****************************************************************/
  93.  
  94. typedef struct _XmToggleButtonRec {
  95.     CorePart            core;
  96.     XmPrimitivePart     primitive;
  97.     XmLabelPart        label;
  98.     XmToggleButtonPart  toggle;
  99. } XmToggleButtonRec;
  100.  
  101.  
  102. /********    Private Function Declarations    ********/
  103. #ifdef _NO_PROTO
  104.  
  105.  
  106. #else
  107.  
  108.  
  109. #endif /* _NO_PROTO */
  110. /********    End Private Function Declarations    ********/
  111.  
  112.  
  113. #ifdef __cplusplus
  114. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  115. #endif
  116.  
  117. #endif /* _XmToggleButtonP_h */
  118. /* DON'T ADD ANYTHING AFTER THIS #endif */
  119.