]>
Dogcows Code - chaz/tint2/blob - battery.h
39f9b11d30f877eaeaa55164c3d274f268489102
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 // battery drawing parameter (per panel)
22 typedef struct Battery
{
23 // always start with area
38 typedef struct battime
{
44 typedef struct batstate
{
47 enum chargestate state
;
50 extern struct batstate battery_state
;
51 extern PangoFontDescription
*bat1_font_desc
;
52 extern PangoFontDescription
*bat2_font_desc
;
53 extern int battery_enabled
;
54 extern int percentage_hide
;
56 extern int8_t battery_low_status
;
57 extern char *battery_low_cmd
;
58 extern char *path_energy_now
, *path_energy_full
, *path_current_now
, *path_status
;
61 // initialize clock : y position, ...
62 void update_battery();
65 void init_battery_panel(void *panel
);
66 void cleanup_battery();
68 void draw_battery(void *obj
, cairo_t
*c
);
70 void resize_battery(void *obj
);
This page took 0.033997 seconds and 3 git commands to generate.