update docs

This commit is contained in:
xianjimli 2019-12-24 09:02:26 +08:00
parent d72b53df9e
commit 3dfa859be0
2 changed files with 84 additions and 8 deletions

View File

@ -1996,6 +1996,42 @@ ret_t widget_focus_prev(widget_t* widget);
*/
const char* widget_get_state_for_style(widget_t* widget, bool_t active, bool_t checked);
/**
* @method widget_is_system_bar
* system bar类型
*
* @annotation ["scriptable"]
* @return {bool_t} FALSE表示不是
*/
bool_t widget_is_system_bar(widget_t* widget);
/**
* @method widget_is_normal_window
*
*
* @annotation ["scriptable"]
* @return {bool_t} FALSE表示不是
*/
bool_t widget_is_normal_window(widget_t* widget);
/**
* @method widget_is_dialog
*
*
* @annotation ["scriptable"]
* @return {bool_t} FALSE表示不是
*/
bool_t widget_is_dialog(widget_t* widget);
/**
* @method widget_is_popup
*
*
* @annotation ["scriptable"]
* @return {bool_t} FALSE表示不是
*/
bool_t widget_is_popup(widget_t* widget);
/**
* @method widget_layout
*
@ -2122,14 +2158,6 @@ const char* const* widget_get_persistent_props(void);
bool_t widget_is_instance_of(widget_t* widget, const widget_vtable_t* vt);
#define WIDGET_IS_INSTANCE_OF(widget, name) widget_is_instance_of(widget, TK_REF_VTABLE(name))
bool_t widget_is_system_bar(widget_t* widget);
bool_t widget_is_normal_window(widget_t* widget);
bool_t widget_is_dialog(widget_t* widget);
bool_t widget_is_popup(widget_t* widget);
/*public for subclass*/
TK_EXTERN_VTABLE(widget);

View File

@ -18187,6 +18187,54 @@
"desc": "返回RET_OK表示成功否则表示失败。"
}
},
{
"params": [],
"annotation": {
"scriptable": true
},
"desc": "检查控件是否是system bar类型。",
"name": "widget_is_system_bar",
"return": {
"type": "bool_t",
"desc": "返回FALSE表示不是否则表示是。"
}
},
{
"params": [],
"annotation": {
"scriptable": true
},
"desc": "检查控件是否是普通窗口类型。",
"name": "widget_is_normal_window",
"return": {
"type": "bool_t",
"desc": "返回FALSE表示不是否则表示是。"
}
},
{
"params": [],
"annotation": {
"scriptable": true
},
"desc": "检查控件是否是对话框类型。",
"name": "widget_is_dialog",
"return": {
"type": "bool_t",
"desc": "返回FALSE表示不是否则表示是。"
}
},
{
"params": [],
"annotation": {
"scriptable": true
},
"desc": "检查控件是否是弹出窗口类型。",
"name": "widget_is_popup",
"return": {
"type": "bool_t",
"desc": "返回FALSE表示不是否则表示是。"
}
},
{
"params": [
{