gui_top_buttons.h 1.2 KB

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