1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- /*
- * Copyright (c) 2020 Actions Technology Co., Ltd
- *
- * SPDX-License-Identifier: Apache-2.0
- */
- #ifndef FRAMEWORK_DISPLAY_INCLUDE_EFFECTS_SWITCH_EFFECT_H_
- #define FRAMEWORK_DISPLAY_INCLUDE_EFFECTS_SWITCH_EFFECT_H_
- /*********************
- * INCLUDES
- *********************/
- #include <stdint.h>
- #ifdef __cplusplus
- extern "C" {
- #endif
- /**********************
- * TYPEDEFS
- **********************/
- typedef enum {
- UI_SWITCH_EFFECT_NONE,
- UI_SWITCH_EFFECT_ALPHA,
- UI_SWITCH_EFFECT_FAN,
- UI_SWITCH_EFFECT_PAGE,
- UI_SWITCH_EFFECT_SCALE,
- NUM_UI_SWITCH_EFFECTS,
- } ui_switch_effect_e;
- /**********************
- * GLOBAL PROTOTYPES
- **********************/
- #ifdef CONFIG_UI_SWITCH_EFFECT
- /**
- * @brief Set UI switch effect type
- *
- * @param type effect type, see ui_switch_effect_e.
- *
- * @retval 0 on success else negative errno code.
- */
- int ui_switch_effect_set_type(uint8_t type);
- /**
- * @brief Set UI switch effect total frames
- *
- * @param frame number of effect frames.
- *
- * @retval N/A.
- */
- void ui_switch_effect_set_total_frames(uint16_t frame);
- #else
- static inline int ui_switch_effect_set_type(uint8_t type) { return 0; }
- static inline void ui_switch_effect_set_total_frames(uint16_t frame) { }
- #endif /* CONFIG_UI_SWITCH_EFFECT */
- #ifdef __cplusplus
- }
- #endif
- #endif /*FRAMEWORK_DISPLAY_INCLUDE_EFFECTS_SWITCH_EFFECT_H_*/
|