update api comments

This commit is contained in:
lixianjing 2020-06-05 07:26:47 +08:00
parent 4672dd8a25
commit 6506f7c868
4 changed files with 1166 additions and 1134 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1371,7 +1371,7 @@ ret_t widget_stroke_border_rect(widget_t* widget, canvas_t* c, rect_t* r) {
return RET_OK; return RET_OK;
} }
static ret_t widget_draw_background(widget_t* widget, canvas_t* c) { ret_t widget_draw_background(widget_t* widget, canvas_t* c) {
rect_t r; rect_t r;
return_value_if_fail(widget != NULL && c != NULL, RET_BAD_PARAMS); return_value_if_fail(widget != NULL && c != NULL, RET_BAD_PARAMS);

View File

@ -1881,6 +1881,16 @@ bool_t widget_is_keyboard(widget_t* widget);
*/ */
ret_t widget_paint_helper(widget_t* widget, canvas_t* c, const char* icon, wstr_t* text); ret_t widget_paint_helper(widget_t* widget, canvas_t* c, const char* icon, wstr_t* text);
/**
* @method widget_draw_background
* style绘制背景矩形
* @param {widget_t*} widget
* @param {canvas_t*} c
*
* @return {ret_t} RET_OK表示成功
*/
ret_t widget_draw_background(widget_t* widget, canvas_t* c);
/** /**
* @method widget_stroke_border_rect * @method widget_stroke_border_rect
* style绘制边框矩形 * style绘制边框矩形

View File

@ -19991,6 +19991,27 @@
"desc": "返回RET_OK表示成功否则表示失败。" "desc": "返回RET_OK表示成功否则表示失败。"
} }
}, },
{
"params": [
{
"type": "widget_t*",
"name": "widget",
"desc": "控件对象。"
},
{
"type": "canvas_t*",
"name": "c",
"desc": "画布对象。"
}
],
"annotation": {},
"desc": "根据控件的style绘制背景矩形。",
"name": "widget_draw_background",
"return": {
"type": "ret_t",
"desc": "返回RET_OK表示成功否则表示失败。"
}
},
{ {
"params": [ "params": [
{ {