File: BatteryGauge.h

package info (click to toggle)
apmd 3.2.2-15
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 508 kB
  • sloc: ansic: 2,884; makefile: 594; sh: 192
file content (68 lines) | stat: -rw-r--r-- 2,073 bytes parent folder | download | duplicates (7)
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
/*  Copyright (C) 1999 Nathan Sidwell <nathan@acm.org>
 *  $Id: BatteryGauge.h,v 1.1 1999/08/02 20:08:10 apenwarr Exp $
 *  This file is available under the GNU General Public License.
 */

#ifndef BatteryGauge_h
#define BatteryGauge_h
#include <X11/Xaw/Simple.h>
#include <X11/Xmu/Converters.h>
/*{{{  BatteryGauge widget resources*/
/* 
 * A subclass of the Simple widget
 Name		     Class		RepType		Default Value
 ----		     -----		-------		-------------
 length		     Length		Dimension	1
 orientation	     Orientation	XtOrientation	XtorientVertical
 thickness	     Thickness		Dimension	14
 highColor           Foreground         Color           green
 lowColor            Foreground         Color           orange
 criticalColor       Foreground         Color           red
 chargingColor       Background         Color           blue
 flash               Delay              int             250
 update              Delay              int             15
 criticalLevel       Value              int             0
 level               Value              int             0
 lifetime            Value              int             0
 status              Value              int             0
 */
/*}}}*/
/*{{{  new resource names*/
#ifndef XtNlowColor
#define XtNlowColor "lowColor"
#endif
#ifndef XtNcriticalColor
#define XtNcriticalColor "criticalColor"
#endif
#ifndef XtNhighColor
#define XtNhighColor "highColor"
#endif
#ifndef XtNchargingColor
#define XtNchargingColor "chargingColor"
#endif
#ifndef XtNflash
#define XtNflash "flash"
#endif
#ifndef XtNupdate
#define XtNupdate "update"
#endif
#ifndef XtCDelay
#define XtCDelay "Delay"
#endif
#ifndef XtNcriticalLevel
#define XtNcriticalLevel "criticalLevel"
#endif
#ifndef XtNlevel
#define XtNlevel "level"
#endif
#ifndef XtNstatus
#define XtNstatus "status"
#endif
#ifndef XtNlifetime
#define XtNlifetime "lifetime"
#endif
/*}}}*/
extern WidgetClass batteryGaugeWidgetClass;
typedef struct _BatteryGaugeClassRec*	BatteryGaugeWidgetClass;
typedef struct _BatteryGaugeRec*	BatteryGaugeWidget;
#endif /* BatteryGauge_h */