Skip to content

Commit

Permalink
remove TK_DEPRECATED for widget_set_self_layout_params
Browse files Browse the repository at this point in the history
  • Loading branch information
xianjimli committed Jan 23, 2025
1 parent 7037c0c commit 6b3173a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/base/widget.h
Original file line number Diff line number Diff line change
Expand Up @@ -2920,7 +2920,7 @@ ret_t widget_set_children_layout(widget_t* widget, const char* params);

/**
* @method widget_set_self_layout_params
* 设置控件自己的布局(缺省布局器)参数(过时,请用widget\_set\_self\_layout)。
* 设置控件自己的布局(缺省布局器)参数(建议用widget\_set\_self\_layout)。
* 备注:下一帧才会生效数据
* @annotation ["scriptable"]
* @param {widget_t*} widget 控件对象。
Expand All @@ -2931,7 +2931,6 @@ ret_t widget_set_children_layout(widget_t* widget, const char* params);
*
* @return {ret_t} 返回RET_OK表示成功,否则表示失败。
*/
TK_DEPRECATED("Please use widget_set_self_layout() instead.")
ret_t widget_set_self_layout_params(widget_t* widget, const char* x, const char* y, const char* w,
const char* h);

Expand Down

0 comments on commit 6b3173a

Please sign in to comment.