gui_top_buttons.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. #pragma once
  2. #include <subghz_bruteforcer_icons.h>
  3. #include <input/input.h>
  4. #include <gui/elements.h>
  5. #include <gui/icon.h>
  6. #include <gui/icon_animation.h>
  7. /**
  8. * @brief This function draws a button in the top left corner of the canvas with icon and string.
  9. *
  10. * The design and layout of the button is defined within this function.
  11. *
  12. *
  13. * @param[in] canvas This is a pointer to the @c Canvas structure where the button will be drawn.
  14. * @param[in] str This is a pointer to the character string that will be drawn within the button.
  15. *
  16. * @note Thanks to the author of metronome @see https://github.com/panki27/Metronome
  17. *
  18. */
  19. void elements_button_top_left(Canvas* canvas, const char* str);
  20. /**
  21. * @brief This function draws a button in the top right corner of the canvas with icon and string.
  22. *
  23. * The design and layout of the button is defined within this function.
  24. *
  25. *
  26. * @param[in] canvas This is a pointer to the @c Canvas structure where the button will be drawn.
  27. * @param[in] str This is a pointer to the character string that will be drawn within the button.
  28. *
  29. * @note Thanks to the author of metronome @see https://github.com/panki27/Metronome
  30. *
  31. */
  32. void elements_button_top_right(Canvas* canvas, const char* str);