scroll_effect.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. * Copyright (c) 2020 Actions Technology Co., Ltd
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. #ifndef FRAMEWORK_DISPLAY_INCLUDE_EFFECTS_SCROLL_EFFECT_H_
  7. #define FRAMEWORK_DISPLAY_INCLUDE_EFFECTS_SCROLL_EFFECT_H_
  8. /*********************
  9. * INCLUDES
  10. *********************/
  11. #include <stdint.h>
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15. /**********************
  16. * TYPEDEFS
  17. **********************/
  18. typedef enum {
  19. UI_SCROLL_EFFECT_NONE,
  20. UI_SCROLL_EFFECT_CUBE,
  21. UI_SCROLL_EFFECT_FAN,
  22. UI_SCROLL_EFFECT_PAGE,
  23. UI_SCROLL_EFFECT_SCALE,
  24. NUM_UI_SCROLL_EFFECTS,
  25. } ui_scroll_effect_e;
  26. /**********************
  27. * GLOBAL PROTOTYPES
  28. **********************/
  29. #ifdef CONFIG_UI_SCROLL_EFFECT
  30. /**
  31. * @brief Set UI scroll effect type
  32. *
  33. * @param type scroll type, see ui_scroll_effect_e.
  34. *
  35. * @retval 0 on success else negative errno code.
  36. */
  37. int ui_scroll_effect_set_type(uint8_t type);
  38. #else
  39. static inline int ui_scroll_effect_set_type(uint8_t type) { return 0; }
  40. #endif /* CONFIG_UI_SCROLL_EFFECT */
  41. #ifdef __cplusplus
  42. }
  43. #endif
  44. #endif /*FRAMEWORK_DISPLAY_INCLUDE_EFFECTS_SCROLL_EFFECT_H_*/