-
Notifications
You must be signed in to change notification settings - Fork 2
/
Tachometer.h
52 lines (42 loc) · 1.67 KB
/
Tachometer.h
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
/*
* This file is Copyright (c) 2010 by the GPSD project
* BSD terms apply: see the file COPYING in the distribution root for details.
*/
#ifndef _GPSD_TACHOMETER_H_
#define _GPSD_TACHOMETER_H_
/* Tachometer.h -- tachometer widget interface */
#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 /* _GPSD_TACHOMETER_H_ */