]>
Dogcows Code - chaz/tint2/blob - src/battery/battery.h
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>
20 typedef struct Battery
{
21 // always start with area
35 typedef struct battime
{
41 typedef struct batstate
{
44 enum chargestate state
;
47 extern struct batstate battery_state
;
48 extern PangoFontDescription
*bat1_font_desc
;
49 extern PangoFontDescription
*bat2_font_desc
;
51 extern int8_t battery_low_status
;
52 extern char *battery_low_cmd
;
53 extern char *path_energy_now
, *path_energy_full
, *path_current_now
, *path_status
;
56 // initialize clock : y position, ...
57 void update_battery(struct batstate
*data
);
61 void draw_battery(void *obj
, cairo_t
*c
, int active
);
63 void resize_battery(void *obj
);
This page took 0.041233 seconds and 4 git commands to generate.