#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 {
// 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);