KSM edits to RA8875

Dependents:   Liz_Test_Code

Revision:
107:f9ccffcb84f1
Parent:
106:c80828f5dea4
Child:
108:7415c405ee08
Child:
109:7b94f06f085b
--- a/RA8875.h	Sat Feb 27 22:27:49 2016 +0000
+++ b/RA8875.h	Sat Mar 05 16:20:11 2016 +0000
@@ -1512,6 +1512,54 @@
     RetCode_t fillroundrect(loc_t x1, loc_t y1, loc_t x2, loc_t y2, 
         dim_t radius1, dim_t radius2, color_t color, fill_t fillit = FILL);
 
+    /// Draw a filled rectangle with rounded corners using the specified color.
+    ///
+    /// This draws a rounded rectangle. A numbers of checks are made on the values,
+    /// and it could reduce this to drawing a line (if either x1 == x2, or y1 == y2),
+    /// or a single point (x1 == x2 && y1 == y2). If the radius parameters are
+    /// > 1/2 the length of that side (width or height), an error value is returned.
+    ///
+    /// @note As a side effect, this changes the current
+    ///     foreground color for subsequent operations.
+    ///
+    /// @param[in] r is the rectangle to draw.
+    /// @param[in] radius1 defines the horizontal radius of the curved corner. Take care
+    ///         that this value < 1/2 the width of the rectangle, or bad_parameter 
+    ///         is returned.
+    /// @param[in] radius2 defines the vertical radius of the curved corner. Take care
+    ///         that this value < 1/2 the height of the rectangle, or bad_parameter 
+    ///         is returned.
+    /// @param[in] color defines the foreground color.
+    /// @param[in] fillit is optional to FILL the rectangle. default is NOFILL.
+    /// @returns success/failure code. See @ref RetCode_t.
+    ///
+    RetCode_t fillroundrect(rect_t r, 
+        dim_t radius1, dim_t radius2, color_t color, fill_t fillit = FILL);
+
+    /// Draw a rectangle with rounded corners using the specified color.
+    ///
+    /// This draws a rounded rectangle. A numbers of checks are made on the values,
+    /// and it could reduce this to drawing a line (if either x1 == x2, or y1 == y2),
+    /// or a single point (x1 == x2 && y1 == y2). If the radius parameters are
+    /// > 1/2 the length of that side (width or height), an error value is returned.
+    ///
+    /// @note As a side effect, this changes the current
+    ///     foreground color for subsequent operations.
+    ///
+    /// @param[in] r is the rectangle to draw.
+    /// @param[in] radius1 defines the horizontal radius of the curved corner. Take care
+    ///         that this value < 1/2 the width of the rectangle, or bad_parameter 
+    ///         is returned.
+    /// @param[in] radius2 defines the vertical radius of the curved corner. Take care
+    ///         that this value < 1/2 the height of the rectangle, or bad_parameter 
+    ///         is returned.
+    /// @param[in] color defines the foreground color.
+    /// @param[in] fillit is optional to FILL the rectangle. default is NOFILL.
+    /// @returns success/failure code. See @ref RetCode_t.
+    ///
+    RetCode_t roundrect(rect_t r, 
+        dim_t radius1, dim_t radius2, color_t color, fill_t fillit = NOFILL);
+
     /// Draw a rectangle with rounded corners using the specified color.
     ///
     /// This draws a rounded rectangle. A numbers of checks are made on the values,