add ui_feedback_deinit

This commit is contained in:
lixianjing 2021-05-25 10:38:41 +08:00
parent 0dccaff42b
commit 8f25e286e0
3 changed files with 20 additions and 0 deletions

View File

@ -1,5 +1,8 @@
# 最新动态
2021/05/25
* 增加ui\_feedback\_deinit。
2021/05/23
* style支持feedback/focusable。

View File

@ -40,3 +40,10 @@ ret_t ui_feedback_init(ui_on_feedback_t on_feedback, void* ctx) {
return RET_OK;
}
ret_t ui_feedback_deinit(void) {
s_on_feedback = NULL;
s_on_feedback_ctx = NULL;
return RET_OK;
}

View File

@ -60,6 +60,16 @@ ret_t ui_feedback_request(widget_t* widget, event_t* evt);
*/
ret_t ui_feedback_init(ui_on_feedback_t on_feedback, void* ctx);
/**
* @method ui_feedback_deinit
* ~
*
* @annotation ["static"]
*
* @return {ret_t} RET_OK表示成功
*/
ret_t ui_feedback_deinit(void);
END_C_DECLS
#endif /*TK_UI_FEEDBACK_H*/