oboo_notification.h 886 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /**
  2. * @file oboo_notification.h
  3. *
  4. */
  5. #ifndef OBOO_NOTIFICATION_H
  6. #define OBOO_NOTIFICATION_H
  7. #ifdef __cplusplus
  8. extern "C" {
  9. #endif
  10. /*********************
  11. * INCLUDES
  12. *********************/
  13. /*********************
  14. * DEFINES
  15. *********************/
  16. #define OBOO_NOTIFICATION_DEFAULT_FONT_SIZE 20
  17. /**********************
  18. * TYPEDEFS
  19. **********************/
  20. /**********************
  21. * GLOBAL PROTOTYPES
  22. **********************/
  23. void oboo_notification_init(void);
  24. /**
  25. * Show a notification with the given parameters. Set `title` to NULL to hide it.
  26. */
  27. void oboo_notification_show(const char * title, const char * msg, uint8_t font_size);
  28. /**
  29. * Hide the the notification
  30. */
  31. void oboo_notification_clear(void);
  32. /**********************
  33. * MACROS
  34. **********************/
  35. #ifdef __cplusplus
  36. } /* extern "C" */
  37. #endif
  38. #endif /*OBOO_NOTIFICATION_H*/