home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / include / Xm / ScaleP.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-06-30  |  2.5 KB  |  119 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: ScaleP.h,v $ $Revision: 10.1 $ $Date: 1994/02/03 15:48:23 $ */
  9. /*
  10. *  (c) Copyright 1989, DIGITAL EQUIPMENT CORPORATION, MAYNARD, MASS. */
  11. /*
  12. *  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */
  13. #ifndef _XmScaleP_h
  14. #define _XmScaleP_h
  15.  
  16.  
  17. #include <Xm/Scale.h>
  18. #include <Xm/ManagerP.h>
  19.  
  20. #ifdef __cplusplus
  21. extern "C" {
  22. #endif
  23.  
  24. /* Constraint part record for Scale widget */
  25.  
  26. typedef struct _XmScaleConstraintPart
  27. {
  28.    char unused;
  29. } XmScaleConstraintPart, * XmScaleConstraint;
  30.  
  31.  
  32. /*  New fields for the Scale widget class record  */
  33.  
  34. typedef struct
  35. {
  36.    XtPointer extension;   /* Pointer to extension record */
  37. } XmScaleClassPart;
  38.  
  39.  
  40. /* Full class record declaration */
  41.  
  42. typedef struct _XmScaleClassRec
  43. {
  44.    CoreClassPart       core_class;
  45.    CompositeClassPart  composite_class;
  46.    ConstraintClassPart constraint_class;
  47.    XmManagerClassPart  manager_class;
  48.    XmScaleClassPart    scale_class;
  49. } XmScaleClassRec;
  50.  
  51. externalref XmScaleClassRec xmScaleClassRec;
  52.  
  53.  
  54. /* New fields for the Scale widget record */
  55.  
  56. typedef struct
  57. {
  58.    int            value;
  59.    int            maximum;
  60.    int            minimum;
  61.    unsigned char  orientation;
  62.    unsigned char  processing_direction;
  63.    XmString       title; 
  64.    XmFontList     font_list;
  65.    XFontStruct  * font_struct;
  66.    Boolean        show_value;
  67.    short          decimal_points;
  68.    Dimension      scale_width;
  69.    Dimension      scale_height;
  70.    Dimension      highlight_thickness;
  71.    Boolean        highlight_on_enter;
  72.    XtCallbackList drag_callback;
  73.    XtCallbackList value_changed_callback;
  74.  
  75.    int last_value;
  76.    int slider_size;
  77.    GC  foreground_GC;
  78.    int show_value_x;
  79.    int show_value_y;
  80.    int show_value_width;
  81.    int show_value_height;
  82.    int scale_multiple;
  83. } XmScalePart;
  84.  
  85.  
  86. /****************************************************************
  87.  *
  88.  * Full instance record declaration
  89.  *
  90.  ****************************************************************/
  91.  
  92. typedef struct _XmScaleRec
  93. {
  94.     CorePart       core;
  95.     CompositePart  composite;
  96.     ConstraintPart constraint;
  97.     XmManagerPart  manager;
  98.     XmScalePart    scale;
  99. } XmScaleRec;
  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 /* _XmScaleP_h */
  118. /* DON'T ADD ANYTHING AFTER THIS #endif */
  119.