update idl

This commit is contained in:
xianjimli 2018-11-12 10:26:25 +08:00
parent fca7ffbcf9
commit ad25ae70ed

View File

@ -11026,6 +11026,46 @@
"desc": "线程对象。",
"name": "thread_t"
},
{
"type": "class",
"methods": [
{
"params": [],
"annotation": {
"scriptable": true,
"static": true
},
"desc": "获取当前时间(秒)。",
"name": "time_now_s",
"return": {
"type": "uint32_t",
"desc": "返回当前时间(秒)。"
}
},
{
"params": [],
"annotation": {
"scriptable": true,
"static": true
},
"desc": "获取当前时间(毫秒)。",
"name": "time_now_ms",
"return": {
"type": "uint32_t",
"desc": "返回当前时间(毫秒)。"
}
}
],
"events": [],
"properties": [],
"header": "base/time_now.h",
"desc": "获取当前时间的函数。这里的当前时间是相对的,在嵌入式系统一般相对于开机时间。它本身并没有任何意义,一般用来计算时间间隔,如实现定时器和动画等等。",
"name": "time_now_t",
"annotation": {
"scriptable": true,
"fake": true
}
},
{
"type": "class",
"methods": [
@ -19853,6 +19893,342 @@
"name": "keyboard_t",
"parent": "widget_t"
},
{
"type": "class",
"methods": [
{
"params": [
{
"type": "widget_t*",
"name": "parent",
"desc": "父控件"
},
{
"type": "xy_t",
"name": "x",
"desc": "x坐标"
},
{
"type": "xy_t",
"name": "y",
"desc": "y坐标"
},
{
"type": "wh_t",
"name": "w",
"desc": "宽度"
},
{
"type": "wh_t",
"name": "h",
"desc": "高度"
}
],
"annotation": {
"constructor": true,
"scriptable": true
},
"desc": "创建progress_circle对象",
"name": "progress_circle_create",
"return": {
"type": "widget_t*",
"desc": "对象。"
}
},
{
"params": [
{
"type": "widget_t*",
"name": "widget",
"desc": "progress_circle对象。"
}
],
"annotation": {
"cast": true,
"scriptable": true
},
"desc": "转换为progress_circle对象(供脚本语言使用)。",
"name": "progress_circle_cast",
"return": {
"type": "widget_t*",
"desc": "progress_circle对象。"
}
},
{
"params": [
{
"type": "widget_t*",
"name": "widget",
"desc": "控件对象。"
},
{
"type": "uint32_t",
"name": "value",
"desc": "值。"
}
],
"annotation": {
"scriptable": true
},
"desc": "设置值。",
"name": "progress_circle_set_value",
"return": {
"type": "ret_t",
"desc": "返回RET_OK表示成功否则表示失败。"
}
},
{
"params": [
{
"type": "widget_t*",
"name": "widget",
"desc": "控件对象。"
},
{
"type": "uint32_t",
"name": "max",
"desc": "最大值。"
}
],
"annotation": {
"scriptable": true
},
"desc": "设置最大值。",
"name": "progress_circle_set_max",
"return": {
"type": "ret_t",
"desc": "返回RET_OK表示成功否则表示失败。"
}
},
{
"params": [
{
"type": "widget_t*",
"name": "widget",
"desc": "控件对象。"
},
{
"type": "uint32_t",
"name": "line_width",
"desc": "环线的厚度。"
}
],
"annotation": {
"scriptable": true
},
"desc": "设置环线的厚度。",
"name": "progress_circle_set_line_width",
"return": {
"type": "ret_t",
"desc": "返回RET_OK表示成功否则表示失败。"
}
},
{
"params": [
{
"type": "widget_t*",
"name": "widget",
"desc": "控件对象。"
},
{
"type": "int32_t",
"name": "start_angle",
"desc": "起始角度。"
}
],
"annotation": {
"scriptable": true
},
"desc": "设置起始角度。",
"name": "progress_circle_set_start_angle",
"return": {
"type": "ret_t",
"desc": "返回RET_OK表示成功否则表示失败。"
}
},
{
"params": [
{
"type": "widget_t*",
"name": "widget",
"desc": "控件对象。"
},
{
"type": "const char*",
"name": "unit",
"desc": "单位。"
}
],
"annotation": {
"scriptable": true
},
"desc": "设置单位。",
"name": "progress_circle_set_unit",
"return": {
"type": "ret_t",
"desc": "返回RET_OK表示成功否则表示失败。"
}
},
{
"params": [
{
"type": "widget_t*",
"name": "widget",
"desc": "控件对象。"
},
{
"type": "bool_t",
"name": "show_text",
"desc": "是否显示文本。"
}
],
"annotation": {
"scriptable": true
},
"desc": "设置是否显示文本。",
"name": "progress_circle_set_show_text",
"return": {
"type": "ret_t",
"desc": "返回RET_OK表示成功否则表示失败。"
}
},
{
"params": [
{
"type": "widget_t*",
"name": "widget",
"desc": "控件对象。"
},
{
"type": "bool_t",
"name": "counter_clock_wise",
"desc": "是否为逆时针方向。"
}
],
"annotation": {
"scriptable": true
},
"desc": "设置是否为逆时针方向。",
"name": "progress_circle_set_counter_clock_wise",
"return": {
"type": "ret_t",
"desc": "返回RET_OK表示成功否则表示失败。"
}
}
],
"events": [
{
"name": "EVT_VALUE_WILL_CHANGE",
"desc": "值即将改变事件。",
"type": "event_t"
},
{
"name": "EVT_VALUE_CHANGED",
"desc": "值改变事件。",
"type": "event_t"
}
],
"properties": [
{
"name": "value",
"desc": "值(缺省为0)。",
"type": "uint32_t",
"annotation": {
"set_prop": true,
"get_prop": true,
"readable": true,
"persitent": true,
"design": true,
"scriptable": true
}
},
{
"name": "max",
"desc": "最大值(缺省为100)。",
"type": "uint32_t",
"annotation": {
"set_prop": true,
"get_prop": true,
"readable": true,
"persitent": true,
"design": true,
"scriptable": true
}
},
{
"name": "start_angle",
"desc": "起始角度(单位为度,缺省-90)。",
"type": "int32_t",
"annotation": {
"set_prop": true,
"get_prop": true,
"readable": true,
"persitent": true,
"design": true,
"scriptable": true
}
},
{
"name": "line_width",
"desc": "环线的厚度(缺省为8)。",
"type": "uint32_t",
"annotation": {
"set_prop": true,
"get_prop": true,
"readable": true,
"persitent": true,
"design": true,
"scriptable": true
}
},
{
"name": "unit",
"desc": "单元(缺省无)。",
"type": "char*",
"annotation": {
"set_prop": true,
"get_prop": true,
"readable": true,
"persitent": true,
"design": true,
"scriptable": true
}
},
{
"name": "counter_clock_wise",
"desc": "是否为逆时针方向(缺省为FALSE)。",
"type": "bool_t",
"annotation": {
"set_prop": true,
"get_prop": true,
"readable": true,
"persitent": true,
"design": true,
"scriptable": true
}
},
{
"name": "show_text",
"desc": "是否显示文本(缺省为TRUE)。",
"type": "bool_t",
"annotation": {
"set_prop": true,
"get_prop": true,
"readable": true,
"persitent": true,
"design": true,
"scriptable": true
}
}
],
"header": "progress_circle/progress_circle.h",
"desc": "进度圆环控件。",
"name": "progress_circle_t",
"parent": "widget_t",
"annotation": {
"scriptable": true
}
},
{
"type": "class",
"methods": [