mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-11-30 02:58:26 +08:00
update docs
This commit is contained in:
parent
d72b53df9e
commit
3dfa859be0
@ -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);
|
||||
|
||||
|
@ -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": [
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user