canvas_extensions.h 513 B

12345678910111213141516171819202122
  1. #pragma once
  2. #include <stdint.h>
  3. #include <gui/gui.h>
  4. #include "../services/fonts/font_info.h"
  5. /**
  6. * @brief Draw string using given font
  7. * @param canvas canvas to draw string at
  8. * @param x horizontal position
  9. * @param y vertical position
  10. * @param text string to draw
  11. * @param text_length string length
  12. * @param font font to be used to draw string
  13. */
  14. void canvas_draw_str_ex(
  15. Canvas* canvas,
  16. uint8_t x,
  17. uint8_t y,
  18. const char* text,
  19. size_t text_length,
  20. const FontInfo* const font);