File: BatteryGaugeP.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 (66 lines) | stat: -rw-r--r-- 2,282 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
/*  Copyright (C) 1999 Nathan Sidwell <nathan@acm.org>
 *  $Id: BatteryGaugeP.h,v 1.1 1999/08/02 20:08:10 apenwarr Exp $
 *  This file is available under the GNU General Public License.
 */

#ifndef BatteryGaugeP_h
#define BatteryGaugeP_h
#include <X11/Xaw/SimpleP.h>
#include "BatteryGauge.h"
/*{{{  structs*/
/*{{{  typedef struct _BatteryGaugeClass*/
typedef struct _BatteryGaugeClass
{
  int unused;
} BatteryGaugeClassPart;
/*}}}*/
/*{{{  typedef struct _BatteryGaugeClassRec*/
typedef struct _BatteryGaugeClassRec
{
  CoreClassPart   core_class;
  SimpleClassPart simple_class;
  BatteryGaugeClassPart batteryGauge_class;
} BatteryGaugeClassRec;
/*}}}*/
/*{{{  typedef struct _BatteryGaugePart*/
typedef struct _BatteryGaugePart
{
  /* resources */
  XtOrientation orientation;  /* horizontal or vertical */
  Pixel     criticalColor;    /* critical color */
  Pixel     lowColor;         /* low color */
  Pixel     highColor;        /* high color */
  Pixel     chargingColor;    /* charging color */
  int       flashDelay;       /* flash delay */
  int       updateDelay;      /* update delay */
  Dimension length;           /* length of widget */
  Dimension thickness;        /* height of widget */
  int       criticalLevel;    /* override BIOS's idea */
  int       level;            /* current percent level */
  int       status;           /* current status */
  int       lifetime;         /* current lifetime */
  
  /* private state */
  GC	    gc;	              /* my (unshared) gc */
  int       position;         /* position current level */
  int       inverted;         /* drawn inverted */
  int       flash;            /* flash on and off */
  int       notified;         /* notified of flashing */
  Widget    popup;            /* popup widget */
  Widget    label;            /* label widget */
  int       popped;           /* popped up */
  XtIntervalId flashTimeout;       /* flasher timeout id */
  XtIntervalId updateTimeout;      /* update timeout id */
} BatteryGaugePart;
/*}}}*/
/*{{{  typedef struct _BatteryGaugeRec*/
typedef struct _BatteryGaugeRec
{
  CorePart    core;
  SimplePart  simple;
  BatteryGaugePart  batteryGauge;
} BatteryGaugeRec;
/*}}}*/
/*}}}*/
extern BatteryGaugeClassRec batteryGaugeClassRec;
#endif /* BatteryGaugeP_h */