Added experimental SSD1351 driver
[hackover2013-badge-firmware.git] / drivers / lcd / tft / drawing.h
index d9d1b1d..d443bfd 100644 (file)
@@ -60,14 +60,22 @@ typedef struct
 
 typedef enum
 {
-  DRAW_ROUNDEDCORNERS_NONE,
-  DRAW_ROUNDEDCORNERS_ALL,
-  DRAW_ROUNDEDCORNERS_TOP,
-  DRAW_ROUNDEDCORNERS_BOTTOM,
-  DRAW_ROUNDEDCORNERS_LEFT,
-  DRAW_ROUNDEDCORNERS_RIGHT
+  DRAW_ROUNDEDCORNERS_NONE    = 0,
+  DRAW_ROUNDEDCORNERS_ALL     = 1,
+  DRAW_ROUNDEDCORNERS_TOP     = 2,
+  DRAW_ROUNDEDCORNERS_BOTTOM  = 3,
+  DRAW_ROUNDEDCORNERS_LEFT    = 4,
+  DRAW_ROUNDEDCORNERS_RIGHT   = 5
 } drawRoundedCorners_t;
 
+typedef enum
+{
+  DRAW_CORNERPOSITION_TOPLEFT     = 0,
+  DRAW_CORNERPOSITION_TOPRIGHT    = 1,
+  DRAW_CORNERPOSITION_BOTTOMLEFT  = 2,
+  DRAW_CORNERPOSITION_BOTTOMRIGHT = 3
+} drawCornerPosition_t;
+
 typedef enum
 {
   DRAW_DIRECTION_LEFT,
@@ -83,10 +91,13 @@ void      drawLine             ( uint16_t x0, uint16_t y0, uint16_t x1, uint16_t
 void      drawLineDotted       ( uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1, uint16_t space, uint16_t solid, uint16_t color );
 void      drawCircle           ( uint16_t xCenter, uint16_t yCenter, uint16_t radius, uint16_t color );
 void      drawCircleFilled     ( uint16_t xCenter, uint16_t yCenter, uint16_t radius, uint16_t color );
+void      drawCornerFilled     (uint16_t xCenter, uint16_t yCenter, uint16_t radius, drawCornerPosition_t position, uint16_t color);
 void      drawArrow            ( uint16_t x, uint16_t y, uint16_t size, drawDirection_t, uint16_t color );
 void      drawRectangle        ( uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1, uint16_t color );
 void      drawRectangleFilled  ( uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1, uint16_t color );
 void      drawRectangleRounded ( uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1, uint16_t color, uint16_t radius, drawRoundedCorners_t corners );
+void      drawTriangle         ( uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t color);
+void      drawTriangleFilled   ( uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t color);
 void      drawString           ( uint16_t x, uint16_t y, uint16_t color, const FONT_INFO *fontInfo, char *str );
 uint16_t  drawGetStringWidth   ( const FONT_INFO *fontInfo, char *str );
 void      drawProgressBar      ( uint16_t x, uint16_t y, uint16_t width, uint16_t height, drawRoundedCorners_t borderCorners, drawRoundedCorners_t progressCorners, uint16_t borderColor, uint16_t borderFillColor, uint16_t progressBorderColor, uint16_t progressFillColor, uint8_t progress );
This page took 0.020205 seconds and 4 git commands to generate.