aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@unormal.org>2012-10-29 03:17:52 +0100
committerJoel Bodenmann <joel@unormal.org>2012-10-29 03:17:52 +0100
commit3e846e3d5ac66e4fa3ae36414f02b33a4aa163e7 (patch)
treeb1ac8deb9cdad05b5e100cd83af8198268b0670b /include
parent378872001ede67e06d26b607d52de8abf9770dd7 (diff)
downloaduGFX-3e846e3d5ac66e4fa3ae36414f02b33a4aa163e7.tar.gz
uGFX-3e846e3d5ac66e4fa3ae36414f02b33a4aa163e7.tar.bz2
uGFX-3e846e3d5ac66e4fa3ae36414f02b33a4aa163e7.zip
Revert "header prototype order cleanup"
This reverts commit 218a2e89bd744d7787f73cbb9eae1d6b1133d008.
Diffstat (limited to 'include')
-rw-r--r--include/gdisp.h20
1 files changed, 13 insertions, 7 deletions
diff --git a/include/gdisp.h b/include/gdisp.h
index 1c69a0ef..9e3a3b77 100644
--- a/include/gdisp.h
+++ b/include/gdisp.h
@@ -175,7 +175,6 @@ extern "C" {
void gdispClear(color_t color);
void gdispDrawPixel(coord_t x, coord_t y, color_t color);
void gdispDrawLine(coord_t x0, coord_t y0, coord_t x1, coord_t y1, color_t color);
- void gdispDrawBox(coord_t x, coord_t y, coord_t cx, coord_t cy, color_t color);
void gdispFillArea(coord_t x, coord_t y, coord_t cx, coord_t cy, color_t color);
void gdispBlitAreaEx(coord_t x, coord_t y, coord_t cx, coord_t cy, coord_t srcx, coord_t srcy, coord_t srccx, const pixel_t *buffer);
@@ -206,12 +205,6 @@ extern "C" {
#if GDISP_NEED_TEXT
void gdispDrawChar(coord_t x, coord_t y, char c, font_t font, color_t color);
void gdispFillChar(coord_t x, coord_t y, char c, font_t font, color_t color, color_t bgcolor);
- void gdispDrawString(coord_t x, coord_t y, const char *str, font_t font, color_t color);
- void gdispFillString(coord_t x, coord_t y, const char *str, font_t font, color_t color, color_t bgcolor);
- void gdispFillStringBox(coord_t x, coord_t y, coord_t cx, coord_t cy, const char* str, font_t font, color_t color, color_t bgColor, justify_t justify);
- coord_t gdispGetFontMetric(font_t font, fontmetric_t metric);
- coord_t gdispGetCharWidth(char c, font_t font);
- coord_t gdispGetStringWidth(const char* str, font_t font);
#endif
/* Read a pixel Function */
@@ -263,6 +256,19 @@ extern "C" {
/* Now obsolete functions */
#define gdispBlitArea(x, y, cx, cy, buffer) gdispBlitAreaEx(x, y, cx, cy, 0, 0, cx, buffer)
+/* Extra drawing functions */
+void gdispDrawBox(coord_t x, coord_t y, coord_t cx, coord_t cy, color_t color);
+
+/* Extra Text Functions */
+#if GDISP_NEED_TEXT
+ void gdispDrawString(coord_t x, coord_t y, const char *str, font_t font, color_t color);
+ void gdispFillString(coord_t x, coord_t y, const char *str, font_t font, color_t color, color_t bgcolor);
+ void gdispFillStringBox(coord_t x, coord_t y, coord_t cx, coord_t cy, const char* str, font_t font, color_t color, color_t bgColor, justify_t justify);
+ coord_t gdispGetFontMetric(font_t font, fontmetric_t metric);
+ coord_t gdispGetCharWidth(char c, font_t font);
+ coord_t gdispGetStringWidth(const char* str, font_t font);
+#endif
+
/* Support routine for packed pixel formats */
#ifndef gdispPackPixels
void gdispPackPixels(const pixel_t *buf, coord_t cx, coord_t x, coord_t y, color_t color);