blob: 296f8cc68f182279e2a13ec5d401247d89d0941e (
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
|
#ifndef _Tachometer_h
#define _Tachometer_h
/***********************************************************************
*
* Tachometer Widget
*
***********************************************************************/
#include <X11/Xaw/Simple.h>
/* Resources:
Name Class RepType Default Value
---- ----- ------- -------------
background Background Pixel XtDefaultBackground
border BorderColor Pixel XtDefaultForeground
circleColor BorderColor Pixel XtDefaultForeground
borderWidth BorderWidth Dimension 0
cursor Cursor Cursor None
destroyCallback Callback XtCallbackList NULL
foreground Foreground Pixel XtDefaultForeground
height Height Dimension 100
insensitiveBorder Insensitive Pixmap Gray
internalBorderWidth BorderWidth Dimension 0
mappedWhenManaged MappedWhenManaged Boolean True
needleColor BorderColor Pixel XtDefaultForeground
needleSpeed NeedleSpeed int 1
sensitive Sensitive Boolean True
width Width Dimension 100
value Value int 0
x Position Position 0
y Position Position 0
*/
#define XtNinternalBorderWidth "internalBorderWidth"
#define XtNtachometerNeedleSpeed "needleSpeed"
#define XtNtachometerCircleColor "circleColor"
#define XtNtachometerNeedleColor "needleColor"
#define XtCtachometerNeedleSpeed "NeedleSpeed"
extern int TachometerGetValue(Widget);
extern int TachometerSetValue(Widget, int);
/* Class record constants */
extern WidgetClass tachometerWidgetClass;
typedef struct _TachometerClassRec *TachometerWidgetClass;
typedef struct _TachometerRec *TachometerWidget;
#endif /* _Tachometer_h */
|