aboutsummaryrefslogtreecommitdiffstats
path: root/include/gdisp/gdisp.h
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2013-11-09 19:17:22 +1000
committerinmarket <andrewh@inmarket.com.au>2013-11-09 19:17:22 +1000
commitdaa4e8bbd78ebe4a84234de266006d1a23697657 (patch)
treed6cfb8843a3f9683b027460b1e6f33e1f56d3f5b /include/gdisp/gdisp.h
parent53408e2cb3d0705f261e9756bcf6f3f6c90c3fe9 (diff)
downloaduGFX-daa4e8bbd78ebe4a84234de266006d1a23697657.tar.gz
uGFX-daa4e8bbd78ebe4a84234de266006d1a23697657.tar.bz2
uGFX-daa4e8bbd78ebe4a84234de266006d1a23697657.zip
Add support for a portrait and landscape orientation modes.
Diffstat (limited to 'include/gdisp/gdisp.h')
-rw-r--r--include/gdisp/gdisp.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/gdisp/gdisp.h b/include/gdisp/gdisp.h
index 3d617e50..51415805 100644
--- a/include/gdisp/gdisp.h
+++ b/include/gdisp/gdisp.h
@@ -62,8 +62,10 @@ typedef enum fontmetric { fontHeight, fontDescendersHeight, fontLineSpacing, fon
typedef const struct mf_font_s* font_t;
/**
* @brief Type for the screen orientation.
+ * @note GDISP_ROTATE_LANDSCAPE and GDISP_ROTATE_PORTRAIT are internally converted to the
+ * most appropriate other orientation.
*/
-typedef enum orientation { GDISP_ROTATE_0=0, GDISP_ROTATE_90=90, GDISP_ROTATE_180=180, GDISP_ROTATE_270=270 } orientation_t;
+typedef enum orientation { GDISP_ROTATE_0=0, GDISP_ROTATE_90=90, GDISP_ROTATE_180=180, GDISP_ROTATE_270=270, GDISP_ROTATE_PORTRAIT=1000, GDISP_ROTATE_LANDSCAPE=1001 } orientation_t;
/**
* @brief Type for the available power modes for the screen.
*/