File indexing completed on 2025-01-18 10:15:27
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027 #ifndef _XmNavigatorT_H
0028 #define _XmNavigatorT_H
0029
0030 #include <Xm/Xm.h>
0031
0032 #ifdef __cplusplus
0033 extern "C" {
0034 #endif
0035
0036 externalref XrmQuark XmQTnavigator;
0037
0038
0039
0040
0041
0042
0043 typedef struct _TwoDInt {
0044 int x;
0045 int y;
0046 } TwoDIntRec, *TwoDInt;
0047
0048
0049
0050 typedef struct _XmNavigatorDataRec {
0051 Mask valueMask ;
0052 Mask dimMask ;
0053 TwoDIntRec value;
0054 TwoDIntRec minimum;
0055 TwoDIntRec maximum;
0056 TwoDIntRec slider_size;
0057 TwoDIntRec increment;
0058 TwoDIntRec page_increment;
0059 } XmNavigatorDataRec, *XmNavigatorData;
0060
0061 #define NavAllValid (OxFFFF)
0062 #define NavDimMask (1L<<0)
0063 #define NavValue (1L<<1)
0064 #define NavMinimum (1L<<2)
0065 #define NavMaximum (1L<<3)
0066 #define NavSliderSize (1L<<4)
0067 #define NavIncrement (1L<<5)
0068 #define NavPageIncrement (1L<<6)
0069
0070
0071
0072 typedef void (*XmNavigatorMoveCBProc)(Widget nav,
0073 XtCallbackProc moveCB,
0074 XtPointer closure,
0075 Boolean setunset);
0076 typedef void (*XmNavigatorSetValueProc)(Widget nav,
0077 XmNavigatorData nav_data,
0078 Boolean notify);
0079 typedef void (*XmNavigatorGetValueProc)(Widget nav,
0080 XmNavigatorData nav_data);
0081
0082
0083
0084
0085
0086 typedef struct _XmNavigatorTraitRec {
0087 int version;
0088 XmNavigatorMoveCBProc changeMoveCB;
0089 XmNavigatorSetValueProc setValue;
0090 XmNavigatorGetValueProc getValue;
0091 } XmNavigatorTraitRec, *XmNavigatorTrait;
0092
0093
0094 #define NavigDimensionX (1L<<0)
0095 #define NavigDimensionY (1L<<1)
0096
0097
0098 #define ACCESS_DIM(mask,field) ((mask & NavigDimensionX)?(field.x):(field.y))
0099
0100 #define ASSIGN_DIM(mask,field,val) \
0101 { \
0102 if (mask & NavigDimensionX) \
0103 (field.x)=(val); \
0104 else \
0105 (field.y)=(val); \
0106 }
0107
0108
0109 #ifdef __cplusplus
0110 }
0111 #endif
0112
0113 #endif