]>
Dogcows Code - chaz/tint2/blob - battery.h
c0b4c4f8f80bffa8215a0ce923917b481db0421e
1 /**************************************************************************
2 * Copyright (C) 2009 Sebastian Reichel <elektranox@gmail.com>
4 * Battery with functional data (percentage, time to life) and drawing data
5 * (area, font, ...). Each panel use his own drawing data.
6 * Need kernel > 2.6.23.
8 **************************************************************************/
13 #include <sys/types.h>
21 typedef struct Battery
{
22 // always start with area
37 typedef struct battime
{
43 typedef struct batstate
{
46 enum chargestate state
;
49 extern struct batstate battery_state
;
50 extern PangoFontDescription
*bat1_font_desc
;
51 extern PangoFontDescription
*bat2_font_desc
;
53 extern int8_t battery_low_status
;
54 extern char *battery_low_cmd
;
55 extern char *path_energy_now
, *path_energy_full
, *path_current_now
, *path_status
;
58 // initialize clock : y position, ...
59 void update_battery();
62 void init_battery_panel(void *panel
);
64 void draw_battery(void *obj
, cairo_t
*c
, int active
);
66 void resize_battery(void *obj
);
This page took 0.040539 seconds and 3 git commands to generate.