summaryrefslogtreecommitdiffstats
path: root/include/gui
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2016-06-27 21:27:57 -0700
committerSascha Hauer <s.hauer@pengutronix.de>2016-06-30 08:33:53 +0200
commit927176bc16aa2d321e7e98dd9f01a6e2004c5001 (patch)
tree8795334fee0d2da98af6dfbb70f0c9ac9b9bcbc6 /include/gui
parent0cd1a5192400ee4b700d33418f08d6eb7fe4dfdf (diff)
downloadbarebox-927176bc16aa2d321e7e98dd9f01a6e2004c5001.tar.gz
barebox-927176bc16aa2d321e7e98dd9f01a6e2004c5001.tar.xz
GUI: Add code to draw simple graphics
Add code to draw simple graphics, namely lines(solid or dashed) and circles. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/gui')
-rw-r--r--include/gui/2d-primitives.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/gui/2d-primitives.h b/include/gui/2d-primitives.h
new file mode 100644
index 0000000000..06216bb03c
--- /dev/null
+++ b/include/gui/2d-primitives.h
@@ -0,0 +1,15 @@
+#ifndef __2D_PRIMITIVES__
+#define __2D_PRIMITIVES__
+
+#include <fb.h>
+
+void gu_draw_line(struct screen *sc,
+ int x1, int y1, int x2, int y2,
+ u8 r, u8 g, u8 b, u8 a,
+ unsigned int dash);
+
+void gu_draw_circle(struct screen *sc,
+ int x0, int y0, int radius,
+ u8 r, u8 g, u8 b, u8 a);
+
+#endif