Forked para SNOCC
Fork of RA8875 by
Diff: RA8875.cpp
- Revision:
- 107:f9ccffcb84f1
- Parent:
- 106:c80828f5dea4
- Child:
- 109:7b94f06f085b
--- a/RA8875.cpp Sat Feb 27 22:27:49 2016 +0000 +++ b/RA8875.cpp Sat Mar 05 16:20:11 2016 +0000 @@ -1182,6 +1182,10 @@ return noerror; } +// +// Rectangle functions all mostly helpers to the basic rectangle function +// + RetCode_t RA8875::fillrect(rect_t r, color_t color, fill_t fillit) { return rect(r.p1.x, r.p1.y, r.p2.x, r.p2.y, color, fillit); @@ -1205,7 +1209,6 @@ return rect(x1,y1,x2,y2,fillit); } - RetCode_t RA8875::rect(loc_t x1, loc_t y1, loc_t x2, loc_t y2, fill_t fillit) { @@ -1240,6 +1243,15 @@ } +// +// rounded rectangle functions are mostly helpers to the base round rect +// + +RetCode_t RA8875::fillroundrect(rect_t r, dim_t radius1, dim_t radius2, color_t color, fill_t fillit) +{ + return roundrect(r.p1.x, r.p1.y, r.p2.x, r.p2.y, radius1, radius2, color, fillit); +} + RetCode_t RA8875::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) { @@ -1247,6 +1259,10 @@ return roundrect(x1,y1,x2,y2,radius1,radius2,fillit); } +RetCode_t RA8875::roundrect(rect_t r, dim_t radius1, dim_t radius2, color_t color, fill_t fillit) +{ + return roundrect(r.p1.x, r.p1.y, r.p2.x, r.p2.y, radius1, radius2, color, fillit); +} RetCode_t RA8875::roundrect(loc_t x1, loc_t y1, loc_t x2, loc_t y2, dim_t radius1, dim_t radius2, color_t color, fill_t fillit) @@ -1295,6 +1311,10 @@ } +// +// triangle functions +// + RetCode_t RA8875::triangle(loc_t x1, loc_t y1, loc_t x2, loc_t y2, loc_t x3, loc_t y3, color_t color, fill_t fillit) {