aboutsummaryrefslogtreecommitdiff
path: root/vendor/x11iraf/obm/ObmW/CommonP.h
blob: e98e23104ad8338c97125d16e6a37b2dc4dc1714 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
/* Generated by wbuild from "Common.w"
** (generator version $Revision: 2.0 $ of $Date: 93/07/06 16:08:04 $)
*/
#ifndef _XfwfCommonP_H_
#define _XfwfCommonP_H_
#include <X11/CompositeP.h>
#include "Common.h"
typedef void (*compute_inside_Proc)(
#if NeedFunctionPrototypes
Widget,Position *,Position *,Dimension *,Dimension *
#endif
);
#define XtInherit_compute_inside ((compute_inside_Proc) _XtInherit)
typedef void (*highlight_border_Proc)(
#if NeedFunctionPrototypes
Widget
#endif
);
#define XtInherit_highlight_border ((highlight_border_Proc) _XtInherit)
typedef void (*unhighlight_border_Proc)(
#if NeedFunctionPrototypes
Widget
#endif
);
#define XtInherit_unhighlight_border ((unhighlight_border_Proc) _XtInherit)
typedef Boolean  (*would_accept_focus_Proc)(
#if NeedFunctionPrototypes
Widget
#endif
);
#define XtInherit_would_accept_focus ((would_accept_focus_Proc) _XtInherit)
typedef void (*traverse_Proc)(
#if NeedFunctionPrototypes
Widget,TraversalDirection ,Widget ,Time *
#endif
);
#define XtInherit_traverse ((traverse_Proc) _XtInherit)
typedef Boolean  (*choose_color_Proc)(
#if NeedFunctionPrototypes
Widget,double ,Pixel ,Pixel *
#endif
);
#define XtInherit_choose_color ((choose_color_Proc) _XtInherit)
typedef Boolean  (*lighter_color_Proc)(
#if NeedFunctionPrototypes
Widget,Pixel ,Pixel *
#endif
);
#define XtInherit_lighter_color ((lighter_color_Proc) _XtInherit)
typedef Boolean  (*darker_color_Proc)(
#if NeedFunctionPrototypes
Widget,Pixel ,Pixel *
#endif
);
#define XtInherit_darker_color ((darker_color_Proc) _XtInherit)
typedef struct {
/* methods */
compute_inside_Proc compute_inside;
highlight_border_Proc highlight_border;
unhighlight_border_Proc unhighlight_border;
would_accept_focus_Proc would_accept_focus;
#define LARGE_NUMBER 2000000000 


traverse_Proc traverse;
choose_color_Proc choose_color;
lighter_color_Proc lighter_color;
darker_color_Proc darker_color;
/* class variables */
XtTranslations  traversal_trans;
} XfwfCommonClassPart;
typedef struct _XfwfCommonClassRec {
CoreClassPart core_class;
CompositeClassPart composite_class;
XfwfCommonClassPart xfwfCommon_class;
} XfwfCommonClassRec;

typedef struct {
/* resources */
Boolean  traversalOn;
Dimension  highlightThickness;
Pixel  highlightColor;
Pixmap  highlightPixmap;
XtCallbackList  nextTop;
XtPointer  userData;
/* private state */
#define max(a, b) ((a )>(b )?(a ):(b ))


#define min(a, b) ((a )<(b )?(a ):(b ))


#define abs(a) ((a )<0 ?-(a ):(a ))


Boolean  traversal_focus;
GC  bordergc;
} XfwfCommonPart;

typedef struct _XfwfCommonRec {
CorePart core;
CompositePart composite;
XfwfCommonPart xfwfCommon;
} XfwfCommonRec;

externalref XfwfCommonClassRec xfwfCommonClassRec;

#endif /* _XfwfCommonP_H_ */