export some functions

This commit is contained in:
lixianjing 2021-05-17 16:02:00 +08:00
parent ddab391f93
commit de230e96a8
2 changed files with 40 additions and 10 deletions

View File

@ -2690,7 +2690,7 @@ static ret_t widget_on_pointer_down_before_children(widget_t* widget, pointer_ev
return widget_on_event_before_children(widget, (event_t*)e);
}
static ret_t widget_on_pointer_down_children(widget_t* widget, pointer_event_t* e) {
ret_t widget_on_pointer_down_children(widget_t* widget, pointer_event_t* e) {
ret_t ret = RET_OK;
widget_t* target = widget_find_target(widget, e->x, e->y);
@ -2771,7 +2771,7 @@ static ret_t widget_on_pointer_move_before_children(widget_t* widget, pointer_ev
return widget_on_event_before_children(widget, (event_t*)e);
}
static ret_t widget_on_pointer_move_children(widget_t* widget, pointer_event_t* e) {
ret_t widget_on_pointer_move_children(widget_t* widget, pointer_event_t* e) {
ret_t ret = RET_OK;
widget_t* target = widget_find_target(widget, e->x, e->y);
@ -2852,7 +2852,7 @@ static ret_t widget_on_pointer_up_before_children(widget_t* widget, pointer_even
return widget_on_event_before_children(widget, (event_t*)e);
}
static ret_t widget_on_pointer_up_children(widget_t* widget, pointer_event_t* e) {
ret_t widget_on_pointer_up_children(widget_t* widget, pointer_event_t* e) {
ret_t ret = RET_OK;
widget_t* target = widget_find_target(widget, e->x, e->y);

View File

@ -2846,7 +2846,7 @@ font_manager_t* widget_get_font_manager(widget_t* widget);
*
* @param {widget_t*} widget
*
* @return {ret_t} RET_OK表示成功
* @return {ret_t} RET_OK表示成功
*/
ret_t widget_update_pointer_cursor(widget_t* widget);
@ -2856,7 +2856,7 @@ ret_t widget_update_pointer_cursor(widget_t* widget);
* @param {widget_t*} widget
* @param {bool_t} ignore_user_input
*
* @return {ret_t} RET_OK表示成功
* @return {ret_t} RET_OK表示成功
*/
ret_t widget_begin_wait_pointer_cursor(widget_t* widget, bool_t ignore_user_input);
@ -2865,7 +2865,7 @@ ret_t widget_begin_wait_pointer_cursor(widget_t* widget, bool_t ignore_user_inpu
*
* @param {widget_t*} widget
*
* @return {ret_t} RET_OK表示成功
* @return {ret_t} RET_OK表示成功
*/
ret_t widget_end_wait_pointer_cursor(widget_t* widget);
@ -2876,7 +2876,7 @@ ret_t widget_end_wait_pointer_cursor(widget_t* widget);
* @param {const char*} state_and_name
* @param {const value_t*} value
*
* @return {ret_t} RET_OK表示成功
* @return {ret_t} RET_OK表示成功
*/
ret_t widget_set_style(widget_t* widget, const char* state_and_name, const value_t* value);
@ -2893,7 +2893,7 @@ rect_t widget_get_content_area(widget_t* widget);
* @method widget_calc_icon_text_rect
* icon text的位置
*
* @return {ret_t} RET_OK表示成功
* @return {ret_t} RET_OK表示成功
*/
ret_t widget_calc_icon_text_rect(const rect_t* ir, int32_t font_size, float_t text_size,
int32_t icon_at, uint32_t img_w, uint32_t img_h, int32_t spacer,
@ -2910,7 +2910,7 @@ ret_t widget_calc_icon_text_rect(const rect_t* ir, int32_t font_size, float_t te
* @param {bool_t} auto_scale_children_w
* @param {bool_t} auto_scale_children_h
*
* @return {ret_t} RET_OK表示成功
* @return {ret_t} RET_OK表示成功
*/
ret_t widget_auto_scale_children(widget_t* widget, int32_t design_w, int32_t design_h,
bool_t auto_scale_children_x, bool_t auto_scale_children_y,
@ -2921,10 +2921,40 @@ ret_t widget_auto_scale_children(widget_t* widget, int32_t design_w, int32_t des
* Style
* @param {widget_t*} widget
*
* @return {ret_t} RET_OK表示成功
* @return {ret_t} RET_OK表示成功
*/
ret_t widget_set_need_update_style(widget_t* widget);
/**
* @method widget_on_pointer_down_children
* pointer down事件
* @param {widget_t*} widget
* @param {pointer_event_t*} e
*
* @return {ret_t} RET_OK表示成功
*/
ret_t widget_on_pointer_down_children(widget_t* widget, pointer_event_t* e);
/**
* @method widget_on_pointer_move_children
* pointer move事件
* @param {widget_t*} widget
* @param {pointer_event_t*} e
*
* @return {ret_t} RET_OK表示成功
*/
ret_t widget_on_pointer_move_children(widget_t* widget, pointer_event_t* e);
/**
* @method widget_on_pointer_up_children
* pointer up事件
* @param {widget_t*} widget
* @param {pointer_event_t*} e
*
* @return {ret_t} RET_OK表示成功
*/
ret_t widget_on_pointer_up_children(widget_t* widget, pointer_event_t* e);
/*public for subclass*/
TK_EXTERN_VTABLE(widget);
const char* const* widget_get_persistent_props(void);