GFX_FUNCTIONS.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * GFX_FUNCTIONS.h
  3. *
  4. * Created on: 30-Oct-2020
  5. * Author: meh
  6. */
  7. #ifndef INC_GFX_FUNCTIONS_H_
  8. #define INC_GFX_FUNCTIONS_H_
  9. void drawPixel(int16_t x, int16_t y, uint16_t color);
  10. void writeLine(int16_t x0, int16_t y0, int16_t x1, int16_t y1, uint16_t color);
  11. void drawFastVLine(int16_t x, int16_t y, int16_t h, uint16_t color);
  12. void drawFastHLine(int16_t x, int16_t y, int16_t w, uint16_t color);
  13. void fillRect(int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color);
  14. void drawLine(int16_t x0, int16_t y0, int16_t x1, int16_t y1, uint16_t color);
  15. void drawCircle(int16_t x0, int16_t y0, int16_t r, uint16_t color);
  16. void drawCircleHelper( int16_t x0, int16_t y0, int16_t r, uint8_t cornername, uint16_t color);
  17. void fillCircleHelper(int16_t x0, int16_t y0, int16_t r, uint8_t corners, int16_t delta, uint16_t color);
  18. void fillCircle(int16_t x0, int16_t y0, int16_t r, uint16_t color);
  19. void drawRect(int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color);
  20. void drawRoundRect(int16_t x, int16_t y, int16_t w, int16_t h, int16_t r, uint16_t color);
  21. void fillRoundRect(int16_t x, int16_t y, int16_t w, int16_t h, int16_t r, uint16_t color);
  22. void drawTriangle(int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint16_t color);
  23. void fillTriangle(int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint16_t color);
  24. void fillScreen(uint16_t color);
  25. void testLines(uint16_t color);
  26. void testFastLines(uint16_t color1, uint16_t color2);
  27. void testRects(uint16_t color) ;
  28. void testFilledRects(uint16_t color1, uint16_t color2);
  29. void testFilledCircles(uint8_t radius, uint16_t color);
  30. void testCircles(uint8_t radius, uint16_t color);
  31. void testTriangles();
  32. void testFilledTriangles();
  33. void testRoundRects();
  34. void testFilledRoundRects();
  35. void testFillScreen();
  36. void testAll (void);
  37. #endif /* INC_GFX_FUNCTIONS_H_ */