]>
Dogcows Code - chaz/tint2/blob - src/battery/battery.h
5fb1fdf13abfb82ae66684d90d63110ee93da189
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
36 typedef struct battime
{
42 typedef struct batstate
{
45 enum chargestate state
;
48 extern struct batstate battery_state
;
49 extern PangoFontDescription
*bat1_font_desc
;
50 extern PangoFontDescription
*bat2_font_desc
;
52 extern int8_t battery_low_status
;
53 extern char *battery_low_cmd
;
54 extern char *path_energy_now
, *path_energy_full
, *path_current_now
, *path_status
;
57 // initialize clock : y position, ...
58 void update_battery();
61 void init_battery_panel(void *panel
);
63 void draw_battery(void *obj
, cairo_t
*c
, int active
);
65 void resize_battery(void *obj
);
This page took 0.038402 seconds and 4 git commands to generate.