elements.h 501 B

12345678910111213141516171819
  1. #pragma once
  2. #include <stdint.h>
  3. #include "canvas.h"
  4. /*
  5. * Draw scrollbar on canvas.
  6. * width 3px, height equal to canvas height
  7. * @param pos - current element of total elements
  8. * @param total - total elements
  9. */
  10. void elements_scrollbar(Canvas* canvas, uint8_t pos, uint8_t total);
  11. /*
  12. * Draw rounded frame
  13. * @param x, y - top left corner coordinates
  14. * @param width, height - frame width and height
  15. */
  16. void elements_frame(Canvas* canvas, uint8_t x, uint8_t y, uint8_t width, uint8_t height);