blob: 50a4a62a571c6d9c453fde75d2c9b186f6d1c6f1 (
plain)
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
|
#ifndef _TachometerP_h
#define _TachometerP_h
/***********************************************************************
*
* Tachometer Widget Private Data
*
***********************************************************************/
#include <Tachometer.h>
#include <X11/Xaw/SimpleP.h>
/* New fields for the Tachometer widget class record */
typedef struct {int foo;} TachometerClassPart;
/* Full class record declaration */
typedef struct _TachometerClassRec {
CoreClassPart core_class;
SimpleClassPart simple_class;
TachometerClassPart label_class;
} TachometerClassRec;
extern TachometerClassRec tachometerClassRec;
/* New fields for the Tachometer widget record */
typedef struct {
/* resources */
Pixel needle;
Pixel scale;
Pixel circle;
int value;
int speed;
/* private state */
GC needle_GC;
GC scale_GC;
GC circle_GC;
GC background_GC;
/* We need to store the width and height separately, because when */
/* we get a resize request, we need to know if the window has */
/* gotten bigger. */
Dimension width;
Dimension height;
Dimension internal_border;
} TachometerPart;
/****************************************************************
*
* Full instance record declaration
*
****************************************************************/
typedef struct _TachometerRec {
CorePart core;
SimplePart simple;
TachometerPart tachometer;
} TachometerRec;
#endif /* _TachometerP_h */
|