diff options
author | Tectu <joel@unormal.org> | 2012-08-24 02:35:28 +0200 |
---|---|---|
committer | Tectu <joel@unormal.org> | 2012-08-24 02:35:28 +0200 |
commit | fcfab985179f1a336c52bdbc03ac587767124708 (patch) | |
tree | d61868908607aefe8685b6474449fc4d6936e2a5 | |
parent | 7021da1b9e5306db27f8b7c86d75c82652dfb8c0 (diff) | |
download | uGFX-fcfab985179f1a336c52bdbc03ac587767124708.tar.gz uGFX-fcfab985179f1a336c52bdbc03ac587767124708.tar.bz2 uGFX-fcfab985179f1a336c52bdbc03ac587767124708.zip |
added gdispDrawArc() and gdispFillArc() dummies
-rw-r--r-- | include/gdisp.h | 2 | ||||
-rw-r--r-- | src/gdisp.c | 33 |
2 files changed, 35 insertions, 0 deletions
diff --git a/include/gdisp.h b/include/gdisp.h index 61f851cc..9e856aa9 100644 --- a/include/gdisp.h +++ b/include/gdisp.h @@ -227,6 +227,8 @@ extern "C" { #endif
void gdispDrawBox(coord_t x, coord_t y, coord_t cx, coord_t cy, color_t color);
+void gdispDrawArc(coord_t x, coord_t y, coord_t radius, uint16_t start, uint16_t end, color_t color);
+void gdispFillArc(coord_t x, coord_t y, coord_t radius, uint16_t start, uint16_t end, color_t color);
/* Extra Text Functions */
#if GDISP_NEED_TEXT
diff --git a/src/gdisp.c b/src/gdisp.c index ee2b98e4..6cf58561 100644 --- a/src/gdisp.c +++ b/src/gdisp.c @@ -28,6 +28,7 @@ #include "ch.h"
#include "hal.h"
#include "gdisp.h"
+#include <math.h>
#ifndef _GDISP_C
#define _GDISP_C
@@ -658,6 +659,38 @@ void gdispDrawBox(coord_t x, coord_t y, coord_t cx, coord_t cy, color_t color) { }
}
+/*
+ * @brief Draw an arc.
+ * @pre The GDISP must be in powerOn or powerSleep mode.
+ *
+ * @param[in] x0,y0 The center point
+ * @param[in] radius The radius of the arc
+ * @param[in] start The start angle (0 to 360)
+ * @param[in] end The end angle (0 to 360)
+ * @param[in] color The color of the arc
+ *
+ * @api
+ */
+void gdispDrawArc(coord_t x, coord_t y, coord_t radius, uint16_t start, uint16_t end, color_t color) {
+
+}
+
+/*
+ * @brief Draw a filled arc.
+ * @pre The GDISP must be in powerOn or powerSleep mode.
+ *
+ * @param[in] x0,y0 The center point of the filled arc
+ * @param[in] radius The radius of the filled arc
+ * @param[in] start The start angle (0 to 360)
+ * @param[in] end The end angle (0 to 360)
+ * @param[in] color The color of the filled arc
+ *
+ * @api
+ */
+void gdispFillArc(coord_t x, coord_t y, coord_t radius, uint16_t start, uint16_t end, color_t color) {
+
+}
+
#if GDISP_NEED_TEXT || defined(__DOXYGEN__)
/**
* @brief Draw a text string.
|