summaryrefslogtreecommitdiff
path: root/include/object
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-11-28 22:15:38 +0100
committerDaniel Friesel <derf@finalrewind.org>2021-11-28 22:15:38 +0100
commit392aec889cff9400d512970868a6dcfba3b72ce1 (patch)
treeec4e7d3671588ea92ffb0cb642785ce22c64fb93 /include/object
parent91910f8045317d8b7fd91c6ad090433d0434cd7d (diff)
framebuffer: add drawBattery function
Diffstat (limited to 'include/object')
-rw-r--r--include/object/framebuffer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/object/framebuffer.h b/include/object/framebuffer.h
index bfbd215..90be12b 100644
--- a/include/object/framebuffer.h
+++ b/include/object/framebuffer.h
@@ -23,6 +23,7 @@ class Framebuffer : public OutputStream
void scroll();
void fillBox(unsigned int x, unsigned int y, unsigned int w, unsigned int h);
void drawAt(unsigned int x, unsigned int y, unsigned int w, unsigned int h, unsigned char *image);
+ void drawBattery(unsigned int x, unsigned int y, unsigned char percent);
void setFont(const glyph_t *font) { this->font = font; }
void setPos(unsigned int newX, unsigned int newY) { fontX = newX; fontY = newY; }
virtual void put(char c) override;