]>
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.
7 **************************************************************************/
12 #include <sys/types.h>
19 typedef struct Battery
{
20 // always start with area
34 typedef struct battime
{
40 typedef struct batstate
{
43 enum chargestate state
;
46 extern struct batstate battery_state
;
47 extern PangoFontDescription
*bat1_font_desc
;
48 extern PangoFontDescription
*bat2_font_desc
;
50 extern int8_t battery_low_status
;
51 extern char* battery_low_cmd
;
53 // initialize clock : y position, ...
54 void update_battery(struct batstate
*data
);
58 void draw_battery(void *obj
, cairo_t
*c
, int active
);
60 void resize_battery(void *obj
);
This page took 0.033912 seconds and 4 git commands to generate.