X-Git-Url: http://git.rohieb.name/hackover2013-badge-firmware.git/blobdiff_plain/43b7092bd42d639a527b32dae4af87e37528ef57..b15f77b243be7ef0724b255121d4bee5fa10a05a:/drivers/lcd/tft/drawing.h diff --git a/drivers/lcd/tft/drawing.h b/drivers/lcd/tft/drawing.h index 127ab8a..d443bfd 100644 --- a/drivers/lcd/tft/drawing.h +++ b/drivers/lcd/tft/drawing.h @@ -68,6 +68,14 @@ typedef enum 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 );