X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=src%2Fbattery%2Fbattery.h;h=c0b4c4f8f80bffa8215a0ce923917b481db0421e;hb=3cf41266a0125935c58edb64941f2a27a0fab3c4;hp=f6d227ab0a03cec3b5819e6ec2f36e281066befd;hpb=851aebb17710a7c87163c09d9e1b2ea04458fcac;p=chaz%2Ftint2 diff --git a/src/battery/battery.h b/src/battery/battery.h index f6d227a..c0b4c4f 100644 --- a/src/battery/battery.h +++ b/src/battery/battery.h @@ -17,19 +17,21 @@ #include "common.h" #include "area.h" + typedef struct Battery { - // always start with area - Area area; + // always start with area + Area area; - config_color font; - int bat1_posy; - int bat2_posy; + config_color font; + int bat1_posy; + int bat2_posy; } Battery; enum chargestate { BATTERY_UNKNOWN, BATTERY_CHARGING, - BATTERY_DISCHARGING + BATTERY_DISCHARGING, + BATTERY_FULL }; typedef struct battime { @@ -54,9 +56,10 @@ extern char *path_energy_now, *path_energy_full, *path_current_now, *path_status // initialize clock : y position, ... -void update_battery(struct batstate *data); +void update_battery(); void init_battery(); +void init_battery_panel(void *panel); void draw_battery(void *obj, cairo_t *c, int active);