X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=src%2Fbattery%2Fbattery.h;h=c0b4c4f8f80bffa8215a0ce923917b481db0421e;hb=3cf41266a0125935c58edb64941f2a27a0fab3c4;hp=ac979b21eee25f3ef57ad7239c04a7949375611c;hpb=3ad3e76e075ac8c26668c6ae967758f397855aad;p=chaz%2Ftint2 diff --git a/src/battery/battery.h b/src/battery/battery.h index ac979b2..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 { @@ -57,6 +59,7 @@ extern char *path_energy_now, *path_energy_full, *path_current_now, *path_status void update_battery(); void init_battery(); +void init_battery_panel(void *panel); void draw_battery(void *obj, cairo_t *c, int active);