diff --git a/docs/README.md b/docs/README.md index 39be29a36c..c27dfe9e97 100644 --- a/docs/README.md +++ b/docs/README.md @@ -29,6 +29,7 @@ * [AWTK输入事件处理流程](input_event_flow.md) * [内存耗尽处理流程](out_of_memory.md) * [如何开启按键音](how_to_enable_key_touch_sound.md) +* [实时切换主题](theme_switch.md) ### 2.HowTos * [AWTK 调试技巧](debug_tips.md) diff --git a/docs/assets_dir_changed.md b/docs/assets_dir_changed.md new file mode 100644 index 0000000000..67b89d0d2b --- /dev/null +++ b/docs/assets_dir_changed.md @@ -0,0 +1,39 @@ +# 资源目录变更通知 + +为了支持多个主题在运行时实时切换,我们对目录结构做了一些调整: 在资源目录下增加主题子目录。 + +如: + +* 旧的目录结果如下: + +``` +assets + inc + raw +``` + +* 新的目录结果如下: + +``` +assets + default + inc + raw +``` + +资源更新脚本也需要做相应改动: + +旧的 scripts/update\_res.py + +``` +common.init(AWTK_ROOT, ASSETS_ROOT, ASSET_C); +common.updateRes() +``` + +新的 scripts/update\_res.py + +``` +common.init(AWTK_ROOT, ASSETS_ROOT, 'default', ASSET_C); +common.updateRes() +``` + \ No newline at end of file diff --git a/docs/changes.md b/docs/changes.md index 17b6eb84ad..644c99b8ae 100644 --- a/docs/changes.md +++ b/docs/changes.md @@ -1,7 +1,12 @@ # 最新动态 +* 2019/10/19 + * 完善主题切换功能。 + * 增加文档[资源目录变更通知](docs/assets_dir_changed.md) + * 增加文档[主题实时切换](docs/theme_switch.md) + * 2019/10/18 - * 增加动态切换主题的功能(实验阶段)。 + * 增加主题切换功能。 * 2019/10/17 * 修改文档中的错误(感谢俊杰提供补丁)。 diff --git a/docs/manual/arg_desc_flags_t.md b/docs/manual/arg_desc_flags_t.md index 9010745908..089404e220 100644 --- a/docs/manual/arg_desc_flags_t.md +++ b/docs/manual/arg_desc_flags_t.md @@ -1,6 +1,7 @@ ## arg\_desc\_flags\_t ### 概述 参数描述范围常量定义。 + ### 常量

diff --git a/docs/manual/asset_data_type_t.md b/docs/manual/asset_data_type_t.md index a0271d471f..54eb4e494d 100644 --- a/docs/manual/asset_data_type_t.md +++ b/docs/manual/asset_data_type_t.md @@ -1,6 +1,7 @@ ## asset\_data\_type\_t ### 概述 数据资源类型定义。 + ### 常量

diff --git a/docs/manual/asset_font_type_t.md b/docs/manual/asset_font_type_t.md index d72e176e5c..b4df54e83c 100644 --- a/docs/manual/asset_font_type_t.md +++ b/docs/manual/asset_font_type_t.md @@ -1,6 +1,7 @@ ## asset\_font\_type\_t ### 概述 字体资源类型定义。 + ### 常量

diff --git a/docs/manual/asset_image_type_t.md b/docs/manual/asset_image_type_t.md index 86046a7bc5..51d2d8074d 100644 --- a/docs/manual/asset_image_type_t.md +++ b/docs/manual/asset_image_type_t.md @@ -1,6 +1,7 @@ ## asset\_image\_type\_t ### 概述 图片资源类型定义。 + ### 常量

diff --git a/docs/manual/asset_info_t.md b/docs/manual/asset_info_t.md index f1469adc5c..d61273aa96 100644 --- a/docs/manual/asset_info_t.md +++ b/docs/manual/asset_info_t.md @@ -2,6 +2,7 @@ ### 概述 单个资源的描述信息。 + ---------------------------------- ### 属性

@@ -19,6 +20,7 @@ >

资源是否在ROM中。 + * 类型:uint8\_t | 特性 | 是否支持 | @@ -31,6 +33,7 @@ >

名称。 + * 类型:char* | 特性 | 是否支持 | @@ -44,6 +47,7 @@ is\_in\_rom == FALSE时才有效。 + * 类型:uint32\_t | 特性 | 是否支持 | @@ -56,6 +60,7 @@ >

大小。 + * 类型:uint32\_t | 特性 | 是否支持 | @@ -68,6 +73,7 @@ >

子类型。 + * 类型:uint8\_t | 特性 | 是否支持 | @@ -80,6 +86,7 @@ >

类型。 + * 类型:uint16\_t | 特性 | 是否支持 | diff --git a/docs/manual/asset_script_type_t.md b/docs/manual/asset_script_type_t.md index fc5981b3c9..23df77cd96 100644 --- a/docs/manual/asset_script_type_t.md +++ b/docs/manual/asset_script_type_t.md @@ -1,6 +1,7 @@ ## asset\_script\_type\_t ### 概述 脚本资源类型定义。 + ### 常量

diff --git a/docs/manual/asset_type_t.md b/docs/manual/asset_type_t.md index a2311f4912..ab501ecb7a 100644 --- a/docs/manual/asset_type_t.md +++ b/docs/manual/asset_type_t.md @@ -1,6 +1,7 @@ ## asset\_type\_t ### 概述 资源类型常量定义。 + ### 常量

diff --git a/docs/manual/asset_ui_type_t.md b/docs/manual/asset_ui_type_t.md index adf25c2f90..c9ebca3fa1 100644 --- a/docs/manual/asset_ui_type_t.md +++ b/docs/manual/asset_ui_type_t.md @@ -1,6 +1,7 @@ ## asset\_ui\_type\_t ### 概述 UI资源类型定义。 + ### 常量

diff --git a/docs/manual/assets_manager_t.md b/docs/manual/assets_manager_t.md index 3f829255d9..e3a2cb844b 100644 --- a/docs/manual/assets_manager_t.md +++ b/docs/manual/assets_manager_t.md @@ -31,6 +31,7 @@ ``` + ---------------------------------- ### 函数

@@ -39,6 +40,7 @@ | -------- | ------------ | | assets\_manager | 获取缺省资源管理器。 | | assets\_manager\_add | 向资源管理器中增加一个资源。 | +| assets\_manager\_clear\_all | 清除全部缓存的资源。 | | assets\_manager\_clear\_cache | 清除指定类型的缓存。 | | assets\_manager\_create | 创建资源管理器。 | | assets\_manager\_deinit | 释放全部资源。 | @@ -52,6 +54,7 @@ | assets\_manager\_set\_locale\_info | 设置locale_info对象。 | | assets\_manager\_set\_res\_root | 设置资源所在的目录(其下目录结构请参考demos)。 | | assets\_manager\_set\_system\_info | 设置system_info对象。 | +| assets\_manager\_set\_theme | 设置当前的主题。 | | assets\_manager\_unref | 释放指定的资源。 | #### assets\_manager 函数 ----------------------- @@ -62,6 +65,7 @@ + * 函数原型: ``` @@ -82,6 +86,7 @@ assets_manager_t* assets_manager (); + * 函数原型: ``` @@ -95,6 +100,28 @@ ret_t assets_manager_add (assets_manager_t* am, asset_info_t info); | 返回值 | ret\_t | 返回RET\_OK表示成功,否则表示失败。 | | am | assets\_manager\_t* | asset manager对象。 | | info | asset\_info\_t | 待增加的资源。 | +#### assets\_manager\_clear\_all 函数 +----------------------- + +* 函数功能: + +>

清除全部缓存的资源。 + + + + +* 函数原型: + +``` +ret_t assets_manager_clear_all (assets_manager_t* am); +``` + +* 参数说明: + +| 参数 | 类型 | 说明 | +| -------- | ----- | --------- | +| 返回值 | ret\_t | 返回RET\_OK表示成功,否则表示失败。 | +| am | assets\_manager\_t* | asset manager对象。 | #### assets\_manager\_clear\_cache 函数 ----------------------- @@ -104,6 +131,7 @@ ret_t assets_manager_add (assets_manager_t* am, asset_info_t info); + * 函数原型: ``` @@ -126,6 +154,7 @@ ret_t assets_manager_clear_cache (assets_manager_t* am, asset_type_t type); + * 函数原型: ``` @@ -147,6 +176,7 @@ assets_manager_t* assets_manager_create (uint32_t init_nr); + * 函数原型: ``` @@ -168,6 +198,7 @@ ret_t assets_manager_deinit (assets_manager_t* am); + * 函数原型: ``` @@ -189,6 +220,7 @@ ret_t assets_manager_destroy (assets_manager_t* am); + * 函数原型: ``` @@ -212,6 +244,7 @@ asset_info_t* assets_manager_find_in_cache (assets_manager_t* am, asset_type_t t + * 函数原型: ``` @@ -234,6 +267,7 @@ assets_manager_t* assets_manager_init (assets_manager_t* am, uint32_t init_nr); + * 函数原型: ``` @@ -257,6 +291,7 @@ asset_info_t* assets_manager_load (assets_manager_t* am, asset_type_t type, char + * 函数原型: ``` @@ -280,6 +315,7 @@ ret_t assets_manager_preload (assets_manager_t* am, asset_type_t type, char* nam + * 函数原型: ``` @@ -303,6 +339,7 @@ asset_info_t* assets_manager_ref (assets_manager_t* am, asset_type_t type, char* + * 函数原型: ``` @@ -324,6 +361,7 @@ ret_t assets_manager_set (assets_manager_t* am); + * 函数原型: ``` @@ -346,6 +384,7 @@ ret_t assets_manager_set_locale_info (assets_manager_t* am, locale_info_t* local + * 函数原型: ``` @@ -368,6 +407,7 @@ ret_t assets_manager_set_res_root (assets_manager_t* am, const char* res_root); + * 函数原型: ``` @@ -381,6 +421,30 @@ ret_t assets_manager_set_system_info (assets_manager_t* am, system_info_t* syste | 返回值 | ret\_t | 返回RET\_OK表示成功,否则表示失败。 | | am | assets\_manager\_t* | asset manager对象。 | | system\_info | system\_info\_t* | system\_info对象。。 | +#### assets\_manager\_set\_theme 函数 +----------------------- + +* 函数功能: + +>

设置当前的主题。 + + + + + +* 函数原型: + +``` +ret_t assets_manager_set_theme (assets_manager_t* am, const char* theme); +``` + +* 参数说明: + +| 参数 | 类型 | 说明 | +| -------- | ----- | --------- | +| 返回值 | ret\_t | 返回RET\_OK表示成功,否则表示失败。 | +| am | assets\_manager\_t* | asset manager对象。 | +| theme | const char* | 主题名称。 | #### assets\_manager\_unref 函数 ----------------------- @@ -390,6 +454,7 @@ ret_t assets_manager_set_system_info (assets_manager_t* am, system_info_t* syste + * 函数原型: ``` diff --git a/docs/manual/bitmap_flag_t.md b/docs/manual/bitmap_flag_t.md index 10e3ed09f8..6eb345b294 100644 --- a/docs/manual/bitmap_flag_t.md +++ b/docs/manual/bitmap_flag_t.md @@ -1,6 +1,7 @@ ## bitmap\_flag\_t ### 概述 位图标志常量定义。 + ### 常量

diff --git a/docs/manual/bitmap_format_t.md b/docs/manual/bitmap_format_t.md index 1e29eb80b9..d82d4b10dc 100644 --- a/docs/manual/bitmap_format_t.md +++ b/docs/manual/bitmap_format_t.md @@ -1,6 +1,7 @@ ## bitmap\_format\_t ### 概述 位图格式常量定义。 + ### 常量

diff --git a/docs/manual/bitmap_t.md b/docs/manual/bitmap_t.md index a5f8d7190d..cf692b82d6 100644 --- a/docs/manual/bitmap_t.md +++ b/docs/manual/bitmap_t.md @@ -2,6 +2,7 @@ ### 概述 位图。 + ---------------------------------- ### 函数

@@ -37,6 +38,7 @@ >

创建图片对象(一般供脚本语言中使用)。 + * 函数原型: ``` @@ -57,6 +59,7 @@ bitmap_t* bitmap_create (); + * 函数原型: ``` @@ -80,6 +83,7 @@ bitmap_t* bitmap_create_ex (uint32_t w, uint32_t h, uint32_t line_length, bitmap >

销毁图片。 + * 函数原型: ``` @@ -101,6 +105,7 @@ ret_t bitmap_destroy (bitmap_t* bitmap); + * 函数原型: ``` @@ -122,6 +127,7 @@ uint32_t bitmap_get_bpp (bitmap_t* bitmap); + * 函数原型: ``` @@ -143,6 +149,7 @@ ret_t bitmap_get_line_length (bitmap_t* bitmap); + * 函数原型: ``` @@ -167,6 +174,7 @@ ret_t bitmap_get_pixel (bitmap_t* bitmap, uint32_t x, uint32_t y, rgba_t* rgba); + * 函数原型: ``` @@ -193,6 +201,7 @@ ret_t bitmap_init (bitmap_t* bitmap, uint32_t w, uint32_t h, bitmap_format_t for + * 函数原型: ``` @@ -219,6 +228,7 @@ ret_t bitmap_init_from_rgba (bitmap_t* bitmap, uint32_t w, uint32_t h, bitmap_fo + * 函数原型: ``` @@ -237,6 +247,7 @@ ret_t bitmap_set_line_length (bitmap_t* bitmap, uint32_t line_length); >

图片数据。 + * 类型:uint8\_t* | 特性 | 是否支持 | @@ -248,6 +259,7 @@ ret_t bitmap_set_line_length (bitmap_t* bitmap, uint32_t line_length); >

标志。请参考{bitmap_flag_t}。 + * 类型:uint16\_t | 特性 | 是否支持 | @@ -260,6 +272,7 @@ ret_t bitmap_set_line_length (bitmap_t* bitmap, uint32_t line_length); >

格式。请参考{bitmap_format_t}。 + * 类型:uint16\_t | 特性 | 是否支持 | @@ -272,6 +285,7 @@ ret_t bitmap_set_line_length (bitmap_t* bitmap, uint32_t line_length); >

高度。 + * 类型:wh\_t | 特性 | 是否支持 | @@ -284,6 +298,7 @@ ret_t bitmap_set_line_length (bitmap_t* bitmap, uint32_t line_length); >

每一行实际占用的内存(也称为stride或pitch),一般情况下为w*bpp。 + * 类型:uint32\_t | 特性 | 是否支持 | @@ -296,6 +311,7 @@ ret_t bitmap_set_line_length (bitmap_t* bitmap, uint32_t line_length); >

名称。 + * 类型:const char* | 特性 | 是否支持 | @@ -308,6 +324,7 @@ ret_t bitmap_set_line_length (bitmap_t* bitmap, uint32_t line_length); >

宽度。 + * 类型:wh\_t | 特性 | 是否支持 | diff --git a/docs/manual/children_layouter_default_t.md b/docs/manual/children_layouter_default_t.md index 96a6fd4f52..a4459c7d13 100644 --- a/docs/manual/children_layouter_default_t.md +++ b/docs/manual/children_layouter_default_t.md @@ -9,6 +9,7 @@ https://github.com/zlgopen/awtk/blob/master/docs/children_layouter_default.md) + ---------------------------------- ### 函数

@@ -28,6 +29,7 @@ https://github.com/zlgopen/awtk/blob/master/docs/children_layouter_default.md) + * 函数原型: ``` @@ -48,6 +50,7 @@ children_layouter_t* children_layouter_default_create (); + * 函数原型: ``` diff --git a/docs/manual/children_layouter_factory_t.md b/docs/manual/children_layouter_factory_t.md index 6f2ff257cf..60b1ed555d 100644 --- a/docs/manual/children_layouter_factory_t.md +++ b/docs/manual/children_layouter_factory_t.md @@ -3,6 +3,7 @@ 子控件布局算法工厂。 + ---------------------------------- ### 函数

@@ -23,6 +24,7 @@ >

获取缺省的子控件布局算法工厂对象。 + * 函数原型: ``` @@ -43,6 +45,7 @@ children_layouter_factory_t* children_layouter_factory (); + * 函数原型: ``` @@ -63,6 +66,7 @@ children_layouter_factory_t* children_layouter_factory_create (); + * 函数原型: ``` @@ -85,6 +89,7 @@ children_layouter_t* children_layouter_factory_create_layouter (children_layoute + * 函数原型: ``` @@ -106,6 +111,7 @@ ret_t children_layouter_factory_destroy (children_layouter_factory_t* factory); + * 函数原型: ``` @@ -129,6 +135,7 @@ ret_t children_layouter_factory_register (children_layouter_factory_t* factory, + * 函数原型: ``` diff --git a/docs/manual/children_layouter_list_view_t.md b/docs/manual/children_layouter_list_view_t.md index e15ebda845..641b7912eb 100644 --- a/docs/manual/children_layouter_list_view_t.md +++ b/docs/manual/children_layouter_list_view_t.md @@ -9,6 +9,7 @@ https://github.com/zlgopen/awtk/blob/master/docs/children_layouter_list_view.md) + ---------------------------------- ### 函数

@@ -27,6 +28,7 @@ https://github.com/zlgopen/awtk/blob/master/docs/children_layouter_list_view.md) + * 函数原型: ``` diff --git a/docs/manual/children_layouter_t.md b/docs/manual/children_layouter_t.md index 8b8b2c3fc1..5d78210493 100644 --- a/docs/manual/children_layouter_t.md +++ b/docs/manual/children_layouter_t.md @@ -5,6 +5,7 @@ 按特定算法对子控件进行排版布局,子类需要实现vtable中的函数。 + ---------------------------------- ### 函数

@@ -30,6 +31,7 @@ + * 函数原型: ``` @@ -52,6 +54,7 @@ children_layouter_t* children_layouter_create (const char* params); + * 函数原型: ``` @@ -74,6 +77,7 @@ ret_t children_layouter_destroy (children_layouter_t* layouter); + * 函数原型: ``` @@ -98,6 +102,7 @@ ret_t children_layouter_get_param (children_layouter_t* layouter, const char* na + * 函数原型: ``` @@ -122,6 +127,7 @@ ret_t children_layouter_get_param_float (children_layouter_t* layouter, const ch + * 函数原型: ``` @@ -146,6 +152,7 @@ ret_t children_layouter_get_param_int (children_layouter_t* layouter, const char + * 函数原型: ``` @@ -168,6 +175,7 @@ bool_t children_layouter_is_valid (children_layouter_t* layouter); + * 函数原型: ``` @@ -191,6 +199,7 @@ ret_t children_layouter_layout (children_layouter_t* layouter, widget_t* widget) + * 函数原型: ``` @@ -215,6 +224,7 @@ ret_t children_layouter_set_param (children_layouter_t* layouter, const char* na + * 函数原型: ``` @@ -238,6 +248,7 @@ ret_t children_layouter_set_param_str (children_layouter_t* layouter, const char + * 函数原型: ``` diff --git a/docs/manual/clip_board_data_type_t.md b/docs/manual/clip_board_data_type_t.md index 0499fc3888..0ceba9fcc7 100644 --- a/docs/manual/clip_board_data_type_t.md +++ b/docs/manual/clip_board_data_type_t.md @@ -1,6 +1,7 @@ ## clip\_board\_data\_type\_t ### 概述 剪切板数据类型定义。 + ### 常量

diff --git a/docs/manual/clip_board_t.md b/docs/manual/clip_board_t.md index 69088361e3..20049efe2a 100644 --- a/docs/manual/clip_board_t.md +++ b/docs/manual/clip_board_t.md @@ -2,6 +2,7 @@ ### 概述 剪切板接口。 + ---------------------------------- ### 函数

@@ -25,6 +26,7 @@ + * 函数原型: ``` @@ -45,6 +47,7 @@ ret_t clip_board (); + * 函数原型: ``` @@ -66,6 +69,7 @@ ret_t clip_board_clear (clip_board_t* cl); + * 函数原型: ``` @@ -87,6 +91,7 @@ ret_t clip_board_destroy (clip_board_t* cl); + * 函数原型: ``` @@ -111,6 +116,7 @@ ret_t clip_board_get_data (clip_board_t* cl, clip_board_data_type_t* type, void* + * 函数原型: ``` @@ -131,6 +137,7 @@ const char* clip_board_get_text (); + * 函数原型: ``` @@ -152,6 +159,7 @@ ret_t clip_board_set (clip_board_t* cl); + * 函数原型: ``` @@ -176,6 +184,7 @@ ret_t clip_board_set_data (clip_board_t* cl, clip_board_data_type_t type, const + * 函数原型: ``` diff --git a/docs/manual/color_parser_t.md b/docs/manual/color_parser_t.md index d062165d93..bf0e67240d 100644 --- a/docs/manual/color_parser_t.md +++ b/docs/manual/color_parser_t.md @@ -13,6 +13,7 @@ ``` + ---------------------------------- ### 函数

@@ -37,6 +38,7 @@ + * 函数原型: ``` diff --git a/docs/manual/color_t.md b/docs/manual/color_t.md index 46a2a5c9b1..3dd560d643 100644 --- a/docs/manual/color_t.md +++ b/docs/manual/color_t.md @@ -3,6 +3,7 @@ 颜色。 + ---------------------------------- ### 函数

@@ -39,6 +40,7 @@ + * 函数原型: ``` @@ -65,6 +67,7 @@ uint8_t color_a (color_t* c); + * 函数原型: ``` @@ -88,6 +91,7 @@ uint8_t color_b (color_t* c); + * 函数原型: ``` @@ -112,6 +116,7 @@ color_t* color_cast (color_t* color); + * 函数原型: ``` @@ -139,6 +144,7 @@ color_t* color_create (uint8_t r, uint8_t b, uint8_t g, uint8_t a); + * 函数原型: ``` @@ -163,6 +169,7 @@ ret_t color_destroy (color_t* c); + * 函数原型: ``` @@ -190,6 +197,7 @@ color_t* color_from_str (color_t* c, const char* str); + * 函数原型: ``` @@ -211,6 +219,7 @@ uint8_t color_g (color_t* c); + * 函数原型: ``` @@ -240,6 +249,7 @@ color_t color_init (uint8_t r, uint8_t g, uint8_t b, uint8_t a); + * 函数原型: ``` @@ -257,6 +267,7 @@ uint8_t color_r (color_t* c); >

颜色的数值。 + * 类型:uint32\_t | 特性 | 是否支持 | @@ -269,6 +280,7 @@ uint8_t color_r (color_t* c); >

颜色的RGBA值。 + * 类型:rgba\_t | 特性 | 是否支持 | diff --git a/docs/manual/combo_box_ex_t.md b/docs/manual/combo_box_ex_t.md index ec5d07c349..37b2602ce1 100644 --- a/docs/manual/combo_box_ex_t.md +++ b/docs/manual/combo_box_ex_t.md @@ -5,6 +5,7 @@ 可滚动的combo_box控件。 + ---------------------------------- ### 函数

@@ -21,6 +22,7 @@ + * 函数原型: ``` diff --git a/docs/manual/compressor_t.md b/docs/manual/compressor_t.md index f1f580bc7e..7adc94bd42 100644 --- a/docs/manual/compressor_t.md +++ b/docs/manual/compressor_t.md @@ -4,6 +4,7 @@ compressor interface + ---------------------------------- ### 函数

@@ -25,6 +26,7 @@ + * 函数原型: ``` @@ -52,6 +54,7 @@ ret_t compressor_compress (compressor_t* compressor, const void* data, uint32_t + * 函数原型: ``` @@ -76,6 +79,7 @@ ret_t compressor_destroy (compressor_t* compressor); + * 函数原型: ``` diff --git a/docs/manual/darray_t.md b/docs/manual/darray_t.md index 884e9a7ad9..55deb6a623 100644 --- a/docs/manual/darray_t.md +++ b/docs/manual/darray_t.md @@ -20,6 +20,7 @@ ``` + ---------------------------------- ### 函数

@@ -61,6 +62,7 @@ + * 函数原型: ``` @@ -82,6 +84,7 @@ ret_t darray_clear (darray_t* darray); + * 函数原型: ``` @@ -105,6 +108,7 @@ int32_t darray_count (darray_t* darray, void* ctx); + * 函数原型: ``` @@ -128,6 +132,7 @@ darray_t* darray_create (uint32_t capacity, tk_destroy_t destroy, tk_compare_t c + * 函数原型: ``` @@ -149,6 +154,7 @@ ret_t darray_deinit (darray_t* darray); + * 函数原型: ``` @@ -170,6 +176,7 @@ ret_t darray_destroy (darray_t* darray); + * 函数原型: ``` @@ -192,6 +199,7 @@ void* darray_find (darray_t* darray, void* ctx); + * 函数原型: ``` @@ -214,6 +222,7 @@ int darray_find_index (darray_t* darray, void* ctx); + * 函数原型: ``` @@ -237,6 +246,7 @@ ret_t darray_foreach (darray_t* darray, tk_visit_t visit, void* ctx); + * 函数原型: ``` @@ -259,6 +269,7 @@ void* darray_head (darray_t* darray); + * 函数原型: ``` @@ -283,6 +294,7 @@ darray_t* darray_init (darray_t* darray, uint32_t* capacity, tk_destroy_t destro + * 函数原型: ``` @@ -304,6 +316,7 @@ void* darray_pop (darray_t* darray); + * 函数原型: ``` @@ -326,6 +339,7 @@ ret_t darray_push (darray_t* darray, void* data); + * 函数原型: ``` @@ -348,6 +362,7 @@ ret_t darray_remove (darray_t* darray, void* ctx); + * 函数原型: ``` @@ -370,6 +385,7 @@ ret_t darray_remove_all (darray_t* darray, void* ctx); + * 函数原型: ``` @@ -392,6 +408,7 @@ ret_t darray_remove_index (darray_t* darray, uint32_t index); + * 函数原型: ``` @@ -409,6 +426,7 @@ void* darray_tail (darray_t* darray); >

数组的容量大小。 + * 类型:uint32\_t | 特性 | 是否支持 | @@ -420,6 +438,7 @@ void* darray_tail (darray_t* darray); >

元素比较函数。 + * 类型:tk\_compare\_t | 特性 | 是否支持 | @@ -431,6 +450,7 @@ void* darray_tail (darray_t* darray); >

元素销毁函数。 + * 类型:tk\_destroy\_t | 特性 | 是否支持 | @@ -442,6 +462,7 @@ void* darray_tail (darray_t* darray); >

数组中的元素。 + * 类型:void** | 特性 | 是否支持 | @@ -453,6 +474,7 @@ void* darray_tail (darray_t* darray); >

数组中元素的个数。 + * 类型:uint32\_t | 特性 | 是否支持 | diff --git a/docs/manual/date_time_t.md b/docs/manual/date_time_t.md index 1d83482be5..61fef1f946 100644 --- a/docs/manual/date_time_t.md +++ b/docs/manual/date_time_t.md @@ -5,6 +5,7 @@ > 在嵌入式平台中,在系统初始时,需要调用date\_time\_set\_impl设置实际获取系统时间的函数。 + ---------------------------------- ### 函数

@@ -36,6 +37,7 @@ + * 函数原型: ``` @@ -57,6 +59,7 @@ date_time_t* date_time_create (); + * 函数原型: ``` @@ -78,6 +81,7 @@ ret_t date_time_destroy (date_time_t* dt); + * 函数原型: ``` @@ -102,6 +106,7 @@ date_time_t* date_time_init (date_time_t* dt); + * 函数原型: ``` @@ -119,6 +124,7 @@ ret_t date_time_set_impl (date_time_get_now_t date_time_get_now); >

日(1-31)。 + * 类型:int32\_t | 特性 | 是否支持 | @@ -131,6 +137,7 @@ ret_t date_time_set_impl (date_time_get_now_t date_time_get_now); >

时(0 - 23)。 + * 类型:int32\_t | 特性 | 是否支持 | @@ -143,6 +150,7 @@ ret_t date_time_set_impl (date_time_get_now_t date_time_get_now); >

分(0 - 59)。 + * 类型:int32\_t | 特性 | 是否支持 | @@ -155,6 +163,7 @@ ret_t date_time_set_impl (date_time_get_now_t date_time_get_now); >

月(1-12)。 + * 类型:int32\_t | 特性 | 是否支持 | @@ -167,6 +176,7 @@ ret_t date_time_set_impl (date_time_get_now_t date_time_get_now); >

秒(0 - 59)。 + * 类型:int32\_t | 特性 | 是否支持 | @@ -179,6 +189,7 @@ ret_t date_time_set_impl (date_time_get_now_t date_time_get_now); >

星期几(0-6, Sunday = 0)。 + * 类型:int32\_t | 特性 | 是否支持 | @@ -191,6 +202,7 @@ ret_t date_time_set_impl (date_time_get_now_t date_time_get_now); >

年。 + * 类型:int32\_t | 特性 | 是否支持 | diff --git a/docs/manual/dialog_highlighter_default_t.md b/docs/manual/dialog_highlighter_default_t.md index a2d2e6139f..9641461d9f 100644 --- a/docs/manual/dialog_highlighter_default_t.md +++ b/docs/manual/dialog_highlighter_default_t.md @@ -6,6 +6,7 @@ >对于性能不高的平台,建议将start\_alpha和end\_alpha设为相同。 + ---------------------------------- ### 函数

@@ -29,6 +30,7 @@ + * 函数原型: ``` @@ -46,6 +48,7 @@ dialog_highlighter_t* dialog_highlighter_default_create (object_t* args); >

结束alpha,打开对话框的动画结束(直到对话框被关闭)时的alpha值。 + * 类型:uint8\_t #### start\_alpha 属性 @@ -53,5 +56,6 @@ dialog_highlighter_t* dialog_highlighter_default_create (object_t* args); >

起始alpha,打开对话框的动画开始时的alpha值。 + * 类型:uint8\_t diff --git a/docs/manual/dialog_highlighter_factory_t.md b/docs/manual/dialog_highlighter_factory_t.md index 578b705c3b..84eca63772 100644 --- a/docs/manual/dialog_highlighter_factory_t.md +++ b/docs/manual/dialog_highlighter_factory_t.md @@ -3,6 +3,7 @@ 对话框高亮策略工厂。 + ---------------------------------- ### 函数

@@ -23,6 +24,7 @@ >

获取缺省的对话框高亮策略工厂对象。 + * 函数原型: ``` @@ -43,6 +45,7 @@ dialog_highlighter_factory_t* dialog_highlighter_factory (); + * 函数原型: ``` @@ -63,6 +66,7 @@ dialog_highlighter_factory_t* dialog_highlighter_factory_create (); + * 函数原型: ``` @@ -86,6 +90,7 @@ dialog_highlighter_t* dialog_highlighter_factory_create_highlighter (dialog_high + * 函数原型: ``` @@ -107,6 +112,7 @@ ret_t dialog_highlighter_factory_destroy (dialog_highlighter_factory_t* factory) + * 函数原型: ``` @@ -130,6 +136,7 @@ ret_t dialog_highlighter_factory_register (dialog_highlighter_factory_t* factory + * 函数原型: ``` diff --git a/docs/manual/dialog_highlighter_t.md b/docs/manual/dialog_highlighter_t.md index 3820d9706a..89f2760c8b 100644 --- a/docs/manual/dialog_highlighter_t.md +++ b/docs/manual/dialog_highlighter_t.md @@ -5,6 +5,7 @@ > 高亮策略的基本思路是对背景进行处理,比如将背景变暗或变模糊。 + ---------------------------------- ### 函数

@@ -36,6 +37,7 @@ + * 函数原型: ``` @@ -57,6 +59,7 @@ dialog_highlighter_t* dialog_highlighter_create (const dialog_highlighter_vtable + * 函数原型: ``` @@ -78,6 +81,7 @@ ret_t dialog_highlighter_destroy (dialog_highlighter_t* h); + * 函数原型: ``` @@ -100,6 +104,7 @@ ret_t dialog_highlighter_draw (dialog_highlighter_t* h, float_t percent); + * 函数原型: ``` @@ -121,6 +126,7 @@ bool_t dialog_highlighter_is_dynamic (dialog_highlighter_t* h); + * 函数原型: ``` @@ -143,6 +149,7 @@ ret_t dialog_highlighter_prepare (dialog_highlighter_t* h, canvas_t* c); + * 函数原型: ``` @@ -162,6 +169,7 @@ ret_t dialog_highlighter_set_bg (dialog_highlighter_t* h, bitmap_t* img, framebu >

画布。 + * 类型:canvas\_t* #### dialog 属性 @@ -169,6 +177,7 @@ ret_t dialog_highlighter_set_bg (dialog_highlighter_t* h, bitmap_t* img, framebu >

对应的对话框。 + * 类型:widget\_t* #### img 属性 @@ -176,5 +185,6 @@ ret_t dialog_highlighter_set_bg (dialog_highlighter_t* h, bitmap_t* img, framebu >

底层窗口的截图。 + * 类型:bitmap\_t diff --git a/docs/manual/dialog_highlighter_type_t.md b/docs/manual/dialog_highlighter_type_t.md index 58a0e37475..b0db0d621c 100644 --- a/docs/manual/dialog_highlighter_type_t.md +++ b/docs/manual/dialog_highlighter_type_t.md @@ -2,6 +2,7 @@ ### 概述 @type string 内置的对话框高亮策略。 + ### 常量

diff --git a/docs/manual/dialog_t.md b/docs/manual/dialog_t.md index dcc4f59c93..7ae3ecf490 100644 --- a/docs/manual/dialog_t.md +++ b/docs/manual/dialog_t.md @@ -99,6 +99,7 @@ (https://github.com/zlgopen/awtk/blob/master/demos/assets/raw/styles/default.xml#L324) + ---------------------------------- ### 函数

@@ -135,6 +136,7 @@ + * 函数原型: ``` @@ -159,6 +161,7 @@ widget_t* dialog_cast (widget_t* widget); + * 函数原型: ``` @@ -181,6 +184,7 @@ ret_t dialog_confirm (const char* title, const char* text); + * 函数原型: ``` @@ -206,6 +210,7 @@ widget_t* dialog_create (widget_t* parent, xy_t x, xy_t y, wh_t w, wh_t h); + * 函数原型: ``` @@ -231,6 +236,7 @@ widget_t* dialog_create_simple (widget_t* parent, xy_t x, xy_t y, wh_t w, wh_t h + * 函数原型: ``` @@ -252,6 +258,7 @@ widget_t* dialog_get_client (widget_t* widget); + * 函数原型: ``` @@ -276,6 +283,7 @@ widget_t* dialog_get_title (widget_t* widget); + * 函数原型: ``` @@ -299,6 +307,7 @@ ret_t dialog_info (const char* title, const char* text); + * 函数原型: ``` @@ -321,6 +330,7 @@ bool_t dialog_is_modal (widget_t* widget); + * 函数原型: ``` @@ -344,6 +354,7 @@ bool_t dialog_is_quited (widget_t* widget); + * 函数原型: ``` @@ -367,6 +378,7 @@ ret_t dialog_modal (widget_t* widget); + * 函数原型: ``` @@ -391,6 +403,7 @@ widget_t* dialog_open (const char* name); + * 函数原型: ``` @@ -413,6 +426,7 @@ ret_t dialog_quit (widget_t* widget, uint32_t code); + * 函数原型: ``` @@ -438,6 +452,7 @@ ret_t dialog_set_title (widget_t* widget, char* title); + * 函数原型: ``` @@ -463,6 +478,7 @@ ret_t dialog_toast (const char* text, uint32_t duration); + * 函数原型: ``` @@ -481,6 +497,7 @@ ret_t dialog_warn (const char* title, const char* text); >

对话框高亮策略。 + * 类型:const char* | 特性 | 是否支持 | diff --git a/docs/manual/easing_type_t.md b/docs/manual/easing_type_t.md index 04f5206adc..94b5c5f84d 100644 --- a/docs/manual/easing_type_t.md +++ b/docs/manual/easing_type_t.md @@ -1,6 +1,7 @@ ## easing\_type\_t ### 概述 缓动作动画常量定义。 + ### 常量

diff --git a/docs/manual/emitter_t.md b/docs/manual/emitter_t.md index 06b18e31ec..13f92aa36c 100644 --- a/docs/manual/emitter_t.md +++ b/docs/manual/emitter_t.md @@ -3,6 +3,7 @@ 事件分发器, 用于实现观察者模式。 + ---------------------------------- ### 函数

@@ -42,6 +43,7 @@ + * 函数原型: ``` @@ -63,6 +65,7 @@ emitter_t* emitter_cast (emitter_t* emitter); + * 函数原型: ``` @@ -84,6 +87,7 @@ emitter_t* emitter_create (); + * 函数原型: ``` @@ -106,6 +110,7 @@ ret_t emitter_deinit (emitter_t* emitter); + * 函数原型: ``` @@ -130,6 +135,7 @@ ret_t emitter_destroy (emitter_t* emitter); + * 函数原型: ``` @@ -152,6 +158,7 @@ ret_t emitter_disable (emitter_t* emitter); 如果当前分发的回调函数返回RET_STOP,dispatch中断分发,并返回RET_STOP,否则返回RET_OK。 + * 函数原型: ``` @@ -175,6 +182,7 @@ ret_t emitter_dispatch (emitter_t* emitter, event_t* e); 如果当前分发的回调函数返回RET_STOP,dispatch中断分发,并返回RET_STOP,否则返回RET_OK。 + * 函数原型: ``` @@ -197,6 +205,7 @@ ret_t emitter_dispatch_simple_event (emitter_t* emitter, uint32_t type); + * 函数原型: ``` @@ -218,6 +227,7 @@ ret_t emitter_enable (emitter_t* emitter); + * 函数原型: ``` @@ -240,6 +250,7 @@ ret_t emitter_find (emitter_t* emitter, uint32_t id); + * 函数原型: ``` @@ -261,6 +272,7 @@ emitter_t* emitter_init (emitter_t* emitter); + * 函数原型: ``` @@ -283,6 +295,7 @@ ret_t emitter_off (emitter_t* emitter, uint32_t id); + * 函数原型: ``` @@ -305,6 +318,7 @@ ret_t emitter_off_by_ctx (emitter_t* emitter, void* ctx); + * 函数原型: ``` @@ -329,6 +343,7 @@ ret_t emitter_off_by_func (emitter_t* emitter, uint32_t type, event_func_t on_ev + * 函数原型: ``` @@ -353,6 +368,7 @@ uint32_t emitter_on (emitter_t* emitter, uint32_t type, event_func_t on_event, v + * 函数原型: ``` @@ -377,6 +393,7 @@ ret_t emitter_set_on_destroy (emitter_t* emitter, uint32_t id, tk_destroy_t on_d + * 函数原型: ``` @@ -394,6 +411,7 @@ uint32_t emitter_size (emitter_t* emitter); >

禁用标志。禁用时dispatch无效。 + * 类型:bool\_t | 特性 | 是否支持 | diff --git a/docs/manual/event_base_type_t.md b/docs/manual/event_base_type_t.md index f3e73ad9e4..4e548a91a8 100644 --- a/docs/manual/event_base_type_t.md +++ b/docs/manual/event_base_type_t.md @@ -1,6 +1,7 @@ ## event\_base\_type\_t ### 概述 类型常量定义。 + ### 常量

diff --git a/docs/manual/event_source_fd_t.md b/docs/manual/event_source_fd_t.md index 3dbff34b13..385a4a415e 100644 --- a/docs/manual/event_source_fd_t.md +++ b/docs/manual/event_source_fd_t.md @@ -6,6 +6,7 @@ fd事件源。 + ---------------------------------- ### 函数

@@ -25,6 +26,7 @@ + * 函数原型: ``` diff --git a/docs/manual/event_source_idle_t.md b/docs/manual/event_source_idle_t.md index 6ef93c5c88..715fff0948 100644 --- a/docs/manual/event_source_idle_t.md +++ b/docs/manual/event_source_idle_t.md @@ -6,6 +6,7 @@ idle事件源。 + ---------------------------------- ### 函数

@@ -26,6 +27,7 @@ + * 函数原型: ``` @@ -50,6 +52,7 @@ event_source_t* event_source_idle_create (idle_manager_t* idle_manager); + * 函数原型: ``` diff --git a/docs/manual/event_source_manager_t.md b/docs/manual/event_source_manager_t.md index 7bf6b29664..8c7e9bc41c 100644 --- a/docs/manual/event_source_manager_t.md +++ b/docs/manual/event_source_manager_t.md @@ -4,6 +4,7 @@ 事件源管理器。 + ---------------------------------- ### 函数

@@ -29,6 +30,7 @@ + * 函数原型: ``` @@ -54,6 +56,7 @@ ret_t event_source_manager_add (event_source_manager_t* manager, event_source_t* + * 函数原型: ``` @@ -78,6 +81,7 @@ ret_t event_source_manager_deinit (event_source_manager_t* manager); + * 函数原型: ``` @@ -102,6 +106,7 @@ ret_t event_source_manager_destroy (event_source_manager_t* manager); + * 函数原型: ``` @@ -126,6 +131,7 @@ ret_t event_source_manager_dispatch (event_source_manager_t* manager); + * 函数原型: ``` @@ -150,6 +156,7 @@ uint32_t event_source_manager_get_wakeup_time (event_source_manager_t* manager); + * 函数原型: ``` @@ -174,6 +181,7 @@ ret_t event_source_manager_init (event_source_manager_t* manager); + * 函数原型: ``` diff --git a/docs/manual/event_source_t.md b/docs/manual/event_source_t.md index bb13a75933..dde2ac8f29 100644 --- a/docs/manual/event_source_t.md +++ b/docs/manual/event_source_t.md @@ -11,6 +11,7 @@ * 对于定时器,则get_wakeup_time返回下次唤醒的时间。 + ---------------------------------- ### 函数

@@ -33,6 +34,7 @@ + * 函数原型: ``` @@ -57,6 +59,7 @@ ret_t event_source_check (event_source_t* source); + * 函数原型: ``` @@ -81,6 +84,7 @@ ret_t event_source_dispatch (event_source_t* source); + * 函数原型: ``` @@ -105,6 +109,7 @@ int32_t event_source_get_fd (event_source_t* source); + * 函数原型: ``` diff --git a/docs/manual/event_source_timer_t.md b/docs/manual/event_source_timer_t.md index 2161cb2587..7c429d86e2 100644 --- a/docs/manual/event_source_timer_t.md +++ b/docs/manual/event_source_timer_t.md @@ -6,6 +6,7 @@ timer事件源。 + ---------------------------------- ### 函数

@@ -25,6 +26,7 @@ + * 函数原型: ``` diff --git a/docs/manual/event_t.md b/docs/manual/event_t.md index 92a26da785..41e760f16b 100644 --- a/docs/manual/event_t.md +++ b/docs/manual/event_t.md @@ -2,6 +2,7 @@ ### 概述 事件基类。 + ---------------------------------- ### 函数

@@ -31,6 +32,7 @@ + * 函数原型: ``` @@ -54,6 +56,7 @@ event_t* event_cast (event_t* event); + * 函数原型: ``` @@ -78,6 +81,7 @@ event_t* event_create (uint32_t type, void* target); + * 函数原型: ``` @@ -99,6 +103,7 @@ ret_t event_destroy (event_t* event); + * 函数原型: ``` @@ -117,6 +122,7 @@ event_t event_init (uint32_t type, void* target); >

事件发生的目标对象。 + * 类型:void* | 特性 | 是否支持 | @@ -129,6 +135,7 @@ event_t event_init (uint32_t type, void* target); >

事件发生的时间。 + * 类型:int32\_t | 特性 | 是否支持 | @@ -141,6 +148,7 @@ event_t event_init (uint32_t type, void* target); >

类型。 + * 类型:int32\_t | 特性 | 是否支持 | diff --git a/docs/manual/event_type_t.md b/docs/manual/event_type_t.md index 31d19223da..8c3bb89a52 100644 --- a/docs/manual/event_type_t.md +++ b/docs/manual/event_type_t.md @@ -1,6 +1,7 @@ ## event\_type\_t ### 概述 类型常量定义。 + ### 常量

@@ -61,11 +62,12 @@ | EVT\_DRAG | 拖动(event\_t)。 | | EVT\_DRAG\_END | 结束拖动(event\_t)。 | | EVT\_SCREEN\_SAVER | 在指定的时间内(WITH\_SCREEN\_SAVER\_TIME),没有用户输入事件,由窗口管理器触发。 | -| EVT\_LOW\_MEMORY | 内存不足。 | -| EVT\_OUT\_OF\_MEMORY | 内存耗尽。 | -| EVT\_ORIENTATION\_WILL\_CHANGED | 屏幕即将旋转。 | -| EVT\_ORIENTATION\_CHANGED | 屏幕旋转。 | -| EVT\_WIDGET\_CREATED | 控件创建事件。 | +| EVT\_LOW\_MEMORY | 内存不足(event\_t)。 | +| EVT\_OUT\_OF\_MEMORY | 内存耗尽(event\_t)。 | +| EVT\_ORIENTATION\_WILL\_CHANGED | 屏幕即将旋转(event\_t)。 | +| EVT\_ORIENTATION\_CHANGED | 屏幕旋转(event\_t)。 | +| EVT\_WIDGET\_CREATED | 控件创建事件(event\_t)。 | | EVT\_REQUEST\_QUIT\_APP | 请求退出应用程序事件。 点击原生窗口关闭按钮时,通过窗口管理器触发,注册该事件并返回RET\_STOP,可以阻止窗口关闭。 | +| EVT\_THEME\_CHANGED | 主题变化(event\_t)。 | | EVT\_REQ\_START | event queue其它请求编号起始值。 | | EVT\_USER\_START | 用户定义事件起始值。 | diff --git a/docs/manual/font_loader_bitmap_t.md b/docs/manual/font_loader_bitmap_t.md index ad37fbde05..285ae54a8a 100644 --- a/docs/manual/font_loader_bitmap_t.md +++ b/docs/manual/font_loader_bitmap_t.md @@ -11,6 +11,7 @@ + ---------------------------------- ### 函数

@@ -28,6 +29,7 @@ + * 函数原型: ``` diff --git a/docs/manual/font_loader_stb_t.md b/docs/manual/font_loader_stb_t.md index 5cda063809..16b21de566 100644 --- a/docs/manual/font_loader_stb_t.md +++ b/docs/manual/font_loader_stb_t.md @@ -8,6 +8,7 @@ + ---------------------------------- ### 函数

@@ -25,6 +26,7 @@ + * 函数原型: ``` diff --git a/docs/manual/font_loader_t.md b/docs/manual/font_loader_t.md index 35572dc480..69d8d81812 100644 --- a/docs/manual/font_loader_t.md +++ b/docs/manual/font_loader_t.md @@ -2,6 +2,7 @@ ### 概述 字体加载接口。 + ---------------------------------- ### 函数

@@ -19,6 +20,7 @@ + * 函数原型: ``` diff --git a/docs/manual/font_manager_t.md b/docs/manual/font_manager_t.md index 803135a8d6..f6774a8199 100644 --- a/docs/manual/font_manager_t.md +++ b/docs/manual/font_manager_t.md @@ -3,6 +3,7 @@ 字体管理器,负责字体的加载和缓存管理。 (如果使用nanovg,字体由nanovg内部管理) + ---------------------------------- ### 函数

@@ -18,6 +19,7 @@ | font\_manager\_init | 初始化字体管理器。 | | font\_manager\_set | 设置缺省的字体管理器。 | | font\_manager\_set\_assets\_manager | 设置资源管理器对象 | +| font\_manager\_unload\_all | 卸载全部字体。 | | font\_manager\_unload\_font | 卸载指定的字体。 | ### 属性

@@ -32,6 +34,7 @@ >

获取缺省的字体管理器。 + * 函数原型: ``` @@ -52,6 +55,7 @@ font_manager_t* font_manager (); + * 函数原型: ``` @@ -75,6 +79,7 @@ ret_t font_manager_add_font (font_manager_t* fm, char* name, font_t* font); + * 函数原型: ``` @@ -96,6 +101,7 @@ font_manager_t* font_manager_create (font_loader_t* loader); + * 函数原型: ``` @@ -117,6 +123,7 @@ ret_t font_manager_deinit (font_manager_t* fm); + * 函数原型: ``` @@ -138,6 +145,7 @@ ret_t font_manager_destroy (font_manager_t* fm); + * 函数原型: ``` @@ -161,6 +169,7 @@ font_t* font_manager_get_font (font_manager_t* fm, char* name, font_size_t size) + * 函数原型: ``` @@ -183,6 +192,7 @@ font_manager_t* font_manager_init (font_manager_t* fm, font_loader_t* loader); + * 函数原型: ``` @@ -212,6 +222,7 @@ ret_t font_manager_set (font_manager_t* fm); + * 函数原型: ``` @@ -225,6 +236,28 @@ ret_t font_manager_set_assets_manager (font_manager_t* imm, assets_manager_t* as | 返回值 | ret\_t | 返回RET\_OK表示成功,否则表示失败。 | | imm | font\_manager\_t* | 字体管理器对象。 | | assets\_manager | assets\_manager\_t* | 资源管理器。 | +#### font\_manager\_unload\_all 函数 +----------------------- + +* 函数功能: + +>

卸载全部字体。 + + + + +* 函数原型: + +``` +ret_t font_manager_unload_all (font_manager_t* fm); +``` + +* 参数说明: + +| 参数 | 类型 | 说明 | +| -------- | ----- | --------- | +| 返回值 | ret\_t | 返回RET\_OK表示成功,否则表示失败。 | +| fm | font\_manager\_t* | 字体管理器对象。 | #### font\_manager\_unload\_font 函数 ----------------------- @@ -234,6 +267,7 @@ ret_t font_manager_set_assets_manager (font_manager_t* imm, assets_manager_t* as + * 函数原型: ``` diff --git a/docs/manual/font_t.md b/docs/manual/font_t.md index 42eb171157..8ab80b35b5 100644 --- a/docs/manual/font_t.md +++ b/docs/manual/font_t.md @@ -3,6 +3,7 @@ 代表一种字体。 + ---------------------------------- ### 函数

@@ -22,6 +23,7 @@ + * 函数原型: ``` @@ -43,6 +45,7 @@ ret_t font_destroy (font_t* font); + * 函数原型: ``` @@ -66,6 +69,7 @@ int32_t font_get_baseline (font_t* font, font_size_t font_size); + * 函数原型: ``` @@ -91,6 +95,7 @@ ret_t font_get_glyph (font_t* font, wchar_t chr, font_size_t font_size, glyph_t* + * 函数原型: ``` diff --git a/docs/manual/fs_dir_t.md b/docs/manual/fs_dir_t.md index 05ebbcce19..5f3c520766 100644 --- a/docs/manual/fs_dir_t.md +++ b/docs/manual/fs_dir_t.md @@ -4,6 +4,7 @@ 文件夹接口。 + ---------------------------------- ### 函数

@@ -25,6 +26,7 @@ + * 函数原型: ``` @@ -49,6 +51,7 @@ ret_t fs_dir_close (fs_dir_t* dir); + * 函数原型: ``` @@ -74,6 +77,7 @@ ret_t fs_dir_read (fs_dir_t* dir, fs_item_t* item); + * 函数原型: ``` diff --git a/docs/manual/fs_file_t.md b/docs/manual/fs_file_t.md index 58c37e2ce4..097f75e72c 100644 --- a/docs/manual/fs_file_t.md +++ b/docs/manual/fs_file_t.md @@ -4,6 +4,7 @@ 文件接口。 + ---------------------------------- ### 函数

@@ -28,6 +29,7 @@ + * 函数原型: ``` @@ -52,6 +54,7 @@ ret_t fs_file_close (fs_file_t* file); + * 函数原型: ``` @@ -76,6 +79,7 @@ bool_t fs_file_eof (fs_file_t* file); + * 函数原型: ``` @@ -102,6 +106,7 @@ int32_t fs_file_read (fs_file_t* file, void* buffer, uint32_t size); + * 函数原型: ``` @@ -127,6 +132,7 @@ ret_t fs_file_seek (fs_file_t* file, uint32_t offset); + * 函数原型: ``` @@ -151,6 +157,7 @@ ret_t fs_file_truncate (fs_file_t* file); + * 函数原型: ``` diff --git a/docs/manual/fs_t.md b/docs/manual/fs_t.md index 1d90d7539d..37da77d42c 100644 --- a/docs/manual/fs_t.md +++ b/docs/manual/fs_t.md @@ -4,4 +4,5 @@ 文件系统接口。 + ---------------------------------- diff --git a/docs/manual/func_call_parser_t.md b/docs/manual/func_call_parser_t.md index c5a44d1f83..b05f0a15c9 100644 --- a/docs/manual/func_call_parser_t.md +++ b/docs/manual/func_call_parser_t.md @@ -11,6 +11,7 @@ 如:move(x=10, y=20) 如:rename(old_name=aa, new_name=bb) + ---------------------------------- ### 函数

@@ -30,6 +31,7 @@ + * 函数原型: ``` @@ -51,6 +53,7 @@ ret_t func_call_parser_deinit (func_call_parser_t* parser); + * 函数原型: ``` @@ -74,6 +77,7 @@ func_call_parser_t* func_call_parser_init (func_call_parser_t* parser, const cha + * 函数原型: ``` @@ -97,6 +101,7 @@ ret_t func_call_parser_parse (func_call_parser_t* parser); + * 函数原型: ``` diff --git a/docs/manual/func_desc_t.md b/docs/manual/func_desc_t.md index 9980831912..aa6e5f0264 100644 --- a/docs/manual/func_desc_t.md +++ b/docs/manual/func_desc_t.md @@ -2,6 +2,7 @@ ### 概述 函数描述。 + ---------------------------------- ### 属性

@@ -18,6 +19,7 @@ >

函数参数描述。 + * 类型:arg\_desc\_t** | 特性 | 是否支持 | @@ -29,6 +31,7 @@ >

描述。 + * 类型:const char* | 特性 | 是否支持 | @@ -40,6 +43,7 @@ >

函数指针。 + * 类型:func\_exec\_t | 特性 | 是否支持 | @@ -51,6 +55,7 @@ >

名称。 + * 类型:const char* | 特性 | 是否支持 | @@ -62,6 +67,7 @@ >

函数返回值描述。 + * 类型:value\_desc\_t* | 特性 | 是否支持 | diff --git a/docs/manual/global_t.md b/docs/manual/global_t.md index 22b45c9c37..f0b576caa1 100644 --- a/docs/manual/global_t.md +++ b/docs/manual/global_t.md @@ -2,6 +2,7 @@ ### 概述 TK全局对象。 + ---------------------------------- ### 函数

@@ -24,6 +25,7 @@ + * 函数原型: ``` @@ -44,6 +46,7 @@ int32_t tk_get_pointer_x (); + * 函数原型: ``` @@ -64,6 +67,7 @@ int32_t tk_get_pointer_y (); + * 函数原型: ``` @@ -89,6 +93,7 @@ ret_t tk_init (wh_t w, wh_t h, app_type_t app_type, const char* app_name, const + * 函数原型: ``` @@ -109,6 +114,7 @@ bool_t tk_is_pointer_pressed (); + * 函数原型: ``` @@ -129,6 +135,7 @@ ret_t tk_quit (); + * 函数原型: ``` @@ -149,6 +156,7 @@ ret_t tk_run (); + * 函数原型: ``` diff --git a/docs/manual/glyph_format_t.md b/docs/manual/glyph_format_t.md index 1580f8f4e0..2b83297e6f 100644 --- a/docs/manual/glyph_format_t.md +++ b/docs/manual/glyph_format_t.md @@ -1,6 +1,7 @@ ## glyph\_format\_t ### 概述 字模格式常量定义。 + ### 常量

diff --git a/docs/manual/glyph_t.md b/docs/manual/glyph_t.md index 49e9d1d482..90329b1ec1 100644 --- a/docs/manual/glyph_t.md +++ b/docs/manual/glyph_t.md @@ -3,6 +3,7 @@ 代表一个字符的字模。 + ---------------------------------- ### 函数

@@ -34,6 +35,7 @@ + * 函数原型: ``` @@ -54,6 +56,7 @@ glyph_t* glyph_clone (); + * 函数原型: ``` @@ -74,6 +77,7 @@ glyph_t* glyph_create (); + * 函数原型: ``` @@ -91,6 +95,7 @@ ret_t glyph_destroy (glyph_t* glyph); >

占位宽度。 + * 类型:uint16\_t | 特性 | 是否支持 | @@ -102,6 +107,7 @@ ret_t glyph_destroy (glyph_t* glyph); >

数据。 + * 类型:const uint8\_t* | 特性 | 是否支持 | @@ -113,6 +119,7 @@ ret_t glyph_destroy (glyph_t* glyph); >

格式。 + * 类型:uint8\_t | 特性 | 是否支持 | @@ -124,6 +131,7 @@ ret_t glyph_destroy (glyph_t* glyph); >

高度。 + * 类型:uint16\_t | 特性 | 是否支持 | @@ -135,6 +143,7 @@ ret_t glyph_destroy (glyph_t* glyph); >

pitch。 + * 类型:uint8\_t | 特性 | 是否支持 | @@ -146,6 +155,7 @@ ret_t glyph_destroy (glyph_t* glyph); >

宽度。 + * 类型:uint16\_t | 特性 | 是否支持 | @@ -157,6 +167,7 @@ ret_t glyph_destroy (glyph_t* glyph); >

x坐标。 + * 类型:int16\_t | 特性 | 是否支持 | @@ -168,6 +179,7 @@ ret_t glyph_destroy (glyph_t* glyph); >

y坐标。 + * 类型:int16\_t | 特性 | 是否支持 | diff --git a/docs/manual/guage_pointer_t.md b/docs/manual/guage_pointer_t.md index 6dd01b55ba..c5432242a9 100644 --- a/docs/manual/guage_pointer_t.md +++ b/docs/manual/guage_pointer_t.md @@ -30,6 +30,7 @@ + ---------------------------------- ### 函数

@@ -59,6 +60,7 @@ + * 函数原型: ``` @@ -80,6 +82,7 @@ widget_t* guage_pointer_cast (widget_t* widget); + * 函数原型: ``` @@ -105,6 +108,7 @@ widget_t* guage_pointer_create (widget_t* parent, xy_t x, xy_t y, wh_t w, wh_t h + * 函数原型: ``` @@ -128,6 +132,7 @@ ret_t guage_pointer_set_anchor (widget_t* widget, const char* anchor_x, const ch + * 函数原型: ``` @@ -150,6 +155,7 @@ ret_t guage_pointer_set_angle (widget_t* widget, int32_t angle); + * 函数原型: ``` @@ -168,6 +174,7 @@ ret_t guage_pointer_set_image (widget_t* widget, const char* image); >

旋转锚点x坐标。 + * 类型:float\_t | 特性 | 是否支持 | @@ -185,6 +192,7 @@ ret_t guage_pointer_set_image (widget_t* widget, const char* image); >

旋转锚点y坐标。 + * 类型:float\_t | 特性 | 是否支持 | @@ -202,6 +210,7 @@ ret_t guage_pointer_set_image (widget_t* widget, const char* image); >

指针角度。12点钟方向为0度,顺时钟方向为正,单位为度。 + * 类型:int32\_t | 特性 | 是否支持 | @@ -222,6 +231,7 @@ ret_t guage_pointer_set_image (widget_t* widget, const char* image); + * 类型:char* | 特性 | 是否支持 | diff --git a/docs/manual/hscroll_label_t.md b/docs/manual/hscroll_label_t.md index f6692bda4c..1e90471c8c 100644 --- a/docs/manual/hscroll_label_t.md +++ b/docs/manual/hscroll_label_t.md @@ -30,6 +30,7 @@ https://github.com/zlgopen/awtk/blob/master/demos/assets/raw/ui/mledit.xml) https://github.com/zlgopen/awtk/blob/master/demos/assets/raw/styles/default.xml) + ---------------------------------- ### 函数

@@ -69,6 +70,7 @@ https://github.com/zlgopen/awtk/blob/master/demos/assets/raw/styles/default.xml) + * 函数原型: ``` @@ -90,6 +92,7 @@ widget_t* hscroll_label_cast (widget_t* widget); + * 函数原型: ``` @@ -115,6 +118,7 @@ widget_t* hscroll_label_create (widget_t* parent, xy_t x, xy_t y, wh_t w, wh_t h + * 函数原型: ``` @@ -137,6 +141,7 @@ ret_t hscroll_label_set_duration (widget_t* widget, int32_t duration); + * 函数原型: ``` @@ -159,6 +164,7 @@ ret_t hscroll_label_set_ellipses (widget_t* widget, bool_t ellipses); + * 函数原型: ``` @@ -181,6 +187,7 @@ ret_t hscroll_label_set_loop (widget_t* widget, bool_t loop); + * 函数原型: ``` @@ -203,6 +210,7 @@ ret_t hscroll_label_set_lull (widget_t* widget, int32_t lull); + * 函数原型: ``` @@ -225,6 +233,7 @@ ret_t hscroll_label_set_only_focus (widget_t* widget, bool_t only_focus); + * 函数原型: ``` @@ -247,6 +256,7 @@ ret_t hscroll_label_set_xoffset (widget_t* widget, int32_t xoffset); + * 函数原型: ``` @@ -269,6 +279,7 @@ ret_t hscroll_label_set_yoyo (widget_t* widget, bool_t yoyo); + * 函数原型: ``` @@ -290,6 +301,7 @@ ret_t hscroll_label_start (widget_t* widget); + * 函数原型: ``` @@ -307,6 +319,7 @@ ret_t hscroll_label_stop (widget_t* widget); >

完整的滚动一次需要的时间(ms),缺省5000ms。 + * 类型:int32\_t | 特性 | 是否支持 | @@ -322,6 +335,7 @@ ret_t hscroll_label_stop (widget_t* widget); >

文本显示不下时,在行尾显示省略号(缺省FALSE)。 + * 类型:bool\_t | 特性 | 是否支持 | @@ -339,6 +353,7 @@ ret_t hscroll_label_stop (widget_t* widget); >

loop是否循环滚动(缺省FALSE)。 + * 类型:bool\_t | 特性 | 是否支持 | @@ -356,6 +371,7 @@ ret_t hscroll_label_stop (widget_t* widget); >

滚动之间的间歇时间(ms),缺省3000ms。 + * 类型:int32\_t | 特性 | 是否支持 | @@ -373,6 +389,7 @@ ret_t hscroll_label_stop (widget_t* widget); >

只有处于focus时才滚动(缺省否)。 + * 类型:bool\_t | 特性 | 是否支持 | @@ -390,6 +407,7 @@ ret_t hscroll_label_stop (widget_t* widget); >

文本的宽度。 + * 类型:int32\_t | 特性 | 是否支持 | @@ -405,6 +423,7 @@ ret_t hscroll_label_stop (widget_t* widget); >

偏移量。 + * 类型:int32\_t | 特性 | 是否支持 | @@ -420,6 +439,7 @@ ret_t hscroll_label_stop (widget_t* widget); >

是否往返滚动(缺省FALSE)。 + * 类型:bool\_t | 特性 | 是否支持 | diff --git a/docs/manual/hscrollable_t.md b/docs/manual/hscrollable_t.md index ad53aae8f8..a0185bff02 100644 --- a/docs/manual/hscrollable_t.md +++ b/docs/manual/hscrollable_t.md @@ -2,4 +2,5 @@ ### 概述 帮助实现控件左右滚动的效果。 + ---------------------------------- diff --git a/docs/manual/idle_info_t.md b/docs/manual/idle_info_t.md index 6fc7e83f56..b3967e9edc 100644 --- a/docs/manual/idle_info_t.md +++ b/docs/manual/idle_info_t.md @@ -5,6 +5,7 @@ 单个idle的信息。 + ---------------------------------- ### 函数

@@ -31,6 +32,7 @@ + * 函数原型: ``` @@ -48,6 +50,7 @@ idle_info_t* idle_info_cast (idle_info_t* idle); >

idle回调函数上下文。 + * 类型:void* | 特性 | 是否支持 | @@ -62,6 +65,7 @@ idle_info_t* idle_info_cast (idle_info_t* idle); > 为TK\_INVALID\_ID时表示无效idle。 + * 类型:uint32\_t | 特性 | 是否支持 | @@ -74,6 +78,7 @@ idle_info_t* idle_info_cast (idle_info_t* idle); >

idle销毁时的回调函数。 + * 类型:tk\_destroy\_t | 特性 | 是否支持 | @@ -85,6 +90,7 @@ idle_info_t* idle_info_cast (idle_info_t* idle); >

idle销毁时的回调函数的上下文。 + * 类型:tk\_destroy\_t | 特性 | 是否支持 | @@ -96,6 +102,7 @@ idle_info_t* idle_info_cast (idle_info_t* idle); >

idle回调函数。 + * 类型:idle\_func\_t | 特性 | 是否支持 | diff --git a/docs/manual/idle_t.md b/docs/manual/idle_t.md index 4636dc73d8..077a2714fa 100644 --- a/docs/manual/idle_t.md +++ b/docs/manual/idle_t.md @@ -24,6 +24,7 @@ > 在非GUI线程请用idle\_queue。 + ---------------------------------- ### 函数

@@ -44,6 +45,7 @@ + * 函数原型: ``` @@ -66,6 +68,7 @@ uint32_t idle_add (idle_func_t on_idle, void* ctx); + * 函数原型: ``` @@ -86,6 +89,7 @@ uint32_t idle_count (); + * 函数原型: ``` @@ -108,6 +112,7 @@ ret_t idle_queue (idle_func_t on_idle, void* ctx); + * 函数原型: ``` @@ -129,6 +134,7 @@ ret_t idle_remove (uint32_t idle_id); + * 函数原型: ``` diff --git a/docs/manual/im_action_button_info_event_t.md b/docs/manual/im_action_button_info_event_t.md index b9d2e8eddd..9a0441d33a 100644 --- a/docs/manual/im_action_button_info_event_t.md +++ b/docs/manual/im_action_button_info_event_t.md @@ -4,6 +4,7 @@ 设置软键盘上的action按钮的信息事件。 + ---------------------------------- ### 属性

@@ -17,6 +18,7 @@ >

软键盘上的action按钮启用。 + * 类型:bool\_t | 特性 | 是否支持 | @@ -28,6 +30,7 @@ >

软键盘上的action按钮显示的文本。 + * 类型:char* | 特性 | 是否支持 | diff --git a/docs/manual/im_candidates_event_t.md b/docs/manual/im_candidates_event_t.md index 87ebb1c719..57b889e450 100644 --- a/docs/manual/im_candidates_event_t.md +++ b/docs/manual/im_candidates_event_t.md @@ -4,6 +4,7 @@ 输入法请求显示候选字的事件。 + ---------------------------------- ### 属性

@@ -17,6 +18,7 @@ >

可选的文本,多个文本以\0分隔。如:里\0李\0力\0离\0 + * 类型:char* | 特性 | 是否支持 | @@ -28,6 +30,7 @@ >

可选的文本的个数。 + * 类型:uint32\_t | 特性 | 是否支持 | diff --git a/docs/manual/im_commit_event_t.md b/docs/manual/im_commit_event_t.md index 712349fda2..fcebd6bde3 100644 --- a/docs/manual/im_commit_event_t.md +++ b/docs/manual/im_commit_event_t.md @@ -4,6 +4,7 @@ 输入法提交输入的文本事件。 + ---------------------------------- ### 属性

@@ -17,6 +18,7 @@ >

是否替换原来的文本。 + * 类型:bool\_t | 特性 | 是否支持 | @@ -28,6 +30,7 @@ >

提交的文本。 + * 类型:char* | 特性 | 是否支持 | diff --git a/docs/manual/image_draw_type_t.md b/docs/manual/image_draw_type_t.md index 9327d8f2e9..eeab9b35a6 100644 --- a/docs/manual/image_draw_type_t.md +++ b/docs/manual/image_draw_type_t.md @@ -1,6 +1,7 @@ ## image\_draw\_type\_t ### 概述 图片绘制方法常量定义。 + ### 常量

diff --git a/docs/manual/image_loader_stb_t.md b/docs/manual/image_loader_stb_t.md index d6464335a3..0601834209 100644 --- a/docs/manual/image_loader_stb_t.md +++ b/docs/manual/image_loader_stb_t.md @@ -8,6 +8,7 @@ + ---------------------------------- ### 函数

@@ -25,6 +26,7 @@ + * 函数原型: ``` diff --git a/docs/manual/image_loader_t.md b/docs/manual/image_loader_t.md index 4760afa9cb..323fc20d00 100644 --- a/docs/manual/image_loader_t.md +++ b/docs/manual/image_loader_t.md @@ -2,6 +2,7 @@ ### 概述 图片加载接口。 + ---------------------------------- ### 函数

@@ -21,6 +22,7 @@ + * 函数原型: ``` @@ -45,6 +47,7 @@ ret_t image_loader_load (image_loader_t* loader, const asset_info_t* asset, bitm + * 函数原型: ``` @@ -68,6 +71,7 @@ ret_t image_loader_load_image (const asset_info_t* asset, bitmap_t* bitmap); + * 函数原型: ``` @@ -90,6 +94,7 @@ ret_t image_loader_register (image_loader_t* loader); + * 函数原型: ``` diff --git a/docs/manual/image_manager_t.md b/docs/manual/image_manager_t.md index 73d89b0cb3..2ad00cab6a 100644 --- a/docs/manual/image_manager_t.md +++ b/docs/manual/image_manager_t.md @@ -2,6 +2,7 @@ ### 概述 图片管理器。负责加载,解码和缓存图片。 + ---------------------------------- ### 函数

@@ -16,6 +17,7 @@ | image\_manager\_init | 初始化图片管理器。 | | image\_manager\_set | 设置缺省的图片管理器。 | | image\_manager\_set\_assets\_manager | 设置资源管理器对象。 | +| image\_manager\_unload\_all | 从图片管理器中卸载全部图片。 | | image\_manager\_unload\_bitmap | 从图片管理器中卸载指定的图片。 | | image\_manager\_unload\_unused | 从图片管理器中卸载指定时间内没有使用的图片。 | | image\_manager\_update\_specific | 更新缓存中图片的specific信息。 | @@ -32,6 +34,7 @@ >

获取缺省的图片管理器。 + * 函数原型: ``` @@ -52,6 +55,7 @@ image_manager_t* image_manager (); + * 函数原型: ``` @@ -72,6 +76,7 @@ image_manager_t* image_manager_create (); + * 函数原型: ``` @@ -93,6 +98,7 @@ ret_t image_manager_deinit (image_manager_t* imm); + * 函数原型: ``` @@ -116,6 +122,7 @@ ret_t image_manager_destroy (image_manager_t* imm); + * 函数原型: ``` @@ -139,6 +146,7 @@ ret_t image_manager_get_bitmap (image_manager_t* imm, char* name, bitmap_t* imag + * 函数原型: ``` @@ -160,6 +168,7 @@ image_manager_t* image_manager_init (image_manager_t* imm); + * 函数原型: ``` @@ -190,6 +199,7 @@ ret_t image_manager_set (image_manager_t* imm); + * 函数原型: ``` @@ -203,6 +213,29 @@ ret_t image_manager_set_assets_manager (image_manager_t* imm, assets_manager_t* | 返回值 | ret\_t | 返回RET\_OK表示成功,否则表示失败。 | | imm | image\_manager\_t* | 图片管理器对象。 | | assets\_manager | assets\_manager\_t* | 资源管理器。 | +#### image\_manager\_unload\_all 函数 +----------------------- + +* 函数功能: + +>

从图片管理器中卸载全部图片。 + + + + + +* 函数原型: + +``` +ret_t image_manager_unload_all (image_manager_t* imm); +``` + +* 参数说明: + +| 参数 | 类型 | 说明 | +| -------- | ----- | --------- | +| 返回值 | ret\_t | 返回RET\_OK表示成功,否则表示失败。 | +| imm | image\_manager\_t* | 图片管理器对象。 | #### image\_manager\_unload\_bitmap 函数 ----------------------- @@ -212,6 +245,7 @@ ret_t image_manager_set_assets_manager (image_manager_t* imm, assets_manager_t* + * 函数原型: ``` @@ -234,6 +268,7 @@ ret_t image_manager_unload_bitmap (image_manager_t* imm, bitmap_t* image); + * 函数原型: ``` @@ -256,6 +291,7 @@ ret_t image_manager_unload_unused (image_manager_t* imm, uint32_t time_delta_s); + * 函数原型: ``` diff --git a/docs/manual/images/app_bar_t_0.png b/docs/manual/images/app_bar_t_0.png index de7a5c5cd0..43b9aaa732 100644 Binary files a/docs/manual/images/app_bar_t_0.png and b/docs/manual/images/app_bar_t_0.png differ diff --git a/docs/manual/images/button_group_t_0.png b/docs/manual/images/button_group_t_0.png index ae70129f12..3aba5f1ac1 100644 Binary files a/docs/manual/images/button_group_t_0.png and b/docs/manual/images/button_group_t_0.png differ diff --git a/docs/manual/images/button_t_0.png b/docs/manual/images/button_t_0.png index b5e1761e72..ebbf2200d6 100644 Binary files a/docs/manual/images/button_t_0.png and b/docs/manual/images/button_t_0.png differ diff --git a/docs/manual/images/calibration_win_t_0.png b/docs/manual/images/calibration_win_t_0.png index a89f9e3c64..aeaba33d3f 100644 Binary files a/docs/manual/images/calibration_win_t_0.png and b/docs/manual/images/calibration_win_t_0.png differ diff --git a/docs/manual/images/candidates_t_0.png b/docs/manual/images/candidates_t_0.png index c92193b3ec..e689b0a43f 100644 Binary files a/docs/manual/images/candidates_t_0.png and b/docs/manual/images/candidates_t_0.png differ diff --git a/docs/manual/images/canvas_widget_t_0.png b/docs/manual/images/canvas_widget_t_0.png index 9653295ffb..b9959a8979 100644 Binary files a/docs/manual/images/canvas_widget_t_0.png and b/docs/manual/images/canvas_widget_t_0.png differ diff --git a/docs/manual/images/check_button_t_0.png b/docs/manual/images/check_button_t_0.png index 528710cff0..bbe606a542 100644 Binary files a/docs/manual/images/check_button_t_0.png and b/docs/manual/images/check_button_t_0.png differ diff --git a/docs/manual/images/children_layouter_default_t_0.png b/docs/manual/images/children_layouter_default_t_0.png index 4ca1462502..0d9135939e 100644 Binary files a/docs/manual/images/children_layouter_default_t_0.png and b/docs/manual/images/children_layouter_default_t_0.png differ diff --git a/docs/manual/images/children_layouter_list_view_t_0.png b/docs/manual/images/children_layouter_list_view_t_0.png index 4f7cda2eac..ab4ee7b163 100644 Binary files a/docs/manual/images/children_layouter_list_view_t_0.png and b/docs/manual/images/children_layouter_list_view_t_0.png differ diff --git a/docs/manual/images/color_component_t_0.png b/docs/manual/images/color_component_t_0.png index e2f8bb6ef0..f061e2aa76 100644 Binary files a/docs/manual/images/color_component_t_0.png and b/docs/manual/images/color_component_t_0.png differ diff --git a/docs/manual/images/color_picker_t_0.png b/docs/manual/images/color_picker_t_0.png index 62ad7b447b..e402017bac 100644 Binary files a/docs/manual/images/color_picker_t_0.png and b/docs/manual/images/color_picker_t_0.png differ diff --git a/docs/manual/images/color_tile_t_0.png b/docs/manual/images/color_tile_t_0.png index 590b2bf05d..0cce0d9369 100644 Binary files a/docs/manual/images/color_tile_t_0.png and b/docs/manual/images/color_tile_t_0.png differ diff --git a/docs/manual/images/column_t_0.png b/docs/manual/images/column_t_0.png index 416874e9f1..bb7559b657 100644 Binary files a/docs/manual/images/column_t_0.png and b/docs/manual/images/column_t_0.png differ diff --git a/docs/manual/images/combo_box_ex_t_0.png b/docs/manual/images/combo_box_ex_t_0.png index ba05f65872..6de506166b 100644 Binary files a/docs/manual/images/combo_box_ex_t_0.png and b/docs/manual/images/combo_box_ex_t_0.png differ diff --git a/docs/manual/images/combo_box_item_t_0.png b/docs/manual/images/combo_box_item_t_0.png index 4722321d6a..dbdb34a1ad 100644 Binary files a/docs/manual/images/combo_box_item_t_0.png and b/docs/manual/images/combo_box_item_t_0.png differ diff --git a/docs/manual/images/combo_box_t_0.png b/docs/manual/images/combo_box_t_0.png index 97ec923e96..d3cf03550a 100644 Binary files a/docs/manual/images/combo_box_t_0.png and b/docs/manual/images/combo_box_t_0.png differ diff --git a/docs/manual/images/dialog_client_t_0.png b/docs/manual/images/dialog_client_t_0.png index 84bca30187..89e9df969d 100644 Binary files a/docs/manual/images/dialog_client_t_0.png and b/docs/manual/images/dialog_client_t_0.png differ diff --git a/docs/manual/images/dialog_t_0.png b/docs/manual/images/dialog_t_0.png index 5c990f9652..4eec96ad87 100644 Binary files a/docs/manual/images/dialog_t_0.png and b/docs/manual/images/dialog_t_0.png differ diff --git a/docs/manual/images/dialog_t_1.png b/docs/manual/images/dialog_t_1.png index f5406e2949..de40f3cf96 100644 Binary files a/docs/manual/images/dialog_t_1.png and b/docs/manual/images/dialog_t_1.png differ diff --git a/docs/manual/images/dialog_title_t_0.png b/docs/manual/images/dialog_title_t_0.png index d389d4a9e9..0a72485244 100644 Binary files a/docs/manual/images/dialog_title_t_0.png and b/docs/manual/images/dialog_title_t_0.png differ diff --git a/docs/manual/images/digit_clock_t_0.png b/docs/manual/images/digit_clock_t_0.png index 861737c91e..f15590bbbc 100644 Binary files a/docs/manual/images/digit_clock_t_0.png and b/docs/manual/images/digit_clock_t_0.png differ diff --git a/docs/manual/images/dragger_t_0.png b/docs/manual/images/dragger_t_0.png index 571b68e834..0867a29227 100644 Binary files a/docs/manual/images/dragger_t_0.png and b/docs/manual/images/dragger_t_0.png differ diff --git a/docs/manual/images/edit_t_0.png b/docs/manual/images/edit_t_0.png index 44a9b11914..6fdf1a583b 100644 Binary files a/docs/manual/images/edit_t_0.png and b/docs/manual/images/edit_t_0.png differ diff --git a/docs/manual/images/event_source_fd_t_0.png b/docs/manual/images/event_source_fd_t_0.png index 6a851735f3..872761782e 100644 Binary files a/docs/manual/images/event_source_fd_t_0.png and b/docs/manual/images/event_source_fd_t_0.png differ diff --git a/docs/manual/images/event_source_idle_t_0.png b/docs/manual/images/event_source_idle_t_0.png index e5c11c83d0..209952869e 100644 Binary files a/docs/manual/images/event_source_idle_t_0.png and b/docs/manual/images/event_source_idle_t_0.png differ diff --git a/docs/manual/images/event_source_t_0.png b/docs/manual/images/event_source_t_0.png index ab8e81e935..817831e261 100644 Binary files a/docs/manual/images/event_source_t_0.png and b/docs/manual/images/event_source_t_0.png differ diff --git a/docs/manual/images/event_source_timer_t_0.png b/docs/manual/images/event_source_timer_t_0.png index 592e47475d..5ac7cf1c95 100644 Binary files a/docs/manual/images/event_source_timer_t_0.png and b/docs/manual/images/event_source_timer_t_0.png differ diff --git a/docs/manual/images/font_loader_bitmap_t_0.png b/docs/manual/images/font_loader_bitmap_t_0.png index 1c084b7b1f..37622cb093 100644 Binary files a/docs/manual/images/font_loader_bitmap_t_0.png and b/docs/manual/images/font_loader_bitmap_t_0.png differ diff --git a/docs/manual/images/font_loader_ft_t_0.png b/docs/manual/images/font_loader_ft_t_0.png index 0acb8944d1..1675a9dd20 100644 Binary files a/docs/manual/images/font_loader_ft_t_0.png and b/docs/manual/images/font_loader_ft_t_0.png differ diff --git a/docs/manual/images/font_loader_stb_t_0.png b/docs/manual/images/font_loader_stb_t_0.png index 3db7b93399..f96dd67d31 100644 Binary files a/docs/manual/images/font_loader_stb_t_0.png and b/docs/manual/images/font_loader_stb_t_0.png differ diff --git a/docs/manual/images/gif_image_t_0.png b/docs/manual/images/gif_image_t_0.png index b84ce669fb..1777db38f5 100644 Binary files a/docs/manual/images/gif_image_t_0.png and b/docs/manual/images/gif_image_t_0.png differ diff --git a/docs/manual/images/grid_item_t_0.png b/docs/manual/images/grid_item_t_0.png index 879ad6d800..3a5ca0cec8 100644 Binary files a/docs/manual/images/grid_item_t_0.png and b/docs/manual/images/grid_item_t_0.png differ diff --git a/docs/manual/images/grid_t_0.png b/docs/manual/images/grid_t_0.png index 07cc9f93b7..b6a12b485d 100644 Binary files a/docs/manual/images/grid_t_0.png and b/docs/manual/images/grid_t_0.png differ diff --git a/docs/manual/images/group_box_t_0.png b/docs/manual/images/group_box_t_0.png index 3ab5b695d2..6cab70e24d 100644 Binary files a/docs/manual/images/group_box_t_0.png and b/docs/manual/images/group_box_t_0.png differ diff --git a/docs/manual/images/guage_pointer_t_0.png b/docs/manual/images/guage_pointer_t_0.png index a0c6049b2a..9396510d1e 100644 Binary files a/docs/manual/images/guage_pointer_t_0.png and b/docs/manual/images/guage_pointer_t_0.png differ diff --git a/docs/manual/images/guage_t_0.png b/docs/manual/images/guage_t_0.png index 1af7cdd848..b28551e7d3 100644 Binary files a/docs/manual/images/guage_t_0.png and b/docs/manual/images/guage_t_0.png differ diff --git a/docs/manual/images/hscroll_label_t_0.png b/docs/manual/images/hscroll_label_t_0.png index 44e270359d..d4c410a33e 100644 Binary files a/docs/manual/images/hscroll_label_t_0.png and b/docs/manual/images/hscroll_label_t_0.png differ diff --git a/docs/manual/images/idle_info_t_0.png b/docs/manual/images/idle_info_t_0.png index e418e572dd..b03f6fb3af 100644 Binary files a/docs/manual/images/idle_info_t_0.png and b/docs/manual/images/idle_info_t_0.png differ diff --git a/docs/manual/images/im_action_button_info_event_t_0.png b/docs/manual/images/im_action_button_info_event_t_0.png index 2d6a2f739b..adfe314986 100644 Binary files a/docs/manual/images/im_action_button_info_event_t_0.png and b/docs/manual/images/im_action_button_info_event_t_0.png differ diff --git a/docs/manual/images/im_candidates_event_t_0.png b/docs/manual/images/im_candidates_event_t_0.png index 3f55d20ea8..223cd16194 100644 Binary files a/docs/manual/images/im_candidates_event_t_0.png and b/docs/manual/images/im_candidates_event_t_0.png differ diff --git a/docs/manual/images/im_commit_event_t_0.png b/docs/manual/images/im_commit_event_t_0.png index ac7fb6c811..305dc233e9 100644 Binary files a/docs/manual/images/im_commit_event_t_0.png and b/docs/manual/images/im_commit_event_t_0.png differ diff --git a/docs/manual/images/image_animation_t_0.png b/docs/manual/images/image_animation_t_0.png index 514ab84dc2..8acb1f5134 100644 Binary files a/docs/manual/images/image_animation_t_0.png and b/docs/manual/images/image_animation_t_0.png differ diff --git a/docs/manual/images/image_base_t_0.png b/docs/manual/images/image_base_t_0.png index 2b8e74cd69..d0bbe4a45c 100644 Binary files a/docs/manual/images/image_base_t_0.png and b/docs/manual/images/image_base_t_0.png differ diff --git a/docs/manual/images/image_base_t_1.png b/docs/manual/images/image_base_t_1.png index 986c788246..f6430582a7 100644 Binary files a/docs/manual/images/image_base_t_1.png and b/docs/manual/images/image_base_t_1.png differ diff --git a/docs/manual/images/image_loader_stb_t_0.png b/docs/manual/images/image_loader_stb_t_0.png index fc6e8a0e3f..eebbf81250 100644 Binary files a/docs/manual/images/image_loader_stb_t_0.png and b/docs/manual/images/image_loader_stb_t_0.png differ diff --git a/docs/manual/images/image_t_0.png b/docs/manual/images/image_t_0.png index f490d9251c..f338b83a29 100644 Binary files a/docs/manual/images/image_t_0.png and b/docs/manual/images/image_t_0.png differ diff --git a/docs/manual/images/image_value_t_0.png b/docs/manual/images/image_value_t_0.png index 5380787cf1..38a337cc1f 100644 Binary files a/docs/manual/images/image_value_t_0.png and b/docs/manual/images/image_value_t_0.png differ diff --git a/docs/manual/images/input_engine_null_t_0.png b/docs/manual/images/input_engine_null_t_0.png index de0ee20a61..752691fe47 100644 Binary files a/docs/manual/images/input_engine_null_t_0.png and b/docs/manual/images/input_engine_null_t_0.png differ diff --git a/docs/manual/images/input_engine_pinyin_t_0.png b/docs/manual/images/input_engine_pinyin_t_0.png index d37c80f417..1aab67ab6f 100644 Binary files a/docs/manual/images/input_engine_pinyin_t_0.png and b/docs/manual/images/input_engine_pinyin_t_0.png differ diff --git a/docs/manual/images/input_engine_t_0.png b/docs/manual/images/input_engine_t_0.png index 0caa5e0ccb..209dedbc34 100644 Binary files a/docs/manual/images/input_engine_t_0.png and b/docs/manual/images/input_engine_t_0.png differ diff --git a/docs/manual/images/input_method_default_t_0.png b/docs/manual/images/input_method_default_t_0.png index 0c36f48541..56eb7a23d6 100644 Binary files a/docs/manual/images/input_method_default_t_0.png and b/docs/manual/images/input_method_default_t_0.png differ diff --git a/docs/manual/images/input_method_null_t_0.png b/docs/manual/images/input_method_null_t_0.png index 98dd274547..3f25cf47b7 100644 Binary files a/docs/manual/images/input_method_null_t_0.png and b/docs/manual/images/input_method_null_t_0.png differ diff --git a/docs/manual/images/input_method_sdl_t_0.png b/docs/manual/images/input_method_sdl_t_0.png index fc480a5d60..353c73cbb3 100644 Binary files a/docs/manual/images/input_method_sdl_t_0.png and b/docs/manual/images/input_method_sdl_t_0.png differ diff --git a/docs/manual/images/input_method_t_0.png b/docs/manual/images/input_method_t_0.png index b60ce58ca5..821d47f5a3 100644 Binary files a/docs/manual/images/input_method_t_0.png and b/docs/manual/images/input_method_t_0.png differ diff --git a/docs/manual/images/key_event_t_0.png b/docs/manual/images/key_event_t_0.png index d5576cd888..86789f681b 100644 Binary files a/docs/manual/images/key_event_t_0.png and b/docs/manual/images/key_event_t_0.png differ diff --git a/docs/manual/images/keyboard_t_0.png b/docs/manual/images/keyboard_t_0.png index a96f1f85b3..0c55124318 100644 Binary files a/docs/manual/images/keyboard_t_0.png and b/docs/manual/images/keyboard_t_0.png differ diff --git a/docs/manual/images/label_t_0.png b/docs/manual/images/label_t_0.png index 835fd8accd..022a3b19b2 100644 Binary files a/docs/manual/images/label_t_0.png and b/docs/manual/images/label_t_0.png differ diff --git a/docs/manual/images/lcd_mono_t_0.png b/docs/manual/images/lcd_mono_t_0.png index d0c0f01a0c..f9cf46b28f 100644 Binary files a/docs/manual/images/lcd_mono_t_0.png and b/docs/manual/images/lcd_mono_t_0.png differ diff --git a/docs/manual/images/lcd_profile_t_0.png b/docs/manual/images/lcd_profile_t_0.png index c16881c286..4966bf3bd3 100644 Binary files a/docs/manual/images/lcd_profile_t_0.png and b/docs/manual/images/lcd_profile_t_0.png differ diff --git a/docs/manual/images/line_number_t_0.png b/docs/manual/images/line_number_t_0.png index 51cc00b6d9..65ed6be80e 100644 Binary files a/docs/manual/images/line_number_t_0.png and b/docs/manual/images/line_number_t_0.png differ diff --git a/docs/manual/images/list_item_t_0.png b/docs/manual/images/list_item_t_0.png index fc202adbab..ffae910dfc 100644 Binary files a/docs/manual/images/list_item_t_0.png and b/docs/manual/images/list_item_t_0.png differ diff --git a/docs/manual/images/list_view_h_t_0.png b/docs/manual/images/list_view_h_t_0.png index 9eb733e7e3..45a3001176 100644 Binary files a/docs/manual/images/list_view_h_t_0.png and b/docs/manual/images/list_view_h_t_0.png differ diff --git a/docs/manual/images/list_view_t_0.png b/docs/manual/images/list_view_t_0.png index d603b76c65..fcace9401f 100644 Binary files a/docs/manual/images/list_view_t_0.png and b/docs/manual/images/list_view_t_0.png differ diff --git a/docs/manual/images/mledit_t_0.png b/docs/manual/images/mledit_t_0.png index 2c748ffd02..8b8df46742 100644 Binary files a/docs/manual/images/mledit_t_0.png and b/docs/manual/images/mledit_t_0.png differ diff --git a/docs/manual/images/mutable_image_t_0.png b/docs/manual/images/mutable_image_t_0.png index 4cf8c8a4a5..b2cfc03ff7 100644 Binary files a/docs/manual/images/mutable_image_t_0.png and b/docs/manual/images/mutable_image_t_0.png differ diff --git a/docs/manual/images/native_window_t_0.png b/docs/manual/images/native_window_t_0.png index 847f493c10..d5e2ff883b 100644 Binary files a/docs/manual/images/native_window_t_0.png and b/docs/manual/images/native_window_t_0.png differ diff --git a/docs/manual/images/object_array_t_0.png b/docs/manual/images/object_array_t_0.png index a2a9e90a0a..fc6b329923 100644 Binary files a/docs/manual/images/object_array_t_0.png and b/docs/manual/images/object_array_t_0.png differ diff --git a/docs/manual/images/object_default_t_0.png b/docs/manual/images/object_default_t_0.png index 781428cd1f..578896521b 100644 Binary files a/docs/manual/images/object_default_t_0.png and b/docs/manual/images/object_default_t_0.png differ diff --git a/docs/manual/images/object_t_0.png b/docs/manual/images/object_t_0.png index e2e0356be4..992c32901b 100644 Binary files a/docs/manual/images/object_t_0.png and b/docs/manual/images/object_t_0.png differ diff --git a/docs/manual/images/orientation_event_t_0.png b/docs/manual/images/orientation_event_t_0.png index df5b6d3b1f..311c270ce3 100644 Binary files a/docs/manual/images/orientation_event_t_0.png and b/docs/manual/images/orientation_event_t_0.png differ diff --git a/docs/manual/images/overlay_t_0.png b/docs/manual/images/overlay_t_0.png index 221cdebf3e..2e0b9789a5 100644 Binary files a/docs/manual/images/overlay_t_0.png and b/docs/manual/images/overlay_t_0.png differ diff --git a/docs/manual/images/pages_t_0.png b/docs/manual/images/pages_t_0.png index 43de0a0628..bc9b63fba4 100644 Binary files a/docs/manual/images/pages_t_0.png and b/docs/manual/images/pages_t_0.png differ diff --git a/docs/manual/images/paint_event_t_0.png b/docs/manual/images/paint_event_t_0.png index eb3ddcd871..fd39ad39d4 100644 Binary files a/docs/manual/images/paint_event_t_0.png and b/docs/manual/images/paint_event_t_0.png differ diff --git a/docs/manual/images/pointer_event_t_0.png b/docs/manual/images/pointer_event_t_0.png index a198e57d58..081e0024d5 100644 Binary files a/docs/manual/images/pointer_event_t_0.png and b/docs/manual/images/pointer_event_t_0.png differ diff --git a/docs/manual/images/popup_t_0.png b/docs/manual/images/popup_t_0.png index f2dda08c85..6095cdc519 100644 Binary files a/docs/manual/images/popup_t_0.png and b/docs/manual/images/popup_t_0.png differ diff --git a/docs/manual/images/progress_bar_t_0.png b/docs/manual/images/progress_bar_t_0.png index d420a303fb..bb9fdeed1f 100644 Binary files a/docs/manual/images/progress_bar_t_0.png and b/docs/manual/images/progress_bar_t_0.png differ diff --git a/docs/manual/images/progress_circle_t_0.png b/docs/manual/images/progress_circle_t_0.png index 8e0917f13f..e69593d6de 100644 Binary files a/docs/manual/images/progress_circle_t_0.png and b/docs/manual/images/progress_circle_t_0.png differ diff --git a/docs/manual/images/prop_change_event_t_0.png b/docs/manual/images/prop_change_event_t_0.png index 63ebe1094f..15528114b5 100644 Binary files a/docs/manual/images/prop_change_event_t_0.png and b/docs/manual/images/prop_change_event_t_0.png differ diff --git a/docs/manual/images/rich_text_t_0.png b/docs/manual/images/rich_text_t_0.png index 816837982e..fff1326954 100644 Binary files a/docs/manual/images/rich_text_t_0.png and b/docs/manual/images/rich_text_t_0.png differ diff --git a/docs/manual/images/row_t_0.png b/docs/manual/images/row_t_0.png index aaa77efbf2..fc1cad0809 100644 Binary files a/docs/manual/images/row_t_0.png and b/docs/manual/images/row_t_0.png differ diff --git a/docs/manual/images/scroll_bar_t_0.png b/docs/manual/images/scroll_bar_t_0.png index cf5f55b694..22310f566d 100644 Binary files a/docs/manual/images/scroll_bar_t_0.png and b/docs/manual/images/scroll_bar_t_0.png differ diff --git a/docs/manual/images/scroll_view_t_0.png b/docs/manual/images/scroll_view_t_0.png index b4e30591f5..53f84021d6 100644 Binary files a/docs/manual/images/scroll_view_t_0.png and b/docs/manual/images/scroll_view_t_0.png differ diff --git a/docs/manual/images/self_layouter_default_t_0.png b/docs/manual/images/self_layouter_default_t_0.png index 03a1564fda..3256c2f5bb 100644 Binary files a/docs/manual/images/self_layouter_default_t_0.png and b/docs/manual/images/self_layouter_default_t_0.png differ diff --git a/docs/manual/images/self_layouter_menu_t_0.png b/docs/manual/images/self_layouter_menu_t_0.png index 0e9f6ce2e3..895f79e462 100644 Binary files a/docs/manual/images/self_layouter_menu_t_0.png and b/docs/manual/images/self_layouter_menu_t_0.png differ diff --git a/docs/manual/images/slide_indicator_t_0.png b/docs/manual/images/slide_indicator_t_0.png index b353dba9a1..e9a88fbccb 100644 Binary files a/docs/manual/images/slide_indicator_t_0.png and b/docs/manual/images/slide_indicator_t_0.png differ diff --git a/docs/manual/images/slide_menu_t_0.png b/docs/manual/images/slide_menu_t_0.png index 3a58d89318..d14ebe588f 100644 Binary files a/docs/manual/images/slide_menu_t_0.png and b/docs/manual/images/slide_menu_t_0.png differ diff --git a/docs/manual/images/slide_view_t_0.png b/docs/manual/images/slide_view_t_0.png index a327509761..0cf388ccbf 100644 Binary files a/docs/manual/images/slide_view_t_0.png and b/docs/manual/images/slide_view_t_0.png differ diff --git a/docs/manual/images/slider_t_0.png b/docs/manual/images/slider_t_0.png index e4f0eeb48b..bc8903acae 100644 Binary files a/docs/manual/images/slider_t_0.png and b/docs/manual/images/slider_t_0.png differ diff --git a/docs/manual/images/spin_box_t_0.png b/docs/manual/images/spin_box_t_0.png index ec27ce57c3..eb063038b4 100644 Binary files a/docs/manual/images/spin_box_t_0.png and b/docs/manual/images/spin_box_t_0.png differ diff --git a/docs/manual/images/style_const_t_0.png b/docs/manual/images/style_const_t_0.png index f2e7d10312..818d4327f0 100644 Binary files a/docs/manual/images/style_const_t_0.png and b/docs/manual/images/style_const_t_0.png differ diff --git a/docs/manual/images/style_mutable_t_0.png b/docs/manual/images/style_mutable_t_0.png index 73d7787cfb..1017ff31c9 100644 Binary files a/docs/manual/images/style_mutable_t_0.png and b/docs/manual/images/style_mutable_t_0.png differ diff --git a/docs/manual/images/svg_image_t_0.png b/docs/manual/images/svg_image_t_0.png index f691cd4eec..79733b4a40 100644 Binary files a/docs/manual/images/svg_image_t_0.png and b/docs/manual/images/svg_image_t_0.png differ diff --git a/docs/manual/images/switch_t_0.png b/docs/manual/images/switch_t_0.png index 88b99df8f2..fd3bb11cee 100644 Binary files a/docs/manual/images/switch_t_0.png and b/docs/manual/images/switch_t_0.png differ diff --git a/docs/manual/images/system_bar_t_0.png b/docs/manual/images/system_bar_t_0.png index 7f38e645ab..7152961706 100644 Binary files a/docs/manual/images/system_bar_t_0.png and b/docs/manual/images/system_bar_t_0.png differ diff --git a/docs/manual/images/system_info_t_0.png b/docs/manual/images/system_info_t_0.png index dd26179c8a..86df3f49b6 100644 Binary files a/docs/manual/images/system_info_t_0.png and b/docs/manual/images/system_info_t_0.png differ diff --git a/docs/manual/images/tab_button_group_t_0.png b/docs/manual/images/tab_button_group_t_0.png index 8a91ac5009..6ddb86d389 100644 Binary files a/docs/manual/images/tab_button_group_t_0.png and b/docs/manual/images/tab_button_group_t_0.png differ diff --git a/docs/manual/images/tab_button_t_0.png b/docs/manual/images/tab_button_t_0.png index 8653711830..f0fbe7d115 100644 Binary files a/docs/manual/images/tab_button_t_0.png and b/docs/manual/images/tab_button_t_0.png differ diff --git a/docs/manual/images/tab_control_t_0.png b/docs/manual/images/tab_control_t_0.png index 63e470e941..58f6398807 100644 Binary files a/docs/manual/images/tab_control_t_0.png and b/docs/manual/images/tab_control_t_0.png differ diff --git a/docs/manual/images/tab_control_t_1.png b/docs/manual/images/tab_control_t_1.png index fe2276ffee..18f483aa52 100644 Binary files a/docs/manual/images/tab_control_t_1.png and b/docs/manual/images/tab_control_t_1.png differ diff --git a/docs/manual/images/text_selector_t_0.png b/docs/manual/images/text_selector_t_0.png index 10096da02f..101c0d3032 100644 Binary files a/docs/manual/images/text_selector_t_0.png and b/docs/manual/images/text_selector_t_0.png differ diff --git a/docs/manual/images/time_clock_t_0.png b/docs/manual/images/time_clock_t_0.png index 6103d39b01..7908424868 100644 Binary files a/docs/manual/images/time_clock_t_0.png and b/docs/manual/images/time_clock_t_0.png differ diff --git a/docs/manual/images/timer_info_t_0.png b/docs/manual/images/timer_info_t_0.png index 9f8476b464..77f65b6614 100644 Binary files a/docs/manual/images/timer_info_t_0.png and b/docs/manual/images/timer_info_t_0.png differ diff --git a/docs/manual/images/tk_iostream_mem_t_0.png b/docs/manual/images/tk_iostream_mem_t_0.png index e5bd5a2abb..7a3cfc63ae 100644 Binary files a/docs/manual/images/tk_iostream_mem_t_0.png and b/docs/manual/images/tk_iostream_mem_t_0.png differ diff --git a/docs/manual/images/tk_iostream_noisy_t_0.png b/docs/manual/images/tk_iostream_noisy_t_0.png index 5fee414d78..750389bfbd 100644 Binary files a/docs/manual/images/tk_iostream_noisy_t_0.png and b/docs/manual/images/tk_iostream_noisy_t_0.png differ diff --git a/docs/manual/images/tk_iostream_serial_t_0.png b/docs/manual/images/tk_iostream_serial_t_0.png index 3715d47283..6ac13f9802 100644 Binary files a/docs/manual/images/tk_iostream_serial_t_0.png and b/docs/manual/images/tk_iostream_serial_t_0.png differ diff --git a/docs/manual/images/tk_iostream_shdlc_t_0.png b/docs/manual/images/tk_iostream_shdlc_t_0.png index 8cc8f49b09..783dddecca 100644 Binary files a/docs/manual/images/tk_iostream_shdlc_t_0.png and b/docs/manual/images/tk_iostream_shdlc_t_0.png differ diff --git a/docs/manual/images/tk_iostream_t_0.png b/docs/manual/images/tk_iostream_t_0.png index 56382de8e8..ad3c2c3fb0 100644 Binary files a/docs/manual/images/tk_iostream_t_0.png and b/docs/manual/images/tk_iostream_t_0.png differ diff --git a/docs/manual/images/tk_iostream_tcp_t_0.png b/docs/manual/images/tk_iostream_tcp_t_0.png index 34d520b5ef..8d902f6188 100644 Binary files a/docs/manual/images/tk_iostream_tcp_t_0.png and b/docs/manual/images/tk_iostream_tcp_t_0.png differ diff --git a/docs/manual/images/tk_iostream_udp_t_0.png b/docs/manual/images/tk_iostream_udp_t_0.png index 1116281a13..326f241563 100644 Binary files a/docs/manual/images/tk_iostream_udp_t_0.png and b/docs/manual/images/tk_iostream_udp_t_0.png differ diff --git a/docs/manual/images/tk_istream_buffered_t_0.png b/docs/manual/images/tk_istream_buffered_t_0.png index 23eb86bd81..51559a2a4c 100644 Binary files a/docs/manual/images/tk_istream_buffered_t_0.png and b/docs/manual/images/tk_istream_buffered_t_0.png differ diff --git a/docs/manual/images/tk_istream_file_t_0.png b/docs/manual/images/tk_istream_file_t_0.png index 19cc69317d..e8087bc73a 100644 Binary files a/docs/manual/images/tk_istream_file_t_0.png and b/docs/manual/images/tk_istream_file_t_0.png differ diff --git a/docs/manual/images/tk_istream_mem_t_0.png b/docs/manual/images/tk_istream_mem_t_0.png index 0447cf6e9e..aafff9f093 100644 Binary files a/docs/manual/images/tk_istream_mem_t_0.png and b/docs/manual/images/tk_istream_mem_t_0.png differ diff --git a/docs/manual/images/tk_istream_serial_t_0.png b/docs/manual/images/tk_istream_serial_t_0.png index 7e626e15ef..4984e4bfd9 100644 Binary files a/docs/manual/images/tk_istream_serial_t_0.png and b/docs/manual/images/tk_istream_serial_t_0.png differ diff --git a/docs/manual/images/tk_istream_shdlc_t_0.png b/docs/manual/images/tk_istream_shdlc_t_0.png index c5cd27c0e8..5147bfde3a 100644 Binary files a/docs/manual/images/tk_istream_shdlc_t_0.png and b/docs/manual/images/tk_istream_shdlc_t_0.png differ diff --git a/docs/manual/images/tk_istream_t_0.png b/docs/manual/images/tk_istream_t_0.png index 28f56ba252..d878b68cd3 100644 Binary files a/docs/manual/images/tk_istream_t_0.png and b/docs/manual/images/tk_istream_t_0.png differ diff --git a/docs/manual/images/tk_istream_tcp_t_0.png b/docs/manual/images/tk_istream_tcp_t_0.png index d7fb605ced..7545c3b425 100644 Binary files a/docs/manual/images/tk_istream_tcp_t_0.png and b/docs/manual/images/tk_istream_tcp_t_0.png differ diff --git a/docs/manual/images/tk_istream_udp_t_0.png b/docs/manual/images/tk_istream_udp_t_0.png index 8cf76599e6..fb86762927 100644 Binary files a/docs/manual/images/tk_istream_udp_t_0.png and b/docs/manual/images/tk_istream_udp_t_0.png differ diff --git a/docs/manual/images/tk_ostream_buffered_t_0.png b/docs/manual/images/tk_ostream_buffered_t_0.png index 14c4053a1a..02ecfac707 100644 Binary files a/docs/manual/images/tk_ostream_buffered_t_0.png and b/docs/manual/images/tk_ostream_buffered_t_0.png differ diff --git a/docs/manual/images/tk_ostream_file_t_0.png b/docs/manual/images/tk_ostream_file_t_0.png index 0278ecaca5..714a342b11 100644 Binary files a/docs/manual/images/tk_ostream_file_t_0.png and b/docs/manual/images/tk_ostream_file_t_0.png differ diff --git a/docs/manual/images/tk_ostream_mem_t_0.png b/docs/manual/images/tk_ostream_mem_t_0.png index fc0ec9b1d5..3a62f98a2f 100644 Binary files a/docs/manual/images/tk_ostream_mem_t_0.png and b/docs/manual/images/tk_ostream_mem_t_0.png differ diff --git a/docs/manual/images/tk_ostream_noisy_t_0.png b/docs/manual/images/tk_ostream_noisy_t_0.png index f1a5b511e3..51297d4674 100644 Binary files a/docs/manual/images/tk_ostream_noisy_t_0.png and b/docs/manual/images/tk_ostream_noisy_t_0.png differ diff --git a/docs/manual/images/tk_ostream_serial_t_0.png b/docs/manual/images/tk_ostream_serial_t_0.png index cb4be38548..e8e664b20f 100644 Binary files a/docs/manual/images/tk_ostream_serial_t_0.png and b/docs/manual/images/tk_ostream_serial_t_0.png differ diff --git a/docs/manual/images/tk_ostream_shdlc_t_0.png b/docs/manual/images/tk_ostream_shdlc_t_0.png index 538f09830b..afc3c73445 100644 Binary files a/docs/manual/images/tk_ostream_shdlc_t_0.png and b/docs/manual/images/tk_ostream_shdlc_t_0.png differ diff --git a/docs/manual/images/tk_ostream_t_0.png b/docs/manual/images/tk_ostream_t_0.png index 88efb7a706..4e7c1d5895 100644 Binary files a/docs/manual/images/tk_ostream_t_0.png and b/docs/manual/images/tk_ostream_t_0.png differ diff --git a/docs/manual/images/tk_ostream_tcp_t_0.png b/docs/manual/images/tk_ostream_tcp_t_0.png index b4a919dee6..d34a04f104 100644 Binary files a/docs/manual/images/tk_ostream_tcp_t_0.png and b/docs/manual/images/tk_ostream_tcp_t_0.png differ diff --git a/docs/manual/images/tk_ostream_udp_t_0.png b/docs/manual/images/tk_ostream_udp_t_0.png index 513c33ad94..faa8f555f2 100644 Binary files a/docs/manual/images/tk_ostream_udp_t_0.png and b/docs/manual/images/tk_ostream_udp_t_0.png differ diff --git a/docs/manual/images/ui_binary_writer_t_0.png b/docs/manual/images/ui_binary_writer_t_0.png index fa5d845154..006af099e9 100644 Binary files a/docs/manual/images/ui_binary_writer_t_0.png and b/docs/manual/images/ui_binary_writer_t_0.png differ diff --git a/docs/manual/images/ui_builder_default_t_0.png b/docs/manual/images/ui_builder_default_t_0.png index 1623100c53..88c528a46c 100644 Binary files a/docs/manual/images/ui_builder_default_t_0.png and b/docs/manual/images/ui_builder_default_t_0.png differ diff --git a/docs/manual/images/ui_builder_t_0.png b/docs/manual/images/ui_builder_t_0.png index 9097d246dd..e5de585911 100644 Binary files a/docs/manual/images/ui_builder_t_0.png and b/docs/manual/images/ui_builder_t_0.png differ diff --git a/docs/manual/images/ui_loader_default_t_0.png b/docs/manual/images/ui_loader_default_t_0.png index eb680f7ae5..a36740b7fc 100644 Binary files a/docs/manual/images/ui_loader_default_t_0.png and b/docs/manual/images/ui_loader_default_t_0.png differ diff --git a/docs/manual/images/ui_loader_t_0.png b/docs/manual/images/ui_loader_t_0.png index cfd9f418f4..f2dc1d51f9 100644 Binary files a/docs/manual/images/ui_loader_t_0.png and b/docs/manual/images/ui_loader_t_0.png differ diff --git a/docs/manual/images/ui_loader_xml_t_0.png b/docs/manual/images/ui_loader_xml_t_0.png index 3f4c103c5a..5f6ff95a44 100644 Binary files a/docs/manual/images/ui_loader_xml_t_0.png and b/docs/manual/images/ui_loader_xml_t_0.png differ diff --git a/docs/manual/images/ui_xml_writer_t_0.png b/docs/manual/images/ui_xml_writer_t_0.png index ca1ec311d3..a38b4e0829 100644 Binary files a/docs/manual/images/ui_xml_writer_t_0.png and b/docs/manual/images/ui_xml_writer_t_0.png differ diff --git a/docs/manual/images/value_desc_binary_t_0.png b/docs/manual/images/value_desc_binary_t_0.png index 8137d88b35..4ad5612221 100644 Binary files a/docs/manual/images/value_desc_binary_t_0.png and b/docs/manual/images/value_desc_binary_t_0.png differ diff --git a/docs/manual/images/value_desc_bool_t_0.png b/docs/manual/images/value_desc_bool_t_0.png index 061f0092e4..0d8039f072 100644 Binary files a/docs/manual/images/value_desc_bool_t_0.png and b/docs/manual/images/value_desc_bool_t_0.png differ diff --git a/docs/manual/images/value_desc_double_t_0.png b/docs/manual/images/value_desc_double_t_0.png index b85bc0cc2d..959b48e7cd 100644 Binary files a/docs/manual/images/value_desc_double_t_0.png and b/docs/manual/images/value_desc_double_t_0.png differ diff --git a/docs/manual/images/value_desc_float_t_0.png b/docs/manual/images/value_desc_float_t_0.png index af5da46e04..b3b6f92756 100644 Binary files a/docs/manual/images/value_desc_float_t_0.png and b/docs/manual/images/value_desc_float_t_0.png differ diff --git a/docs/manual/images/value_desc_int16_t_0.png b/docs/manual/images/value_desc_int16_t_0.png index 4d79688526..171c347bb2 100644 Binary files a/docs/manual/images/value_desc_int16_t_0.png and b/docs/manual/images/value_desc_int16_t_0.png differ diff --git a/docs/manual/images/value_desc_int32_t_0.png b/docs/manual/images/value_desc_int32_t_0.png index 7aca4f3635..cf3f10b11e 100644 Binary files a/docs/manual/images/value_desc_int32_t_0.png and b/docs/manual/images/value_desc_int32_t_0.png differ diff --git a/docs/manual/images/value_desc_int64_t_0.png b/docs/manual/images/value_desc_int64_t_0.png index 54c680c86d..9f39c93e9a 100644 Binary files a/docs/manual/images/value_desc_int64_t_0.png and b/docs/manual/images/value_desc_int64_t_0.png differ diff --git a/docs/manual/images/value_desc_int8_t_0.png b/docs/manual/images/value_desc_int8_t_0.png index c9cb4d164a..0ede582a81 100644 Binary files a/docs/manual/images/value_desc_int8_t_0.png and b/docs/manual/images/value_desc_int8_t_0.png differ diff --git a/docs/manual/images/value_desc_int_enums_t_0.png b/docs/manual/images/value_desc_int_enums_t_0.png index fa64034b35..e5809b8db5 100644 Binary files a/docs/manual/images/value_desc_int_enums_t_0.png and b/docs/manual/images/value_desc_int_enums_t_0.png differ diff --git a/docs/manual/images/value_desc_string_t_0.png b/docs/manual/images/value_desc_string_t_0.png index c3fb83eed5..3dc4dd3a68 100644 Binary files a/docs/manual/images/value_desc_string_t_0.png and b/docs/manual/images/value_desc_string_t_0.png differ diff --git a/docs/manual/images/value_desc_uint16_t_0.png b/docs/manual/images/value_desc_uint16_t_0.png index 42fa9753be..d3c859db96 100644 Binary files a/docs/manual/images/value_desc_uint16_t_0.png and b/docs/manual/images/value_desc_uint16_t_0.png differ diff --git a/docs/manual/images/value_desc_uint32_t_0.png b/docs/manual/images/value_desc_uint32_t_0.png index 3eca64bea6..687f099a66 100644 Binary files a/docs/manual/images/value_desc_uint32_t_0.png and b/docs/manual/images/value_desc_uint32_t_0.png differ diff --git a/docs/manual/images/value_desc_uint64_t_0.png b/docs/manual/images/value_desc_uint64_t_0.png index ec3a441d6a..ebc9c971a3 100644 Binary files a/docs/manual/images/value_desc_uint64_t_0.png and b/docs/manual/images/value_desc_uint64_t_0.png differ diff --git a/docs/manual/images/value_desc_uint8_t_0.png b/docs/manual/images/value_desc_uint8_t_0.png index 49368b915b..61eadef94c 100644 Binary files a/docs/manual/images/value_desc_uint8_t_0.png and b/docs/manual/images/value_desc_uint8_t_0.png differ diff --git a/docs/manual/images/vgcanvas_t_0.png b/docs/manual/images/vgcanvas_t_0.png index 6ea88fcc71..03c350fae9 100644 Binary files a/docs/manual/images/vgcanvas_t_0.png and b/docs/manual/images/vgcanvas_t_0.png differ diff --git a/docs/manual/images/view_t_0.png b/docs/manual/images/view_t_0.png index 39a425dd21..7baecc9060 100644 Binary files a/docs/manual/images/view_t_0.png and b/docs/manual/images/view_t_0.png differ diff --git a/docs/manual/images/wheel_event_t_0.png b/docs/manual/images/wheel_event_t_0.png index 306a645673..d19dd3449e 100644 Binary files a/docs/manual/images/wheel_event_t_0.png and b/docs/manual/images/wheel_event_t_0.png differ diff --git a/docs/manual/images/widget_factory_t_0.png b/docs/manual/images/widget_factory_t_0.png index 4badc09273..85ba84442f 100644 Binary files a/docs/manual/images/widget_factory_t_0.png and b/docs/manual/images/widget_factory_t_0.png differ diff --git a/docs/manual/images/widget_t_0.png b/docs/manual/images/widget_t_0.png index 5883b24160..e9f08abe42 100644 Binary files a/docs/manual/images/widget_t_0.png and b/docs/manual/images/widget_t_0.png differ diff --git a/docs/manual/images/widget_t_1.png b/docs/manual/images/widget_t_1.png index 2d1c6a2b79..7f92c3d649 100644 Binary files a/docs/manual/images/widget_t_1.png and b/docs/manual/images/widget_t_1.png differ diff --git a/docs/manual/images/widget_t_2.png b/docs/manual/images/widget_t_2.png index c93eaf6cd4..4711a5756a 100644 Binary files a/docs/manual/images/widget_t_2.png and b/docs/manual/images/widget_t_2.png differ diff --git a/docs/manual/images/window_base_t_0.png b/docs/manual/images/window_base_t_0.png index f4547f2ee5..82a745df7f 100644 Binary files a/docs/manual/images/window_base_t_0.png and b/docs/manual/images/window_base_t_0.png differ diff --git a/docs/manual/images/window_base_t_1.png b/docs/manual/images/window_base_t_1.png index 34fcfdf4c0..f12210f72c 100644 Binary files a/docs/manual/images/window_base_t_1.png and b/docs/manual/images/window_base_t_1.png differ diff --git a/docs/manual/images/window_event_t_0.png b/docs/manual/images/window_event_t_0.png index 7d5065c2f1..8053d612df 100644 Binary files a/docs/manual/images/window_event_t_0.png and b/docs/manual/images/window_event_t_0.png differ diff --git a/docs/manual/images/window_manager_default_t_0.png b/docs/manual/images/window_manager_default_t_0.png index e11a30a2a2..899d646253 100644 Binary files a/docs/manual/images/window_manager_default_t_0.png and b/docs/manual/images/window_manager_default_t_0.png differ diff --git a/docs/manual/images/window_manager_simple_t_0.png b/docs/manual/images/window_manager_simple_t_0.png index 45f0ef9e49..e84b244f23 100644 Binary files a/docs/manual/images/window_manager_simple_t_0.png and b/docs/manual/images/window_manager_simple_t_0.png differ diff --git a/docs/manual/images/window_manager_t_0.png b/docs/manual/images/window_manager_t_0.png index d6f99fd805..0bbde4c50b 100644 Binary files a/docs/manual/images/window_manager_t_0.png and b/docs/manual/images/window_manager_t_0.png differ diff --git a/docs/manual/images/window_t_0.png b/docs/manual/images/window_t_0.png index 2814e22586..cbd8a257ed 100644 Binary files a/docs/manual/images/window_t_0.png and b/docs/manual/images/window_t_0.png differ diff --git a/docs/manual/indicator_default_paint_t.md b/docs/manual/indicator_default_paint_t.md index 57620e7956..d1b30e704a 100644 --- a/docs/manual/indicator_default_paint_t.md +++ b/docs/manual/indicator_default_paint_t.md @@ -1,6 +1,7 @@ ## indicator\_default\_paint\_t ### 概述 指示器默认绘制的类型。 + ### 常量

diff --git a/docs/manual/input_engine_null_t.md b/docs/manual/input_engine_null_t.md index 656a14158b..42c6a802cb 100644 --- a/docs/manual/input_engine_null_t.md +++ b/docs/manual/input_engine_null_t.md @@ -9,6 +9,7 @@ + ---------------------------------- ### 函数

@@ -27,6 +28,7 @@ + * 函数原型: ``` diff --git a/docs/manual/input_engine_pinyin_t.md b/docs/manual/input_engine_pinyin_t.md index c421e4db80..2552e548ae 100644 --- a/docs/manual/input_engine_pinyin_t.md +++ b/docs/manual/input_engine_pinyin_t.md @@ -9,6 +9,7 @@ + ---------------------------------- ### 函数

@@ -27,6 +28,7 @@ + * 函数原型: ``` diff --git a/docs/manual/input_engine_t.md b/docs/manual/input_engine_t.md index f9005513d5..781bb25b0a 100644 --- a/docs/manual/input_engine_t.md +++ b/docs/manual/input_engine_t.md @@ -11,6 +11,7 @@ ![image](images/input_engine_t_0.png) + ---------------------------------- ### 函数

@@ -35,6 +36,7 @@ + * 函数原型: ``` @@ -55,6 +57,7 @@ input_engine_t* input_engine_create (); + * 函数原型: ``` @@ -76,6 +79,7 @@ ret_t input_engine_destroy (input_engine_t* engine); + * 函数原型: ``` @@ -98,6 +102,7 @@ ret_t input_engine_input (input_engine_t* engine, int key); + * 函数原型: ``` diff --git a/docs/manual/input_method_default_t.md b/docs/manual/input_method_default_t.md index 8114960588..f3e2813aa8 100644 --- a/docs/manual/input_method_default_t.md +++ b/docs/manual/input_method_default_t.md @@ -11,6 +11,7 @@ + ---------------------------------- ### 函数

@@ -29,6 +30,7 @@ + * 函数原型: ``` diff --git a/docs/manual/input_method_null_t.md b/docs/manual/input_method_null_t.md index 8524f4015c..ec27d3abf9 100644 --- a/docs/manual/input_method_null_t.md +++ b/docs/manual/input_method_null_t.md @@ -9,6 +9,7 @@ + ---------------------------------- ### 函数

@@ -27,6 +28,7 @@ + * 函数原型: ``` diff --git a/docs/manual/input_method_sdl_t.md b/docs/manual/input_method_sdl_t.md index 8bd8320c10..8a1c32f264 100644 --- a/docs/manual/input_method_sdl_t.md +++ b/docs/manual/input_method_sdl_t.md @@ -9,6 +9,7 @@ + ---------------------------------- ### 函数

@@ -26,6 +27,7 @@ + * 函数原型: ``` @@ -48,6 +50,7 @@ ret_t children_layouter_register_builtins (); + * 函数原型: ``` diff --git a/docs/manual/input_method_t.md b/docs/manual/input_method_t.md index 50daaac614..28108520fc 100644 --- a/docs/manual/input_method_t.md +++ b/docs/manual/input_method_t.md @@ -16,6 +16,7 @@ > 输入类型请参考:[input\_type](input_type_t.md) + ---------------------------------- ### 函数

@@ -54,6 +55,7 @@ + * 函数原型: ``` @@ -74,6 +76,7 @@ input_method_t* input_method (); + * 函数原型: ``` @@ -96,6 +99,7 @@ ret_t input_method_commit_text (input_method_t* im, char* text); + * 函数原型: ``` @@ -119,6 +123,7 @@ ret_t input_method_commit_text_ex (input_method_t* im, bool_t replace, char* tex + * 函数原型: ``` @@ -139,6 +144,7 @@ input_method_t* input_method_create (); + * 函数原型: ``` @@ -160,6 +166,7 @@ ret_t input_method_destroy (input_method_t* im); + * 函数原型: ``` @@ -182,6 +189,7 @@ ret_t input_method_dispatch (input_method_t* im, event_t* e); + * 函数原型: ``` @@ -203,6 +211,7 @@ ret_t input_method_dispatch_action (input_method_t* im); + * 函数原型: ``` @@ -226,6 +235,7 @@ ret_t input_method_dispatch_candidates (input_method_t* im, char* strs, uint32_t + * 函数原型: ``` @@ -248,6 +258,7 @@ ret_t input_method_dispatch_key (input_method_t* im, uint32_t key); + * 函数原型: ``` @@ -270,6 +281,7 @@ ret_t input_method_dispatch_to_widget (input_method_t* im, event_t* e); + * 函数原型: ``` @@ -292,6 +304,7 @@ ret_t input_method_off (input_method_t* im, uint32_t id); + * 函数原型: ``` @@ -316,6 +329,7 @@ uint32_t input_method_on (input_method_t* im, event_type_t type, event_func_t on + * 函数原型: ``` @@ -338,6 +352,7 @@ ret_t input_method_request (input_method_t* im, widget_t* widget); + * 函数原型: ``` @@ -359,6 +374,7 @@ ret_t input_method_set (input_method_t* im); + * 函数原型: ``` @@ -378,6 +394,7 @@ ret_t input_method_update_action_button_info (input_method_t* im, char* text, bo >

软键盘的上的action按钮是否可用。 + * 类型:bool\_t | 特性 | 是否支持 | @@ -389,6 +406,7 @@ ret_t input_method_update_action_button_info (input_method_t* im, char* text, bo >

软键盘的上的action按钮文本。 + * 类型:bool\_t | 特性 | 是否支持 | @@ -400,6 +418,7 @@ ret_t input_method_update_action_button_info (input_method_t* im, char* text, bo >

当前输入的类型。 + * 类型:input\_type\_t | 特性 | 是否支持 | diff --git a/docs/manual/input_type_t.md b/docs/manual/input_type_t.md index 0513561c20..1235e80955 100644 --- a/docs/manual/input_type_t.md +++ b/docs/manual/input_type_t.md @@ -1,6 +1,7 @@ ## input\_type\_t ### 概述 输入类型常量定义。 + ### 常量

diff --git a/docs/manual/key_code_t.md b/docs/manual/key_code_t.md index bff242b041..23648f8d86 100644 --- a/docs/manual/key_code_t.md +++ b/docs/manual/key_code_t.md @@ -1,6 +1,7 @@ ## key\_code\_t ### 概述 key code。 + ### 常量

diff --git a/docs/manual/key_event_t.md b/docs/manual/key_event_t.md index b1569bcfee..474ba1b2a4 100644 --- a/docs/manual/key_event_t.md +++ b/docs/manual/key_event_t.md @@ -4,6 +4,7 @@ 按键事件。 + ---------------------------------- ### 函数

@@ -39,6 +40,7 @@ + * 函数原型: ``` @@ -60,6 +62,7 @@ key_event_t* key_event_cast (event_t* event); + * 函数原型: ``` @@ -80,6 +83,7 @@ event_t* key_event_init (key_event_t* event, void* target, uint32_t type, int32_ >

alt键是否按下。 + * 类型:bool\_t | 特性 | 是否支持 | @@ -92,6 +96,7 @@ event_t* key_event_init (key_event_t* event, void* target, uint32_t type, int32_ >

capslock键是否按下。 + * 类型:bool\_t | 特性 | 是否支持 | @@ -105,6 +110,7 @@ event_t* key_event_init (key_event_t* event, void* target, uint32_t type, int32_ cmd/win键是否按下。 + * 类型:bool\_t | 特性 | 是否支持 | @@ -118,6 +124,7 @@ event_t* key_event_init (key_event_t* event, void* target, uint32_t type, int32_ ctrl键是否按下。 + * 类型:bool\_t | 特性 | 是否支持 | @@ -130,6 +137,7 @@ event_t* key_event_init (key_event_t* event, void* target, uint32_t type, int32_ >

键值。 + * 类型:uint32\_t | 特性 | 是否支持 | @@ -142,6 +150,7 @@ event_t* key_event_init (key_event_t* event, void* target, uint32_t type, int32_ >

left alt键是否按下。 + * 类型:bool\_t | 特性 | 是否支持 | @@ -154,6 +163,7 @@ event_t* key_event_init (key_event_t* event, void* target, uint32_t type, int32_ >

left ctrl键是否按下。 + * 类型:bool\_t | 特性 | 是否支持 | @@ -166,6 +176,7 @@ event_t* key_event_init (key_event_t* event, void* target, uint32_t type, int32_ >

left shift键是否按下。 + * 类型:bool\_t | 特性 | 是否支持 | @@ -178,6 +189,7 @@ event_t* key_event_init (key_event_t* event, void* target, uint32_t type, int32_ >

menu键是否按下。 + * 类型:bool\_t | 特性 | 是否支持 | @@ -190,6 +202,7 @@ event_t* key_event_init (key_event_t* event, void* target, uint32_t type, int32_ >

right alt键是否按下。 + * 类型:bool\_t | 特性 | 是否支持 | @@ -202,6 +215,7 @@ event_t* key_event_init (key_event_t* event, void* target, uint32_t type, int32_ >

right ctrl键是否按下。 + * 类型:bool\_t | 特性 | 是否支持 | @@ -214,6 +228,7 @@ event_t* key_event_init (key_event_t* event, void* target, uint32_t type, int32_ >

right shift键是否按下。 + * 类型:bool\_t | 特性 | 是否支持 | @@ -226,6 +241,7 @@ event_t* key_event_init (key_event_t* event, void* target, uint32_t type, int32_ >

shift键是否按下。 + * 类型:bool\_t | 特性 | 是否支持 | diff --git a/docs/manual/line_number_t.md b/docs/manual/line_number_t.md index eff8ed5f6c..6c02229a07 100644 --- a/docs/manual/line_number_t.md +++ b/docs/manual/line_number_t.md @@ -35,6 +35,7 @@ https://github.com/zlgopen/awtk/blob/master/demos/assets/raw/ui/mledit.xml) https://github.com/zlgopen/awtk/blob/master/demos/assets/raw/styles/default.xml#L556) + ---------------------------------- ### 函数

@@ -56,6 +57,7 @@ https://github.com/zlgopen/awtk/blob/master/demos/assets/raw/styles/default.xml# + * 函数原型: ``` @@ -77,6 +79,7 @@ widget_t* line_number_cast (widget_t* widget); + * 函数原型: ``` @@ -102,6 +105,7 @@ widget_t* line_number_create (widget_t* parent, xy_t x, xy_t y, wh_t w, wh_t h); + * 函数原型: ``` @@ -124,6 +128,7 @@ ret_t line_number_set_bottom_margin (widget_t* widget, int32_t bottom_margin); + * 函数原型: ``` @@ -146,6 +151,7 @@ ret_t line_number_set_line_height (widget_t* widget, int32_t line_height); + * 函数原型: ``` @@ -168,6 +174,7 @@ ret_t line_number_set_top_margin (widget_t* widget, int32_t top_margin); + * 函数原型: ``` diff --git a/docs/manual/locale_info_t.md b/docs/manual/locale_info_t.md index 5375f1cc07..ef9d137924 100644 --- a/docs/manual/locale_info_t.md +++ b/docs/manual/locale_info_t.md @@ -3,6 +3,7 @@ 本地化信息。提供字符串翻译数据管理,当前语言改变的事件通知等等。 + ---------------------------------- ### 函数

@@ -34,6 +35,7 @@ + * 函数原型: ``` @@ -54,6 +56,7 @@ locale_info_t* locale_info (); + * 函数原型: ``` @@ -77,6 +80,7 @@ ret_t locale_info_change (locale_info_t* locale_info, char* language, char* coun + * 函数原型: ``` @@ -99,6 +103,7 @@ locale_info_t* locale_info_create (char* language, char* country); + * 函数原型: ``` @@ -120,6 +125,7 @@ ret_t locale_info_destroy (locale_info_t* locale_info); + * 函数原型: ``` @@ -142,6 +148,7 @@ ret_t locale_info_off (locale_info_t* locale_info, uint32_t id); + * 函数原型: ``` @@ -166,6 +173,7 @@ uint32_t locale_info_on (locale_info_t* locale_info, event_type_t type, event_fu + * 函数原型: ``` @@ -188,6 +196,7 @@ ret_t locale_info_set (locale_info_t* locale_info); + * 函数原型: ``` @@ -210,6 +219,7 @@ ret_t locale_info_set_assets_manager (locale_info_t* locale_info, assets_manager + * 函数原型: ``` @@ -228,6 +238,7 @@ char* locale_info_tr (locale_info_t* locale_info, char* text); >

国家或地区。如:CN + * 类型:char* | 特性 | 是否支持 | @@ -239,6 +250,7 @@ char* locale_info_tr (locale_info_t* locale_info, char* text); >

语言。如:zh + * 类型:char* | 特性 | 是否支持 | diff --git a/docs/manual/mledit_t.md b/docs/manual/mledit_t.md index c25a991d68..1d63224fe4 100644 --- a/docs/manual/mledit_t.md +++ b/docs/manual/mledit_t.md @@ -27,6 +27,7 @@ time\_clock一般不需要设置style。 + ---------------------------------- ### 函数

@@ -69,6 +70,7 @@ + * 函数原型: ``` @@ -90,6 +92,7 @@ widget_t* mledit_cast (widget_t* widget); + * 函数原型: ``` @@ -115,6 +118,7 @@ widget_t* mledit_create (widget_t* parent, xy_t x, xy_t y, wh_t w, wh_t h); + * 函数原型: ``` @@ -137,6 +141,7 @@ ret_t mledit_set_focus (widget_t* widget, bool_t focus); + * 函数原型: ``` @@ -159,6 +164,7 @@ ret_t mledit_set_input_tips (widget_t* widget, char* tips); + * 函数原型: ``` @@ -181,6 +187,7 @@ ret_t mledit_set_max_lines (widget_t* widget, uint32_t max_lines); + * 函数原型: ``` @@ -203,6 +210,7 @@ ret_t mledit_set_readonly (widget_t* widget, bool_t readonly); + * 函数原型: ``` @@ -221,6 +229,7 @@ ret_t mledit_set_wrap_word (widget_t* widget, bool_t wrap_word); >

下边距。 + * 类型:uint8\_t | 特性 | 是否支持 | @@ -235,6 +244,7 @@ ret_t mledit_set_wrap_word (widget_t* widget, bool_t wrap_word); >

左边距。 + * 类型:uint8\_t | 特性 | 是否支持 | @@ -249,6 +259,7 @@ ret_t mledit_set_wrap_word (widget_t* widget, bool_t wrap_word); >

最大行数。 + * 类型:uint32\_t | 特性 | 是否支持 | @@ -266,6 +277,7 @@ ret_t mledit_set_wrap_word (widget_t* widget, bool_t wrap_word); >

编辑器是否为只读。 + * 类型:bool\_t | 特性 | 是否支持 | @@ -283,6 +295,7 @@ ret_t mledit_set_wrap_word (widget_t* widget, bool_t wrap_word); >

右边距。 + * 类型:uint8\_t | 特性 | 是否支持 | @@ -297,6 +310,7 @@ ret_t mledit_set_wrap_word (widget_t* widget, bool_t wrap_word); >

输入提示。 + * 类型:char* | 特性 | 是否支持 | @@ -314,6 +328,7 @@ ret_t mledit_set_wrap_word (widget_t* widget, bool_t wrap_word); >

上边距。 + * 类型:uint8\_t | 特性 | 是否支持 | @@ -328,6 +343,7 @@ ret_t mledit_set_wrap_word (widget_t* widget, bool_t wrap_word); >

是否自动折行。 + * 类型:bool\_t | 特性 | 是否支持 | diff --git a/docs/manual/named_value_t.md b/docs/manual/named_value_t.md index d0a828e6a5..1f71805411 100644 --- a/docs/manual/named_value_t.md +++ b/docs/manual/named_value_t.md @@ -3,6 +3,7 @@ 命名的值。 + ---------------------------------- ### 函数

@@ -35,6 +36,7 @@ + * 函数原型: ``` @@ -57,6 +59,7 @@ named_value_t* named_value_cast (named_value_t* nv); + * 函数原型: ``` @@ -79,6 +82,7 @@ named_value_t* named_value_create (); + * 函数原型: ``` @@ -102,6 +106,7 @@ ret_t named_value_deinit (named_value_t* nv); + * 函数原型: ``` @@ -126,6 +131,7 @@ ret_t named_value_destroy (named_value_t* nv); + * 函数原型: ``` @@ -149,6 +155,7 @@ value_t* named_value_get_value (named_value_t* nv); + * 函数原型: ``` @@ -174,6 +181,7 @@ ret_t named_value_init (named_value_t* nv, const char* name, const value_t* valu + * 函数原型: ``` @@ -198,6 +206,7 @@ ret_t named_value_set_name (named_value_t* nv, const char* name); + * 函数原型: ``` @@ -216,6 +225,7 @@ ret_t named_value_set_value (named_value_t* nv, const value_t* value); >

名称。 + * 类型:char* | 特性 | 是否支持 | @@ -228,6 +238,7 @@ ret_t named_value_set_value (named_value_t* nv, const value_t* value); >

值。 + * 类型:value\_t | 特性 | 是否支持 | diff --git a/docs/manual/native_window_t.md b/docs/manual/native_window_t.md index 32e4c30927..ac8d6a5f6e 100644 --- a/docs/manual/native_window_t.md +++ b/docs/manual/native_window_t.md @@ -5,6 +5,7 @@ 原生窗口。 + ---------------------------------- ### 函数

@@ -25,6 +26,7 @@ + * 函数原型: ``` @@ -47,6 +49,7 @@ native_window_t* native_window_create (const char* params); + * 函数原型: ``` @@ -68,6 +71,7 @@ canvas_t native_window_get_canvas (native_window_t* win); + * 函数原型: ``` @@ -91,6 +95,7 @@ ret_t native_window_invalidate (native_window_t* win, rect_t* r); + * 函数原型: ``` @@ -116,6 +121,7 @@ ret_t native_window_move (native_window_t* win, xy_t x, xy_t y, bool_t force); + * 函数原型: ``` diff --git a/docs/manual/object_array_t.md b/docs/manual/object_array_t.md index 94245a6259..f1ab75e0c0 100644 --- a/docs/manual/object_array_t.md +++ b/docs/manual/object_array_t.md @@ -11,6 +11,7 @@ * index 用于访问属性,-1可以用来追加新元素。 + ---------------------------------- ### 函数

@@ -41,6 +42,7 @@ + * 函数原型: ``` @@ -65,6 +67,7 @@ ret_t object_array_clear_props (object_t* obj); + * 函数原型: ``` @@ -88,6 +91,7 @@ object_t* object_array_create (); + * 函数原型: ``` @@ -112,6 +116,7 @@ object_t* object_array_create (object_array_t* o); + * 函数原型: ``` @@ -130,6 +135,7 @@ ret_t object_array_unref (object_t* obj); + * 类型:value\_t | 特性 | 是否支持 | @@ -142,6 +148,7 @@ ret_t object_array_unref (object_t* obj); + * 类型:uint32\_t | 特性 | 是否支持 | @@ -154,6 +161,7 @@ ret_t object_array_unref (object_t* obj); + * 类型:uint32\_t | 特性 | 是否支持 | diff --git a/docs/manual/object_default_t.md b/docs/manual/object_default_t.md index e30288786c..cfa2b5a1b3 100644 --- a/docs/manual/object_default_t.md +++ b/docs/manual/object_default_t.md @@ -8,6 +8,7 @@ 内部使用有序数组保存所有属性,可以快速查找指定名称的属性。 + ---------------------------------- ### 函数

@@ -39,6 +40,7 @@ + * 函数原型: ``` @@ -63,6 +65,7 @@ ret_t object_default_clear_props (object_t* obj); + * 函数原型: ``` @@ -86,6 +89,7 @@ object_t* object_default_create (); + * 函数原型: ``` @@ -110,6 +114,7 @@ object_t* object_default_create (object_default_t* o); + * 函数原型: ``` @@ -136,6 +141,7 @@ value_t* object_default_find_prop (object_t* obj, tk_compare_t cmp, const void* + * 函数原型: ``` @@ -154,6 +160,7 @@ ret_t object_default_unref (object_t* obj); + * 类型:named\_value\_t | 特性 | 是否支持 | @@ -166,6 +173,7 @@ ret_t object_default_unref (object_t* obj); + * 类型:uint32\_t | 特性 | 是否支持 | @@ -178,6 +186,7 @@ ret_t object_default_unref (object_t* obj); + * 类型:uint32\_t | 特性 | 是否支持 | diff --git a/docs/manual/object_t.md b/docs/manual/object_t.md index c5ac0d09f5..c5cee95a0e 100644 --- a/docs/manual/object_t.md +++ b/docs/manual/object_t.md @@ -6,6 +6,7 @@ 对象接口。 + ---------------------------------- ### 函数

@@ -67,6 +68,7 @@ + * 函数原型: ``` @@ -91,6 +93,7 @@ bool_t object_can_exec (object_t* obj, const char* name, const char* args); + * 函数原型: ``` @@ -114,6 +117,7 @@ int object_compare (object_t* obj, object_t* other); + * 函数原型: ``` @@ -140,6 +144,7 @@ ret_t object_copy_prop (object_t* obj, object_t* src, const char* name); + * 函数原型: ``` @@ -162,6 +167,7 @@ ret_t object_create (const object_vtable_t* vt); + * 函数原型: ``` @@ -185,6 +191,7 @@ ret_t object_eval (object_t* obj, const char* expr, value_t* v); + * 函数原型: ``` @@ -209,6 +216,7 @@ ret_t object_exec (object_t* obj, const char* name, const char* args); + * 函数原型: ``` @@ -233,6 +241,7 @@ ret_t object_foreach_prop (object_t* obj, tk_visit_t on_prop, void* ctx); + * 函数原型: ``` @@ -255,6 +264,7 @@ const char* object_get_desc (object_t* obj); + * 函数原型: ``` @@ -279,6 +289,7 @@ ret_t object_get_prop (object_t* obj, const char* name, value_t* v); + * 函数原型: ``` @@ -303,6 +314,7 @@ bool_t object_get_prop_bool (object_t* obj, const char* name, bool_t defval); + * 函数原型: ``` @@ -327,6 +339,7 @@ bool_t object_get_prop_bool_by_path (object_t* obj, const char* path, bool_t def + * 函数原型: ``` @@ -351,6 +364,7 @@ ret_t object_get_prop_by_path (object_t* obj, const char* path, value_t* v); + * 函数原型: ``` @@ -375,6 +389,7 @@ float_t object_get_prop_float (object_t* obj, const char* name, float_t defval); + * 函数原型: ``` @@ -399,6 +414,7 @@ float_t object_get_prop_float_by_path (object_t* obj, const char* path, float_t + * 函数原型: ``` @@ -423,6 +439,7 @@ int32_t object_get_prop_int (object_t* obj, const char* name, int32_t defval); + * 函数原型: ``` @@ -447,6 +464,7 @@ int32_t object_get_prop_int_by_path (object_t* obj, const char* path, int32_t de + * 函数原型: ``` @@ -470,6 +488,7 @@ object_t* object_get_prop_object (object_t* obj, const char* name); + * 函数原型: ``` @@ -493,6 +512,7 @@ object_t* object_get_prop_object_by_path (object_t* obj, const char* path); + * 函数原型: ``` @@ -516,6 +536,7 @@ void* object_get_prop_pointer (object_t* obj, const char* name); + * 函数原型: ``` @@ -539,6 +560,7 @@ void* object_get_prop_pointer_by_path (object_t* obj, const char* path); + * 函数原型: ``` @@ -562,6 +584,7 @@ const char* object_get_prop_str (object_t* obj, const char* name); + * 函数原型: ``` @@ -585,6 +608,7 @@ const char* object_get_prop_str_by_path (object_t* obj, const char* path); + * 函数原型: ``` @@ -607,6 +631,7 @@ uint32_t object_get_size (object_t* obj); + * 函数原型: ``` @@ -629,6 +654,7 @@ const char* object_get_type (object_t* obj); + * 函数原型: ``` @@ -652,6 +678,7 @@ bool_t object_has_prop (object_t* obj, const char* name); + * 函数原型: ``` @@ -674,6 +701,7 @@ bool_t object_is_collection (object_t* obj); + * 函数原型: ``` @@ -696,6 +724,7 @@ ret_t object_notify_changed (object_t* obj); + * 函数原型: ``` @@ -718,6 +747,7 @@ object_t* object_ref (object_t* obj); + * 函数原型: ``` @@ -741,6 +771,7 @@ ret_t object_remove_prop (object_t* obj, const char* name); + * 函数原型: ``` @@ -764,6 +795,7 @@ ret_t object_set_name (object_t* obj, const char* name); + * 函数原型: ``` @@ -788,6 +820,7 @@ ret_t object_set_prop (object_t* obj, const char* name, value_t* value); + * 函数原型: ``` @@ -812,6 +845,7 @@ ret_t object_set_prop_bool (object_t* obj, const char* name, bool_t value); + * 函数原型: ``` @@ -836,6 +870,7 @@ ret_t object_set_prop_float (object_t* obj, const char* name, float_t value); + * 函数原型: ``` @@ -860,6 +895,7 @@ ret_t object_set_prop_int (object_t* obj, const char* name, int32_t value); + * 函数原型: ``` @@ -884,6 +920,7 @@ ret_t object_set_prop_object (object_t* obj, const char* name, object_t* value); + * 函数原型: ``` @@ -908,6 +945,7 @@ ret_t object_set_prop_pointer (object_t* obj, const char* name, void* value); + * 函数原型: ``` @@ -932,6 +970,7 @@ ret_t object_set_prop_str (object_t* obj, const char* name, const char* value); + * 函数原型: ``` @@ -949,6 +988,7 @@ ret_t object_unref (object_t* obj); >

对象的名称。 + * 类型:char* | 特性 | 是否支持 | @@ -961,6 +1001,7 @@ ret_t object_unref (object_t* obj); >

引用计数。 + * 类型:int32\_t | 特性 | 是否支持 | diff --git a/docs/manual/orientation_event_t.md b/docs/manual/orientation_event_t.md index c4a8acf008..9d107a6b09 100644 --- a/docs/manual/orientation_event_t.md +++ b/docs/manual/orientation_event_t.md @@ -4,6 +4,7 @@ 滚轮事件。 + ---------------------------------- ### 函数

@@ -27,6 +28,7 @@ + * 函数原型: ``` @@ -48,6 +50,7 @@ orientation_event_t* orientation_event_cast (event_t* event); + * 函数原型: ``` @@ -68,6 +71,7 @@ event_t* orientation_event_init (orientation_event_t* event, void* target, uint3 >

屏幕方向。 + * 类型:int32\_t | 特性 | 是否支持 | diff --git a/docs/manual/overlay_t.md b/docs/manual/overlay_t.md index ac97664a3c..2d5f17daa5 100644 --- a/docs/manual/overlay_t.md +++ b/docs/manual/overlay_t.md @@ -41,6 +41,7 @@ > 更多用法请参考:[theme default](https://github.com/zlgopen/awtk/blob/master/demos/assets/raw/styles/default.xml#L0) + ---------------------------------- ### 函数

@@ -58,6 +59,7 @@ + * 函数原型: ``` @@ -79,6 +81,7 @@ widget_t* overlay_cast (widget_t* widget); + * 函数原型: ``` diff --git a/docs/manual/paint_event_t.md b/docs/manual/paint_event_t.md index c90db887f4..c619fe92ac 100644 --- a/docs/manual/paint_event_t.md +++ b/docs/manual/paint_event_t.md @@ -4,6 +4,7 @@ 绘制事件。 + ---------------------------------- ### 函数

@@ -27,6 +28,7 @@ + * 函数原型: ``` @@ -48,6 +50,7 @@ paint_event_t* paint_event_cast (event_t* event); + * 函数原型: ``` @@ -68,6 +71,7 @@ event_t* paint_event_init (paint_event_t* event, void* target, uint32_t type, ca >

canvas。 + * 类型:canvas\_t* | 特性 | 是否支持 | diff --git a/docs/manual/point_t.md b/docs/manual/point_t.md index b9132d26ec..863e342ddb 100644 --- a/docs/manual/point_t.md +++ b/docs/manual/point_t.md @@ -2,6 +2,7 @@ ### 概述 点。包括一个x坐标和一个y坐标。 + ---------------------------------- ### 属性

@@ -15,6 +16,7 @@ >

x坐标。 + * 类型:xy\_t | 特性 | 是否支持 | @@ -26,6 +28,7 @@ >

y坐标。 + * 类型:xy\_t | 特性 | 是否支持 | diff --git a/docs/manual/pointer_event_t.md b/docs/manual/pointer_event_t.md index e9d05cb134..66ace4e7d5 100644 --- a/docs/manual/pointer_event_t.md +++ b/docs/manual/pointer_event_t.md @@ -4,6 +4,7 @@ 指针事件。 + ---------------------------------- ### 函数

@@ -35,6 +36,7 @@ + * 函数原型: ``` @@ -56,6 +58,7 @@ pointer_event_t* pointer_event_cast (event_t* event); + * 函数原型: ``` @@ -77,6 +80,7 @@ event_t* pointer_event_init (pointer_event_t* event, void* target, uint32_t type >

alt键是否按下。 + * 类型:bool\_t | 特性 | 是否支持 | @@ -89,6 +93,7 @@ event_t* pointer_event_init (pointer_event_t* event, void* target, uint32_t type >

button。 + * 类型:uint8\_t | 特性 | 是否支持 | @@ -101,6 +106,7 @@ event_t* pointer_event_init (pointer_event_t* event, void* target, uint32_t type >

cmd键是否按下。 + * 类型:bool\_t | 特性 | 是否支持 | @@ -113,6 +119,7 @@ event_t* pointer_event_init (pointer_event_t* event, void* target, uint32_t type >

ctrl键是否按下。 + * 类型:bool\_t | 特性 | 是否支持 | @@ -125,6 +132,7 @@ event_t* pointer_event_init (pointer_event_t* event, void* target, uint32_t type >

menu键是否按下。 + * 类型:bool\_t | 特性 | 是否支持 | @@ -137,6 +145,7 @@ event_t* pointer_event_init (pointer_event_t* event, void* target, uint32_t type >

指针是否按下。 + * 类型:bool\_t | 特性 | 是否支持 | @@ -149,6 +158,7 @@ event_t* pointer_event_init (pointer_event_t* event, void* target, uint32_t type >

shift键是否按下。 + * 类型:bool\_t | 特性 | 是否支持 | @@ -161,6 +171,7 @@ event_t* pointer_event_init (pointer_event_t* event, void* target, uint32_t type >

x坐标。 + * 类型:xy\_t | 特性 | 是否支持 | @@ -173,6 +184,7 @@ event_t* pointer_event_init (pointer_event_t* event, void* target, uint32_t type >

y坐标。 + * 类型:xy\_t | 特性 | 是否支持 | diff --git a/docs/manual/preload_res_t.md b/docs/manual/preload_res_t.md index 02ffc28089..0695b17a92 100644 --- a/docs/manual/preload_res_t.md +++ b/docs/manual/preload_res_t.md @@ -2,4 +2,5 @@ ### 概述 预加载资源的描述信息。 + ---------------------------------- diff --git a/docs/manual/prop_change_event_t.md b/docs/manual/prop_change_event_t.md index 8795bbeead..7823b856f3 100644 --- a/docs/manual/prop_change_event_t.md +++ b/docs/manual/prop_change_event_t.md @@ -4,6 +4,7 @@ 对象属性变化事件。 + ---------------------------------- ### 函数

@@ -27,6 +28,7 @@ + * 函数原型: ``` @@ -44,6 +46,7 @@ prop_change_event_t* prop_change_event_cast (event_t* event); >

属性的名称。 + * 类型:const char* | 特性 | 是否支持 | @@ -56,6 +59,7 @@ prop_change_event_t* prop_change_event_cast (event_t* event); >

属性的值。 + * 类型:const value\_t* | 特性 | 是否支持 | diff --git a/docs/manual/prop_desc_flags_t.md b/docs/manual/prop_desc_flags_t.md index 9acbe76049..2ecc7edad8 100644 --- a/docs/manual/prop_desc_flags_t.md +++ b/docs/manual/prop_desc_flags_t.md @@ -1,6 +1,7 @@ ## prop\_desc\_flags\_t ### 概述 属性描述范围常量定义。 + ### 常量

diff --git a/docs/manual/rbuffer_t.md b/docs/manual/rbuffer_t.md index 031bc032cc..500eb84382 100644 --- a/docs/manual/rbuffer_t.md +++ b/docs/manual/rbuffer_t.md @@ -17,6 +17,7 @@ rbuffer_read_string(&rbuffer, &str); ``` + ---------------------------------- ### 函数

@@ -52,6 +53,7 @@ + * 函数原型: ``` @@ -73,6 +75,7 @@ bool_t rbuffer_has_more (rbuffer_t* rbuffer); + * 函数原型: ``` @@ -96,6 +99,7 @@ rbuffer_t* rbuffer_init (rbuffer_t* rbuffer, uint8_t* data, uint16_t capacity); + * 函数原型: ``` @@ -118,6 +122,7 @@ ret_t rbuffer_peek_uint16 (rbuffer_t* rbuffer, uint16_t* value); + * 函数原型: ``` @@ -140,6 +145,7 @@ ret_t rbuffer_peek_uint32 (rbuffer_t* rbuffer, uint32_t* value); + * 函数原型: ``` @@ -162,6 +168,7 @@ ret_t rbuffer_peek_uint8 (rbuffer_t* rbuffer, uint8_t* value); + * 函数原型: ``` @@ -185,6 +192,7 @@ ret_t rbuffer_read_binary (rbuffer_t* rbuffer, void* data, uint32_t size); + * 函数原型: ``` @@ -207,6 +215,7 @@ ret_t rbuffer_read_float (rbuffer_t* rbuffer, float_t* value); + * 函数原型: ``` @@ -229,6 +238,7 @@ ret_t rbuffer_read_string (rbuffer_t* rbuffer, char** str); + * 函数原型: ``` @@ -251,6 +261,7 @@ ret_t rbuffer_read_uint16 (rbuffer_t* rbuffer, uint16_t* value); + * 函数原型: ``` @@ -273,6 +284,7 @@ ret_t rbuffer_read_uint32 (rbuffer_t* rbuffer, uint32_t* value); + * 函数原型: ``` @@ -295,6 +307,7 @@ ret_t rbuffer_read_uint8 (rbuffer_t* rbuffer, uint8_t* value); + * 函数原型: ``` @@ -313,6 +326,7 @@ ret_t rbuffer_skip (rbuffer_t* rbuffer, int32_t offset); >

缓存区最大容量。 + * 类型:uint32\_t | 特性 | 是否支持 | @@ -324,6 +338,7 @@ ret_t rbuffer_skip (rbuffer_t* rbuffer, int32_t offset); >

当前读取位置。 + * 类型:uint32\_t | 特性 | 是否支持 | @@ -335,6 +350,7 @@ ret_t rbuffer_skip (rbuffer_t* rbuffer, int32_t offset); >

缓存区。 + * 类型:uint8\_t* | 特性 | 是否支持 | diff --git a/docs/manual/rect_t.md b/docs/manual/rect_t.md index abe97ab1b7..37b1bc9301 100644 --- a/docs/manual/rect_t.md +++ b/docs/manual/rect_t.md @@ -2,6 +2,7 @@ ### 概述 矩形。包括一个x坐标、y坐标、宽度和高度。 + ---------------------------------- ### 函数

@@ -32,6 +33,7 @@ + * 函数原型: ``` @@ -56,6 +58,7 @@ rect_t* rect_cast (rect_t* rect); + * 函数原型: ``` @@ -83,6 +86,7 @@ rect_t* rect_create (xy_t x, xy_t y, wh_t w, wh_t h); + * 函数原型: ``` @@ -107,6 +111,7 @@ ret_t rect_destroy (rect_t* r); + * 函数原型: ``` @@ -128,6 +133,7 @@ rect_t* rect_set (rect_t* rect, xy_t x, xy_t y, wh_t w, wh_t h); >

高度。 + * 类型:wh\_t | 特性 | 是否支持 | @@ -140,6 +146,7 @@ rect_t* rect_set (rect_t* rect, xy_t x, xy_t y, wh_t w, wh_t h); >

宽度。 + * 类型:wh\_t | 特性 | 是否支持 | @@ -152,6 +159,7 @@ rect_t* rect_set (rect_t* rect, xy_t x, xy_t y, wh_t w, wh_t h); >

x坐标。 + * 类型:xy\_t | 特性 | 是否支持 | @@ -164,6 +172,7 @@ rect_t* rect_set (rect_t* rect, xy_t x, xy_t y, wh_t w, wh_t h); >

y坐标。 + * 类型:xy\_t | 特性 | 是否支持 | diff --git a/docs/manual/rgba_t.md b/docs/manual/rgba_t.md index caa0be8fd9..312ce7796e 100644 --- a/docs/manual/rgba_t.md +++ b/docs/manual/rgba_t.md @@ -3,6 +3,7 @@ 颜色的四个通道。 + ---------------------------------- ### 属性

@@ -18,6 +19,7 @@ >

alpha。 + * 类型:uint8\_t | 特性 | 是否支持 | @@ -29,6 +31,7 @@ >

蓝色。 + * 类型:uint8\_t | 特性 | 是否支持 | @@ -40,6 +43,7 @@ >

绿色。 + * 类型:uint8\_t | 特性 | 是否支持 | @@ -51,6 +55,7 @@ >

红色。 + * 类型:uint8\_t | 特性 | 是否支持 | diff --git a/docs/manual/rich_text_t.md b/docs/manual/rich_text_t.md index 62685d446f..34923d706b 100644 --- a/docs/manual/rich_text_t.md +++ b/docs/manual/rich_text_t.md @@ -52,6 +52,7 @@ * underline 下划线(暂不支持) + ---------------------------------- ### 函数

@@ -76,6 +77,7 @@ + * 函数原型: ``` @@ -97,6 +99,7 @@ widget_t* rich_text_cast (widget_t* widget); + * 函数原型: ``` @@ -122,6 +125,7 @@ widget_t* rich_text_create (widget_t* parent, xy_t x, xy_t y, wh_t w, wh_t h); + * 函数原型: ``` @@ -140,6 +144,7 @@ ret_t rich_text_set_text (widget_t* widget, char* text); >

行间距。 + * 类型:int32\_t | 特性 | 是否支持 | diff --git a/docs/manual/ring_buffer_t.md b/docs/manual/ring_buffer_t.md index 925207d1e8..da469e7426 100644 --- a/docs/manual/ring_buffer_t.md +++ b/docs/manual/ring_buffer_t.md @@ -2,6 +2,7 @@ ### 概述 循环缓存区。 + ---------------------------------- ### 函数

@@ -46,6 +47,7 @@ + * 函数原型: ``` @@ -68,6 +70,7 @@ uint32_t ring_buffer_capacity (ring_buffer_t* ring_buffer); + * 函数原型: ``` @@ -91,6 +94,7 @@ ring_buffer_t* ring_buffer_create (uint32_t init_capacity, uint32_t max_capacity + * 函数原型: ``` @@ -113,6 +117,7 @@ ret_t ring_buffer_destroy (ring_buffer_t* ring_buffer); + * 函数原型: ``` @@ -135,6 +140,7 @@ uint32_t ring_buffer_free_size (ring_buffer_t* ring_buffer); + * 函数原型: ``` @@ -157,6 +163,7 @@ bool_t ring_buffer_is_empty (ring_buffer_t* ring_buffer); + * 函数原型: ``` @@ -179,6 +186,7 @@ bool_t ring_buffer_is_full (ring_buffer_t* ring_buffer); + * 函数原型: ``` @@ -203,6 +211,7 @@ uint32_t ring_buffer_peek (ring_buffer_t* ring_buffer, void* buff, uint32_t size + * 函数原型: ``` @@ -227,6 +236,7 @@ uint32_t ring_buffer_read (ring_buffer_t* ring_buffer, void* buff, uint32_t size + * 函数原型: ``` @@ -251,6 +261,7 @@ ret_t ring_buffer_read_len (ring_buffer_t* ring_buffer, void* buff, uint32_t siz + * 函数原型: ``` @@ -273,6 +284,7 @@ ret_t ring_buffer_reset (ring_buffer_t* ring_buffer); + * 函数原型: ``` @@ -296,6 +308,7 @@ ret_t ring_buffer_set_read_cursor (ring_buffer_t* ring_buffer, uint32_t r); + * 函数原型: ``` @@ -319,6 +332,7 @@ ret_t ring_buffer_set_read_cursor_delta (ring_buffer_t* ring_buffer, uint32_t r_ + * 函数原型: ``` @@ -342,6 +356,7 @@ ret_t ring_buffer_set_write_cursor (ring_buffer_t* ring_buffer, uint32_t w); + * 函数原型: ``` @@ -365,6 +380,7 @@ ret_t ring_buffer_set_write_cursor_delta (ring_buffer_t* ring_buffer, uint32_t w + * 函数原型: ``` @@ -388,6 +404,7 @@ uint32_t ring_buffer_size (ring_buffer_t* ring_buffer); + * 函数原型: ``` @@ -412,6 +429,7 @@ uint32_t ring_buffer_write (ring_buffer_t* ring_buffer, const void* buff, uint32 + * 函数原型: ``` @@ -431,6 +449,7 @@ ret_t ring_buffer_write_len (ring_buffer_t* ring_buffer, const void* buff, uint3 >

当前容量。 + * 类型:uint32\_t | 特性 | 是否支持 | @@ -442,6 +461,7 @@ ret_t ring_buffer_write_len (ring_buffer_t* ring_buffer, const void* buff, uint3 >

数据。 + * 类型:uint8\_t* | 特性 | 是否支持 | @@ -453,6 +473,7 @@ ret_t ring_buffer_write_len (ring_buffer_t* ring_buffer, const void* buff, uint3 >

是否满。 + * 类型:bool\_t | 特性 | 是否支持 | @@ -464,6 +485,7 @@ ret_t ring_buffer_write_len (ring_buffer_t* ring_buffer, const void* buff, uint3 >

最大容量。 + * 类型:uint32\_t | 特性 | 是否支持 | @@ -475,6 +497,7 @@ ret_t ring_buffer_write_len (ring_buffer_t* ring_buffer, const void* buff, uint3 >

读取位置。 + * 类型:uint32\_t | 特性 | 是否支持 | @@ -486,6 +509,7 @@ ret_t ring_buffer_write_len (ring_buffer_t* ring_buffer, const void* buff, uint3 >

写入位置。 + * 类型:uint32\_t | 特性 | 是否支持 | diff --git a/docs/manual/self_layouter_default_t.md b/docs/manual/self_layouter_default_t.md index 551b8cd43e..725ea9fa48 100644 --- a/docs/manual/self_layouter_default_t.md +++ b/docs/manual/self_layouter_default_t.md @@ -9,6 +9,7 @@ https://github.com/zlgopen/awtk/blob/master/docs/self_layouter_default.md) + ---------------------------------- ### 函数

@@ -27,6 +28,7 @@ https://github.com/zlgopen/awtk/blob/master/docs/self_layouter_default.md) + * 函数原型: ``` diff --git a/docs/manual/self_layouter_factory_t.md b/docs/manual/self_layouter_factory_t.md index 44437cb9e3..4578da8af8 100644 --- a/docs/manual/self_layouter_factory_t.md +++ b/docs/manual/self_layouter_factory_t.md @@ -3,6 +3,7 @@ 控件自身布局算法工厂。 + ---------------------------------- ### 函数

@@ -23,6 +24,7 @@ >

获取缺省的控件自身布局算法工厂对象。 + * 函数原型: ``` @@ -43,6 +45,7 @@ self_layouter_factory_t* self_layouter_factory (); + * 函数原型: ``` @@ -63,6 +66,7 @@ self_layouter_factory_t* self_layouter_factory_create (); + * 函数原型: ``` @@ -85,6 +89,7 @@ self_layouter_t* self_layouter_factory_create_layouter (self_layouter_factory_t* + * 函数原型: ``` @@ -106,6 +111,7 @@ ret_t self_layouter_factory_destroy (self_layouter_factory_t* factory); + * 函数原型: ``` @@ -129,6 +135,7 @@ ret_t self_layouter_factory_register (self_layouter_factory_t* factory, const ch + * 函数原型: ``` diff --git a/docs/manual/self_layouter_menu_t.md b/docs/manual/self_layouter_menu_t.md index 654bb1a144..cbe3e1d253 100644 --- a/docs/manual/self_layouter_menu_t.md +++ b/docs/manual/self_layouter_menu_t.md @@ -9,6 +9,7 @@ https://github.com/zlgopen/awtk/blob/master/docs/self_layouter_menu.md) + ---------------------------------- ### 函数

@@ -27,6 +28,7 @@ https://github.com/zlgopen/awtk/blob/master/docs/self_layouter_menu.md) + * 函数原型: ``` diff --git a/docs/manual/self_layouter_t.md b/docs/manual/self_layouter_t.md index 3e7ad7f2f5..d604d0578f 100644 --- a/docs/manual/self_layouter_t.md +++ b/docs/manual/self_layouter_t.md @@ -4,6 +4,7 @@ 按特定算法对控件进行排版布局,子类需要实现vtable中的函数。 + ---------------------------------- ### 函数

@@ -28,6 +29,7 @@ + * 函数原型: ``` @@ -49,6 +51,7 @@ self_layouter_t* self_layouter_create (const char* params); + * 函数原型: ``` @@ -70,6 +73,7 @@ ret_t self_layouter_destroy (self_layouter_t* layouter); + * 函数原型: ``` @@ -93,6 +97,7 @@ ret_t self_layouter_get_param (self_layouter_t* layouter, const char* name, valu + * 函数原型: ``` @@ -116,6 +121,7 @@ ret_t self_layouter_get_param_float (self_layouter_t* layouter, const char* name + * 函数原型: ``` @@ -139,6 +145,7 @@ ret_t self_layouter_get_param_int (self_layouter_t* layouter, const char* name, + * 函数原型: ``` @@ -162,6 +169,7 @@ ret_t self_layouter_layout (self_layouter_t* layouter, widget_t* widget, rect_t* + * 函数原型: ``` @@ -185,6 +193,7 @@ ret_t self_layouter_set_param (self_layouter_t* layouter, const char* name, cons + * 函数原型: ``` @@ -208,6 +217,7 @@ ret_t self_layouter_set_param_str (self_layouter_t* layouter, const char* name, + * 函数原型: ``` diff --git a/docs/manual/shortcut_t.md b/docs/manual/shortcut_t.md index ae4308c00e..2997004a70 100644 --- a/docs/manual/shortcut_t.md +++ b/docs/manual/shortcut_t.md @@ -2,6 +2,7 @@ ### 概述 快捷键。 + ---------------------------------- ### 函数

@@ -39,6 +40,7 @@ + * 函数原型: ``` @@ -61,6 +63,7 @@ bool_t shortcut_equal (shortcut_t* shortcut1, shortcut_t* shortcut2); + * 函数原型: ``` @@ -81,6 +84,7 @@ shortcut_t* shortcut_init (); + * 函数原型: ``` @@ -102,6 +106,7 @@ shortcut_t* shortcut_init_with_str (shortcut_t* shortcut); + * 函数原型: ``` @@ -120,6 +125,7 @@ bool_t shortcut_match (shortcut_t* filter, shortcut_t* event); >

alt键是否按下。 + * 类型:bool\_t | 特性 | 是否支持 | @@ -131,6 +137,7 @@ bool_t shortcut_match (shortcut_t* filter, shortcut_t* event); >

cmd/win键是否按下。 + * 类型:bool\_t | 特性 | 是否支持 | @@ -142,6 +149,7 @@ bool_t shortcut_match (shortcut_t* filter, shortcut_t* event); >

ctrl键是否按下。 + * 类型:bool\_t | 特性 | 是否支持 | @@ -153,6 +161,7 @@ bool_t shortcut_match (shortcut_t* filter, shortcut_t* event); >

是否有效。 + * 类型:bool\_t | 特性 | 是否支持 | @@ -164,6 +173,7 @@ bool_t shortcut_match (shortcut_t* filter, shortcut_t* event); >

键值。 + * 类型:uint32\_t | 特性 | 是否支持 | @@ -175,6 +185,7 @@ bool_t shortcut_match (shortcut_t* filter, shortcut_t* event); >

left alt键是否按下。 + * 类型:bool\_t | 特性 | 是否支持 | @@ -186,6 +197,7 @@ bool_t shortcut_match (shortcut_t* filter, shortcut_t* event); >

left ctrl键是否按下。 + * 类型:bool\_t | 特性 | 是否支持 | @@ -197,6 +209,7 @@ bool_t shortcut_match (shortcut_t* filter, shortcut_t* event); >

left shift键是否按下。 + * 类型:bool\_t | 特性 | 是否支持 | @@ -208,6 +221,7 @@ bool_t shortcut_match (shortcut_t* filter, shortcut_t* event); >

menu键是否按下。 + * 类型:bool\_t | 特性 | 是否支持 | @@ -219,6 +233,7 @@ bool_t shortcut_match (shortcut_t* filter, shortcut_t* event); >

right alt键是否按下。 + * 类型:bool\_t | 特性 | 是否支持 | @@ -230,6 +245,7 @@ bool_t shortcut_match (shortcut_t* filter, shortcut_t* event); >

right ctrl键是否按下。 + * 类型:bool\_t | 特性 | 是否支持 | @@ -241,6 +257,7 @@ bool_t shortcut_match (shortcut_t* filter, shortcut_t* event); >

right shift键是否按下。 + * 类型:bool\_t | 特性 | 是否支持 | @@ -252,6 +269,7 @@ bool_t shortcut_match (shortcut_t* filter, shortcut_t* event); >

shift键是否按下。 + * 类型:bool\_t | 特性 | 是否支持 | diff --git a/docs/manual/slide_indicator_t.md b/docs/manual/slide_indicator_t.md index 8e77b401dd..a70280903e 100644 --- a/docs/manual/slide_indicator_t.md +++ b/docs/manual/slide_indicator_t.md @@ -36,6 +36,7 @@ https://github.com/zlgopen/awtk/blob/master/demos/assets/raw/ui/slide_view.xml) https://github.com/zlgopen/awtk/blob/master/demos/assets/raw/styles/default.xml#L350) + ---------------------------------- ### 函数

@@ -79,6 +80,7 @@ https://github.com/zlgopen/awtk/blob/master/demos/assets/raw/styles/default.xml# + * 函数原型: ``` @@ -100,6 +102,7 @@ widget_t* slide_indicator_cast (widget_t* widget); + * 函数原型: ``` @@ -125,6 +128,7 @@ widget_t* slide_indicator_create (widget_t* parent, xy_t x, xy_t y, wh_t w, wh_t + * 函数原型: ``` @@ -150,6 +154,7 @@ widget_t* slide_indicator_create_arc (widget_t* parent, xy_t x, xy_t y, wh_t w, + * 函数原型: ``` @@ -175,6 +180,7 @@ widget_t* slide_indicator_create_linear (widget_t* parent, xy_t x, xy_t y, wh_t + * 函数原型: ``` @@ -198,6 +204,7 @@ ret_t slide_indicator_set_anchor (widget_t* widget, const char* anchor_x, const + * 函数原型: ``` @@ -220,6 +227,7 @@ ret_t slide_indicator_set_auto_hide (widget_t* widget, uint16_t auto_hide); + * 函数原型: ``` @@ -242,6 +250,7 @@ ret_t slide_indicator_set_default_paint (widget_t* widget, indicator_default_pai + * 函数原型: ``` @@ -264,6 +273,7 @@ ret_t slide_indicator_set_indicated_target (widget_t* widget, const char* indica + * 函数原型: ``` @@ -286,6 +296,7 @@ ret_t slide_indicator_set_margin (widget_t* widget, int32_t margin); + * 函数原型: ``` @@ -308,6 +319,7 @@ ret_t slide_indicator_set_max (widget_t* widget, uint32_t max); + * 函数原型: ``` @@ -330,6 +342,7 @@ ret_t slide_indicator_set_size (widget_t* widget, uint32_t size); + * 函数原型: ``` @@ -352,6 +365,7 @@ ret_t slide_indicator_set_spacing (widget_t* widget, float_t spacing); + * 函数原型: ``` @@ -370,6 +384,7 @@ ret_t slide_indicator_set_value (widget_t* widget, uint32_t value); >

锚点x坐标。 + * 类型:float\_t | 特性 | 是否支持 | @@ -387,6 +402,7 @@ ret_t slide_indicator_set_value (widget_t* widget, uint32_t value); >

锚点y坐标。 + * 类型:float\_t | 特性 | 是否支持 | @@ -404,6 +420,7 @@ ret_t slide_indicator_set_value (widget_t* widget, uint32_t value); >

自动隐藏。0表示禁止,非0表示无操作后延迟多久隐藏。 + * 类型:uint16\_t | 特性 | 是否支持 | @@ -421,6 +438,7 @@ ret_t slide_indicator_set_value (widget_t* widget, uint32_t value); >

指示器的类型。 + * 类型:indicator\_default\_paint\_t | 特性 | 是否支持 | @@ -438,6 +456,7 @@ ret_t slide_indicator_set_value (widget_t* widget, uint32_t value); >

指示器指示的目标。 + * 类型:char* | 特性 | 是否支持 | @@ -455,6 +474,7 @@ ret_t slide_indicator_set_value (widget_t* widget, uint32_t value); >

指示器与边缘的边距。 + * 类型:int32\_t | 特性 | 是否支持 | @@ -472,6 +492,7 @@ ret_t slide_indicator_set_value (widget_t* widget, uint32_t value); >

最大值(缺省为100)。 + * 类型:uint32\_t | 特性 | 是否支持 | @@ -489,6 +510,7 @@ ret_t slide_indicator_set_value (widget_t* widget, uint32_t value); >

指示器的大小。 + * 类型:uint32\_t | 特性 | 是否支持 | @@ -506,6 +528,7 @@ ret_t slide_indicator_set_value (widget_t* widget, uint32_t value); >

指示器的中心之间的间距(圆弧显示时,间距的单位为弧度,否则为像素)。 + * 类型:float\_t | 特性 | 是否支持 | @@ -523,6 +546,7 @@ ret_t slide_indicator_set_value (widget_t* widget, uint32_t value); >

值(缺省为0)。 + * 类型:uint32\_t | 特性 | 是否支持 | diff --git a/docs/manual/slist_t.md b/docs/manual/slist_t.md index 0d79d34bbb..6a69bcdc50 100644 --- a/docs/manual/slist_t.md +++ b/docs/manual/slist_t.md @@ -20,6 +20,7 @@ ``` + ---------------------------------- ### 函数

@@ -55,6 +56,7 @@ + * 函数原型: ``` @@ -77,6 +79,7 @@ ret_t slist_append (slist_t* slist, void* data); + * 函数原型: ``` @@ -99,6 +102,7 @@ int32_t slist_count (slist_t* slist, void* ctx); + * 函数原型: ``` @@ -121,6 +125,7 @@ slist_t* slist_create (tk_destroy_t destroy, tk_compare_t compare); + * 函数原型: ``` @@ -143,6 +148,7 @@ ret_t slist_deinit (slist_t* slist); + * 函数原型: ``` @@ -164,6 +170,7 @@ ret_t slist_destroy (slist_t* slist); + * 函数原型: ``` @@ -186,6 +193,7 @@ void* slist_find (slist_t* slist, void* ctx); + * 函数原型: ``` @@ -209,6 +217,7 @@ ret_t slist_foreach (slist_t* slist, tk_visit_t visit, void* ctx); + * 函数原型: ``` @@ -232,6 +241,7 @@ slist_t* slist_init (slist_t* slist, tk_destroy_t destroy, tk_compare_t compare) + * 函数原型: ``` @@ -254,6 +264,7 @@ ret_t slist_prepend (slist_t* slist, void* data); + * 函数原型: ``` @@ -276,6 +287,7 @@ ret_t slist_remove (slist_t* slist, void* ctx); + * 函数原型: ``` @@ -297,6 +309,7 @@ ret_t slist_remove_all (slist_t* slist); + * 函数原型: ``` @@ -314,6 +327,7 @@ int32_t slist_size (slist_t* slist); >

元素比较函数。 + * 类型:tk\_compare\_t | 特性 | 是否支持 | @@ -325,6 +339,7 @@ int32_t slist_size (slist_t* slist); >

元素销毁函数。 + * 类型:tk\_destroy\_t | 特性 | 是否支持 | @@ -336,6 +351,7 @@ int32_t slist_size (slist_t* slist); >

首节点。 + * 类型:slist\_node\_t* | 特性 | 是否支持 | diff --git a/docs/manual/str_t.md b/docs/manual/str_t.md index fbd2106b70..ce0fc1684c 100644 --- a/docs/manual/str_t.md +++ b/docs/manual/str_t.md @@ -17,6 +17,7 @@ > 先调str\_init进行初始化,最后调用str\_reset释放内存。 + ---------------------------------- ### 函数

@@ -72,6 +73,7 @@ + * 函数原型: ``` @@ -94,6 +96,7 @@ ret_t str_append (str_t* str, char* text); + * 函数原型: ``` @@ -116,6 +119,7 @@ ret_t str_append_char (str_t* str, char c); + * 函数原型: ``` @@ -139,6 +143,7 @@ ret_t str_append_with_len (str_t* str, char* text, uint32_t len); + * 函数原型: ``` @@ -160,6 +165,7 @@ ret_t str_clear (str_t* str); + * 函数原型: ``` @@ -182,6 +188,7 @@ ret_t str_decode_xml_entity (str_t* str, char* text); + * 函数原型: ``` @@ -205,6 +212,7 @@ ret_t str_decode_xml_entity_with_len (str_t* str, char* text, uint32_t len); + * 函数原型: ``` @@ -227,6 +235,7 @@ bool_t str_end_with (str_t* str, char* text); + * 函数原型: ``` @@ -256,6 +265,7 @@ bool_t str_eq (str_t* str, char* text); + * 函数原型: ``` @@ -277,6 +287,7 @@ ret_t str_expand_vars (str_t* str); + * 函数原型: ``` @@ -299,6 +310,7 @@ ret_t str_extend (str_t* str, uint32_t capacity); + * 函数原型: ``` @@ -321,6 +333,7 @@ ret_t str_from_float (str_t* str, double v); + * 函数原型: ``` @@ -343,6 +356,7 @@ ret_t str_from_int (str_t* str, int32_t v); + * 函数原型: ``` @@ -365,6 +379,7 @@ ret_t str_from_value (str_t* str, value_t v); + * 函数原型: ``` @@ -387,6 +402,7 @@ ret_t str_from_wstr (str_t* str, wchar_t* wstr); + * 函数原型: ``` @@ -409,6 +425,7 @@ str_t* str_init (str_t* str, uint32_t capacity); + * 函数原型: ``` @@ -432,6 +449,7 @@ ret_t str_insert (str_t* str, uint32_t offset, char* text); + * 函数原型: ``` @@ -456,6 +474,7 @@ ret_t str_insert_with_len (str_t* str, uint32_t offset, char* text, uint32_t len + * 函数原型: ``` @@ -477,6 +496,7 @@ ret_t str_pop (str_t* str); + * 函数原型: ``` @@ -500,6 +520,7 @@ ret_t str_remove (str_t* str, uint32_t offset, uint32_t len); + * 函数原型: ``` @@ -523,6 +544,7 @@ ret_t str_replace (str_t* str, char* text, char* new_text); + * 函数原型: ``` @@ -544,6 +566,7 @@ ret_t str_reset (str_t* str); + * 函数原型: ``` @@ -566,6 +589,7 @@ ret_t str_set (str_t* str, char* text); + * 函数原型: ``` @@ -589,6 +613,7 @@ ret_t str_set_with_len (str_t* str, char* text, uint32_t len); + * 函数原型: ``` @@ -611,6 +636,7 @@ bool_t str_start_with (str_t* str, char* text); + * 函数原型: ``` @@ -633,6 +659,7 @@ ret_t str_to_float (str_t* str, double* v); + * 函数原型: ``` @@ -655,6 +682,7 @@ ret_t str_to_int (str_t* str, int32_t* v); + * 函数原型: ``` @@ -676,6 +704,7 @@ ret_t str_to_lower (str_t* str); + * 函数原型: ``` @@ -697,6 +726,7 @@ ret_t str_to_upper (str_t* str); + * 函数原型: ``` @@ -719,6 +749,7 @@ ret_t str_trim (str_t* str, char* text); + * 函数原型: ``` @@ -741,6 +772,7 @@ ret_t str_trim_left (str_t* str, char* text); + * 函数原型: ``` @@ -763,6 +795,7 @@ ret_t str_trim_right (str_t* str, char* text); + * 函数原型: ``` @@ -780,6 +813,7 @@ ret_t str_unescape (str_t* str); >

容量。 + * 类型:uint32\_t | 特性 | 是否支持 | @@ -791,6 +825,7 @@ ret_t str_unescape (str_t* str); >

长度。 + * 类型:uint32\_t | 特性 | 是否支持 | @@ -802,6 +837,7 @@ ret_t str_unescape (str_t* str); >

字符串。 + * 类型:char* | 特性 | 是否支持 | diff --git a/docs/manual/style_const_t.md b/docs/manual/style_const_t.md index 675fe24a17..11e35dab9c 100644 --- a/docs/manual/style_const_t.md +++ b/docs/manual/style_const_t.md @@ -8,6 +8,7 @@ tools/theme_gen用于把XML的主题数据转换成常量数据。 + ---------------------------------- ### 函数

@@ -25,6 +26,7 @@ + * 函数原型: ``` diff --git a/docs/manual/style_factory_t.md b/docs/manual/style_factory_t.md index cfba50cc32..44ab60ae15 100644 --- a/docs/manual/style_factory_t.md +++ b/docs/manual/style_factory_t.md @@ -5,6 +5,7 @@ > 在特殊情况下,可以实现自己的style工厂,比如支持CSS和可实时修改的style。 + ---------------------------------- ### 函数

@@ -22,6 +23,7 @@ >

获取缺省的style factory。 + * 函数原型: ``` @@ -42,6 +44,7 @@ style_factory_t* style_factory (); + * 函数原型: ``` @@ -64,6 +67,7 @@ style_t* style_factory_create_style (style_factory_t* factory, widget_t* widget) + * 函数原型: ``` diff --git a/docs/manual/style_id_t.md b/docs/manual/style_id_t.md index 64c73b3369..5eed46aab7 100644 --- a/docs/manual/style_id_t.md +++ b/docs/manual/style_id_t.md @@ -1,6 +1,7 @@ ## style\_id\_t ### 概述 style常量定义。 + ### 常量

diff --git a/docs/manual/style_mutable_t.md b/docs/manual/style_mutable_t.md index 33a62635ea..db3033ddb9 100644 --- a/docs/manual/style_mutable_t.md +++ b/docs/manual/style_mutable_t.md @@ -8,6 +8,7 @@ style\_mutable也对style\_const进行了包装,当用户没修改某个值时,便从style\_const中获取。 + ---------------------------------- ### 函数

@@ -41,6 +42,7 @@ + * 函数原型: ``` @@ -62,6 +64,7 @@ style_t* style_mutable_cast (style_t* s); + * 函数原型: ``` @@ -87,6 +90,7 @@ ret_t style_mutable_copy (style_t* s, style_t* other); + * 函数原型: ``` @@ -109,6 +113,7 @@ style_t* style_mutable_create (widget_t* widget, style_t* default_style); + * 函数原型: ``` @@ -132,6 +137,7 @@ ret_t style_mutable_foreach (style_t* s, tk_on_style_item_t on_style_item, void* + * 函数原型: ``` @@ -153,6 +159,7 @@ const char* style_mutable_get_name (style_t* s); + * 函数原型: ``` @@ -177,6 +184,7 @@ ret_t style_mutable_get_value (style_t* s, const char* state, const char* name, + * 函数原型: ``` @@ -197,6 +205,7 @@ ret_t style_mutable_register (); + * 函数原型: ``` @@ -221,6 +230,7 @@ ret_t style_mutable_set_color (style_t* s, const char* state, const char* name, + * 函数原型: ``` @@ -245,6 +255,7 @@ ret_t style_mutable_set_int (style_t* s, const char* state, const char* name, in + * 函数原型: ``` @@ -267,6 +278,7 @@ ret_t style_mutable_set_name (style_t* s, const char* name); + * 函数原型: ``` @@ -291,6 +303,7 @@ ret_t style_mutable_set_str (style_t* s, const char* state, const char* name, co + * 函数原型: ``` @@ -311,6 +324,7 @@ ret_t style_mutable_set_value (style_t* s, const char* state, const char* name, >

名称。 + * 类型:char* | 特性 | 是否支持 | diff --git a/docs/manual/style_t.md b/docs/manual/style_t.md index 941aeb6d53..59d7cf1cb9 100644 --- a/docs/manual/style_t.md +++ b/docs/manual/style_t.md @@ -14,6 +14,7 @@ 属性名称的请参考[style\_id](style_id_t.md) + ---------------------------------- ### 函数

@@ -37,6 +38,7 @@ + * 函数原型: ``` @@ -58,6 +60,7 @@ ret_t style_destroy (style_t* s); + * 函数原型: ``` @@ -81,6 +84,7 @@ color_t style_get_color (style_t* s, const char* name, color_t defval); + * 函数原型: ``` @@ -104,6 +108,7 @@ int32_t style_get_int (style_t* s, const char* name, int32_t defval); + * 函数原型: ``` @@ -127,6 +132,7 @@ const char* style_get_str (style_t* s, const char* name, const char* defval); + * 函数原型: ``` @@ -148,6 +154,7 @@ bool_t style_is_mutable (style_t* s); + * 函数原型: ``` @@ -169,6 +176,7 @@ bool_t style_is_valid (style_t* s); + * 函数原型: ``` @@ -191,6 +199,7 @@ ret_t style_notify_widget_state_changed (style_t* s, widget_t* widget); + * 函数原型: ``` diff --git a/docs/manual/suggest_words_t.md b/docs/manual/suggest_words_t.md index 5d005336b1..a09e2bcd3e 100644 --- a/docs/manual/suggest_words_t.md +++ b/docs/manual/suggest_words_t.md @@ -2,6 +2,7 @@ ### 概述 输入法联想字词。 + ---------------------------------- ### 函数

@@ -25,6 +26,7 @@ + * 函数原型: ``` @@ -47,6 +49,7 @@ suggest_words_t* suggest_words_create (asset_info_t* res); + * 函数原型: ``` @@ -68,6 +71,7 @@ ret_t suggest_words_destroy (suggest_words_t* suggest_words); + * 函数原型: ``` diff --git a/docs/manual/system_info_t.md b/docs/manual/system_info_t.md index b2ca287a31..5265dc6cd1 100644 --- a/docs/manual/system_info_t.md +++ b/docs/manual/system_info_t.md @@ -4,6 +4,7 @@ 当前系统的信息。 + ---------------------------------- ### 函数

@@ -47,6 +48,7 @@ >

获取system_info对象。 + * 函数原型: ``` @@ -67,6 +69,7 @@ system_info_t* system_info (); + * 函数原型: ``` @@ -88,6 +91,7 @@ ret_t system_info_deinit (); + * 函数原型: ``` @@ -109,6 +113,7 @@ const char* system_info_fix_font_name (const char* name); + * 函数原型: ``` @@ -133,6 +138,7 @@ ret_t system_info_init (app_type_t app_type, const char* app_name, const char* a + * 函数原型: ``` @@ -156,6 +162,7 @@ ret_t system_info_set_default_font (system_info_t* info info, const char* defaul + * 函数原型: ``` @@ -179,6 +186,7 @@ ret_t system_info_set_device_pixel_ratio (system_info_t* info info, float_t devi + * 函数原型: ``` @@ -202,6 +210,7 @@ ret_t system_info_set_font_scale (system_info_t* info info, float_t font_scale); + * 函数原型: ``` @@ -225,6 +234,7 @@ ret_t system_info_set_lcd_h (system_info_t* info info, uint32_t lcd_h); + * 函数原型: ``` @@ -248,6 +258,7 @@ ret_t system_info_set_lcd_orientation (system_info_t* info info, lcd_orientation + * 函数原型: ``` @@ -271,6 +282,7 @@ ret_t system_info_set_lcd_type (system_info_t* info info, lcd_type_t lcd_type); + * 函数原型: ``` @@ -289,6 +301,7 @@ ret_t system_info_set_lcd_w (system_info_t* info info, uint32_t lcd_w); >

应用程序的名称。 + * 类型:const char* | 特性 | 是否支持 | @@ -300,6 +313,7 @@ ret_t system_info_set_lcd_w (system_info_t* info info, uint32_t lcd_w); >

应用程序的根目录,用于定位资源文件。 + * 类型:const char* | 特性 | 是否支持 | @@ -311,6 +325,7 @@ ret_t system_info_set_lcd_w (system_info_t* info info, uint32_t lcd_w); >

应用程序的类型。 + * 类型:app\_type\_t | 特性 | 是否支持 | @@ -324,6 +339,7 @@ ret_t system_info_set_lcd_w (system_info_t* info info, uint32_t lcd_w); > 只能通过object\_get\_prop函数访问。 + * 类型:const char* | 特性 | 是否支持 | @@ -335,6 +351,7 @@ ret_t system_info_set_lcd_w (system_info_t* info info, uint32_t lcd_w); >

缺省字体。 + * 类型:const char* | 特性 | 是否支持 | @@ -348,6 +365,7 @@ ret_t system_info_set_lcd_w (system_info_t* info info, uint32_t lcd_w); > 只能通过object\_get\_prop函数访问。 + * 类型:const char* | 特性 | 是否支持 | @@ -359,6 +377,7 @@ ret_t system_info_set_lcd_w (system_info_t* info info, uint32_t lcd_w); >

显示屏的密度。 + * 类型:float\_t | 特性 | 是否支持 | @@ -370,6 +389,7 @@ ret_t system_info_set_lcd_w (system_info_t* info info, uint32_t lcd_w); >

字体缩放比例,用于实现字体整体放大。 + * 类型:float\_t | 特性 | 是否支持 | @@ -383,6 +403,7 @@ ret_t system_info_set_lcd_w (system_info_t* info info, uint32_t lcd_w); > 只能通过object\_get\_prop函数访问。 + * 类型:const char* | 特性 | 是否支持 | @@ -394,6 +415,7 @@ ret_t system_info_set_lcd_w (system_info_t* info info, uint32_t lcd_w); >

显示屏的高度。 + * 类型:uint32\_t | 特性 | 是否支持 | @@ -405,6 +427,7 @@ ret_t system_info_set_lcd_w (system_info_t* info info, uint32_t lcd_w); >

显示屏的旋转角度。 + * 类型:lcd\_orientation\_t | 特性 | 是否支持 | @@ -416,6 +439,7 @@ ret_t system_info_set_lcd_w (system_info_t* info info, uint32_t lcd_w); >

显示屏的类型。 + * 类型:lcd\_type\_t | 特性 | 是否支持 | @@ -427,6 +451,7 @@ ret_t system_info_set_lcd_w (system_info_t* info info, uint32_t lcd_w); >

显示屏的宽度。 + * 类型:uint32\_t | 特性 | 是否支持 | diff --git a/docs/manual/text_edit_state_t.md b/docs/manual/text_edit_state_t.md index 918e4f8d91..6280d0ee0a 100644 --- a/docs/manual/text_edit_state_t.md +++ b/docs/manual/text_edit_state_t.md @@ -1,4 +1,5 @@ ## text\_edit\_state\_t ### 概述 + ---------------------------------- diff --git a/docs/manual/text_edit_t.md b/docs/manual/text_edit_t.md index e1a8c3fca7..86c14f5684 100644 --- a/docs/manual/text_edit_t.md +++ b/docs/manual/text_edit_t.md @@ -1,6 +1,7 @@ ## text\_edit\_t ### 概述 + ---------------------------------- ### 函数

@@ -42,6 +43,7 @@ + * 函数原型: ``` @@ -65,6 +67,7 @@ ret_t text_edit_click (text_edit_t* text_edit, xy_t x, xy_t y); + * 函数原型: ``` @@ -86,6 +89,7 @@ ret_t text_edit_copy (text_edit_t* text_edit); + * 函数原型: ``` @@ -108,6 +112,7 @@ widget_t* text_edit_create (widget_t* widget, boo_t single_line); + * 函数原型: ``` @@ -129,6 +134,7 @@ ret_t text_edit_cut (text_edit_t* text_edit); + * 函数原型: ``` @@ -150,6 +156,7 @@ ret_t text_edit_destroy (text_edit_t* text_edit); + * 函数原型: ``` @@ -173,6 +180,7 @@ ret_t text_edit_drag (text_edit_t* text_edit, xy_t x, xy_t y); + * 函数原型: ``` @@ -194,6 +202,7 @@ uin32_t text_edit_get_cursor (text_edit_t* text_edit); + * 函数原型: ``` @@ -216,6 +225,7 @@ ret_t text_edit_get_state (text_edit_t* text_edit, text_edit_state_t* state); + * 函数原型: ``` @@ -237,6 +247,7 @@ ret_t text_edit_invert_caret_visible (text_edit_t* text_edit); + * 函数原型: ``` @@ -259,6 +270,7 @@ ret_t text_edit_key_down (text_edit_t* text_edit, key_event_t* evt); + * 函数原型: ``` @@ -280,6 +292,7 @@ ret_t text_edit_layout (text_edit_t* text_edit); + * 函数原型: ``` @@ -302,6 +315,7 @@ ret_t text_edit_paint (text_edit_t* text_edit, canvas_t* c); + * 函数原型: ``` @@ -325,6 +339,7 @@ ret_t text_edit_paste (text_edit_t* text_edit, const wchar_t* str, uint32_t size + * 函数原型: ``` @@ -346,6 +361,7 @@ ret_t text_edit_select_all (text_edit_t* text_edit); + * 函数原型: ``` @@ -368,6 +384,7 @@ ret_t text_edit_set_canvas (text_edit_t* text_edit, canvas_t* c); + * 函数原型: ``` @@ -390,6 +407,7 @@ ret_t text_edit_set_caret_visible (text_edit_t* text_edit, bool_t caret_visible) + * 函数原型: ``` @@ -412,6 +430,7 @@ ret_t text_edit_set_cursor (text_edit_t* text_edit, uint32_t cursor); + * 函数原型: ``` @@ -434,6 +453,7 @@ ret_t text_edit_set_mask (text_edit_t* text_edit, bool_t mask); + * 函数原型: ``` @@ -456,6 +476,7 @@ ret_t text_edit_set_mask_char (text_edit_t* text_edit, wchar_t mask_char); + * 函数原型: ``` @@ -478,6 +499,7 @@ ret_t text_edit_set_max_rows (text_edit_t* text_edit, uint32_t max_rows); + * 函数原型: ``` @@ -501,6 +523,7 @@ ret_t text_edit_set_offset (text_edit_t* text_edit, int32_t ox, int32_t oy); + * 函数原型: ``` @@ -524,6 +547,7 @@ ret_t text_edit_set_on_state_changed (text_edit_t* text_edit, text_edit_on_state + * 函数原型: ``` @@ -547,6 +571,7 @@ ret_t text_edit_set_select (text_edit_t* text_edit, uint32_t start, uint32_t end + * 函数原型: ``` @@ -569,6 +594,7 @@ ret_t text_edit_set_tips (text_edit_t* text_edit, const char* tips); + * 函数原型: ``` @@ -591,6 +617,7 @@ ret_t text_edit_set_wrap_word (text_edit_t* text_edit, bool_t wrap_word); + * 函数原型: ``` diff --git a/docs/manual/theme_t.md b/docs/manual/theme_t.md index c0c7cc49e0..fc5b61a947 100644 --- a/docs/manual/theme_t.md +++ b/docs/manual/theme_t.md @@ -5,6 +5,7 @@ 负责管理缺省的主题数据,方便实现style\_const。 + ---------------------------------- ### 函数

@@ -26,6 +27,7 @@ >

获取缺省的主题对象。 + * 函数原型: ``` @@ -46,6 +48,7 @@ theme_t* theme (); + * 函数原型: ``` @@ -67,6 +70,7 @@ theme_t* theme_create (const uint8_t* data); + * 函数原型: ``` @@ -88,6 +92,7 @@ ret_t theme_deinit (theme_t* theme); + * 函数原型: ``` @@ -109,6 +114,7 @@ ret_t theme_destroy (theme_t* theme); + * 函数原型: ``` @@ -133,6 +139,7 @@ theme_t* theme_find_style (theme_t* data, const char* widget_type, const char* n + * 函数原型: ``` @@ -155,6 +162,7 @@ theme_t* theme_init (theme_t* theme, const uint8_t* data); + * 函数原型: ``` diff --git a/docs/manual/time_now_t.md b/docs/manual/time_now_t.md index b2cee06caf..ae282d9dc4 100644 --- a/docs/manual/time_now_t.md +++ b/docs/manual/time_now_t.md @@ -4,6 +4,7 @@ 这里的当前时间是相对的,在嵌入式系统一般相对于开机时间。 它本身并没有任何意义,一般用来计算时间间隔,如实现定时器和动画等等。 + ---------------------------------- ### 函数

@@ -21,6 +22,7 @@ + * 函数原型: ``` @@ -41,6 +43,7 @@ uint64_t time_now_ms (); + * 函数原型: ``` diff --git a/docs/manual/timer_info_t.md b/docs/manual/timer_info_t.md index 2bbd2423a0..632050e941 100644 --- a/docs/manual/timer_info_t.md +++ b/docs/manual/timer_info_t.md @@ -5,6 +5,7 @@ 单个定时器的信息。 + ---------------------------------- ### 函数

@@ -35,6 +36,7 @@ + * 函数原型: ``` @@ -53,6 +55,7 @@ timer_info_t* timer_info_cast (timer_info_t* timer); + * 类型:void* | 特性 | 是否支持 | @@ -66,6 +69,7 @@ timer_info_t* timer_info_cast (timer_info_t* timer); + * 类型:uint32\_t | 特性 | 是否支持 | @@ -79,6 +83,7 @@ timer_info_t* timer_info_cast (timer_info_t* timer); > 为TK\_INVALID\_ID时表示无效定时器。 + * 类型:uint32\_t | 特性 | 是否支持 | @@ -92,6 +97,7 @@ timer_info_t* timer_info_cast (timer_info_t* timer); + * 类型:uint64\_t | 特性 | 是否支持 | @@ -104,6 +110,7 @@ timer_info_t* timer_info_cast (timer_info_t* timer); >

定时器销毁时的回调函数。 + * 类型:tk\_destroy\_t | 特性 | 是否支持 | @@ -115,6 +122,7 @@ timer_info_t* timer_info_cast (timer_info_t* timer); >

定时器销毁时的回调函数上下文。 + * 类型:void* | 特性 | 是否支持 | @@ -126,6 +134,7 @@ timer_info_t* timer_info_cast (timer_info_t* timer); >

定时器回调函数。 + * 类型:timer\_func\_t | 特性 | 是否支持 | @@ -138,6 +147,7 @@ timer_info_t* timer_info_cast (timer_info_t* timer); + * 类型:uint64\_t | 特性 | 是否支持 | @@ -149,6 +159,7 @@ timer_info_t* timer_info_cast (timer_info_t* timer); >

用户是否修改了系统时间。 + * 类型:bool\_t | 特性 | 是否支持 | diff --git a/docs/manual/timer_t.md b/docs/manual/timer_t.md index 8a92beb70e..5e84508fed 100644 --- a/docs/manual/timer_t.md +++ b/docs/manual/timer_t.md @@ -20,6 +20,7 @@ > 在非GUI线程请用timer\_queue。 + ---------------------------------- ### 函数

@@ -43,6 +44,7 @@ + * 函数原型: ``` @@ -66,6 +68,7 @@ uint32_t timer_add (timer_func_t on_timer, void* ctx, uint32_t duration); + * 函数原型: ``` @@ -86,6 +89,7 @@ uint32_t timer_count (); + * 函数原型: ``` @@ -108,6 +112,7 @@ ret_t timer_modify (uint32_t timer_id, uint32_t duration); + * 函数原型: ``` @@ -129,6 +134,7 @@ uint32_t timer_next_time (); + * 函数原型: ``` @@ -152,6 +158,7 @@ ret_t timer_queue (timer_func_t , void* ctx, uint32_t duration); + * 函数原型: ``` @@ -173,6 +180,7 @@ ret_t timer_remove (uint32_t timer_id); + * 函数原型: ``` @@ -194,6 +202,7 @@ ret_t timer_reset (uint32_t timer_id); + * 函数原型: ``` diff --git a/docs/manual/tk_cond_var_t.md b/docs/manual/tk_cond_var_t.md index ddd11766ff..66062960a9 100644 --- a/docs/manual/tk_cond_var_t.md +++ b/docs/manual/tk_cond_var_t.md @@ -2,6 +2,7 @@ ### 概述 简化版的条件变量。 + ---------------------------------- ### 函数

@@ -21,6 +22,7 @@ + * 函数原型: ``` @@ -42,6 +44,7 @@ ret_t tk_cond_var_awake (tk_cond_var_t* cond_var); + * 函数原型: ``` @@ -62,6 +65,7 @@ tk_cond_var_t* tk_cond_var_create (); + * 函数原型: ``` @@ -83,6 +87,7 @@ ret_t tk_cond_var_destroy (tk_cond_var_t* cond_var); + * 函数原型: ``` diff --git a/docs/manual/tk_iostream_mem_t.md b/docs/manual/tk_iostream_mem_t.md index 7003867a28..b3d1934998 100644 --- a/docs/manual/tk_iostream_mem_t.md +++ b/docs/manual/tk_iostream_mem_t.md @@ -6,6 +6,7 @@ iostream base on mem + ---------------------------------- ### 函数

@@ -25,6 +26,7 @@ + * 函数原型: ``` diff --git a/docs/manual/tk_iostream_noisy_t.md b/docs/manual/tk_iostream_noisy_t.md index 3a313929df..715ada7c20 100644 --- a/docs/manual/tk_iostream_noisy_t.md +++ b/docs/manual/tk_iostream_noisy_t.md @@ -6,6 +6,7 @@ 在输出流中注入错误,方便进行可靠性测试。 + ---------------------------------- ### 函数

@@ -27,6 +28,7 @@ + * 函数原型: ``` diff --git a/docs/manual/tk_iostream_serial_t.md b/docs/manual/tk_iostream_serial_t.md index 88b09dfaba..758f379aa1 100644 --- a/docs/manual/tk_iostream_serial_t.md +++ b/docs/manual/tk_iostream_serial_t.md @@ -6,6 +6,7 @@ input stream base on serial port + ---------------------------------- ### 函数

@@ -25,6 +26,7 @@ + * 函数原型: ``` diff --git a/docs/manual/tk_iostream_shdlc_t.md b/docs/manual/tk_iostream_shdlc_t.md index 51ceaa59ac..b276cfde0c 100644 --- a/docs/manual/tk_iostream_shdlc_t.md +++ b/docs/manual/tk_iostream_shdlc_t.md @@ -8,6 +8,7 @@ 一般用于串口通信。 + ---------------------------------- ### 函数

@@ -29,6 +30,7 @@ + * 函数原型: ``` diff --git a/docs/manual/tk_iostream_t.md b/docs/manual/tk_iostream_t.md index 97ea8a4c8f..80db2896d7 100644 --- a/docs/manual/tk_iostream_t.md +++ b/docs/manual/tk_iostream_t.md @@ -6,6 +6,7 @@ input/output stream interface + ---------------------------------- ### 函数

@@ -26,6 +27,7 @@ + * 函数原型: ``` @@ -50,6 +52,7 @@ tk_istream_t* tk_iostream_get_istream (tk_iostream_t* stream); + * 函数原型: ``` diff --git a/docs/manual/tk_iostream_tcp_t.md b/docs/manual/tk_iostream_tcp_t.md index 1b1d09fdee..faad7631f1 100644 --- a/docs/manual/tk_iostream_tcp_t.md +++ b/docs/manual/tk_iostream_tcp_t.md @@ -6,6 +6,7 @@ input stream base on socket + ---------------------------------- ### 函数

@@ -25,6 +26,7 @@ + * 函数原型: ``` diff --git a/docs/manual/tk_iostream_udp_t.md b/docs/manual/tk_iostream_udp_t.md index b6fe4f8e34..2d43d408d7 100644 --- a/docs/manual/tk_iostream_udp_t.md +++ b/docs/manual/tk_iostream_udp_t.md @@ -6,6 +6,7 @@ input stream base on socket + ---------------------------------- ### 函数

@@ -26,6 +27,7 @@ + * 函数原型: ``` @@ -50,6 +52,7 @@ tk_iostream_t* tk_iostream_udp_create (int sock); + * 函数原型: ``` diff --git a/docs/manual/tk_istream_buffered_t.md b/docs/manual/tk_istream_buffered_t.md index 8b7729eb5c..fd58a71d4b 100644 --- a/docs/manual/tk_istream_buffered_t.md +++ b/docs/manual/tk_istream_buffered_t.md @@ -8,6 +8,7 @@ 如果调用者每次只读取少量数据,可以使用本类对底层istream进行装饰,以提高读取效率。 + ---------------------------------- ### 函数

@@ -29,6 +30,7 @@ + * 函数原型: ``` diff --git a/docs/manual/tk_istream_file_t.md b/docs/manual/tk_istream_file_t.md index 8f92a41c75..0af084f777 100644 --- a/docs/manual/tk_istream_file_t.md +++ b/docs/manual/tk_istream_file_t.md @@ -6,6 +6,7 @@ input stream base on file + ---------------------------------- ### 函数

@@ -25,6 +26,7 @@ + * 函数原型: ``` diff --git a/docs/manual/tk_istream_mem_t.md b/docs/manual/tk_istream_mem_t.md index 821483ccf3..5ed4a57b8f 100644 --- a/docs/manual/tk_istream_mem_t.md +++ b/docs/manual/tk_istream_mem_t.md @@ -6,6 +6,7 @@ input stream base on memory + ---------------------------------- ### 函数

@@ -25,6 +26,7 @@ + * 函数原型: ``` diff --git a/docs/manual/tk_istream_serial_t.md b/docs/manual/tk_istream_serial_t.md index f6f1bdf96c..a062b1eb6b 100644 --- a/docs/manual/tk_istream_serial_t.md +++ b/docs/manual/tk_istream_serial_t.md @@ -6,6 +6,7 @@ input stream base on fd + ---------------------------------- ### 函数

@@ -25,6 +26,7 @@ + * 函数原型: ``` diff --git a/docs/manual/tk_istream_shdlc_t.md b/docs/manual/tk_istream_shdlc_t.md index 256c7cce7a..349ce0317d 100644 --- a/docs/manual/tk_istream_shdlc_t.md +++ b/docs/manual/tk_istream_shdlc_t.md @@ -6,6 +6,7 @@ reliable istream base on simple HDLC + ---------------------------------- ### 函数

@@ -34,6 +35,7 @@ + * 函数原型: ``` @@ -51,6 +53,7 @@ tk_istream_t* tk_istream_shdlc_create (tk_iostream_shdlc_t* iostream); >

失败重传次数。 + * 类型:uint32\_t #### timeout 属性 @@ -58,5 +61,6 @@ tk_istream_t* tk_istream_shdlc_create (tk_iostream_shdlc_t* iostream); >

读写超时时间(ms) + * 类型:uint32\_t diff --git a/docs/manual/tk_istream_t.md b/docs/manual/tk_istream_t.md index 75de6de45b..135e62cc8d 100644 --- a/docs/manual/tk_istream_t.md +++ b/docs/manual/tk_istream_t.md @@ -6,6 +6,7 @@ input stream interface + ---------------------------------- ### 函数

@@ -30,6 +31,7 @@ + * 函数原型: ``` @@ -54,6 +56,7 @@ ret_t tk_istream_flush (tk_istream_t* stream); + * 函数原型: ``` @@ -80,6 +83,7 @@ int32_t tk_istream_read (tk_istream_t* stream, uint8_t* buff, uint32_t max_size) + * 函数原型: ``` @@ -107,6 +111,7 @@ int32_t tk_istream_read_len (tk_istream_t* stream, uint8_t* buff, uint32_t max_s + * 函数原型: ``` @@ -134,6 +139,7 @@ int32_t tk_istream_read_line (tk_istream_t* stream, uint8_t* buff, uint32_t max_ + * 函数原型: ``` @@ -159,6 +165,7 @@ ret_t tk_istream_seek (tk_istream_t* stream, uint32_t offset); + * 函数原型: ``` diff --git a/docs/manual/tk_istream_tcp_t.md b/docs/manual/tk_istream_tcp_t.md index 652d2c16be..6ba2de9141 100644 --- a/docs/manual/tk_istream_tcp_t.md +++ b/docs/manual/tk_istream_tcp_t.md @@ -6,6 +6,7 @@ input stream base on socket + ---------------------------------- ### 函数

@@ -25,6 +26,7 @@ + * 函数原型: ``` diff --git a/docs/manual/tk_istream_udp_t.md b/docs/manual/tk_istream_udp_t.md index 92801e232a..bdb8def31e 100644 --- a/docs/manual/tk_istream_udp_t.md +++ b/docs/manual/tk_istream_udp_t.md @@ -6,6 +6,7 @@ input stream base on socket + ---------------------------------- ### 函数

@@ -27,6 +28,7 @@ + * 函数原型: ``` @@ -51,6 +53,7 @@ tk_istream_t* tk_istream_udp_create (int sock); + * 函数原型: ``` @@ -76,6 +79,7 @@ ret_t tk_istream_udp_set_target_with_addr (tk_istream_t* stream, struct sockaddr + * 函数原型: ``` diff --git a/docs/manual/tk_mem_t.md b/docs/manual/tk_mem_t.md index 1cfa2c5451..f49c901104 100644 --- a/docs/manual/tk_mem_t.md +++ b/docs/manual/tk_mem_t.md @@ -18,6 +18,7 @@ TKMEM_FREE(str); ``` + ---------------------------------- ### 函数

@@ -38,6 +39,7 @@ + * 函数原型: ``` @@ -60,6 +62,7 @@ void* TKMEM_ALLOC (uint32_t size); + * 函数原型: ``` @@ -83,6 +86,7 @@ void* TKMEM_CALLOC (uint32_t nmemb, uint32_t size); + * 函数原型: ``` @@ -105,6 +109,7 @@ void TKMEM_FREE (void* p); + * 函数原型: ``` diff --git a/docs/manual/tk_mutex_t.md b/docs/manual/tk_mutex_t.md index c73a63d7dd..6ebb4c73be 100644 --- a/docs/manual/tk_mutex_t.md +++ b/docs/manual/tk_mutex_t.md @@ -2,6 +2,7 @@ ### 概述 互斥锁。 + ---------------------------------- ### 函数

@@ -21,6 +22,7 @@ + * 函数原型: ``` @@ -41,6 +43,7 @@ tk_mutex_t* tk_mutex_create (); + * 函数原型: ``` @@ -62,6 +65,7 @@ ret_t tk_mutex_destroy (tk_mutex_t* mutex); + * 函数原型: ``` @@ -83,6 +87,7 @@ ret_t tk_mutex_lock (tk_mutex_t* mutex); + * 函数原型: ``` diff --git a/docs/manual/tk_ostream_buffered_t.md b/docs/manual/tk_ostream_buffered_t.md index 3515d88968..9a78bd9ca1 100644 --- a/docs/manual/tk_ostream_buffered_t.md +++ b/docs/manual/tk_ostream_buffered_t.md @@ -6,6 +6,7 @@ 先将数据写入一个缓存区,调用flush时才真正写入底层的ostream。 + ---------------------------------- ### 函数

@@ -28,6 +29,7 @@ + * 函数原型: ``` @@ -52,6 +54,7 @@ tk_ostream_t* tk_ostream_buffered_create (tk_ostream_t* real_ostream); + * 函数原型: ``` diff --git a/docs/manual/tk_ostream_file_t.md b/docs/manual/tk_ostream_file_t.md index bf92a23c37..3cb8c2f3d2 100644 --- a/docs/manual/tk_ostream_file_t.md +++ b/docs/manual/tk_ostream_file_t.md @@ -6,6 +6,7 @@ input stream base on file + ---------------------------------- ### 函数

@@ -25,6 +26,7 @@ + * 函数原型: ``` diff --git a/docs/manual/tk_ostream_mem_t.md b/docs/manual/tk_ostream_mem_t.md index c41c93ff68..921b433fcb 100644 --- a/docs/manual/tk_ostream_mem_t.md +++ b/docs/manual/tk_ostream_mem_t.md @@ -6,6 +6,7 @@ output stream base on memory + ---------------------------------- ### 函数

@@ -25,6 +26,7 @@ + * 函数原型: ``` diff --git a/docs/manual/tk_ostream_noisy_t.md b/docs/manual/tk_ostream_noisy_t.md index 7d70f3af22..fdafae2ca8 100644 --- a/docs/manual/tk_ostream_noisy_t.md +++ b/docs/manual/tk_ostream_noisy_t.md @@ -6,6 +6,7 @@ 在输出流中注入错误,方便进行可靠性测试。 + ---------------------------------- ### 函数

@@ -35,6 +36,7 @@ + * 函数原型: ``` @@ -52,6 +54,7 @@ tk_ostream_t* tk_ostream_noisy_create (tk_ostream_t* real_ostream); >

注入的错误数。 + * 类型:uint32\_t #### error\_level 属性 @@ -60,6 +63,7 @@ tk_ostream_t* tk_ostream_noisy_create (tk_ostream_t* real_ostream); + * 类型:uint32\_t #### write\_count 属性 @@ -67,5 +71,6 @@ tk_ostream_t* tk_ostream_noisy_create (tk_ostream_t* real_ostream); >

写入的次数。 + * 类型:uint32\_t diff --git a/docs/manual/tk_ostream_serial_t.md b/docs/manual/tk_ostream_serial_t.md index 75cbc710d2..00bf103c76 100644 --- a/docs/manual/tk_ostream_serial_t.md +++ b/docs/manual/tk_ostream_serial_t.md @@ -6,6 +6,7 @@ input stream base on fd + ---------------------------------- ### 函数

@@ -25,6 +26,7 @@ + * 函数原型: ``` diff --git a/docs/manual/tk_ostream_shdlc_t.md b/docs/manual/tk_ostream_shdlc_t.md index d84f1ca54f..2d9df5405a 100644 --- a/docs/manual/tk_ostream_shdlc_t.md +++ b/docs/manual/tk_ostream_shdlc_t.md @@ -6,6 +6,7 @@ reliable ostream base on simple HDLC + ---------------------------------- ### 函数

@@ -35,6 +36,7 @@ + * 函数原型: ``` @@ -52,6 +54,7 @@ tk_ostream_t* tk_ostream_shdlc_create (tk_iostream_shdlc_t* iostream); >

激活压缩的阈值。 + * 类型:uint32\_t #### retry\_times 属性 @@ -59,6 +62,7 @@ tk_ostream_t* tk_ostream_shdlc_create (tk_iostream_shdlc_t* iostream); >

失败重传次数。 + * 类型:uint32\_t #### timeout 属性 @@ -66,5 +70,6 @@ tk_ostream_t* tk_ostream_shdlc_create (tk_iostream_shdlc_t* iostream); >

读写超时时间(ms) + * 类型:uint32\_t diff --git a/docs/manual/tk_ostream_t.md b/docs/manual/tk_ostream_t.md index d674470e5b..77c0ac32e1 100644 --- a/docs/manual/tk_ostream_t.md +++ b/docs/manual/tk_ostream_t.md @@ -6,6 +6,7 @@ input stream interface + ---------------------------------- ### 函数

@@ -29,6 +30,7 @@ + * 函数原型: ``` @@ -53,6 +55,7 @@ ret_t tk_ostream_flush (tk_ostream_t* stream); + * 函数原型: ``` @@ -78,6 +81,7 @@ ret_t tk_ostream_seek (tk_ostream_t* stream, uint32_t offset); + * 函数原型: ``` @@ -104,6 +108,7 @@ int32_t tk_ostream_write (tk_ostream_t* stream, const uint8_t* buff, uint32_t ma + * 函数原型: ``` @@ -129,6 +134,7 @@ ret_t tk_ostream_write_byte (tk_ostream_t* stream, uint8_t byte); + * 函数原型: ``` diff --git a/docs/manual/tk_ostream_tcp_t.md b/docs/manual/tk_ostream_tcp_t.md index d508243d67..0cd5939f38 100644 --- a/docs/manual/tk_ostream_tcp_t.md +++ b/docs/manual/tk_ostream_tcp_t.md @@ -6,6 +6,7 @@ input stream base on socket + ---------------------------------- ### 函数

@@ -25,6 +26,7 @@ + * 函数原型: ``` diff --git a/docs/manual/tk_ostream_udp_t.md b/docs/manual/tk_ostream_udp_t.md index 0abd3f86f1..2bdaff09f1 100644 --- a/docs/manual/tk_ostream_udp_t.md +++ b/docs/manual/tk_ostream_udp_t.md @@ -6,6 +6,7 @@ input stream base on socket + ---------------------------------- ### 函数

@@ -27,6 +28,7 @@ + * 函数原型: ``` @@ -51,6 +53,7 @@ tk_ostream_t* tk_ostream_udp_create (int sock); + * 函数原型: ``` @@ -76,6 +79,7 @@ ret_t tk_ostream_udp_set_target_with_addr (tk_ostream_t* stream, struct sockaddr + * 函数原型: ``` diff --git a/docs/manual/tk_thread_t.md b/docs/manual/tk_thread_t.md index 1feadf9d37..61bb058ff3 100644 --- a/docs/manual/tk_thread_t.md +++ b/docs/manual/tk_thread_t.md @@ -2,6 +2,7 @@ ### 概述 线程对象。 + ---------------------------------- ### 函数

@@ -21,6 +22,7 @@ + * 函数原型: ``` @@ -41,6 +43,7 @@ tk_thread_t* tk_thread_create (); + * 函数原型: ``` @@ -62,6 +65,7 @@ ret_t tk_thread_destroy (tk_thread_t* thread); + * 函数原型: ``` @@ -83,6 +87,7 @@ ret_t tk_thread_join (tk_thread_t* thread); + * 函数原型: ``` diff --git a/docs/manual/tokenizer_t.md b/docs/manual/tokenizer_t.md index f45f656b19..06796686c3 100644 --- a/docs/manual/tokenizer_t.md +++ b/docs/manual/tokenizer_t.md @@ -2,6 +2,7 @@ ### 概述 从字符串中解析出一个一个的token。 + ---------------------------------- ### 函数

@@ -35,6 +36,7 @@ + * 函数原型: ``` @@ -56,6 +58,7 @@ ret_t tokenizer_deinit (tokenizer_t* tokenizer); + * 函数原型: ``` @@ -77,6 +80,7 @@ bool_t tokenizer_has_more (tokenizer_t* tokenizer); + * 函数原型: ``` @@ -101,6 +105,7 @@ tokenizer_t* tokenizer_init (tokenizer_t* tokenizer, char* str, uint32_t size, c + * 函数原型: ``` @@ -126,6 +131,7 @@ tokenizer_t* tokenizer_init_ex (tokenizer_t* tokenizer, char* str, uint32_t size + * 函数原型: ``` @@ -147,6 +153,7 @@ char* tokenizer_next (tokenizer_t* tokenizer); + * 函数原型: ``` @@ -169,6 +176,7 @@ char* tokenizer_next_float (tokenizer_t* tokenizer, float defval); + * 函数原型: ``` @@ -191,6 +199,7 @@ char* tokenizer_next_int (tokenizer_t* tokenizer, int defval); + * 函数原型: ``` @@ -209,6 +218,7 @@ char* tokenizer_next_until (tokenizer_t* tokenizer, const char* str); >

当前位置。 + * 类型:uint32\_t | 特性 | 是否支持 | @@ -220,6 +230,7 @@ char* tokenizer_next_until (tokenizer_t* tokenizer, const char* str); >

分隔字符串。 + * 类型:char* | 特性 | 是否支持 | @@ -231,6 +242,7 @@ char* tokenizer_next_until (tokenizer_t* tokenizer, const char* str); >

单字符的token。 + * 类型:char* | 特性 | 是否支持 | @@ -242,6 +254,7 @@ char* tokenizer_next_until (tokenizer_t* tokenizer, const char* str); >

字符串的长度。 + * 类型:uint32\_t | 特性 | 是否支持 | @@ -253,6 +266,7 @@ char* tokenizer_next_until (tokenizer_t* tokenizer, const char* str); >

字符串。 + * 类型:char* | 特性 | 是否支持 | diff --git a/docs/manual/ui_binary_writer_t.md b/docs/manual/ui_binary_writer_t.md index 71c1c2c6ec..a37f50b495 100644 --- a/docs/manual/ui_binary_writer_t.md +++ b/docs/manual/ui_binary_writer_t.md @@ -6,6 +6,7 @@ 生成二进制格式的UI描述数据。 + ---------------------------------- ### 函数

@@ -24,6 +25,7 @@ + * 函数原型: ``` diff --git a/docs/manual/ui_builder_default_t.md b/docs/manual/ui_builder_default_t.md index f90c6561da..3377799f6c 100644 --- a/docs/manual/ui_builder_default_t.md +++ b/docs/manual/ui_builder_default_t.md @@ -7,6 +7,7 @@ 构建widget树。 + ---------------------------------- ### 函数

@@ -25,6 +26,7 @@ + * 函数原型: ``` diff --git a/docs/manual/ui_builder_t.md b/docs/manual/ui_builder_t.md index bcd4cb937f..97f4d0c55e 100644 --- a/docs/manual/ui_builder_t.md +++ b/docs/manual/ui_builder_t.md @@ -14,6 +14,7 @@ ![image](images/ui_builder_t_0.png) + ---------------------------------- ### 函数

@@ -37,6 +38,7 @@ + * 函数原型: ``` @@ -60,6 +62,7 @@ ret_t ui_builder_on_end (ui_builder_t* builder); + * 函数原型: ``` @@ -83,6 +86,7 @@ ret_t ui_builder_on_start (ui_builder_t* builder); + * 函数原型: ``` @@ -106,6 +110,7 @@ ret_t ui_builder_on_widget_end (ui_builder_t* builder); + * 函数原型: ``` @@ -131,6 +136,7 @@ ret_t ui_builder_on_widget_prop (ui_builder_t* builder, const char* name, const + * 函数原型: ``` @@ -154,6 +160,7 @@ ret_t ui_builder_on_widget_prop (ui_builder_t* builder); + * 函数原型: ``` diff --git a/docs/manual/ui_feedback_t.md b/docs/manual/ui_feedback_t.md index 9b758056c9..4567f19508 100644 --- a/docs/manual/ui_feedback_t.md +++ b/docs/manual/ui_feedback_t.md @@ -3,6 +3,7 @@ 提供按键音、触屏音和震动等反馈。 + ---------------------------------- ### 函数

@@ -22,6 +23,7 @@ + * 函数原型: ``` @@ -45,6 +47,7 @@ ret_t ui_feedback_init (ui_on_feedback_t on_feedback, void* ctx); + * 函数原型: ``` diff --git a/docs/manual/ui_loader_default_t.md b/docs/manual/ui_loader_default_t.md index 378cbf4655..32255b8875 100644 --- a/docs/manual/ui_loader_default_t.md +++ b/docs/manual/ui_loader_default_t.md @@ -7,6 +7,7 @@ + ---------------------------------- ### 函数

@@ -25,6 +26,7 @@ + * 函数原型: ``` diff --git a/docs/manual/ui_loader_t.md b/docs/manual/ui_loader_t.md index 588cc06209..d2ce7895e0 100644 --- a/docs/manual/ui_loader_t.md +++ b/docs/manual/ui_loader_t.md @@ -15,6 +15,7 @@ + ---------------------------------- ### 函数

@@ -34,6 +35,7 @@ + * 函数原型: ``` @@ -63,6 +65,7 @@ ret_t ui_loader_load (ui_loader_t* loader, const uint8_t* data, uint32_t size, u + * 函数原型: ``` diff --git a/docs/manual/ui_loader_xml_t.md b/docs/manual/ui_loader_xml_t.md index acdb48cff2..068e605afe 100644 --- a/docs/manual/ui_loader_xml_t.md +++ b/docs/manual/ui_loader_xml_t.md @@ -7,6 +7,7 @@ + ---------------------------------- ### 函数

@@ -25,6 +26,7 @@ + * 函数原型: ``` diff --git a/docs/manual/ui_xml_writer_t.md b/docs/manual/ui_xml_writer_t.md index 9ac2ed4cc4..b9b2ba6d25 100644 --- a/docs/manual/ui_xml_writer_t.md +++ b/docs/manual/ui_xml_writer_t.md @@ -6,6 +6,7 @@ 生成XML格式的UI描述数据。 + ---------------------------------- ### 函数

@@ -24,6 +25,7 @@ + * 函数原型: ``` diff --git a/docs/manual/value_desc_binary_t.md b/docs/manual/value_desc_binary_t.md index cca28c06c0..cf9c3facd2 100644 --- a/docs/manual/value_desc_binary_t.md +++ b/docs/manual/value_desc_binary_t.md @@ -4,6 +4,7 @@ 二进制类型属性描述。 + ---------------------------------- ### 属性

@@ -17,6 +18,7 @@ >

最大长度。 + * 类型:uint32\_t | 特性 | 是否支持 | @@ -28,6 +30,7 @@ >

最小长度。 + * 类型:uint32\_t | 特性 | 是否支持 | diff --git a/docs/manual/value_desc_bool_t.md b/docs/manual/value_desc_bool_t.md index 8ee626415b..f03e2003ba 100644 --- a/docs/manual/value_desc_bool_t.md +++ b/docs/manual/value_desc_bool_t.md @@ -4,6 +4,7 @@ 布尔类型属性描述。 + ---------------------------------- ### 属性

@@ -16,6 +17,7 @@ >

缺省值。 + * 类型:bool\_t | 特性 | 是否支持 | diff --git a/docs/manual/value_desc_double_t.md b/docs/manual/value_desc_double_t.md index a9a74ef617..66f5638988 100644 --- a/docs/manual/value_desc_double_t.md +++ b/docs/manual/value_desc_double_t.md @@ -4,6 +4,7 @@ 单精度浮点数类型属性描述。 + ---------------------------------- ### 属性

@@ -20,6 +21,7 @@ >

缺省值。 + * 类型:double | 特性 | 是否支持 | @@ -31,6 +33,7 @@ >

最大值。 + * 类型:double | 特性 | 是否支持 | @@ -42,6 +45,7 @@ >

最小值。 + * 类型:double | 特性 | 是否支持 | @@ -53,6 +57,7 @@ >

步长。 + * 类型:double\_t | 特性 | 是否支持 | @@ -64,6 +69,7 @@ >

单位。 + * 类型:const char* | 特性 | 是否支持 | diff --git a/docs/manual/value_desc_float_t.md b/docs/manual/value_desc_float_t.md index 3bfd501e63..947027a3a8 100644 --- a/docs/manual/value_desc_float_t.md +++ b/docs/manual/value_desc_float_t.md @@ -4,6 +4,7 @@ 单精度浮点数类型属性描述。 + ---------------------------------- ### 属性

@@ -20,6 +21,7 @@ >

缺省值。 + * 类型:float | 特性 | 是否支持 | @@ -31,6 +33,7 @@ >

最大值。 + * 类型:float | 特性 | 是否支持 | @@ -42,6 +45,7 @@ >

最小值。 + * 类型:float | 特性 | 是否支持 | @@ -53,6 +57,7 @@ >

步长。 + * 类型:float\_t | 特性 | 是否支持 | @@ -64,6 +69,7 @@ >

单位。 + * 类型:const char* | 特性 | 是否支持 | diff --git a/docs/manual/value_desc_int16_t.md b/docs/manual/value_desc_int16_t.md index 096749c05d..8d75602b64 100644 --- a/docs/manual/value_desc_int16_t.md +++ b/docs/manual/value_desc_int16_t.md @@ -4,6 +4,7 @@ 有符号16位整数类型属性描述。 + ---------------------------------- ### 属性

@@ -20,6 +21,7 @@ >

缺省值。 + * 类型:int16\_t | 特性 | 是否支持 | @@ -31,6 +33,7 @@ >

最大值。 + * 类型:int16\_t | 特性 | 是否支持 | @@ -42,6 +45,7 @@ >

最小值。 + * 类型:int16\_t | 特性 | 是否支持 | @@ -53,6 +57,7 @@ >

步长。 + * 类型:int16\_t | 特性 | 是否支持 | @@ -64,6 +69,7 @@ >

单位。 + * 类型:const char* | 特性 | 是否支持 | diff --git a/docs/manual/value_desc_int32_t.md b/docs/manual/value_desc_int32_t.md index 7ee7366bb5..6d86b189fa 100644 --- a/docs/manual/value_desc_int32_t.md +++ b/docs/manual/value_desc_int32_t.md @@ -4,6 +4,7 @@ 有符号32位整数类型属性描述。 + ---------------------------------- ### 属性

@@ -20,6 +21,7 @@ >

缺省值。 + * 类型:int32\_t | 特性 | 是否支持 | @@ -31,6 +33,7 @@ >

最大值。 + * 类型:int32\_t | 特性 | 是否支持 | @@ -42,6 +45,7 @@ >

最小值。 + * 类型:int32\_t | 特性 | 是否支持 | @@ -53,6 +57,7 @@ >

步长。 + * 类型:int32\_t | 特性 | 是否支持 | @@ -64,6 +69,7 @@ >

单位。 + * 类型:const char* | 特性 | 是否支持 | diff --git a/docs/manual/value_desc_int64_t.md b/docs/manual/value_desc_int64_t.md index d5606beb73..cfaae3b753 100644 --- a/docs/manual/value_desc_int64_t.md +++ b/docs/manual/value_desc_int64_t.md @@ -4,6 +4,7 @@ 有符号64位整数类型属性描述。 + ---------------------------------- ### 属性

@@ -20,6 +21,7 @@ >

缺省值。 + * 类型:int64\_t | 特性 | 是否支持 | @@ -31,6 +33,7 @@ >

最大值。 + * 类型:int64\_t | 特性 | 是否支持 | @@ -42,6 +45,7 @@ >

最小值。 + * 类型:int64\_t | 特性 | 是否支持 | @@ -53,6 +57,7 @@ >

步长。 + * 类型:int64\_t | 特性 | 是否支持 | @@ -64,6 +69,7 @@ >

单位。 + * 类型:const char* | 特性 | 是否支持 | diff --git a/docs/manual/value_desc_int8_t.md b/docs/manual/value_desc_int8_t.md index 36a5dca674..9f585b4c61 100644 --- a/docs/manual/value_desc_int8_t.md +++ b/docs/manual/value_desc_int8_t.md @@ -4,6 +4,7 @@ 有符号8位整数类型属性描述。 + ---------------------------------- ### 属性

@@ -20,6 +21,7 @@ >

缺省值。 + * 类型:int8\_t | 特性 | 是否支持 | @@ -31,6 +33,7 @@ >

最大值。 + * 类型:int8\_t | 特性 | 是否支持 | @@ -42,6 +45,7 @@ >

最小值。 + * 类型:int8\_t | 特性 | 是否支持 | @@ -53,6 +57,7 @@ >

步长。 + * 类型:int8\_t | 特性 | 是否支持 | @@ -64,6 +69,7 @@ >

单位。 + * 类型:const char* | 特性 | 是否支持 | diff --git a/docs/manual/value_desc_int_enums_t.md b/docs/manual/value_desc_int_enums_t.md index 40a6c96f95..64311deefe 100644 --- a/docs/manual/value_desc_int_enums_t.md +++ b/docs/manual/value_desc_int_enums_t.md @@ -4,6 +4,7 @@ 整数枚举类型属性描述。 + ---------------------------------- ### 属性

@@ -17,6 +18,7 @@ >

缺省值。 + * 类型:int32\_t | 特性 | 是否支持 | @@ -28,6 +30,7 @@ >

枚举值(每一项用英文冒号分隔值和名称)。 + * 类型:const char** | 特性 | 是否支持 | diff --git a/docs/manual/value_desc_string_enums_t.md b/docs/manual/value_desc_string_enums_t.md index 3fd1238e1a..c9fa7d4341 100644 --- a/docs/manual/value_desc_string_enums_t.md +++ b/docs/manual/value_desc_string_enums_t.md @@ -3,6 +3,7 @@ 字符串枚举类型属性描述。 + ---------------------------------- ### 属性

@@ -16,6 +17,7 @@ >

缺省值。 + * 类型:const char* | 特性 | 是否支持 | @@ -27,6 +29,7 @@ >

枚举值。 + * 类型:const char** | 特性 | 是否支持 | diff --git a/docs/manual/value_desc_string_t.md b/docs/manual/value_desc_string_t.md index 2938d7388d..4096b35923 100644 --- a/docs/manual/value_desc_string_t.md +++ b/docs/manual/value_desc_string_t.md @@ -4,6 +4,7 @@ 字符串类型属性描述。 + ---------------------------------- ### 属性

@@ -18,6 +19,7 @@ >

缺省值。 + * 类型:const char* | 特性 | 是否支持 | @@ -29,6 +31,7 @@ >

最大长度。 + * 类型:uint32\_t | 特性 | 是否支持 | @@ -40,6 +43,7 @@ >

最小长度。 + * 类型:uint32\_t | 特性 | 是否支持 | diff --git a/docs/manual/value_desc_t.md b/docs/manual/value_desc_t.md index 0dca486469..b0c10253c9 100644 --- a/docs/manual/value_desc_t.md +++ b/docs/manual/value_desc_t.md @@ -2,6 +2,7 @@ ### 概述 属性描述。 + ---------------------------------- ### 属性

@@ -19,6 +20,7 @@ >

描述。 + * 类型:const char* | 特性 | 是否支持 | @@ -30,6 +32,7 @@ >

显示名称。 + * 类型:const char* | 特性 | 是否支持 | @@ -41,6 +44,7 @@ >

flags。 + * 类型:uint8\_t | 特性 | 是否支持 | @@ -52,6 +56,7 @@ >

格式。 + * 类型:uint8\_t | 特性 | 是否支持 | @@ -63,6 +68,7 @@ >

名称。 + * 类型:const char* | 特性 | 是否支持 | @@ -74,6 +80,7 @@ >

类型。 + * 类型:uint8\_t | 特性 | 是否支持 | diff --git a/docs/manual/value_desc_type_t.md b/docs/manual/value_desc_type_t.md index 384032ecbe..d93350983d 100644 --- a/docs/manual/value_desc_type_t.md +++ b/docs/manual/value_desc_type_t.md @@ -1,6 +1,7 @@ ## value\_desc\_type\_t ### 概述 属性描述类型常量定义。 + ### 常量

diff --git a/docs/manual/value_desc_uint16_t.md b/docs/manual/value_desc_uint16_t.md index 37d9c4629c..a7bae02f8e 100644 --- a/docs/manual/value_desc_uint16_t.md +++ b/docs/manual/value_desc_uint16_t.md @@ -4,6 +4,7 @@ 无符号16位整数类型属性描述。 + ---------------------------------- ### 属性

@@ -20,6 +21,7 @@ >

缺省值。 + * 类型:uint16\_t | 特性 | 是否支持 | @@ -31,6 +33,7 @@ >

最大值。 + * 类型:uint16\_t | 特性 | 是否支持 | @@ -42,6 +45,7 @@ >

最小值。 + * 类型:uint16\_t | 特性 | 是否支持 | @@ -53,6 +57,7 @@ >

步长。 + * 类型:uint16\_t | 特性 | 是否支持 | @@ -64,6 +69,7 @@ >

单位。 + * 类型:const char* | 特性 | 是否支持 | diff --git a/docs/manual/value_desc_uint32_t.md b/docs/manual/value_desc_uint32_t.md index faf6df93f8..585af84fbd 100644 --- a/docs/manual/value_desc_uint32_t.md +++ b/docs/manual/value_desc_uint32_t.md @@ -4,6 +4,7 @@ 无符号32位整数类型属性描述。 + ---------------------------------- ### 属性

@@ -20,6 +21,7 @@ >

缺省值。 + * 类型:uint32\_t | 特性 | 是否支持 | @@ -31,6 +33,7 @@ >

最大值。 + * 类型:uint32\_t | 特性 | 是否支持 | @@ -42,6 +45,7 @@ >

最小值。 + * 类型:uint32\_t | 特性 | 是否支持 | @@ -53,6 +57,7 @@ >

步长。 + * 类型:uint32\_t | 特性 | 是否支持 | @@ -64,6 +69,7 @@ >

单位。 + * 类型:const char* | 特性 | 是否支持 | diff --git a/docs/manual/value_desc_uint64_t.md b/docs/manual/value_desc_uint64_t.md index 36b86a9091..cfd318cbfb 100644 --- a/docs/manual/value_desc_uint64_t.md +++ b/docs/manual/value_desc_uint64_t.md @@ -4,6 +4,7 @@ 无符号64位整数类型属性描述。 + ---------------------------------- ### 属性

@@ -20,6 +21,7 @@ >

缺省值。 + * 类型:uint64\_t | 特性 | 是否支持 | @@ -31,6 +33,7 @@ >

最大值。 + * 类型:uint64\_t | 特性 | 是否支持 | @@ -42,6 +45,7 @@ >

最小值。 + * 类型:uint64\_t | 特性 | 是否支持 | @@ -53,6 +57,7 @@ >

步长。 + * 类型:uint64\_t | 特性 | 是否支持 | @@ -64,6 +69,7 @@ >

单位。 + * 类型:const char* | 特性 | 是否支持 | diff --git a/docs/manual/value_desc_uint8_t.md b/docs/manual/value_desc_uint8_t.md index cf3881a4ad..7aba72e753 100644 --- a/docs/manual/value_desc_uint8_t.md +++ b/docs/manual/value_desc_uint8_t.md @@ -4,6 +4,7 @@ 无符号8位整数类型属性描述。 + ---------------------------------- ### 属性

@@ -20,6 +21,7 @@ >

缺省值。 + * 类型:uint8\_t | 特性 | 是否支持 | @@ -31,6 +33,7 @@ >

最大值。 + * 类型:uint8\_t | 特性 | 是否支持 | @@ -42,6 +45,7 @@ >

最小值。 + * 类型:uint8\_t | 特性 | 是否支持 | @@ -53,6 +57,7 @@ >

步长。 + * 类型:uint8\_t | 特性 | 是否支持 | @@ -64,6 +69,7 @@ >

单位。 + * 类型:const char* | 特性 | 是否支持 | diff --git a/docs/manual/value_format_type_t.md b/docs/manual/value_format_type_t.md index b348fbba64..c0e6fe7839 100644 --- a/docs/manual/value_format_type_t.md +++ b/docs/manual/value_format_type_t.md @@ -1,6 +1,7 @@ ## value\_format\_type\_t ### 概述 属性描述格式常量定义。 + ### 常量

diff --git a/docs/manual/value_t.md b/docs/manual/value_t.md index 781c790ab4..35a5cc3a30 100644 --- a/docs/manual/value_t.md +++ b/docs/manual/value_t.md @@ -12,6 +12,7 @@ > 在脚本语言中,需要动态创建对象。 + ---------------------------------- ### 函数

@@ -78,6 +79,7 @@ + * 函数原型: ``` @@ -99,6 +101,7 @@ binary_data_t* value_binary_data (value_t* v); + * 函数原型: ``` @@ -122,6 +125,7 @@ bool_t value_bool (value_t* v); + * 函数原型: ``` @@ -143,6 +147,7 @@ value_t* value_cast (value_t* value); + * 函数原型: ``` @@ -165,6 +170,7 @@ ret_t value_copy (value_t* dst, value_t* src); + * 函数原型: ``` @@ -185,6 +191,7 @@ value_t* value_create (); + * 函数原型: ``` @@ -207,6 +214,7 @@ ret_t value_deep_copy (value_t* dst, value_t* src); + * 函数原型: ``` @@ -228,6 +236,7 @@ ret_t value_destroy (value_t* v); + * 函数原型: ``` @@ -251,6 +260,7 @@ double value_double (value_t* v); + * 函数原型: ``` @@ -273,6 +283,7 @@ value_t* value_dup_str (value_t* v, const char* value); + * 函数原型: ``` @@ -295,6 +306,7 @@ bool_t value_equal (value_t* value, value_t* other); + * 函数原型: ``` @@ -316,6 +328,7 @@ float_t value_float (value_t* v); + * 函数原型: ``` @@ -337,6 +350,7 @@ float value_float32 (value_t* v); + * 函数原型: ``` @@ -358,6 +372,7 @@ int value_int (value_t* v); + * 函数原型: ``` @@ -379,6 +394,7 @@ int16_t value_int16 (value_t* v); + * 函数原型: ``` @@ -400,6 +416,7 @@ int32_t value_int32 (value_t* v); + * 函数原型: ``` @@ -421,6 +438,7 @@ int64_t value_int64 (value_t* v); + * 函数原型: ``` @@ -442,6 +460,7 @@ int8_t value_int8 (value_t* v); + * 函数原型: ``` @@ -463,6 +482,7 @@ bool_t value_is_null (value_t* value); + * 函数原型: ``` @@ -484,6 +504,7 @@ object_t* value_object (value_t* v); + * 函数原型: ``` @@ -505,6 +526,7 @@ void* value_pointer (value_t* v); + * 函数原型: ``` @@ -526,6 +548,7 @@ ret_t value_reset (value_t* v); + * 函数原型: ``` @@ -549,6 +572,7 @@ value_t* value_set_binary_data (value_t* v, void* value, uint32_t size); + * 函数原型: ``` @@ -571,6 +595,7 @@ value_t* value_set_bool (value_t* v, bool_t value); + * 函数原型: ``` @@ -593,6 +618,7 @@ value_t* value_set_double (value_t* v, double value); + * 函数原型: ``` @@ -615,6 +641,7 @@ value_t* value_set_float (value_t* v, float_t value); + * 函数原型: ``` @@ -637,6 +664,7 @@ value_t* value_set_float32 (value_t* v, float value); + * 函数原型: ``` @@ -659,6 +687,7 @@ value_t* value_set_int (value_t* v, int32_t value); + * 函数原型: ``` @@ -681,6 +710,7 @@ value_t* value_set_int16 (value_t* v, int16_t value); + * 函数原型: ``` @@ -703,6 +733,7 @@ value_t* value_set_int32 (value_t* v, int32_t value); + * 函数原型: ``` @@ -725,6 +756,7 @@ value_t* value_set_int64 (value_t* v, int64_t value); + * 函数原型: ``` @@ -747,6 +779,7 @@ value_t* value_set_int8 (value_t* v, int8_t value); + * 函数原型: ``` @@ -769,6 +802,7 @@ value_t* value_set_object (value_t* v, object_t* value); + * 函数原型: ``` @@ -791,6 +825,7 @@ value_t* value_set_pointer (value_t* v, pointer_t value); + * 函数原型: ``` @@ -814,6 +849,7 @@ value_t* value_set_sized_str (value_t* v, char* str, uint32_t size); + * 函数原型: ``` @@ -836,6 +872,7 @@ value_t* value_set_str (value_t* v, const char* value); + * 函数原型: ``` @@ -858,6 +895,7 @@ value_t* value_set_token (value_t* v, uint32_t value); + * 函数原型: ``` @@ -881,6 +919,7 @@ value_t* value_set_ubjson (value_t* v, void* value, uint32_t size); + * 函数原型: ``` @@ -903,6 +942,7 @@ value_t* value_set_uint16 (value_t* v, uint16_t value); + * 函数原型: ``` @@ -925,6 +965,7 @@ value_t* value_set_uint32 (value_t* v, uint32_t value); + * 函数原型: ``` @@ -947,6 +988,7 @@ value_t* value_set_uint64 (value_t* v, uint64_t value); + * 函数原型: ``` @@ -969,6 +1011,7 @@ value_t* value_set_uint8 (value_t* v, uint8_t value); + * 函数原型: ``` @@ -991,6 +1034,7 @@ value_t* value_set_wstr (value_t* v, const wchar_t* value); + * 函数原型: ``` @@ -1012,6 +1056,7 @@ sized_str_t* value_sized_str (value_t* v); + * 函数原型: ``` @@ -1033,6 +1078,7 @@ const char* value_str (value_t* v); + * 函数原型: ``` @@ -1054,6 +1100,7 @@ uint32_t value_token (value_t* v); + * 函数原型: ``` @@ -1075,6 +1122,7 @@ binary_data_t* value_ubjson (value_t* v); + * 函数原型: ``` @@ -1096,6 +1144,7 @@ uint16_t value_uint16 (value_t* v); + * 函数原型: ``` @@ -1117,6 +1166,7 @@ uint32_t value_uint32 (value_t* v); + * 函数原型: ``` @@ -1138,6 +1188,7 @@ uint64_t value_uint64 (value_t* v); + * 函数原型: ``` @@ -1159,6 +1210,7 @@ int8_t value_uint8 (value_t* v); + * 函数原型: ``` diff --git a/docs/manual/value_type_t.md b/docs/manual/value_type_t.md index 8a03ab7c1f..1963f64f64 100644 --- a/docs/manual/value_type_t.md +++ b/docs/manual/value_type_t.md @@ -1,6 +1,7 @@ ## value\_type\_t ### 概述 类型常量定义。 + ### 常量

diff --git a/docs/manual/vgcanvas_t.md b/docs/manual/vgcanvas_t.md index 9ce7e7db8a..60bfcc7806 100644 --- a/docs/manual/vgcanvas_t.md +++ b/docs/manual/vgcanvas_t.md @@ -34,6 +34,7 @@ >请参考:https://www.w3schools.com/tags/ref_canvas.asp + ---------------------------------- ### 函数

@@ -126,6 +127,7 @@ + * 函数原型: ``` @@ -154,6 +156,7 @@ ret_t vgcanvas_arc (vgcanvas_t* vg, float_t x, float_t y, float_t r, float_t sta + * 函数原型: ``` @@ -181,6 +184,7 @@ ret_t vgcanvas_arc_to (vgcanvas_t* vg, float_t x1, float_t y1, float_t x2, float + * 函数原型: ``` @@ -204,6 +208,7 @@ ret_t vgcanvas_begin_frame (vgcanvas_t* vg, rect_t* dirty_rect); + * 函数原型: ``` @@ -226,6 +231,7 @@ ret_t vgcanvas_begin_path (vgcanvas_t* vg); + * 函数原型: ``` @@ -253,6 +259,7 @@ ret_t vgcanvas_bezier_to (vgcanvas_t* vg, float_t cp1x, float_t cp1y, float_t cp + * 函数原型: ``` @@ -275,6 +282,7 @@ vgcanvas_t* vgcanvas_cast (vgcanvas_t* vg); + * 函数原型: ``` @@ -302,6 +310,7 @@ ret_t vgcanvas_clear_rect (vgcanvas_t* vg, float_t x, float_t y, float_t w, floa + * 函数原型: ``` @@ -330,6 +339,7 @@ ret_t vgcanvas_clip_rect (vgcanvas_t* vg, float_t x, float_t y, float_t w, float + * 函数原型: ``` @@ -351,6 +361,7 @@ ret_t vgcanvas_close_path (vgcanvas_t* vg); + * 函数原型: ``` @@ -376,6 +387,7 @@ vgcanvas_t vgcanvas_create (uint32_t w, uint32_t h, uint32_t stride, bitmap_form + * 函数原型: ``` @@ -400,6 +412,7 @@ ret_t vgcanvas_destroy (vgcanvas_t* vg); + * 函数原型: ``` @@ -431,6 +444,7 @@ ret_t vgcanvas_draw_icon (vgcanvas_t* vg, bitmap_t* img, float_t sx, float_t sy, + * 函数原型: ``` @@ -462,6 +476,7 @@ ret_t vgcanvas_draw_image (vgcanvas_t* vg, bitmap_t* img, float_t sx, float_t sy + * 函数原型: ``` @@ -487,6 +502,7 @@ ret_t vgcanvas_ellipse (vgcanvas_t* vg, float_t x, float_t y, float_t rx, float_ + * 函数原型: ``` @@ -509,6 +525,7 @@ ret_t vgcanvas_end_frame (vgcanvas_t* vg); + * 函数原型: ``` @@ -531,6 +548,7 @@ ret_t vgcanvas_fill (vgcanvas_t* vg); + * 函数原型: ``` @@ -557,6 +575,7 @@ ret_t vgcanvas_fill_text (vgcanvas_t* vg, char* text, float_t x, float_t y, floa + * 函数原型: ``` @@ -578,6 +597,7 @@ ret_t vgcanvas_flush (vgcanvas_t* vg); + * 函数原型: ``` @@ -599,6 +619,7 @@ wh_t vgcanvas_get_height (vgcanvas_t* vgcanvas); + * 函数原型: ``` @@ -621,6 +642,7 @@ wh_t vgcanvas_get_width (vgcanvas_t* vgcanvas); + * 函数原型: ``` @@ -645,6 +667,7 @@ bool_t vgcanvas_is_point_in_path (vgcanvas_t* vg, float_t x, float_t y); + * 函数原型: ``` @@ -669,6 +692,7 @@ ret_t vgcanvas_line_to (vgcanvas_t* vg, float_t x, float_t y); + * 函数原型: ``` @@ -692,6 +716,7 @@ float_t vgcanvas_measure_text (vgcanvas_t* vg, char* text); + * 函数原型: ``` @@ -717,6 +742,7 @@ ret_t vgcanvas_move_to (vgcanvas_t* vg, float_t x, float_t y); + * 函数原型: ``` @@ -741,6 +767,7 @@ ret_t vgcanvas_paint (vgcanvas_t* vg, bool_t stroke, bitmap_t* img); + * 函数原型: ``` @@ -767,6 +794,7 @@ ret_t vgcanvas_quad_to (vgcanvas_t* vg, float_t cpx, float_t cpy, float_t x, flo + * 函数原型: ``` @@ -793,6 +821,7 @@ ret_t vgcanvas_rect (vgcanvas_t* vg, float_t x, float_t y, float_t w, float_t h) + * 函数原型: ``` @@ -820,6 +849,7 @@ ret_t vgcanvas_reinit (vgcanvas_t* vg, uint32_t w, uint32_t h, uint32_t stride, + * 函数原型: ``` @@ -844,6 +874,7 @@ ret_t vgcanvas_reset (vgcanvas_t* vg); + * 函数原型: ``` @@ -866,6 +897,7 @@ ret_t vgcanvas_restore (vgcanvas_t* vg); + * 函数原型: ``` @@ -889,6 +921,7 @@ ret_t vgcanvas_rotate (vgcanvas_t* vg, float_t rad); + * 函数原型: ``` @@ -918,6 +951,7 @@ ret_t vgcanvas_rounded_rect (vgcanvas_t* vg, float_t x, float_t y, float_t w, fl + * 函数原型: ``` @@ -940,6 +974,7 @@ ret_t vgcanvas_save (vgcanvas_t* vg); + * 函数原型: ``` @@ -964,6 +999,7 @@ ret_t vgcanvas_scale (vgcanvas_t* vg, float_t x, float_t y); + * 函数原型: ``` @@ -987,6 +1023,7 @@ ret_t vgcanvas_set_antialias (vgcanvas_t* vg, bool_t value); + * 函数原型: ``` @@ -1010,6 +1047,7 @@ ret_t vgcanvas_set_fill_color (vgcanvas_t* vg, color_t color); + * 函数原型: ``` @@ -1033,6 +1071,7 @@ ret_t vgcanvas_set_fill_color_str (vgcanvas_t* vg, const char* color); + * 函数原型: ``` @@ -1061,6 +1100,7 @@ ret_t vgcanvas_set_fill_linear_gradient (vgcanvas_t* vg, float_t sx, float_t sy, + * 函数原型: ``` @@ -1089,6 +1129,7 @@ ret_t vgcanvas_set_fill_radial_gradient (vgcanvas_t* vg, float_t cx, float_t cy, + * 函数原型: ``` @@ -1112,6 +1153,7 @@ ret_t vgcanvas_set_font (vgcanvas_t* vg, char* font); + * 函数原型: ``` @@ -1135,6 +1177,7 @@ ret_t vgcanvas_set_font_size (vgcanvas_t* vg, float_t font); + * 函数原型: ``` @@ -1158,6 +1201,7 @@ ret_t vgcanvas_set_global_alpha (vgcanvas_t* vg, float_t alpha); + * 函数原型: ``` @@ -1181,6 +1225,7 @@ ret_t vgcanvas_set_line_cap (vgcanvas_t* vg, char* value); + * 函数原型: ``` @@ -1204,6 +1249,7 @@ ret_t vgcanvas_set_line_join (vgcanvas_t* vg, char* value); + * 函数原型: ``` @@ -1227,6 +1273,7 @@ ret_t vgcanvas_set_line_width (vgcanvas_t* vg, float_t value); + * 函数原型: ``` @@ -1250,6 +1297,7 @@ ret_t vgcanvas_set_miter_limit (vgcanvas_t* vg, float_t value); + * 函数原型: ``` @@ -1273,6 +1321,7 @@ ret_t vgcanvas_set_stroke_color (vgcanvas_t* vg, color_t color); + * 函数原型: ``` @@ -1296,6 +1345,7 @@ ret_t vgcanvas_set_stroke_color_str (vgcanvas_t* vg, const char* color); + * 函数原型: ``` @@ -1324,6 +1374,7 @@ ret_t vgcanvas_set_stroke_linear_gradient (vgcanvas_t* vg, float_t sx, float_t s + * 函数原型: ``` @@ -1352,6 +1403,7 @@ ret_t vgcanvas_set_stroke_radial_gradient (vgcanvas_t* vg, float_t cx, float_t c + * 函数原型: ``` @@ -1375,6 +1427,7 @@ ret_t vgcanvas_set_text_align (vgcanvas_t* vg, char* value); + * 函数原型: ``` @@ -1398,6 +1451,7 @@ ret_t vgcanvas_set_text_baseline (vgcanvas_t* vg, char* value); + * 函数原型: ``` @@ -1426,6 +1480,7 @@ ret_t vgcanvas_set_transform (vgcanvas_t* vg, float_t a, float_t b, float_t c, f + * 函数原型: ``` @@ -1448,6 +1503,7 @@ ret_t vgcanvas_stroke (vgcanvas_t* vg); + * 函数原型: ``` @@ -1476,6 +1532,7 @@ ret_t vgcanvas_transform (vgcanvas_t* vg, float_t a, float_t b, float_t c, float + * 函数原型: ``` @@ -1495,6 +1552,7 @@ ret_t vgcanvas_translate (vgcanvas_t* vg, float_t x, float_t y); >

是否启用反走样功能。 + * 类型:bool\_t | 特性 | 是否支持 | @@ -1507,6 +1565,7 @@ ret_t vgcanvas_translate (vgcanvas_t* vg, float_t x, float_t y); >

填充颜色 + * 类型:color\_t | 特性 | 是否支持 | @@ -1518,6 +1577,7 @@ ret_t vgcanvas_translate (vgcanvas_t* vg, float_t x, float_t y); >

字体。 + * 类型:char* | 特性 | 是否支持 | @@ -1530,6 +1590,7 @@ ret_t vgcanvas_translate (vgcanvas_t* vg, float_t x, float_t y); >

字体大小。 + * 类型:float\_t | 特性 | 是否支持 | @@ -1542,6 +1603,7 @@ ret_t vgcanvas_translate (vgcanvas_t* vg, float_t x, float_t y); >

全局alpha。 + * 类型:float\_t | 特性 | 是否支持 | @@ -1554,6 +1616,7 @@ ret_t vgcanvas_translate (vgcanvas_t* vg, float_t x, float_t y); >

canvas的高度 + * 类型:wh\_t | 特性 | 是否支持 | @@ -1567,6 +1630,7 @@ ret_t vgcanvas_translate (vgcanvas_t* vg, float_t x, float_t y); @see http://www.w3school.com.cn/tags/canvas_linecap.asp + * 类型:const char* | 特性 | 是否支持 | @@ -1580,6 +1644,7 @@ ret_t vgcanvas_translate (vgcanvas_t* vg, float_t x, float_t y); @see http://www.w3school.com.cn/tags/canvas_linejoin.asp + * 类型:const char* | 特性 | 是否支持 | @@ -1592,6 +1657,7 @@ ret_t vgcanvas_translate (vgcanvas_t* vg, float_t x, float_t y); >

线宽。 + * 类型:float\_t | 特性 | 是否支持 | @@ -1605,6 +1671,7 @@ ret_t vgcanvas_translate (vgcanvas_t* vg, float_t x, float_t y); @see http://www.w3school.com.cn/tags/canvas_miterlimit.asp + * 类型:float\_t | 特性 | 是否支持 | @@ -1617,6 +1684,7 @@ ret_t vgcanvas_translate (vgcanvas_t* vg, float_t x, float_t y); >

显示比例。 + * 类型:float\_t | 特性 | 是否支持 | @@ -1629,6 +1697,7 @@ ret_t vgcanvas_translate (vgcanvas_t* vg, float_t x, float_t y); >

线条颜色 + * 类型:color\_t | 特性 | 是否支持 | @@ -1642,6 +1711,7 @@ ret_t vgcanvas_translate (vgcanvas_t* vg, float_t x, float_t y); @see http://www.w3school.com.cn/tags/canvas_textalign.asp + * 类型:const char* | 特性 | 是否支持 | @@ -1656,6 +1726,7 @@ ret_t vgcanvas_translate (vgcanvas_t* vg, float_t x, float_t y); @see http://www.w3school.com.cn/tags/canvas_textbaseline.asp + * 类型:const char* | 特性 | 是否支持 | @@ -1668,6 +1739,7 @@ ret_t vgcanvas_translate (vgcanvas_t* vg, float_t x, float_t y); >

canvas的宽度 + * 类型:wh\_t | 特性 | 是否支持 | diff --git a/docs/manual/wbuffer_t.md b/docs/manual/wbuffer_t.md index e63e31d9a9..015a9b6032 100644 --- a/docs/manual/wbuffer_t.md +++ b/docs/manual/wbuffer_t.md @@ -29,6 +29,7 @@ + ---------------------------------- ### 函数

@@ -64,6 +65,7 @@ + * 函数原型: ``` @@ -85,6 +87,7 @@ ret_t wbuffer_deinit (wbuffer_t* wbuffer); + * 函数原型: ``` @@ -107,6 +110,7 @@ ret_t wbuffer_extend_capacity (wbuffer_t* wbuffer, uint32_t capacity); + * 函数原型: ``` @@ -131,6 +135,7 @@ wbuffer_t* wbuffer_init (wbuffer_t* wbuffer, uint8_t* data, uint16_t capacity); + * 函数原型: ``` @@ -152,6 +157,7 @@ wbuffer_t* wbuffer_init_extendable (wbuffer_t* wbuffer); + * 函数原型: ``` @@ -174,6 +180,7 @@ ret_t wbuffer_skip (wbuffer_t* wbuffer, int32_t delta); + * 函数原型: ``` @@ -197,6 +204,7 @@ ret_t wbuffer_write_binary (wbuffer_t* wbuffer, void* data, uint32_t size); + * 函数原型: ``` @@ -219,6 +227,7 @@ ret_t wbuffer_write_float (wbuffer_t* wbuffer, float_t value); + * 函数原型: ``` @@ -241,6 +250,7 @@ ret_t wbuffer_write_string (wbuffer_t* wbuffer, char* data); + * 函数原型: ``` @@ -263,6 +273,7 @@ ret_t wbuffer_write_uint16 (wbuffer_t* wbuffer, uint16_t value); + * 函数原型: ``` @@ -285,6 +296,7 @@ ret_t wbuffer_write_uint32 (wbuffer_t* wbuffer, uint32_t value); + * 函数原型: ``` @@ -303,6 +315,7 @@ ret_t wbuffer_write_uint8 (wbuffer_t* wbuffer, uint8_t value); >

缓存区最大容量。 + * 类型:uint32\_t | 特性 | 是否支持 | @@ -314,6 +327,7 @@ ret_t wbuffer_write_uint8 (wbuffer_t* wbuffer, uint8_t value); >

当前写入位置。 + * 类型:uint32\_t | 特性 | 是否支持 | @@ -325,6 +339,7 @@ ret_t wbuffer_write_uint8 (wbuffer_t* wbuffer, uint8_t value); >

缓存区。 + * 类型:uint8\_t* | 特性 | 是否支持 | @@ -336,6 +351,7 @@ ret_t wbuffer_write_uint8 (wbuffer_t* wbuffer, uint8_t value); >

容量是否可扩展。 + * 类型:bool\_t | 特性 | 是否支持 | diff --git a/docs/manual/wheel_event_t.md b/docs/manual/wheel_event_t.md index 00193051c6..a3b9d7aec8 100644 --- a/docs/manual/wheel_event_t.md +++ b/docs/manual/wheel_event_t.md @@ -4,6 +4,7 @@ 滚轮事件。 + ---------------------------------- ### 函数

@@ -30,6 +31,7 @@ + * 函数原型: ``` @@ -51,6 +53,7 @@ wheel_event_t* wheel_event_cast (event_t* event); + * 函数原型: ``` @@ -71,6 +74,7 @@ event_t* wheel_event_init (wheel_event_t* event, void* target, uint32_t type, in >

alt键是否按下。 + * 类型:bool\_t | 特性 | 是否支持 | @@ -83,6 +87,7 @@ event_t* wheel_event_init (wheel_event_t* event, void* target, uint32_t type, in >

ctrl键是否按下。 + * 类型:bool\_t | 特性 | 是否支持 | @@ -95,6 +100,7 @@ event_t* wheel_event_init (wheel_event_t* event, void* target, uint32_t type, in >

滚轮的y值。 + * 类型:int32\_t | 特性 | 是否支持 | @@ -107,6 +113,7 @@ event_t* wheel_event_init (wheel_event_t* event, void* target, uint32_t type, in >

shift键是否按下。 + * 类型:bool\_t | 特性 | 是否支持 | diff --git a/docs/manual/widget_animator_prop2_t.md b/docs/manual/widget_animator_prop2_t.md index 19858a12d8..70efb587ba 100644 --- a/docs/manual/widget_animator_prop2_t.md +++ b/docs/manual/widget_animator_prop2_t.md @@ -2,6 +2,7 @@ ### 概述 通过修改对象的两个指定属性形成动画效果。 + ---------------------------------- ### 函数

@@ -19,6 +20,7 @@ + * 函数原型: ``` @@ -45,6 +47,7 @@ widget_animator_t* widget_animator_prop2_create (widget_t* widget, uint32_t dura + * 函数原型: ``` diff --git a/docs/manual/widget_animator_prop_t.md b/docs/manual/widget_animator_prop_t.md index 9ba01da372..ff60353101 100644 --- a/docs/manual/widget_animator_prop_t.md +++ b/docs/manual/widget_animator_prop_t.md @@ -2,6 +2,7 @@ ### 概述 通过修改对象的指定属性形成动画效果。 + ---------------------------------- ### 函数

@@ -19,6 +20,7 @@ + * 函数原型: ``` @@ -44,6 +46,7 @@ widget_animator_t* widget_animator_prop_create (widget_t* widget, uint32_t durat + * 函数原型: ``` diff --git a/docs/manual/widget_animator_scroll_t.md b/docs/manual/widget_animator_scroll_t.md index 44b1df1eb0..56c0696fc7 100644 --- a/docs/manual/widget_animator_scroll_t.md +++ b/docs/manual/widget_animator_scroll_t.md @@ -3,6 +3,7 @@ 滚动控件的动画。 本动画也可以用widget_animator_prop2实现,但滚动控件需要访问内部数据结构,出于可读性考虑保留独立实现。 + ---------------------------------- ### 函数

@@ -20,6 +21,7 @@ + * 函数原型: ``` @@ -44,6 +46,7 @@ widget_animator_t* widget_animator_scroll_create (widget_t* widget, uint32_t dur + * 函数原型: ``` diff --git a/docs/manual/widget_animator_t.md b/docs/manual/widget_animator_t.md index 21ce20061c..6a09c80394 100644 --- a/docs/manual/widget_animator_t.md +++ b/docs/manual/widget_animator_t.md @@ -2,6 +2,7 @@ ### 概述 控件动画接口。 + ---------------------------------- ### 函数

@@ -36,6 +37,7 @@ + * 函数原型: ``` @@ -57,6 +59,7 @@ ret_t widget_animator_destroy (widget_animator_t* animator); + * 函数原型: ``` @@ -82,6 +85,7 @@ ret_t widget_animator_init (widget_animator_t* animator, widget_t* widget, uint3 + * 函数原型: ``` @@ -105,6 +109,7 @@ ret_t widget_animator_off (widget_animator_t* animator, uint32_t id); + * 函数原型: ``` @@ -129,6 +134,7 @@ uint32_t widget_animator_on (widget_animator_t* animator, event_type_t , event_f + * 函数原型: ``` @@ -150,6 +156,7 @@ ret_t widget_animator_pause (widget_animator_t* animator); + * 函数原型: ``` @@ -172,6 +179,7 @@ ret_t widget_animator_set_destroy_when_done (widget_animator_t* animator, bool_t + * 函数原型: ``` @@ -194,6 +202,7 @@ ret_t widget_animator_set_name (widget_animator_t* animator, const char* name); + * 函数原型: ``` @@ -216,6 +225,7 @@ ret_t widget_animator_set_repeat (widget_animator_t* animator, uint32_t repeat_t + * 函数原型: ``` @@ -238,6 +248,7 @@ ret_t widget_animator_set_reversed (widget_animator_t* animator, bool_t value); + * 函数原型: ``` @@ -260,6 +271,7 @@ ret_t widget_animator_set_time_scale (widget_animator_t* animator, float_t time_ + * 函数原型: ``` @@ -282,6 +294,7 @@ ret_t widget_animator_set_yoyo (widget_animator_t* animator, uint32_t yoyo_times + * 函数原型: ``` @@ -303,6 +316,7 @@ ret_t widget_animator_start (widget_animator_t* animator); + * 函数原型: ``` @@ -320,5 +334,6 @@ ret_t widget_animator_stop (widget_animator_t* animator); >

名称。 + * 类型:char* diff --git a/docs/manual/widget_factory_t.md b/docs/manual/widget_factory_t.md index 7374598a82..abfc030093 100644 --- a/docs/manual/widget_factory_t.md +++ b/docs/manual/widget_factory_t.md @@ -8,6 +8,7 @@ 用户注册自定义控件,可以获得内置控件同等待遇。 + ---------------------------------- ### 函数

@@ -28,6 +29,7 @@ >

获取缺省的控件工厂对象。 + * 函数原型: ``` @@ -48,6 +50,7 @@ widget_factory_t* widget_factory (); + * 函数原型: ``` @@ -68,6 +71,7 @@ widget_factory_t* widget_factory_create (); + * 函数原型: ``` @@ -94,6 +98,7 @@ widget_t* widget_factory_create_widget (widget_factory_t* factory, const char* t + * 函数原型: ``` @@ -115,6 +120,7 @@ ret_t widget_factory_destroy (widget_factory_t* factory); + * 函数原型: ``` @@ -138,6 +144,7 @@ ret_t widget_factory_register (widget_factory_t* factory, const char* type, widg + * 函数原型: ``` diff --git a/docs/manual/widget_prop_t.md b/docs/manual/widget_prop_t.md index 98ad6a4f9f..f99ff4a2f0 100644 --- a/docs/manual/widget_prop_t.md +++ b/docs/manual/widget_prop_t.md @@ -1,6 +1,7 @@ ## widget\_prop\_t ### 概述 控件的属性。 + ### 常量

diff --git a/docs/manual/widget_state_t.md b/docs/manual/widget_state_t.md index 238f785311..f900c49251 100644 --- a/docs/manual/widget_state_t.md +++ b/docs/manual/widget_state_t.md @@ -3,6 +3,7 @@ 控件状态常量定义。 这里指定常用的状态值,扩展控件可以在自己的头文件中定义私有的状态。 + ### 常量

diff --git a/docs/manual/widget_t.md b/docs/manual/widget_t.md index 2474bdaad8..b03ab9da7d 100644 --- a/docs/manual/widget_t.md +++ b/docs/manual/widget_t.md @@ -45,6 +45,7 @@ ``` + ---------------------------------- ### 函数

@@ -130,6 +131,7 @@ | widget\_set\_style\_str | 设置字符串类型的style。 | | widget\_set\_text | 设置控件的文本。 | | widget\_set\_text\_utf8 | 设置控件的文本。 | +| widget\_set\_theme | 设置theme的名称,用于动态切换主题。名称与当前主题名称相同,则重新加载全部资源。 | | widget\_set\_tr\_text | 获取翻译之后的文本,然后调用widget_set_text。 | | widget\_set\_value | 设置控件的值。 | | widget\_set\_visible | 设置控件的可见性。 | @@ -218,6 +220,7 @@ + * 函数原型: ``` @@ -242,6 +245,7 @@ ret_t widget_add_child (widget_t* widget, widget_t* child); + * 函数原型: ``` @@ -279,6 +283,7 @@ uint32_t widget_add_idle (widget_t* widget, idle_func_t on_idle); + * 函数原型: ``` @@ -303,6 +308,7 @@ uint32_t widget_add_timer (widget_t* widget, timer_func_t on_timer, uint32_t dur + * 函数原型: ``` @@ -326,6 +332,7 @@ ret_t widget_add_value (widget_t* widget, int32_t delta); + * 函数原型: ``` @@ -349,6 +356,7 @@ ret_t widget_animate_value_to (widget_t* widget, int32_t value, uint32_t duratio + * 函数原型: ``` @@ -370,6 +378,7 @@ widget_t* widget_cast (widget_t* widget); + * 函数原型: ``` @@ -393,6 +402,7 @@ widget_t* widget_child (widget_t* widget, char* name); + * 函数原型: ``` @@ -418,6 +428,7 @@ int32_t widget_child_on (widget_t* widget, char* name, uint32_t type, event_func + * 函数原型: ``` @@ -440,6 +451,7 @@ widget_t* widget_clone (widget_t* widget, widget_t* parent); + * 函数原型: ``` @@ -466,6 +478,7 @@ int32_t widget_count_children (widget_t* widget); + * 函数原型: ``` @@ -489,6 +502,7 @@ ret_t widget_create_animator (widget_t* widget, const char* animation); + * 函数原型: ``` @@ -516,6 +530,7 @@ ret_t widget_destroy (widget_t* widget); + * 函数原型: ``` @@ -538,6 +553,7 @@ ret_t widget_destroy_animator (widget_t* widget, char* name); + * 函数原型: ``` @@ -559,6 +575,7 @@ ret_t widget_destroy_children (widget_t* widget); + * 函数原型: ``` @@ -581,6 +598,7 @@ ret_t widget_dispatch (widget_t* widget, event_t* e); + * 函数原型: ``` @@ -604,6 +622,7 @@ bool_t widget_equal (widget_t* widget, widget_t* other); + * 函数原型: ``` @@ -626,6 +645,7 @@ widget_animator_t* widget_find_animator (widget_t* widget, char* name); + * 函数原型: ``` @@ -649,6 +669,7 @@ ret_t widget_foreach (widget_t* widget, tk_visit_t visit, void* ctx); + * 函数原型: ``` @@ -669,6 +690,7 @@ canvas_t* widget_get_canvas (); + * 函数原型: ``` @@ -691,6 +713,7 @@ widget_t* widget_get_child (widget_t* widget, int32_t index); + * 函数原型: ``` @@ -714,6 +737,7 @@ ret_t widget_get_prop (widget_t* widget, const char* name, value_t* v); + * 函数原型: ``` @@ -737,6 +761,7 @@ bool_t widget_get_prop_bool (widget_t* widget, const char* name, bool_t defval); + * 函数原型: ``` @@ -760,6 +785,7 @@ ret_t widget_get_prop_default_value (widget_t* widget, const char* name, value_t + * 函数原型: ``` @@ -783,6 +809,7 @@ int32_t widget_get_prop_int (widget_t* widget, const char* name, int32_t defval) + * 函数原型: ``` @@ -805,6 +832,7 @@ void* widget_get_prop_pointer (widget_t* widget, const char* name); + * 函数原型: ``` @@ -829,6 +857,7 @@ const char* widget_get_prop_str (widget_t* widget, const char* name, const char* + * 函数原型: ``` @@ -850,6 +879,7 @@ wchar_t* widget_get_text (widget_t* widget); + * 函数原型: ``` @@ -871,6 +901,7 @@ char* widget_get_type (widget_t* widget); + * 函数原型: ``` @@ -892,6 +923,7 @@ int32_t widget_get_value (widget_t* widget); + * 函数原型: ``` @@ -913,6 +945,7 @@ widget_t* widget_get_window (widget_t* widget); + * 函数原型: ``` @@ -935,6 +968,7 @@ widget_t* widget_get_window_manager (widget_t* widget); + * 函数原型: ``` @@ -957,6 +991,7 @@ ret_t widget_grab (widget_t* widget, widget_t* child); + * 函数原型: ``` @@ -978,6 +1013,7 @@ int32_t widget_index_of (widget_t* widget); + * 函数原型: ``` @@ -1001,6 +1037,7 @@ ret_t widget_insert_child (widget_t* widget, uint32_t index, widget_t* child); + * 函数原型: ``` @@ -1023,6 +1060,7 @@ ret_t widget_invalidate (widget_t* widget, rect_t* r); + * 函数原型: ``` @@ -1045,6 +1083,7 @@ ret_t widget_invalidate_force (widget_t* widget, rect_t* r); + * 函数原型: ``` @@ -1066,6 +1105,7 @@ bool_t widget_is_designing_window (widget_t* widget); + * 函数原型: ``` @@ -1087,6 +1127,7 @@ bool_t widget_is_window (widget_t* widget); + * 函数原型: ``` @@ -1108,6 +1149,7 @@ bool_t widget_is_window_manager (widget_t* widget); + * 函数原型: ``` @@ -1129,6 +1171,7 @@ bool_t widget_is_window_opened (widget_t* widget); + * 函数原型: ``` @@ -1150,6 +1193,7 @@ ret_t widget_layout (widget_t* widget); + * 函数原型: ``` @@ -1179,6 +1223,7 @@ ret_t widget_layout_children (widget_t* widget); + * 函数原型: ``` @@ -1212,6 +1257,7 @@ const asset_info_t* widget_load_asset (widget_t* widget, asset_type_t type, cons + * 函数原型: ``` @@ -1235,6 +1281,7 @@ ret_t widget_load_image (widget_t* widget, const char* name, bitmap_t* bitmap); + * 函数原型: ``` @@ -1258,6 +1305,7 @@ widget_t* widget_lookup (widget_t* widget, char* name, bool_t recursive); + * 函数原型: ``` @@ -1281,6 +1329,7 @@ widget_t* widget_lookup_by_type (widget_t* widget, char* type, bool_t recursive) + * 函数原型: ``` @@ -1304,6 +1353,7 @@ ret_t widget_move (widget_t* widget, xy_t x, xy_t y); + * 函数原型: ``` @@ -1329,6 +1379,7 @@ ret_t widget_move_resize (widget_t* widget, xy_t x, xy_t y, wh_t w, wh_t h); + * 函数原型: ``` @@ -1352,6 +1403,7 @@ ret_t widget_off (widget_t* widget, int32_t id); + * 函数原型: ``` @@ -1383,6 +1435,7 @@ ret_t widget_off_by_func (widget_t* widget, uint32_t type, event_func_t on_event + * 函数原型: ``` @@ -1413,6 +1466,7 @@ int32_t widget_on (widget_t* widget, uint32_t type, event_func_t on_event, void* + * 函数原型: ``` @@ -1435,6 +1489,7 @@ ret_t widget_pause_animator (widget_t* widget, char* name); + * 函数原型: ``` @@ -1457,6 +1512,7 @@ ret_t widget_remove_child (widget_t* widget, widget_t* child); + * 函数原型: ``` @@ -1480,6 +1536,7 @@ ret_t widget_resize (widget_t* widget, wh_t w, wh_t h); + * 函数原型: ``` @@ -1504,6 +1561,7 @@ ret_t widget_restack (widget_t* widget, uint32_t index); + * 函数原型: ``` @@ -1532,6 +1590,7 @@ ret_t widget_set_animation (widget_t* widget, const char* animation); + * 函数原型: ``` @@ -1555,6 +1614,7 @@ ret_t widget_set_animator_time_scale (widget_t* widget, const char* name, float_ + * 函数原型: ``` @@ -1577,6 +1637,7 @@ ret_t widget_set_children_layout (widget_t* widget, const char* params); + * 函数原型: ``` @@ -1599,6 +1660,7 @@ ret_t widget_set_cursor (widget_t* widget, char* cursor); + * 函数原型: ``` @@ -1621,6 +1683,7 @@ ret_t widget_set_enable (widget_t* widget, bool_t enable); + * 函数原型: ``` @@ -1643,6 +1706,7 @@ ret_t widget_set_feedback (widget_t* widget, bool_t feedback); + * 函数原型: ``` @@ -1665,6 +1729,7 @@ ret_t widget_set_floating (widget_t* widget, bool_t floating); + * 函数原型: ``` @@ -1687,6 +1752,7 @@ ret_t widget_set_focused (widget_t* widget, bool_t focused); + * 函数原型: ``` @@ -1712,6 +1778,7 @@ ret_t widget_set_name (widget_t* widget, char* name); + * 函数原型: ``` @@ -1734,6 +1801,7 @@ ret_t widget_set_opacity (widget_t* widget, uint8_t opacity); + * 函数原型: ``` @@ -1757,6 +1825,7 @@ ret_t widget_set_prop (widget_t* widget, const char* name, value_t* v); + * 函数原型: ``` @@ -1780,6 +1849,7 @@ ret_t widget_set_prop_bool (widget_t* widget, const char* name, bool_t v); + * 函数原型: ``` @@ -1803,6 +1873,7 @@ ret_t widget_set_prop_int (widget_t* widget, const char* name, int32_t v); + * 函数原型: ``` @@ -1826,6 +1897,7 @@ ret_t widget_set_prop_pointer (widget_t* widget, const char* name, void** v); + * 函数原型: ``` @@ -1849,6 +1921,7 @@ ret_t widget_set_prop_str (widget_t* widget, const char* name, const char* v); + * 函数原型: ``` @@ -1871,6 +1944,7 @@ ret_t widget_set_self_layout (widget_t* widget, const char* params); + * 函数原型: ``` @@ -1896,6 +1970,7 @@ ret_t widget_set_self_layout_params (widget_t* widget, const char* x, const char + * 函数原型: ``` @@ -1918,6 +1993,7 @@ ret_t widget_set_sensitive (widget_t* widget, bool_t sensitive); + * 函数原型: ``` @@ -1940,6 +2016,7 @@ ret_t widget_set_state (widget_t* widget, const char* state); + * 函数原型: ``` @@ -1963,6 +2040,7 @@ ret_t widget_set_style_color (widget_t* widget, const char* state_and_name, uint + * 函数原型: ``` @@ -1986,6 +2064,7 @@ ret_t widget_set_style_int (widget_t* widget, const char* state_and_name, int32_ + * 函数原型: ``` @@ -2010,6 +2089,7 @@ ret_t widget_set_style_str (widget_t* widget, const char* state_and_name, const + * 函数原型: ``` @@ -2033,6 +2113,7 @@ ret_t widget_set_text (widget_t* widget, wchar_t* text); + * 函数原型: ``` @@ -2046,6 +2127,32 @@ ret_t widget_set_text_utf8 (widget_t* widget, char* text); | 返回值 | ret\_t | 返回RET\_OK表示成功,否则表示失败。 | | widget | widget\_t* | 控件对象。 | | text | char* | 文本。 | +#### widget\_set\_theme 函数 +----------------------- + +* 函数功能: + +>

设置theme的名称,用于动态切换主题。名称与当前主题名称相同,则重新加载全部资源。 + + > 目前只支持带有文件系统的平台。 + + + + + +* 函数原型: + +``` +ret_t widget_set_theme (widget_t* widget, char* name); +``` + +* 参数说明: + +| 参数 | 类型 | 说明 | +| -------- | ----- | --------- | +| 返回值 | ret\_t | 返回RET\_OK表示成功,否则表示失败。 | +| widget | widget\_t* | 控件对象。 | +| name | char* | 主题的名称。 | #### widget\_set\_tr\_text 函数 ----------------------- @@ -2055,6 +2162,7 @@ ret_t widget_set_text_utf8 (widget_t* widget, char* text); + * 函数原型: ``` @@ -2078,6 +2186,7 @@ ret_t widget_set_tr_text (widget_t* widget, char* text); + * 函数原型: ``` @@ -2100,6 +2209,7 @@ ret_t widget_set_value (widget_t* widget, int32_t value); + * 函数原型: ``` @@ -2123,6 +2233,7 @@ ret_t widget_set_visible (widget_t* widget, bool_t visible, bool_t recursive); + * 函数原型: ``` @@ -2151,6 +2262,7 @@ ret_t widget_set_visible_only (widget_t* widget, bool_t visible); + * 函数原型: ``` @@ -2179,6 +2291,7 @@ ret_t widget_start_animator (widget_t* widget, const char* name); + * 函数原型: ``` @@ -2201,6 +2314,7 @@ ret_t widget_stop_animator (widget_t* widget, char* name); + * 函数原型: ``` @@ -2223,6 +2337,7 @@ ret_t widget_to_global (widget_t* widget, point_t* p); + * 函数原型: ``` @@ -2245,6 +2360,7 @@ ret_t widget_to_local (widget_t* widget, point_t* p); + * 函数原型: ``` @@ -2267,6 +2383,7 @@ ret_t widget_to_screen (widget_t* widget, point_t* p); + * 函数原型: ``` @@ -2297,6 +2414,7 @@ ret_t widget_ungrab (widget_t* widget, widget_t* child); + * 函数原型: ``` @@ -2322,6 +2440,7 @@ ret_t widget_unload_asset (widget_t* widget, const asset_info_t* asset); + * 函数原型: ``` @@ -2344,6 +2463,7 @@ ret_t widget_unload_image (widget_t* widget, bitmap_t* bitmap); + * 函数原型: ``` @@ -2362,6 +2482,7 @@ ret_t widget_use_style (widget_t* widget, char* style); >

动画参数。请参考[控件动画](https://github.com/zlgopen/awtk/blob/master/docs/widget_animator.md) + * 类型:char* | 特性 | 是否支持 | @@ -2379,6 +2500,7 @@ ret_t widget_use_style (widget_t* widget, char* style); >

Style对象。 + * 类型:style\_t* | 特性 | 是否支持 | @@ -2390,6 +2512,7 @@ ret_t widget_use_style (widget_t* widget, char* style); >

是否由父控件自动创建。 + * 类型:bool\_t | 特性 | 是否支持 | @@ -2401,6 +2524,7 @@ ret_t widget_use_style (widget_t* widget, char* style); >

标识控件目前不能被销毁(比如正在分发事件),如果此时调用widget\_destroy,自动异步处理。 + * 类型:uint16\_t | 特性 | 是否支持 | @@ -2412,6 +2536,7 @@ ret_t widget_use_style (widget_t* widget, char* style); >

全部子控件。 + * 类型:darray\_t* | 特性 | 是否支持 | @@ -2423,6 +2548,7 @@ ret_t widget_use_style (widget_t* widget, char* style); >

子控件布局器。请参考[控件布局参数](https://github.com/zlgopen/awtk/blob/master/docs/layout.md) + * 类型:children\_layouter\_t* | 特性 | 是否支持 | @@ -2437,6 +2563,7 @@ ret_t widget_use_style (widget_t* widget, char* style); >

自定义属性。 + * 类型:object\_t* | 特性 | 是否支持 | @@ -2448,6 +2575,7 @@ ret_t widget_use_style (widget_t* widget, char* style); >

标识控件正在被销毁。 + * 类型:bool\_t | 特性 | 是否支持 | @@ -2459,6 +2587,7 @@ ret_t widget_use_style (widget_t* widget, char* style); >

标识控件是否需要重绘。 + * 类型:bool\_t | 特性 | 是否支持 | @@ -2470,6 +2599,7 @@ ret_t widget_use_style (widget_t* widget, char* style); >

事件发射器。 + * 类型:emitter\_t* | 特性 | 是否支持 | @@ -2481,6 +2611,7 @@ ret_t widget_use_style (widget_t* widget, char* style); >

启用/禁用状态。 + * 类型:bool\_t | 特性 | 是否支持 | @@ -2498,6 +2629,7 @@ ret_t widget_use_style (widget_t* widget, char* style); >

是否启用按键音、触屏音和震动等反馈。 + * 类型:bool\_t | 特性 | 是否支持 | @@ -2515,6 +2647,7 @@ ret_t widget_use_style (widget_t* widget, char* style); >

标识控件是否启用浮动布局,不受父控件的children_layout的控制。 + * 类型:bool\_t | 特性 | 是否支持 | @@ -2532,6 +2665,7 @@ ret_t widget_use_style (widget_t* widget, char* style); >

是否支持焦点停留。 + * 类型:bool\_t | 特性 | 是否支持 | @@ -2549,6 +2683,7 @@ ret_t widget_use_style (widget_t* widget, char* style); >

是否得到焦点。 + * 类型:bool\_t | 特性 | 是否支持 | @@ -2560,6 +2695,7 @@ ret_t widget_use_style (widget_t* widget, char* style); >

高度。 + * 类型:wh\_t | 特性 | 是否支持 | @@ -2577,6 +2713,7 @@ ret_t widget_use_style (widget_t* widget, char* style); >

标识控件正在初始化。 + * 类型:bool\_t | 特性 | 是否支持 | @@ -2588,6 +2725,7 @@ ret_t widget_use_style (widget_t* widget, char* style); >

控件名字。 + * 类型:char* | 特性 | 是否支持 | @@ -2605,6 +2743,7 @@ ret_t widget_use_style (widget_t* widget, char* style); >

标识控件是否需要重新layout子控件。 + * 类型:bool\_t | 特性 | 是否支持 | @@ -2616,6 +2755,7 @@ ret_t widget_use_style (widget_t* widget, char* style); >

标识控件是否需要update style。 + * 类型:bool\_t | 特性 | 是否支持 | @@ -2627,6 +2767,7 @@ ret_t widget_use_style (widget_t* widget, char* style); >

不透明度(0-255),0完全透明,255完全不透明。 + * 类型:uint8\_t | 特性 | 是否支持 | @@ -2638,6 +2779,7 @@ ret_t widget_use_style (widget_t* widget, char* style); >

父控件 + * 类型:widget\_t* | 特性 | 是否支持 | @@ -2649,6 +2791,7 @@ ret_t widget_use_style (widget_t* widget, char* style); >

控件布局器。请参考[控件布局参数](https://github.com/zlgopen/awtk/blob/master/docs/layout.md) + * 类型:self\_layouter\_t* | 特性 | 是否支持 | @@ -2663,6 +2806,7 @@ ret_t widget_use_style (widget_t* widget, char* style); >

是否接受用户事件。 + * 类型:bool\_t | 特性 | 是否支持 | @@ -2680,6 +2824,7 @@ ret_t widget_use_style (widget_t* widget, char* style); >

控件的状态(取值参考widget_state_t)。 + * 类型:uint8\_t | 特性 | 是否支持 | @@ -2691,6 +2836,7 @@ ret_t widget_use_style (widget_t* widget, char* style); >

style的名称。 + * 类型:char* | 特性 | 是否支持 | @@ -2708,6 +2854,7 @@ ret_t widget_use_style (widget_t* widget, char* style); >

文本。用途视具体情况而定。 + * 类型:wstr\_t | 特性 | 是否支持 | @@ -2719,6 +2866,7 @@ ret_t widget_use_style (widget_t* widget, char* style); >

保存用于翻译的字符串。 + * 类型:char* | 特性 | 是否支持 | @@ -2736,6 +2884,7 @@ ret_t widget_use_style (widget_t* widget, char* style); >

是否可见。 + * 类型:bool\_t | 特性 | 是否支持 | @@ -2753,6 +2902,7 @@ ret_t widget_use_style (widget_t* widget, char* style); >

虚函数表。 + * 类型:widget\_vtable\_t | 特性 | 是否支持 | @@ -2764,6 +2914,7 @@ ret_t widget_use_style (widget_t* widget, char* style); >

宽度。 + * 类型:wh\_t | 特性 | 是否支持 | @@ -2782,6 +2933,7 @@ ret_t widget_use_style (widget_t* widget, char* style); > 如果希望style支持焦点状态,但有不希望焦点停留,可用本属性。 + * 类型:bool\_t | 特性 | 是否支持 | @@ -2799,6 +2951,7 @@ ret_t widget_use_style (widget_t* widget, char* style); >

x坐标(相对于父控件的x坐标)。 + * 类型:xy\_t | 特性 | 是否支持 | @@ -2816,6 +2969,7 @@ ret_t widget_use_style (widget_t* widget, char* style); >

y坐标(相对于父控件的y坐标)。 + * 类型:xy\_t | 特性 | 是否支持 | diff --git a/docs/manual/widget_type_t.md b/docs/manual/widget_type_t.md index 8997538e73..cf71850b2a 100644 --- a/docs/manual/widget_type_t.md +++ b/docs/manual/widget_type_t.md @@ -1,6 +1,7 @@ ## widget\_type\_t ### 概述 控件的类型。 + ### 常量

diff --git a/docs/manual/window_animator_factory_t.md b/docs/manual/window_animator_factory_t.md index 5429340073..7b47fc6b4f 100644 --- a/docs/manual/window_animator_factory_t.md +++ b/docs/manual/window_animator_factory_t.md @@ -6,6 +6,7 @@ 让用户可以自定义窗口动画,并获得内置窗口动画同等待遇。 + ---------------------------------- ### 函数

@@ -29,6 +30,7 @@ + * 函数原型: ``` @@ -53,6 +55,7 @@ window_animator_t* window_animator_create_for_close (char* type, canvas_t* c, wi + * 函数原型: ``` @@ -76,6 +79,7 @@ window_animator_t* window_animator_create_for_open (char* type, canvas_t* c, wid >

获取缺省的窗口动画工厂对象。 + * 函数原型: ``` @@ -96,6 +100,7 @@ window_animator_factory_t* window_animator_factory (); + * 函数原型: ``` @@ -116,6 +121,7 @@ window_animator_factory_t* window_animator_factory_create (); + * 函数原型: ``` @@ -139,6 +145,7 @@ window_animator_t* window_animator_factory_create_animator (window_animator_fact + * 函数原型: ``` @@ -160,6 +167,7 @@ ret_t window_animator_factory_destroy (window_animator_factory_t* factory); + * 函数原型: ``` @@ -183,6 +191,7 @@ ret_t window_animator_factory_register (window_animator_factory_t* factory, cons + * 函数原型: ``` diff --git a/docs/manual/window_animator_t.md b/docs/manual/window_animator_t.md index 02e4e4d773..25911497f8 100644 --- a/docs/manual/window_animator_t.md +++ b/docs/manual/window_animator_t.md @@ -2,6 +2,7 @@ ### 概述 窗口动画。 + ---------------------------------- ### 函数

@@ -22,6 +23,7 @@ + * 函数原型: ``` @@ -45,6 +47,7 @@ ret_t window_animator_begin_frame (window_animator_t* wa); + * 函数原型: ``` @@ -67,6 +70,7 @@ window_animator_t* window_animator_create (bool_t open, const window_animator_vt + * 函数原型: ``` @@ -88,6 +92,7 @@ ret_t window_animator_destroy (window_animator_t* wa); + * 函数原型: ``` @@ -109,6 +114,7 @@ ret_t window_animator_end_frame (window_animator_t* wa); + * 函数原型: ``` diff --git a/docs/manual/window_animator_type_t.md b/docs/manual/window_animator_type_t.md index 9228f1a338..5beaac1f77 100644 --- a/docs/manual/window_animator_type_t.md +++ b/docs/manual/window_animator_type_t.md @@ -2,6 +2,7 @@ ### 概述 @type string 内置窗口动画常量定义。 + ### 常量

diff --git a/docs/manual/window_closable_t.md b/docs/manual/window_closable_t.md index c9ca88de74..5a536cf6e3 100644 --- a/docs/manual/window_closable_t.md +++ b/docs/manual/window_closable_t.md @@ -1,6 +1,7 @@ ## window\_closable\_t ### 概述 窗口的closable常量定义。 + ### 常量

diff --git a/docs/manual/window_event_t.md b/docs/manual/window_event_t.md index 4597f1028a..50adb28aca 100644 --- a/docs/manual/window_event_t.md +++ b/docs/manual/window_event_t.md @@ -4,6 +4,7 @@ 窗口事件,由窗口管理器触发。 + ---------------------------------- ### 函数

@@ -28,6 +29,7 @@ + * 函数原型: ``` @@ -50,6 +52,7 @@ ret_t pointer_event_rotate (pointer_event_t* evt, system_info_t* info); + * 函数原型: ``` @@ -71,6 +74,7 @@ window_event_t* window_event_cast (event_t* event); + * 函数原型: ``` @@ -91,6 +95,7 @@ event_t* window_event_init (window_event_t* event, void* target, uint32_t type, >

canvas。 + * 类型:widget\_t* | 特性 | 是否支持 | diff --git a/docs/manual/window_stage_t.md b/docs/manual/window_stage_t.md index cc27184484..1acfa7c300 100644 --- a/docs/manual/window_stage_t.md +++ b/docs/manual/window_stage_t.md @@ -1,6 +1,7 @@ ## window\_stage\_t ### 概述 窗口的生命周期常量定义。 + ### 常量

diff --git a/docs/manual/window_t.md b/docs/manual/window_t.md index d4fb0a9ff8..ad099fa04f 100644 --- a/docs/manual/window_t.md +++ b/docs/manual/window_t.md @@ -41,6 +41,7 @@ > 更多用法请参考:[theme default](https://github.com/zlgopen/awtk/blob/master/demos/assets/raw/styles/default.xml#L0) + ---------------------------------- ### 函数

@@ -70,6 +71,7 @@ + * 函数原型: ``` @@ -90,6 +92,7 @@ ret_t dialog_highlighter_register_builtins (); + * 函数原型: ``` @@ -111,6 +114,7 @@ widget_t* window_cast (widget_t* widget); + * 函数原型: ``` @@ -132,6 +136,7 @@ ret_t window_close (widget_t* widget); + * 函数原型: ``` @@ -153,6 +158,7 @@ ret_t window_close_force (widget_t* widget); + * 函数原型: ``` @@ -179,6 +185,7 @@ widget_t* window_create (widget_t* parent, xy_t x, xy_t y, wh_t w, wh_t h); + * 函数原型: ``` @@ -200,6 +207,7 @@ widget_t* window_open (char* name); + * 函数原型: ``` @@ -225,6 +233,7 @@ widget_t* window_open_and_close (char* name, widget_t* to_close); + * 函数原型: ``` @@ -245,6 +254,7 @@ ret_t window_set_fullscreen (widget_t* widget, bool_t fullscreen); >这里全屏是指与LCD相同大小,而非让SDL窗口全屏。 + * 类型:bool\_t | 特性 | 是否支持 | diff --git a/docs/manual/wstr_t.md b/docs/manual/wstr_t.md index fb9ec47d48..b65901d5b1 100644 --- a/docs/manual/wstr_t.md +++ b/docs/manual/wstr_t.md @@ -16,6 +16,7 @@ > 先调wstr\_init进行初始化,最后调用wstr\_reset释放内存。 + ---------------------------------- ### 函数

@@ -61,6 +62,7 @@ + * 函数原型: ``` @@ -83,6 +85,7 @@ ret_t wstr_add_float (wstr_t* str, double delta); + * 函数原型: ``` @@ -105,6 +108,7 @@ ret_t wstr_append (wstr_t* str, wchar_t* text); + * 函数原型: ``` @@ -128,6 +132,7 @@ ret_t wstr_append_with_len (wstr_t* str, wchar_t* text, uint32_t len); + * 函数原型: ``` @@ -149,6 +154,7 @@ ret_t wstr_clear (wstr_t* str); + * 函数原型: ``` @@ -171,6 +177,7 @@ bool_t wstr_equal (wstr_t* str, wstr_t* other); + * 函数原型: ``` @@ -193,6 +200,7 @@ ret_t wstr_from_float (wstr_t* str, double v); + * 函数原型: ``` @@ -215,6 +223,7 @@ ret_t wstr_from_int (wstr_t* str, int32_t v); + * 函数原型: ``` @@ -237,6 +246,7 @@ ret_t wstr_from_value (wstr_t* str, value_t v); + * 函数原型: ``` @@ -260,6 +270,7 @@ ret_t wstr_get_utf8 (wstr_t* str, char* text, uint32_t size); + * 函数原型: ``` @@ -282,6 +293,7 @@ wstr_t* wstr_init (wstr_t* str, uint32_t capacity); + * 函数原型: ``` @@ -306,6 +318,7 @@ ret_t wstr_insert (wstr_t* str, uint32_t offset, wchar_t* text, uint32_t nr); + * 函数原型: ``` @@ -328,6 +341,7 @@ ret_t wstr_normalize_newline (wstr_t* str, wchar_t newline); + * 函数原型: ``` @@ -349,6 +363,7 @@ ret_t wstr_pop (wstr_t* str); + * 函数原型: ``` @@ -371,6 +386,7 @@ ret_t wstr_push (wstr_t* str, wchar_t c); + * 函数原型: ``` @@ -394,6 +410,7 @@ ret_t wstr_push_int (wstr_t* str, const char* format, int32_t value); + * 函数原型: ``` @@ -417,6 +434,7 @@ ret_t wstr_remove (wstr_t* str, uint32_t offset, uint32_t nr); + * 函数原型: ``` @@ -438,6 +456,7 @@ ret_t wstr_reset (wstr_t* str); + * 函数原型: ``` @@ -460,6 +479,7 @@ ret_t wstr_set (wstr_t* str, wchar_t* text); + * 函数原型: ``` @@ -482,6 +502,7 @@ ret_t wstr_set_utf8 (wstr_t* str, char* text); + * 函数原型: ``` @@ -504,6 +525,7 @@ ret_t wstr_to_float (wstr_t* str, double* v); + * 函数原型: ``` @@ -526,6 +548,7 @@ ret_t wstr_to_int (wstr_t* str, int32_t* v); + * 函数原型: ``` @@ -543,6 +566,7 @@ ret_t wstr_trim_float_zero (wstr_t* str); >

容量。 + * 类型:uint32\_t | 特性 | 是否支持 | @@ -554,6 +578,7 @@ ret_t wstr_trim_float_zero (wstr_t* str); >

长度。 + * 类型:uint32\_t | 特性 | 是否支持 | @@ -565,6 +590,7 @@ ret_t wstr_trim_float_zero (wstr_t* str); >

字符串。 + * 类型:wchar\_t* | 特性 | 是否支持 | diff --git a/docs/theme_switch.md b/docs/theme_switch.md new file mode 100644 index 0000000000..31cbff6b49 --- /dev/null +++ b/docs/theme_switch.md @@ -0,0 +1,123 @@ +# 多主题实时切换 + +AWTK 支持多主题,并在不重启的情况下,实时切换到不同的主题。 + +## 1. 资源目录结构 + +在 assets 目录下再分主题目录,下面的例子有 default 和 dark 两个主题: + +``` +assets +├── dark +│   ├── inc +│   │   ├── data +│   │   ├── fonts +│   │   ├── images +│   │   ├── scripts +│   │   ├── strings +│   │   ├── styles +│   │   ├── ui +│   │   └── xml +│   └── raw +│   └── styles +└── default + ├── inc + │   ├── data + │   ├── fonts + │   ├── images + │   ├── scripts + │   ├── strings + │   ├── styles + │   ├── ui + │   └── xml + └── raw + ├── data + ├── fonts + ├── images + ├── scripts + ├── strings + ├── styles + ├── ui + └── xml +``` + +### 注意事项: + +* default 主题必须存在,其它主题是可选的。 + +* default 主题必须具有完整的资源文件,其它主题中只需要放其特有的文件即可。 + +* 查找资源的顺序为:先在当前主题中查找资源,如果找不到,就去 default 主题去查找。这样可以最大程度上共享资源数据。 + +* 目前只有支持文件系统的平台才支持多主题实时切换。 + +## 2. 资源生成 + +如果需要支持多主题实时切换,请参考下面的例子,去修改 update_res.py 资源生成脚本: + +``` +themes = ['default', 'dark'] + +def run(): + for theme in themes: + print('========================='+theme+' begin ========================='); + common.init(AWTK_ROOT, ASSETS_ROOT, theme, ASSET_C) + common.updateRes() + print('========================='+theme+' end =========================\n'); +``` + +## 3. 相关函数 + +#### 3.1 在初始时指定主题,请用下面的函数: + +``` +/** + * @method assets_manager_set_theme + * 设置当前的主题。 + * + * @param {assets_manager_t*} am asset manager 对象。 + * @param {const char*} theme 主题名称。 + * + * @return {ret_t} 返回 RET_OK 表示成功,否则表示失败。 + */ +ret_t assets_manager_set_theme(assets_manager_t* am, const char* theme); + +``` + +### 3.1 运行时动态切换主题,请用下面的函数 + +``` +/** + * @method widget_set_theme + * 设置 theme 的名称,用于动态切换主题。名称与当前主题名称相同,则重新加载全部资源。 + * + * > 目前只支持带有文件系统的平台。 + * + * @annotation ["scriptable"] + * @param {widget_t*} widget 控件对象。 + * @param {char*} name 主题的名称。 + * + * @return {ret_t} 返回 RET_OK 表示成功,否则表示失败。 + */ +ret_t widget_set_theme(widget_t* widget, const char* name); +``` + +## 4. 事件 + +当主题切换完成后,会通过窗口触发 EVT\_THEME\_CHANGED 事件。 + +``` + /** + * @const EVT_THEME_CHANGED + * 主题变化 (event_t)。 + */ + EVT_THEME_CHANGED, +``` + +## 5. 其它 + +如果同一个项目要支持多种不同的大小屏幕,而且屏幕大小差别比较大,无法简单的用 layout 方式来适配时,利用以上的机制,可以把特殊的资源放到不同的主题中,在不同的屏幕大小运行时,切换到对应的主题上,也不失为一种解决问题的方法。 + +## 6. 参考 + +[资源目录变更通知](assets_dir_changed.md) diff --git a/src/base/assets_manager.h b/src/base/assets_manager.h index f09511b49a..fa86d400cb 100644 --- a/src/base/assets_manager.h +++ b/src/base/assets_manager.h @@ -124,10 +124,10 @@ ret_t assets_manager_set_res_root(assets_manager_t* am, const char* res_root); /** * @method assets_manager_set_theme - * 设置theme + * 设置当前的主题。 * * @param {assets_manager_t*} am asset manager对象。 - * @param {const char*} theme theme + * @param {const char*} theme 主题名称。 * * @return {ret_t} 返回RET_OK表示成功,否则表示失败。 */ diff --git a/src/base/events.h b/src/base/events.h index 4f517edaf5..1171fa46e0 100644 --- a/src/base/events.h +++ b/src/base/events.h @@ -317,27 +317,27 @@ typedef enum _event_type_t { EVT_SCREEN_SAVER, /** * @const EVT_LOW_MEMORY - * 内存不足。 + * 内存不足(event_t)。 */ EVT_LOW_MEMORY, /** * @const EVT_OUT_OF_MEMORY - * 内存耗尽。 + * 内存耗尽(event_t)。 */ EVT_OUT_OF_MEMORY, /** * @const EVT_ORIENTATION_WILL_CHANGED - * 屏幕即将旋转。 + * 屏幕即将旋转(event_t)。 */ EVT_ORIENTATION_WILL_CHANGED, /** * @const EVT_ORIENTATION_CHANGED - * 屏幕旋转。 + * 屏幕旋转(event_t)。 */ EVT_ORIENTATION_CHANGED, /** * @const EVT_WIDGET_CREATED - * 控件创建事件。 + * 控件创建事件(event_t)。 */ EVT_WIDGET_CREATED, /** @@ -348,7 +348,7 @@ typedef enum _event_type_t { EVT_REQUEST_QUIT_APP, /** * @const EVT_THEME_CHANGED - * theme changed + * 主题变化(event_t)。 */ EVT_THEME_CHANGED, /** diff --git a/tools/idl_gen/idl.json b/tools/idl_gen/idl.json index 47ca57d073..7e96a12d63 100644 --- a/tools/idl_gen/idl.json +++ b/tools/idl_gen/idl.json @@ -1,86 +1,86 @@ [ { "type": "enum", - "desc": " 控件状态常量定义。\r\n\r\n 这里指定常用的状态值,扩展控件可以在自己的头文件中定义私有的状态。\r\n", + "desc": " 控件状态常量定义。\n\n 这里指定常用的状态值,扩展控件可以在自己的头文件中定义私有的状态。\n\n", "consts": [ { - "desc": " 无效状态。\r\n", + "desc": " 无效状态。\n\n", "name": "WIDGET_STATE_NONE" }, { - "desc": " 正常状态。\r\n", + "desc": " 正常状态。\n\n", "name": "WIDGET_STATE_NORMAL" }, { - "desc": " 指针按下状态。\r\n", + "desc": " 指针按下状态。\n\n", "name": "WIDGET_STATE_PRESSED" }, { - "desc": " 指针悬浮状态。\r\n", + "desc": " 指针悬浮状态。\n\n", "name": "WIDGET_STATE_OVER" }, { - "desc": " 禁用状态。\r\n", + "desc": " 禁用状态。\n\n", "name": "WIDGET_STATE_DISABLE" }, { - "desc": " 聚焦状态。\r\n", + "desc": " 聚焦状态。\n\n", "name": "WIDGET_STATE_FOCUSED" }, { - "desc": " 勾选状态。\r\n", + "desc": " 勾选状态。\n\n", "name": "WIDGET_STATE_CHECKED" }, { - "desc": " 没勾选状态。\r\n", + "desc": " 没勾选状态。\n\n", "name": "WIDGET_STATE_UNCHECKED" }, { - "desc": " 编辑器无内容状态。\r\n", + "desc": " 编辑器无内容状态。\n\n", "name": "WIDGET_STATE_EMPTY" }, { - "desc": " 编辑器无内容同时聚焦的状态。\r\n", + "desc": " 编辑器无内容同时聚焦的状态。\n\n", "name": "WIDGET_STATE_EMPTY_FOCUS" }, { - "desc": " 输入错误状态。\r\n", + "desc": " 输入错误状态。\n\n", "name": "WIDGET_STATE_ERROR" }, { - "desc": " 选中状态。\r\n", + "desc": " 选中状态。\n\n", "name": "WIDGET_STATE_SELECTED" }, { - "desc": " 正常状态(选中项)。\r\n", + "desc": " 正常状态(选中项)。\n\n", "name": "WIDGET_STATE_NORMAL_OF_CHECKED" }, { - "desc": " 指针按下状态(选中项)。\r\n", + "desc": " 指针按下状态(选中项)。\n\n", "name": "WIDGET_STATE_PRESSED_OF_CHECKED" }, { - "desc": " 指针悬浮状态(选中项)。\r\n", + "desc": " 指针悬浮状态(选中项)。\n\n", "name": "WIDGET_STATE_OVER_OF_CHECKED" }, { - "desc": " 焦点状态(选中项)。\r\n", + "desc": " 焦点状态(选中项)。\n\n", "name": "WIDGET_STATE_FOCUSED_OF_CHECKED" }, { - "desc": " 正常状态(当前项)。\r\n", + "desc": " 正常状态(当前项)。\n\n", "name": "WIDGET_STATE_NORMAL_OF_ACTIVE" }, { - "desc": " 指针按下状态(当前项)。\r\n", + "desc": " 指针按下状态(当前项)。\n\n", "name": "WIDGET_STATE_PRESSED_OF_ACTIVE" }, { - "desc": " 指针悬浮状态(当前项)。\r\n", + "desc": " 指针悬浮状态(当前项)。\n\n", "name": "WIDGET_STATE_OVER_OF_ACTIVE" }, { - "desc": " 焦点状态(当前项)。\r\n", + "desc": " 焦点状态(当前项)。\n\n", "name": "WIDGET_STATE_FOCUSED_OF_ACTIVE" } ], @@ -125,7 +125,7 @@ } ], "annotation": {}, - "desc": " 初始化TK。\r\n\r\n", + "desc": " 初始化TK。\n\n\n", "name": "tk_init", "return": { "type": "ret_t", @@ -135,7 +135,7 @@ { "params": [], "annotation": {}, - "desc": " 进入TK事件主循环。\r\n\r\n", + "desc": " 进入TK事件主循环。\n\n\n", "name": "tk_run", "return": { "type": "ret_t", @@ -148,7 +148,7 @@ "static": true, "scriptable": true }, - "desc": " 退出TK事件主循环。\r\n\r\n", + "desc": " 退出TK事件主循环。\n\n\n", "name": "tk_quit", "alias": "global_quit", "return": { @@ -162,7 +162,7 @@ "static": true, "scriptable": true }, - "desc": " 获取全局指针的X坐标。\r\n\r\n", + "desc": " 获取全局指针的X坐标。\n\n\n", "name": "tk_get_pointer_x", "alias": "global_get_pointer_x", "return": { @@ -176,7 +176,7 @@ "static": true, "scriptable": true }, - "desc": " 获取全局指针的Y坐标。\r\n\r\n", + "desc": " 获取全局指针的Y坐标。\n\n\n", "name": "tk_get_pointer_y", "alias": "global_get_pointer_y", "return": { @@ -190,7 +190,7 @@ "static": true, "scriptable": true }, - "desc": " 获取全局指针是否按下。\r\n\r\n", + "desc": " 获取全局指针是否按下。\n\n\n", "name": "tk_is_pointer_pressed", "alias": "global_is_pointer_pressed", "return": { @@ -207,7 +207,7 @@ } ], "annotation": {}, - "desc": " 设置屏幕的旋转方向(XXX:目前仅支持0度和90度)。\r\n\r\n", + "desc": " 设置屏幕的旋转方向(XXX:目前仅支持0度和90度)。\n\n\n", "name": "tk_set_lcd_orientation", "return": { "type": "ret_t", @@ -219,7 +219,7 @@ "annotation": { "private": true }, - "desc": " 初始化资源。\r\n\r\n", + "desc": " 初始化资源。\n\n\n", "name": "tk_init_assets", "return": { "type": "ret_t", @@ -230,7 +230,7 @@ "events": [], "properties": [], "header": "src/awtk_global.h", - "desc": " TK全局对象。\r\n", + "desc": " TK全局对象。\n\n", "name": "global_t", "annotation": { "scriptable": true, @@ -248,7 +248,7 @@ "scriptable": true, "gc": true }, - "desc": " 创建图片对象(一般供脚本语言中使用)。\r\n", + "desc": " 创建图片对象(一般供脚本语言中使用)。\n\n", "name": "bitmap_create", "return": { "type": "bitmap_t*", @@ -283,7 +283,7 @@ "scriptable": true, "gc": true }, - "desc": " 创建图片对象。\r\n\r\n", + "desc": " 创建图片对象。\n\n\n", "name": "bitmap_create_ex", "return": { "type": "bitmap_t*", @@ -301,7 +301,7 @@ "annotation": { "scriptable": true }, - "desc": " 获取图片一个像素占用的字节数。\r\n\r\n", + "desc": " 获取图片一个像素占用的字节数。\n\n\n", "name": "bitmap_get_bpp", "return": { "type": "uint32_t", @@ -332,7 +332,7 @@ } ], "annotation": {}, - "desc": " 获取图片指定像素的rgba颜色值(主要用于测试程序)。\r\n\r\n", + "desc": " 获取图片指定像素的rgba颜色值(主要用于测试程序)。\n\n\n", "name": "bitmap_get_pixel", "return": { "type": "ret_t", @@ -353,7 +353,7 @@ } ], "annotation": {}, - "desc": " 设置line_length。\r\n\r\n", + "desc": " 设置line_length。\n\n\n", "name": "bitmap_set_line_length", "return": { "type": "ret_t", @@ -369,7 +369,7 @@ } ], "annotation": {}, - "desc": " 获取每一行占用内存的字节数。\r\n\r\n", + "desc": " 获取每一行占用内存的字节数。\n\n\n", "name": "bitmap_get_line_length", "return": { "type": "ret_t", @@ -410,7 +410,7 @@ } ], "annotation": {}, - "desc": " 初始化图片。\r\n 数据。3通道时为RGB888格式,4通道时为RGBA888格式(内部拷贝该数据,不会引用,调用者自行释放)。\r\n\r\n", + "desc": " 初始化图片。\n 数据。3通道时为RGB888格式,4通道时为RGBA888格式(内部拷贝该数据,不会引用,调用者自行释放)。\n\n\n", "name": "bitmap_init_from_rgba", "return": { "type": "ret_t", @@ -446,7 +446,7 @@ } ], "annotation": {}, - "desc": " 初始化图片。\r\n\r\n", + "desc": " 初始化图片。\n\n\n", "name": "bitmap_init", "return": { "type": "ret_t", @@ -466,7 +466,7 @@ "scriptable": true, "gc": true }, - "desc": " 销毁图片。\r\n", + "desc": " 销毁图片。\n\n", "name": "bitmap_destroy", "return": { "type": "ret_t", @@ -478,7 +478,7 @@ "properties": [ { "name": "w", - "desc": " 宽度。\r\n", + "desc": " 宽度。\n\n", "type": "wh_t", "annotation": { "readable": true, @@ -487,7 +487,7 @@ }, { "name": "h", - "desc": " 高度。\r\n", + "desc": " 高度。\n\n", "type": "wh_t", "annotation": { "readable": true, @@ -496,7 +496,7 @@ }, { "name": "line_length", - "desc": " 每一行实际占用的内存(也称为stride或pitch),一般情况下为w*bpp。\r\n", + "desc": " 每一行实际占用的内存(也称为stride或pitch),一般情况下为w*bpp。\n\n", "type": "uint32_t", "annotation": { "readable": true, @@ -505,7 +505,7 @@ }, { "name": "flags", - "desc": " 标志。请参考{bitmap_flag_t}。\r\n", + "desc": " 标志。请参考{bitmap_flag_t}。\n\n", "type": "uint16_t", "annotation": { "readable": true, @@ -514,7 +514,7 @@ }, { "name": "format", - "desc": " 格式。请参考{bitmap_format_t}。\r\n", + "desc": " 格式。请参考{bitmap_format_t}。\n\n", "type": "uint16_t", "annotation": { "readable": true, @@ -523,7 +523,7 @@ }, { "name": "name", - "desc": " 名称。\r\n", + "desc": " 名称。\n\n", "type": "const char*", "annotation": { "readable": true, @@ -532,7 +532,7 @@ }, { "name": "data", - "desc": " 图片数据。\r\n", + "desc": " 图片数据。\n\n", "type": "uint8_t*", "annotation": { "readable": true @@ -540,7 +540,7 @@ } ], "header": "base/bitmap.h", - "desc": " 位图。\r\n", + "desc": " 位图。\n\n", "name": "bitmap_t", "annotation": { "scriptable": true @@ -549,74 +549,74 @@ }, { "type": "enum", - "desc": " 图片绘制方法常量定义。\r\n", + "desc": " 图片绘制方法常量定义。\n\n", "consts": [ { - "desc": " 缺省显示。将图片按原大小显示在目标矩形的左上角。\r\n", + "desc": " 缺省显示。将图片按原大小显示在目标矩形的左上角。\n\n", "name": "IMAGE_DRAW_DEFAULT" }, { - "desc": " 居中显示。将图片按原大小显示在目标矩形的中央。\r\n", + "desc": " 居中显示。将图片按原大小显示在目标矩形的中央。\n\n", "name": "IMAGE_DRAW_CENTER" }, { - "desc": " 图标显示。同居中显示,但会根据屏幕密度调整大小。\r\n", + "desc": " 图标显示。同居中显示,但会根据屏幕密度调整大小。\n\n", "name": "IMAGE_DRAW_ICON" }, { - "desc": " 缩放显示。将图片缩放至目标矩形的大小(不保证宽高成比例)。\r\n", + "desc": " 缩放显示。将图片缩放至目标矩形的大小(不保证宽高成比例)。\n\n", "name": "IMAGE_DRAW_SCALE" }, { - "desc": " 自动缩放显示。将图片缩放至目标矩形的宽度或高度(选取最小的比例),并居中显示。\r\n", + "desc": " 自动缩放显示。将图片缩放至目标矩形的宽度或高度(选取最小的比例),并居中显示。\n\n", "name": "IMAGE_DRAW_SCALE_AUTO" }, { - "desc": " 如果图片比目标矩形大,自动缩小显示,否则居中显示。\r\n", + "desc": " 如果图片比目标矩形大,自动缩小显示,否则居中显示。\n\n", "name": "IMAGE_DRAW_SCALE_DOWN" }, { - "desc": " 宽度缩放显示。 将图片缩放至目标矩形的宽度,高度按此比例进行缩放,超出不部分不显示。\r\n", + "desc": " 宽度缩放显示。 将图片缩放至目标矩形的宽度,高度按此比例进行缩放,超出不部分不显示。\n\n", "name": "IMAGE_DRAW_SCALE_W" }, { - "desc": " 高度缩放显示。将图片缩放至目标矩形的高度,宽度按此比例进行缩放,超出不部分不显示。\r\n", + "desc": " 高度缩放显示。将图片缩放至目标矩形的高度,宽度按此比例进行缩放,超出不部分不显示。\n\n", "name": "IMAGE_DRAW_SCALE_H" }, { - "desc": " 平铺显示。\r\n", + "desc": " 平铺显示。\n\n", "name": "IMAGE_DRAW_REPEAT" }, { - "desc": " 水平方向平铺显示,垂直方向缩放。\r\n", + "desc": " 水平方向平铺显示,垂直方向缩放。\n\n", "name": "IMAGE_DRAW_REPEAT_X" }, { - "desc": " 垂直方向平铺显示,水平方向缩放。\r\n", + "desc": " 垂直方向平铺显示,水平方向缩放。\n\n", "name": "IMAGE_DRAW_REPEAT_Y" }, { - "desc": " 垂直方向平铺显示,水平方向缩放(从底部到顶部)。\r\n", + "desc": " 垂直方向平铺显示,水平方向缩放(从底部到顶部)。\n\n", "name": "IMAGE_DRAW_REPEAT_Y_INVERSE" }, { - "desc": " 9宫格显示。\r\n 将图片分成等大小的9块,4个角按原大小显示在目标矩形的4个角,左右上下和中间5块分别缩放显示在对应的目标区域。\r\n", + "desc": " 9宫格显示。\n 将图片分成等大小的9块,4个角按原大小显示在目标矩形的4个角,左右上下和中间5块分别缩放显示在对应的目标区域。\n\n", "name": "IMAGE_DRAW_PATCH9" }, { - "desc": " 水平方向3宫格显示,垂直方向居中显示。\r\n 将图片在水平方向上分成等大小的3块,左右两块按原大小显示在目标矩形的左右,中间一块缩放显示在目标区域中间剩余部分。\r\n", + "desc": " 水平方向3宫格显示,垂直方向居中显示。\n 将图片在水平方向上分成等大小的3块,左右两块按原大小显示在目标矩形的左右,中间一块缩放显示在目标区域中间剩余部分。\n\n", "name": "IMAGE_DRAW_PATCH3_X" }, { - "desc": " 垂直方向3宫格显示,水平方向居中显示。\r\n 将图片在垂直方向上分成等大小的3块,上下两块按原大小显示在目标矩形的上下,中间一块缩放显示在目标区域中间剩余部分。\r\n", + "desc": " 垂直方向3宫格显示,水平方向居中显示。\n 将图片在垂直方向上分成等大小的3块,上下两块按原大小显示在目标矩形的上下,中间一块缩放显示在目标区域中间剩余部分。\n\n", "name": "IMAGE_DRAW_PATCH3_Y" }, { - "desc": " 水平方向3宫格显示,垂直方向缩放显示。\r\n 将图片在水平方向上分成等大小的3块,左右两块按原大小显示在目标矩形的左右,中间一块缩放显示在目标区域中间剩余部分。\r\n", + "desc": " 水平方向3宫格显示,垂直方向缩放显示。\n 将图片在水平方向上分成等大小的3块,左右两块按原大小显示在目标矩形的左右,中间一块缩放显示在目标区域中间剩余部分。\n\n", "name": "IMAGE_DRAW_PATCH3_X_SCALE_Y" }, { - "desc": " 垂直方向3宫格显示,水平方向缩放显示。\r\n 将图片在垂直方向上分成等大小的3块,上下两块按原大小显示在目标矩形的上下,中间一块缩放显示在目标区域中间剩余部分。\r\n", + "desc": " 垂直方向3宫格显示,水平方向缩放显示。\n 将图片在垂直方向上分成等大小的3块,上下两块按原大小显示在目标矩形的上下,中间一块缩放显示在目标区域中间剩余部分。\n\n", "name": "IMAGE_DRAW_PATCH3_Y_SCALE_X" } ], @@ -1542,7 +1542,7 @@ "annotation": { "constructor": true }, - "desc": " 获取缺省的子控件布局算法工厂对象。\r\n", + "desc": " 获取缺省的子控件布局算法工厂对象。\n\n", "name": "children_layouter_factory", "return": { "type": "children_layouter_factory_t*", @@ -1558,7 +1558,7 @@ } ], "annotation": {}, - "desc": " 设置缺省的子控件布局算法工厂对象。\r\n\r\n", + "desc": " 设置缺省的子控件布局算法工厂对象。\n\n\n", "name": "children_layouter_factory_set", "return": { "type": "ret_t", @@ -1570,7 +1570,7 @@ "annotation": { "constructor": true }, - "desc": " 创建子控件布局算法工厂对象。\r\n\r\n", + "desc": " 创建子控件布局算法工厂对象。\n\n\n", "name": "children_layouter_factory_create", "return": { "type": "children_layouter_factory_t*", @@ -1596,7 +1596,7 @@ } ], "annotation": {}, - "desc": " 注册子控件布局算法创建函数。\r\n\r\n", + "desc": " 注册子控件布局算法创建函数。\n\n\n", "name": "children_layouter_factory_register", "return": { "type": "ret_t", @@ -1619,7 +1619,7 @@ "annotation": { "constructor": true }, - "desc": " 创建指定类型的子控件布局算法对象。\r\n\r\n", + "desc": " 创建指定类型的子控件布局算法对象。\n\n\n", "name": "children_layouter_factory_create_layouter", "return": { "type": "children_layouter_t*", @@ -1635,7 +1635,7 @@ } ], "annotation": {}, - "desc": " 析构并释放子控件布局算法工厂对象。\r\n\r\n", + "desc": " 析构并释放子控件布局算法工厂对象。\n\n\n", "name": "children_layouter_factory_destroy", "return": { "type": "ret_t", @@ -1646,7 +1646,7 @@ "events": [], "properties": [], "header": "base/children_layouter_factory.h", - "desc": " 子控件布局算法工厂。\r\n\r\n", + "desc": " 子控件布局算法工厂。\n\n\n", "name": "children_layouter_factory_t", "level": 1 }, @@ -1662,7 +1662,7 @@ } ], "annotation": {}, - "desc": " 获取全部参数。\r\n\r\n", + "desc": " 获取全部参数。\n\n\n", "name": "children_layouter_to_string", "return": { "type": "ret_t", @@ -1683,7 +1683,7 @@ } ], "annotation": {}, - "desc": " 对控件的子控件进行布局。\r\n\r\n\r\n", + "desc": " 对控件的子控件进行布局。\n\n\n\n", "name": "children_layouter_layout", "return": { "type": "ret_t", @@ -1709,7 +1709,7 @@ } ], "annotation": {}, - "desc": " 获取指定的参数。\r\n\r\n\r\n", + "desc": " 获取指定的参数。\n\n\n\n", "name": "children_layouter_get_param", "return": { "type": "ret_t", @@ -1735,7 +1735,7 @@ } ], "annotation": {}, - "desc": " 获取指定的参数。\r\n\r\n\r\n", + "desc": " 获取指定的参数。\n\n\n\n", "name": "children_layouter_set_param", "return": { "type": "ret_t", @@ -1761,7 +1761,7 @@ } ], "annotation": {}, - "desc": " 设置字符串格式的参数。\r\n\r\n\r\n", + "desc": " 设置字符串格式的参数。\n\n\n\n", "name": "children_layouter_set_param_str", "return": { "type": "ret_t", @@ -1787,7 +1787,7 @@ } ], "annotation": {}, - "desc": " 获取指定的浮点格式的参数。\r\n\r\n\r\n", + "desc": " 获取指定的浮点格式的参数。\n\n\n\n", "name": "children_layouter_get_param_float", "return": { "type": "ret_t", @@ -1813,7 +1813,7 @@ } ], "annotation": {}, - "desc": " 获取指定的整数格式的参数。\r\n\r\n\r\n", + "desc": " 获取指定的整数格式的参数。\n\n\n\n", "name": "children_layouter_get_param_int", "return": { "type": "ret_t", @@ -1829,7 +1829,7 @@ } ], "annotation": {}, - "desc": " 判断layouter对象是否有效。\r\n\r\n\r\n", + "desc": " 判断layouter对象是否有效。\n\n\n\n", "name": "children_layouter_is_valid", "return": { "type": "bool_t", @@ -1845,7 +1845,7 @@ } ], "annotation": {}, - "desc": " 销毁layouter对象。\r\n\r\n\r\n", + "desc": " 销毁layouter对象。\n\n\n\n", "name": "children_layouter_destroy", "return": { "type": "ret_t", @@ -1861,7 +1861,7 @@ } ], "annotation": {}, - "desc": " 创建layouter对象。\r\n\r\n", + "desc": " 创建layouter对象。\n\n\n", "name": "children_layouter_create", "return": { "type": "children_layouter_t*", @@ -1872,20 +1872,20 @@ "events": [], "properties": [], "header": "base/children_layouter.h", - "desc": " 子控件排版布局器的接口。\r\n\r\n 按特定算法对子控件进行排版布局,子类需要实现vtable中的函数。\r\n\r\n", + "desc": " 子控件排版布局器的接口。\n\n 按特定算法对子控件进行排版布局,子类需要实现vtable中的函数。\n\n\n", "name": "children_layouter_t", "level": 1 }, { "type": "enum", - "desc": " 剪切板数据类型定义。\r\n", + "desc": " 剪切板数据类型定义。\n\n", "consts": [ { - "desc": " 无数据。\r\n", + "desc": " 无数据。\n\n", "name": "CLIP_BOARD_DATA_TYPE_NONE" }, { - "desc": " UTF8文本。\r\n", + "desc": " UTF8文本。\n\n", "name": "CLIP_BOARD_DATA_TYPE_TEXT" } ], @@ -1905,7 +1905,7 @@ "annotation": { "constructor": true }, - "desc": " 获取缺省的剪切板对象。\r\n\r\n", + "desc": " 获取缺省的剪切板对象。\n\n\n", "name": "clip_board", "alias": "clip_board_instance", "return": { @@ -1922,7 +1922,7 @@ } ], "annotation": {}, - "desc": " 设置缺省的剪切板对象。\r\n\r\n", + "desc": " 设置缺省的剪切板对象。\n\n\n", "name": "clip_board_set", "return": { "type": "ret_t", @@ -1938,7 +1938,7 @@ } ], "annotation": {}, - "desc": " 清空剪切板中的数据。\r\n\r\n", + "desc": " 清空剪切板中的数据。\n\n\n", "name": "clip_board_clear", "return": { "type": "ret_t", @@ -1969,7 +1969,7 @@ } ], "annotation": {}, - "desc": " 设置数据到剪切板中。\r\n\r\n", + "desc": " 设置数据到剪切板中。\n\n\n", "name": "clip_board_set_data", "return": { "type": "ret_t", @@ -2000,7 +2000,7 @@ } ], "annotation": {}, - "desc": " 从剪切板中获取数据。\r\n\r\n", + "desc": " 从剪切板中获取数据。\n\n\n", "name": "clip_board_get_data", "return": { "type": "ret_t", @@ -2016,7 +2016,7 @@ } ], "annotation": {}, - "desc": " 销毁剪切板对象。\r\n\r\n", + "desc": " 销毁剪切板对象。\n\n\n", "name": "clip_board_destroy", "return": { "type": "ret_t", @@ -2035,7 +2035,7 @@ "static": true, "scriptable": true }, - "desc": " 设置文本(UTF8)数据到剪切板。\r\n\r\n", + "desc": " 设置文本(UTF8)数据到剪切板。\n\n\n", "name": "clip_board_set_text", "return": { "type": "ret_t", @@ -2048,7 +2048,7 @@ "static": true, "scriptable": true }, - "desc": " 从剪切板中获取文本(UTF8)数据。\r\n\r\n", + "desc": " 从剪切板中获取文本(UTF8)数据。\n\n\n", "name": "clip_board_get_text", "return": { "type": "const char*", @@ -2059,7 +2059,7 @@ "events": [], "properties": [], "header": "base/clip_board.h", - "desc": " 剪切板接口。\r\n", + "desc": " 剪切板接口。\n\n", "name": "clip_board_t", "annotation": { "scriptable": true @@ -2074,7 +2074,7 @@ "annotation": { "constructor": true }, - "desc": " 获取缺省的对话框高亮策略工厂对象。\r\n", + "desc": " 获取缺省的对话框高亮策略工厂对象。\n\n", "name": "dialog_highlighter_factory", "return": { "type": "dialog_highlighter_factory_t*", @@ -2090,7 +2090,7 @@ } ], "annotation": {}, - "desc": " 设置缺省的对话框高亮策略工厂对象。\r\n\r\n", + "desc": " 设置缺省的对话框高亮策略工厂对象。\n\n\n", "name": "dialog_highlighter_factory_set", "return": { "type": "ret_t", @@ -2102,7 +2102,7 @@ "annotation": { "constructor": true }, - "desc": " 创建对话框高亮策略工厂对象。\r\n\r\n", + "desc": " 创建对话框高亮策略工厂对象。\n\n\n", "name": "dialog_highlighter_factory_create", "return": { "type": "dialog_highlighter_factory_t*", @@ -2128,7 +2128,7 @@ } ], "annotation": {}, - "desc": " 注册对话框高亮策略创建函数。\r\n\r\n", + "desc": " 注册对话框高亮策略创建函数。\n\n\n", "name": "dialog_highlighter_factory_register", "return": { "type": "ret_t", @@ -2156,7 +2156,7 @@ "annotation": { "constructor": true }, - "desc": " 创建指定类型的对话框高亮策略对象。\r\n\r\n", + "desc": " 创建指定类型的对话框高亮策略对象。\n\n\n", "name": "dialog_highlighter_factory_create_highlighter", "return": { "type": "dialog_highlighter_t*", @@ -2172,7 +2172,7 @@ } ], "annotation": {}, - "desc": " 析构并释放对话框高亮策略工厂对象。\r\n\r\n", + "desc": " 析构并释放对话框高亮策略工厂对象。\n\n\n", "name": "dialog_highlighter_factory_destroy", "return": { "type": "ret_t", @@ -2183,16 +2183,16 @@ "events": [], "properties": [], "header": "base/dialog_highlighter_factory.h", - "desc": " 对话框高亮策略工厂。\r\n\r\n", + "desc": " 对话框高亮策略工厂。\n\n\n", "name": "dialog_highlighter_factory_t", "level": 1 }, { "type": "enum", - "desc": " @type string\r\n 内置的对话框高亮策略。\r\n", + "desc": " @type string\n 内置的对话框高亮策略。\n\n", "consts": [ { - "desc": " 缺省的对话框高亮策略。\r\n", + "desc": " 缺省的对话框高亮策略。\n\n", "name": "DIALOG_HIGHLIGHTER_DEFAULT" } ], @@ -2213,7 +2213,7 @@ } ], "annotation": {}, - "desc": " 创建对话框高亮策略对象。\r\n\r\n>供子类构造函数用。\r\n\r\n", + "desc": " 创建对话框高亮策略对象。\n\n>供子类构造函数用。\n\n\n", "name": "dialog_highlighter_create", "return": { "type": "dialog_highlighter_t*", @@ -2239,7 +2239,7 @@ } ], "annotation": {}, - "desc": " 设置背景图片。\r\n\r\n", + "desc": " 设置背景图片。\n\n\n", "name": "dialog_highlighter_set_bg", "return": { "type": "ret_t", @@ -2260,7 +2260,7 @@ } ], "annotation": {}, - "desc": " 初始化。在绘制完背景,在截图前调用。\r\n\r\n", + "desc": " 初始化。在绘制完背景,在截图前调用。\n\n\n", "name": "dialog_highlighter_prepare", "return": { "type": "ret_t", @@ -2281,7 +2281,7 @@ } ], "annotation": {}, - "desc": " 绘制背景。\r\n\r\n", + "desc": " 绘制背景。\n\n\n", "name": "dialog_highlighter_draw", "return": { "type": "ret_t", @@ -2297,7 +2297,7 @@ } ], "annotation": {}, - "desc": " 是否是动态绘制(方便外层优化)。\r\n\r\n", + "desc": " 是否是动态绘制(方便外层优化)。\n\n\n", "name": "dialog_highlighter_is_dynamic", "return": { "type": "bool_t", @@ -2313,7 +2313,7 @@ } ], "annotation": {}, - "desc": " 销毁对话框高亮策略对象。\r\n\r\n", + "desc": " 销毁对话框高亮策略对象。\n\n\n", "name": "dialog_highlighter_destroy", "return": { "type": "ret_t", @@ -2325,279 +2325,283 @@ "properties": [ { "name": "img", - "desc": " 底层窗口的截图。\r\n", + "desc": " 底层窗口的截图。\n\n", "type": "bitmap_t" }, { "name": "canvas", - "desc": " 画布。\r\n", + "desc": " 画布。\n\n", "type": "canvas_t*" }, { "name": "dialog", - "desc": " 对应的对话框。\r\n", + "desc": " 对应的对话框。\n\n", "type": "widget_t*" } ], "header": "base/dialog_highlighter.h", - "desc": " 对话框高亮策略。\r\n\r\n> 高亮策略的基本思路是对背景进行处理,比如将背景变暗或变模糊。\r\n\r\n", + "desc": " 对话框高亮策略。\n\n> 高亮策略的基本思路是对背景进行处理,比如将背景变暗或变模糊。\n\n\n", "name": "dialog_highlighter_t", "level": 1 }, { "type": "enum", - "desc": " 类型常量定义。\r\n", + "desc": " 类型常量定义。\n\n", "consts": [ { - "desc": " 指针按下事件名(pointer_event_t)。\r\n", + "desc": " 指针按下事件名(pointer_event_t)。\n\n", "name": "EVT_POINTER_DOWN" }, { - "desc": " 指针按下事件名,在子控件处理之前触发(pointer_event_t)。\r\n", + "desc": " 指针按下事件名,在子控件处理之前触发(pointer_event_t)。\n\n", "name": "EVT_POINTER_DOWN_BEFORE_CHILDREN" }, { - "desc": " 指针移动事件名(pointer_event_t)。\r\n", + "desc": " 指针移动事件名(pointer_event_t)。\n\n", "name": "EVT_POINTER_MOVE" }, { - "desc": " 指针移动事件名,在子控件处理之前触发(pointer_event_t)。\r\n", + "desc": " 指针移动事件名,在子控件处理之前触发(pointer_event_t)。\n\n", "name": "EVT_POINTER_MOVE_BEFORE_CHILDREN" }, { - "desc": " 指针抬起事件名(pointer_event_t)。\r\n", + "desc": " 指针抬起事件名(pointer_event_t)。\n\n", "name": "EVT_POINTER_UP" }, { - "desc": " 指针抬起事件名,在子控件处理之前触发(pointer_event_t)。\r\n", + "desc": " 指针抬起事件名,在子控件处理之前触发(pointer_event_t)。\n\n", "name": "EVT_POINTER_UP_BEFORE_CHILDREN" }, { - "desc": " 滚轮事件名(pointer_event_t)。\r\n", + "desc": " 滚轮事件名(pointer_event_t)。\n\n", "name": "EVT_WHEEL" }, { - "desc": " 取消前一个指针按下事件名(pointer_event_t)。\r\n", + "desc": " 取消前一个指针按下事件名(pointer_event_t)。\n\n", "name": "EVT_POINTER_DOWN_ABORT" }, { - "desc": " 右键/长按弹出上下文菜单的事件名(pointer_event_t)。\r\n", + "desc": " 右键/长按弹出上下文菜单的事件名(pointer_event_t)。\n\n", "name": "EVT_CONTEXT_MENU" }, { - "desc": " 指针进入事件名(pointer_event_t)。\r\n", + "desc": " 指针进入事件名(pointer_event_t)。\n\n", "name": "EVT_POINTER_ENTER" }, { - "desc": " 指针离开事件名(pointer_event_t)。\r\n", + "desc": " 指针离开事件名(pointer_event_t)。\n\n", "name": "EVT_POINTER_LEAVE" }, { - "desc": " 长按事件名(pointer_event_t)。\r\n", + "desc": " 长按事件名(pointer_event_t)。\n\n", "name": "EVT_LONG_PRESS" }, { - "desc": " 点击事件名(pointer_event_t)。\r\n", + "desc": " 点击事件名(pointer_event_t)。\n\n", "name": "EVT_CLICK" }, { - "desc": " 得到焦点事件名(event_t)。\r\n", + "desc": " 得到焦点事件名(event_t)。\n\n", "name": "EVT_FOCUS" }, { - "desc": " 失去焦点事件名(event_t)。\r\n", + "desc": " 失去焦点事件名(event_t)。\n\n", "name": "EVT_BLUR" }, { - "desc": " 键按下事件名(key_event_t)。\r\n", + "desc": " 键按下事件名(key_event_t)。\n\n", "name": "EVT_KEY_DOWN" }, { - "desc": " 键按下事件名,在子控件处理之前触发(key_event_t)。\r\n", + "desc": " 键按下事件名,在子控件处理之前触发(key_event_t)。\n\n", "name": "EVT_KEY_DOWN_BEFORE_CHILDREN" }, { - "desc": " 按键repeat事件名(key_event_t)。\r\n", + "desc": " 按键repeat事件名(key_event_t)。\n\n", "name": "EVT_KEY_REPEAT" }, { - "desc": " 键抬起事件名(key_event_t)。\r\n", + "desc": " 键抬起事件名(key_event_t)。\n\n", "name": "EVT_KEY_UP" }, { - "desc": " 键抬起事件名,在子控件处理之前触发(key_event_t)。\r\n", + "desc": " 键抬起事件名,在子控件处理之前触发(key_event_t)。\n\n", "name": "EVT_KEY_UP_BEFORE_CHILDREN" }, { - "desc": " 即将移动Widget的事件名(event_t)。\r\n", + "desc": " 即将移动Widget的事件名(event_t)。\n\n", "name": "EVT_WILL_MOVE" }, { - "desc": " 移动Widget的事件名(event_t)。\r\n", + "desc": " 移动Widget的事件名(event_t)。\n\n", "name": "EVT_MOVE" }, { - "desc": " 即将调整Widget大小的事件名(event_t)。\r\n", + "desc": " 即将调整Widget大小的事件名(event_t)。\n\n", "name": "EVT_WILL_RESIZE" }, { - "desc": " 调整Widget大小的事件名(event_t)。\r\n", + "desc": " 调整Widget大小的事件名(event_t)。\n\n", "name": "EVT_RESIZE" }, { - "desc": " 即将调整Widget大小/位置的事件名(event_t)。\r\n", + "desc": " 即将调整Widget大小/位置的事件名(event_t)。\n\n", "name": "EVT_WILL_MOVE_RESIZE" }, { - "desc": " 调整Widget大小/位置的事件名(event_t)。\r\n", + "desc": " 调整Widget大小/位置的事件名(event_t)。\n\n", "name": "EVT_MOVE_RESIZE" }, { - "desc": " 控件的值即将改变的事件名(event_t)。\r\n", + "desc": " 控件的值即将改变的事件名(event_t)。\n\n", "name": "EVT_VALUE_WILL_CHANGE" }, { - "desc": " 控件的值改变的事件名(event_t)。\r\n", + "desc": " 控件的值改变的事件名(event_t)。\n\n", "name": "EVT_VALUE_CHANGED" }, { - "desc": " 控件的值持续改变(如编辑器正在编辑)的事件名(event_t)。\r\n", + "desc": " 控件的值持续改变(如编辑器正在编辑)的事件名(event_t)。\n\n", "name": "EVT_VALUE_CHANGING" }, { - "desc": " 绘制的事件名(paint_event_t)。\r\n", + "desc": " 绘制的事件名(paint_event_t)。\n\n", "name": "EVT_PAINT" }, { - "desc": " 即将绘制的事件名(paint_event_t)。\r\n", + "desc": " 即将绘制的事件名(paint_event_t)。\n\n", "name": "EVT_BEFORE_PAINT" }, { - "desc": " 绘制完成的事件名(paint_event_t)。\r\n", + "desc": " 绘制完成的事件名(paint_event_t)。\n\n", "name": "EVT_AFTER_PAINT" }, { - "desc": " 绘制完成(canvas状态已经恢复)的事件名(paint_event_t)。\r\n", + "desc": " 绘制完成(canvas状态已经恢复)的事件名(paint_event_t)。\n\n", "name": "EVT_PAINT_DONE" }, { - "desc": " locale改变的事件(event_t)。\r\n", + "desc": " locale改变的事件(event_t)。\n\n", "name": "EVT_LOCALE_CHANGED" }, { - "desc": " 控件动画开始事件(event_t)。\r\n", + "desc": " 控件动画开始事件(event_t)。\n\n", "name": "EVT_ANIM_START" }, { - "desc": " 控件动画被主动停止的事件(event_t)。\r\n", + "desc": " 控件动画被主动停止的事件(event_t)。\n\n", "name": "EVT_ANIM_STOP" }, { - "desc": " 控件动画被暂停的事件(event_t)。\r\n", + "desc": " 控件动画被暂停的事件(event_t)。\n\n", "name": "EVT_ANIM_PAUSE" }, { - "desc": " 控件动画yoyo/repeat时,完成一次的事件(event_t)。\r\n", + "desc": " 控件动画yoyo/repeat时,完成一次的事件(event_t)。\n\n", "name": "EVT_ANIM_ONCE" }, { - "desc": " 控件动画完成事件(event_t)。\r\n", + "desc": " 控件动画完成事件(event_t)。\n\n", "name": "EVT_ANIM_END" }, { - "desc": " 窗口加载完成事件(event_t)。\r\n", + "desc": " 窗口加载完成事件(event_t)。\n\n", "name": "EVT_WINDOW_LOAD" }, { - "desc": " 窗口即将打开事件(event_t)。\r\n 如果有窗口动画,在窗口动画开始前触发。如果没有窗口动画,在窗口被加载后的下一次循环中触发。\r\n", + "desc": " 窗口即将打开事件(event_t)。\n 如果有窗口动画,在窗口动画开始前触发。如果没有窗口动画,在窗口被加载后的下一次循环中触发。\n\n", "name": "EVT_WINDOW_WILL_OPEN" }, { - "desc": " 窗口打开事件(event_t)。\r\n 如果有窗口动画,在窗口动画完成时触发。如果没有窗口动画,在窗口被加载后的下一次循环中触发。\r\n", + "desc": " 窗口打开事件(event_t)。\n 如果有窗口动画,在窗口动画完成时触发。如果没有窗口动画,在窗口被加载后的下一次循环中触发。\n\n", "name": "EVT_WINDOW_OPEN" }, { - "desc": " 窗口被切换到后台事件(event_t)。\r\n 打开新窗口时,当前窗口被切换到后台时,对当前窗口触发本事件。\r\n", + "desc": " 窗口被切换到后台事件(event_t)。\n 打开新窗口时,当前窗口被切换到后台时,对当前窗口触发本事件。\n\n", "name": "EVT_WINDOW_TO_BACKGROUND" }, { - "desc": " 窗口被切换到前台事件(event_t)。\r\n 关闭当前窗口时,前一个窗口被切换到前台时,对前一个窗口触发本事件。\r\n", + "desc": " 窗口被切换到前台事件(event_t)。\n 关闭当前窗口时,前一个窗口被切换到前台时,对前一个窗口触发本事件。\n\n", "name": "EVT_WINDOW_TO_FOREGROUND" }, { - "desc": " 窗口关闭事件。\r\n", + "desc": " 窗口关闭事件。\n\n", "name": "EVT_WINDOW_CLOSE" }, { - "desc": " 请求关闭窗口的事件(event_t)。\r\n", + "desc": " 请求关闭窗口的事件(event_t)。\n\n", "name": "EVT_REQUEST_CLOSE_WINDOW" }, { - "desc": " 顶层窗口改变的事件(window_event_t)。\r\n", + "desc": " 顶层窗口改变的事件(window_event_t)。\n\n", "name": "EVT_TOP_WINDOW_CHANGED" }, { - "desc": " 输入法提交输入的文本事件(im_commit_event_t)。\r\n", + "desc": " 输入法提交输入的文本事件(im_commit_event_t)。\n\n", "name": "EVT_IM_COMMIT" }, { - "desc": " 输入法请求显示候选字事件(im_candidates_event_t)。\r\n", + "desc": " 输入法请求显示候选字事件(im_candidates_event_t)。\n\n", "name": "EVT_IM_SHOW_CANDIDATES" }, { - "desc": " 软键盘Action点击事件(event_t)。\r\n", + "desc": " 软键盘Action点击事件(event_t)。\n\n", "name": "EVT_IM_ACTION" }, { - "desc": " 请求更新软键盘上的Action按钮的信息(im_action_button_info_event_t)。\r\n", + "desc": " 请求更新软键盘上的Action按钮的信息(im_action_button_info_event_t)。\n\n", "name": "EVT_IM_ACTION_INFO" }, { - "desc": " 开始拖动(event_t)。\r\n", + "desc": " 开始拖动(event_t)。\n\n", "name": "EVT_DRAG_START" }, { - "desc": " 拖动(event_t)。\r\n", + "desc": " 拖动(event_t)。\n\n", "name": "EVT_DRAG" }, { - "desc": " 结束拖动(event_t)。\r\n", + "desc": " 结束拖动(event_t)。\n\n", "name": "EVT_DRAG_END" }, { - "desc": " 在指定的时间内(WITH_SCREEN_SAVER_TIME),没有用户输入事件,由窗口管理器触发。\r\n", + "desc": " 在指定的时间内(WITH_SCREEN_SAVER_TIME),没有用户输入事件,由窗口管理器触发。\n\n", "name": "EVT_SCREEN_SAVER" }, { - "desc": " 内存不足。\r\n", + "desc": " 内存不足(event_t)。\n\n", "name": "EVT_LOW_MEMORY" }, { - "desc": " 内存耗尽。\r\n", + "desc": " 内存耗尽(event_t)。\n\n", "name": "EVT_OUT_OF_MEMORY" }, { - "desc": " 屏幕即将旋转。\r\n", + "desc": " 屏幕即将旋转(event_t)。\n\n", "name": "EVT_ORIENTATION_WILL_CHANGED" }, { - "desc": " 屏幕旋转。\r\n", + "desc": " 屏幕旋转(event_t)。\n\n", "name": "EVT_ORIENTATION_CHANGED" }, { - "desc": " 控件创建事件。\r\n", + "desc": " 控件创建事件(event_t)。\n\n", "name": "EVT_WIDGET_CREATED" }, { - "desc": " 请求退出应用程序事件。\r\n 点击原生窗口关闭按钮时,通过窗口管理器触发,注册该事件并返回RET_STOP,可以阻止窗口关闭。\r\n", + "desc": " 请求退出应用程序事件。\n 点击原生窗口关闭按钮时,通过窗口管理器触发,注册该事件并返回RET_STOP,可以阻止窗口关闭。\n\n", "name": "EVT_REQUEST_QUIT_APP" }, { - "desc": " event queue其它请求编号起始值。\r\n", + "desc": " 主题变化(event_t)。\n\n", + "name": "EVT_THEME_CHANGED" + }, + { + "desc": " event queue其它请求编号起始值。\n\n", "name": "EVT_REQ_START" }, { - "desc": " 用户定义事件起始值。\r\n", + "desc": " 用户定义事件起始值。\n\n", "name": "EVT_USER_START" } ], @@ -2636,7 +2640,7 @@ } ], "annotation": {}, - "desc": " 加载字体。\r\n\r\n\r\n", + "desc": " 加载字体。\n\n\n\n", "name": "font_loader_load", "return": { "type": "font_t*", @@ -2647,7 +2651,7 @@ "events": [], "properties": [], "header": "base/font_loader.h", - "desc": " 字体加载接口。\r\n", + "desc": " 字体加载接口。\n\n", "name": "font_loader_t", "level": 1 }, @@ -2659,7 +2663,7 @@ "annotation": { "constructor": true }, - "desc": " 获取缺省的字体管理器。\r\n", + "desc": " 获取缺省的字体管理器。\n\n", "name": "font_manager", "return": { "type": "font_manager_t*", @@ -2675,7 +2679,7 @@ } ], "annotation": {}, - "desc": " 设置缺省的字体管理器。\r\n\r\n", + "desc": " 设置缺省的字体管理器。\n\n\n", "name": "font_manager_set", "return": { "type": "ret_t", @@ -2693,7 +2697,7 @@ "annotation": { "constructor": true }, - "desc": " 创建字体管理器。\r\n\r\n", + "desc": " 创建字体管理器。\n\n\n", "name": "font_manager_create", "return": { "type": "font_manager_t*", @@ -2716,7 +2720,7 @@ "annotation": { "constructor": true }, - "desc": " 初始化字体管理器。\r\n\r\n", + "desc": " 初始化字体管理器。\n\n\n", "name": "font_manager_init", "return": { "type": "font_manager_t*", @@ -2737,7 +2741,7 @@ } ], "annotation": {}, - "desc": " 设置资源管理器对象\r\n\r\n 之所以需要设置资源管理器对象,而不是使用缺省的资源管理器对象,是因为在designer中有两个字体管理器:\r\n\r\n * 一个用于designer本身加载字体。\r\n\r\n * 一个用于被设计的窗口加载字体。\r\n\r\n这两个字体管理器需要从不同的路径加载资源。\r\n\r\n", + "desc": " 设置资源管理器对象\n\n 之所以需要设置资源管理器对象,而不是使用缺省的资源管理器对象,是因为在designer中有两个字体管理器:\n\n * 一个用于designer本身加载字体。\n\n * 一个用于被设计的窗口加载字体。\n\n这两个字体管理器需要从不同的路径加载资源。\n\n\n", "name": "font_manager_set_assets_manager", "return": { "type": "ret_t", @@ -2763,7 +2767,7 @@ } ], "annotation": {}, - "desc": " 向缓存中加入字体。\r\n\r\n", + "desc": " 向缓存中加入字体。\n\n\n", "name": "font_manager_add_font", "return": { "type": "ret_t", @@ -2789,7 +2793,7 @@ } ], "annotation": {}, - "desc": " 从缓存中查找字体,如果没找到,再加载字体,并缓存。\r\n\r\n", + "desc": " 从缓存中查找字体,如果没找到,再加载字体,并缓存。\n\n\n", "name": "font_manager_get_font", "return": { "type": "font_t*", @@ -2817,13 +2821,31 @@ "annotation": { "scriptable": true }, - "desc": " 卸载指定的字体。\r\n\r\n", + "desc": " 卸载指定的字体。\n\n\n", "name": "font_manager_unload_font", "return": { "type": "ret_t", "desc": "返回RET_OK表示成功,否则表示失败。" } }, + { + "params": [ + { + "type": "font_manager_t*", + "name": "fm", + "desc": "字体管理器对象。" + } + ], + "annotation": { + "scriptable": true + }, + "desc": " 卸载全部字体。\n\n\n", + "name": "font_manager_unload_all", + "return": { + "type": "ret_t", + "desc": "返回RET_OK表示成功,否则表示失败。" + } + }, { "params": [ { @@ -2833,7 +2855,7 @@ } ], "annotation": {}, - "desc": " 析构字体管理器。\r\n\r\n", + "desc": " 析构字体管理器。\n\n\n", "name": "font_manager_deinit", "return": { "type": "ret_t", @@ -2849,7 +2871,7 @@ } ], "annotation": {}, - "desc": " 析构并释放字体管理器。\r\n\r\n", + "desc": " 析构并释放字体管理器。\n\n\n", "name": "font_manager_destroy", "return": { "type": "ret_t", @@ -2861,7 +2883,7 @@ "properties": [ { "name": "loader", - "desc": " 字体加载器。\r\n", + "desc": " 字体加载器。\n\n", "type": "font_loader_t*", "annotation": { "private": true @@ -2869,7 +2891,7 @@ }, { "name": "assets_manager", - "desc": " 资源管理器。\r\n", + "desc": " 资源管理器。\n\n", "type": "assets_manager_t*", "annotation": { "private": true @@ -2877,7 +2899,7 @@ } ], "header": "base/font_manager.h", - "desc": " 字体管理器,负责字体的加载和缓存管理。\r\n (如果使用nanovg,字体由nanovg内部管理)\r\n", + "desc": " 字体管理器,负责字体的加载和缓存管理。\n (如果使用nanovg,字体由nanovg内部管理)\n\n", "name": "font_manager_t", "annotation": { "scriptable": true @@ -2886,18 +2908,18 @@ }, { "type": "enum", - "desc": " 字模格式常量定义。\r\n", + "desc": " 字模格式常量定义。\n\n", "consts": [ { - "desc": " 每个像素占用1个字节(缺省)。\r\n", + "desc": " 每个像素占用1个字节(缺省)。\n\n", "name": "GLYPH_FMT_ALPHA" }, { - "desc": " 每个像素占用1个比特。\r\n", + "desc": " 每个像素占用1个比特。\n\n", "name": "GLYPH_FMT_MONO" }, { - "desc": " 每个像素占用4个字节。\r\n", + "desc": " 每个像素占用4个字节。\n\n", "name": "GLYPH_FMT_RGBA" } ], @@ -2917,7 +2939,7 @@ "annotation": { "constructor": true }, - "desc": " 创建glyph对象。\r\n\r\n", + "desc": " 创建glyph对象。\n\n\n", "name": "glyph_create", "return": { "type": "glyph_t*", @@ -2929,7 +2951,7 @@ "annotation": { "constructor": true }, - "desc": " 克隆glyph对象。\r\n\r\n", + "desc": " 克隆glyph对象。\n\n\n", "name": "glyph_clone", "return": { "type": "glyph_t*", @@ -2947,7 +2969,7 @@ "annotation": { "deconstructor": true }, - "desc": " 销毁glyph对象。\r\n\r\n", + "desc": " 销毁glyph对象。\n\n\n", "name": "glyph_destroy", "return": { "type": "ret_t", @@ -2959,7 +2981,7 @@ "properties": [ { "name": "x", - "desc": " x坐标。\r\n", + "desc": " x坐标。\n\n", "type": "int16_t", "annotation": { "readable": true @@ -2967,7 +2989,7 @@ }, { "name": "y", - "desc": " y坐标。\r\n", + "desc": " y坐标。\n\n", "type": "int16_t", "annotation": { "readable": true @@ -2975,7 +2997,7 @@ }, { "name": "w", - "desc": " 宽度。\r\n", + "desc": " 宽度。\n\n", "type": "uint16_t", "annotation": { "readable": true @@ -2983,7 +3005,7 @@ }, { "name": "h", - "desc": " 高度。\r\n", + "desc": " 高度。\n\n", "type": "uint16_t", "annotation": { "readable": true @@ -2991,7 +3013,7 @@ }, { "name": "advance", - "desc": " 占位宽度。\r\n", + "desc": " 占位宽度。\n\n", "type": "uint16_t", "annotation": { "readable": true @@ -2999,7 +3021,7 @@ }, { "name": "format", - "desc": " 格式。\r\n", + "desc": " 格式。\n\n", "type": "uint8_t", "annotation": { "readable": true @@ -3007,7 +3029,7 @@ }, { "name": "pitch", - "desc": " pitch。\r\n", + "desc": " pitch。\n\n", "type": "uint8_t", "annotation": { "readable": true @@ -3015,7 +3037,7 @@ }, { "name": "data", - "desc": " 数据。\r\n", + "desc": " 数据。\n\n", "type": "const uint8_t*", "annotation": { "readable": true @@ -3023,7 +3045,7 @@ } ], "header": "base/font.h", - "desc": " 代表一个字符的字模。\r\n\r\n", + "desc": " 代表一个字符的字模。\n\n\n", "name": "glyph_t", "level": 1 }, @@ -3044,7 +3066,7 @@ } ], "annotation": {}, - "desc": " 获取字体的基线。\r\n\r\n", + "desc": " 获取字体的基线。\n\n\n", "name": "font_get_baseline", "return": { "type": "int32_t", @@ -3070,7 +3092,7 @@ } ], "annotation": {}, - "desc": " 检查当前字体是否与指定名称和大小相匹配。\r\n\r\n\r\n", + "desc": " 检查当前字体是否与指定名称和大小相匹配。\n\n\n\n", "name": "font_match", "return": { "type": "int32_t", @@ -3101,7 +3123,7 @@ } ], "annotation": {}, - "desc": " 获取指定字符和大小的字模。\r\n\r\n\r\n", + "desc": " 获取指定字符和大小的字模。\n\n\n\n", "name": "font_get_glyph", "return": { "type": "ret_t", @@ -3119,7 +3141,7 @@ "annotation": { "deconstructor": true }, - "desc": " 销毁font对象。\r\n\r\n", + "desc": " 销毁font对象。\n\n\n", "name": "font_destroy", "return": { "type": "ret_t", @@ -3130,7 +3152,7 @@ "events": [], "properties": [], "header": "base/font.h", - "desc": " 代表一种字体。\r\n\r\n", + "desc": " 代表一种字体。\n\n\n", "name": "font_t", "level": 1 }, @@ -3280,7 +3302,7 @@ "events": [], "properties": [], "header": "base/hscrollable.h", - "desc": " 帮助实现控件左右滚动的效果。\r\n", + "desc": " 帮助实现控件左右滚动的效果。\n\n", "name": "hscrollable_t", "level": 1 }, @@ -3304,7 +3326,7 @@ "scriptable": "custom", "static": true }, - "desc": " 增加一个idle。\r\n\r\n", + "desc": " 增加一个idle。\n\n\n", "name": "idle_add", "return": { "type": "uint32_t", @@ -3327,7 +3349,7 @@ "annotation": { "static": true }, - "desc": " 用于非GUI线程增加一个idle,本函数向主循环的事件队列中发送一个增加idle的请求。\r\n\r\n", + "desc": " 用于非GUI线程增加一个idle,本函数向主循环的事件队列中发送一个增加idle的请求。\n\n\n", "name": "idle_queue", "return": { "type": "ret_t", @@ -3346,7 +3368,7 @@ "scriptable": true, "static": true }, - "desc": " 删除指定的idle。\r\n\r\n", + "desc": " 删除指定的idle。\n\n\n", "name": "idle_remove", "return": { "type": "ret_t", @@ -3358,7 +3380,7 @@ "annotation": { "private": true }, - "desc": " 查找指定ID的idle。\r\n\r\n", + "desc": " 查找指定ID的idle。\n\n\n", "name": "idle_find", "return": { "type": "idle_info_t*", @@ -3384,7 +3406,7 @@ } ], "annotation": {}, - "desc": " 设置一个回调函数,在idle被销毁时调用(方便脚本语言去释放回调函数)。\r\n\r\n", + "desc": " 设置一个回调函数,在idle被销毁时调用(方便脚本语言去释放回调函数)。\n\n\n", "name": "idle_set_on_destroy", "return": { "type": "ret_t", @@ -3396,7 +3418,7 @@ "annotation": { "private": true }, - "desc": " 调用全部idle的函数。\r\n\r\n", + "desc": " 调用全部idle的函数。\n\n\n", "name": "idle_dispatch", "return": { "type": "ret_t", @@ -3408,7 +3430,7 @@ "annotation": { "static": true }, - "desc": " 返回idle的个数。\r\n\r\n", + "desc": " 返回idle的个数。\n\n\n", "name": "idle_count", "return": { "type": "uint32_t", @@ -3419,7 +3441,7 @@ "events": [], "properties": [], "header": "base/idle.h", - "desc": "\r\n idle可以看作是duration为0的定时器。\r\n\r\n > idle可以用来实现一些异步处理。\r\n\r\n 示例:\r\n\r\n ```c\r\n static ret_t something_on_idle(const idle_info_t* info) {\r\n widget_t* widget = WIDGET(info->ctx);\r\n edit_t* edit = EDIT(widget);\r\n ...\r\n return RET_REMOVE;\r\n }\r\n\r\n ...\r\n\r\n idle_add(something_on_idle, edit);\r\n\r\n ```\r\n\r\n > 在非GUI线程请用idle\\_queue。\r\n\r\n", + "desc": "\n idle可以看作是duration为0的定时器。\n\n > idle可以用来实现一些异步处理。\n\n 示例:\n\n ```c\n static ret_t something_on_idle(const idle_info_t* info) {\n widget_t* widget = WIDGET(info->ctx);\n edit_t* edit = EDIT(widget);\n ...\n return RET_REMOVE;\n }\n\n ...\n\n idle_add(something_on_idle, edit);\n\n ```\n\n > 在非GUI线程请用idle\\_queue。\n\n\n", "name": "idle_t", "annotation": { "scriptable": true, @@ -3449,7 +3471,7 @@ } ], "annotation": {}, - "desc": " 加载图片。\r\n\r\n", + "desc": " 加载图片。\n\n\n", "name": "image_loader_load", "return": { "type": "ret_t", @@ -3467,7 +3489,7 @@ "annotation": { "static": true }, - "desc": " 注册图片加载器。\r\n\r\n\r\n", + "desc": " 注册图片加载器。\n\n\n\n", "name": "image_loader_register", "return": { "type": "ret_t", @@ -3485,7 +3507,7 @@ "annotation": { "static": true }, - "desc": " 注销图片加载器。\r\n\r\n\r\n", + "desc": " 注销图片加载器。\n\n\n\n", "name": "image_loader_unregister", "return": { "type": "ret_t", @@ -3508,7 +3530,7 @@ "annotation": { "static": true }, - "desc": " 查找满足条件加载器并加载图片。\r\n\r\n\r\n", + "desc": " 查找满足条件加载器并加载图片。\n\n\n\n", "name": "image_loader_load_image", "return": { "type": "ret_t", @@ -3519,7 +3541,7 @@ "events": [], "properties": [], "header": "base/image_loader.h", - "desc": " 图片加载接口。\r\n", + "desc": " 图片加载接口。\n\n", "name": "image_loader_t", "level": 1 }, @@ -3532,7 +3554,7 @@ "constructor": true, "scriptable": true }, - "desc": " 获取缺省的图片管理器。\r\n", + "desc": " 获取缺省的图片管理器。\n\n", "name": "image_manager", "alias": "image_manager_instance", "return": { @@ -3549,7 +3571,7 @@ } ], "annotation": {}, - "desc": " 设置缺省的图片管理器。\r\n\r\n", + "desc": " 设置缺省的图片管理器。\n\n\n", "name": "image_manager_set", "return": { "type": "ret_t", @@ -3561,7 +3583,7 @@ "annotation": { "constructor": true }, - "desc": " 创建图片管理器。\r\n\r\n", + "desc": " 创建图片管理器。\n\n\n", "name": "image_manager_create", "return": { "type": "image_manager_t*", @@ -3579,7 +3601,7 @@ "annotation": { "constructor": true }, - "desc": " 初始化图片管理器。\r\n\r\n", + "desc": " 初始化图片管理器。\n\n\n", "name": "image_manager_init", "return": { "type": "image_manager_t*", @@ -3607,7 +3629,7 @@ "annotation": { "scriptable": true }, - "desc": " 获取指定的图片。\r\n 先从缓存查找,如果没找到,再加载并缓存。\r\n\r\n\r\n", + "desc": " 获取指定的图片。\n 先从缓存查找,如果没找到,再加载并缓存。\n\n\n\n", "name": "image_manager_get_bitmap", "return": { "type": "ret_t", @@ -3628,13 +3650,29 @@ } ], "annotation": {}, - "desc": " 从图片管理器中卸载指定时间内没有使用的图片。\r\n\r\n", + "desc": " 从图片管理器中卸载指定时间内没有使用的图片。\n\n\n", "name": "image_manager_unload_unused", "return": { "type": "ret_t", "desc": "返回RET_OK表示成功,否则表示失败。" } }, + { + "params": [ + { + "type": "image_manager_t*", + "name": "imm", + "desc": "图片管理器对象。" + } + ], + "annotation": {}, + "desc": " 从图片管理器中卸载全部图片。\n\n\n\n", + "name": "image_manager_unload_all", + "return": { + "type": "ret_t", + "desc": "返回RET_OK表示成功,否则表示失败。" + } + }, { "params": [ { @@ -3649,7 +3687,7 @@ } ], "annotation": {}, - "desc": " 从图片管理器中卸载指定的图片。\r\n\r\n", + "desc": " 从图片管理器中卸载指定的图片。\n\n\n", "name": "image_manager_unload_bitmap", "return": { "type": "ret_t", @@ -3670,7 +3708,7 @@ } ], "annotation": {}, - "desc": " 更新缓存中图片的specific信息。\r\n\r\n", + "desc": " 更新缓存中图片的specific信息。\n\n\n", "name": "image_manager_update_specific", "return": { "type": "ret_t", @@ -3691,7 +3729,7 @@ } ], "annotation": {}, - "desc": " 设置资源管理器对象。\r\n\r\n 之所以需要设置资源管理器对象,而不是使用缺省的资源管理器对象,是因为在designer中有两个图片管理器:\r\n\r\n * 一个用于designer本身加载图片。\r\n\r\n * 一个用于被设计的窗口加载图片。\r\n\r\n这两个图片管理器需要从不同的路径加载资源。\r\n\r\n\r\n", + "desc": " 设置资源管理器对象。\n\n 之所以需要设置资源管理器对象,而不是使用缺省的资源管理器对象,是因为在designer中有两个图片管理器:\n\n * 一个用于designer本身加载图片。\n\n * 一个用于被设计的窗口加载图片。\n\n这两个图片管理器需要从不同的路径加载资源。\n\n\n\n", "name": "image_manager_set_assets_manager", "return": { "type": "ret_t", @@ -3707,7 +3745,7 @@ } ], "annotation": {}, - "desc": " 析构图片管理器。\r\n\r\n", + "desc": " 析构图片管理器。\n\n\n", "name": "image_manager_deinit", "return": { "type": "ret_t", @@ -3723,7 +3761,7 @@ } ], "annotation": {}, - "desc": " 析构并释放图片管理器。\r\n\r\n", + "desc": " 析构并释放图片管理器。\n\n\n", "name": "image_manager_destroy", "return": { "type": "ret_t", @@ -3735,7 +3773,7 @@ "properties": [ { "name": "images", - "desc": " 缓存的图片。\r\n", + "desc": " 缓存的图片。\n\n", "type": "darray_t", "annotation": { "private": true @@ -3743,7 +3781,7 @@ }, { "name": "assets_manager", - "desc": " 资源管理器。\r\n", + "desc": " 资源管理器。\n\n", "type": "assets_manager_t*", "annotation": { "private": true @@ -3751,7 +3789,7 @@ } ], "header": "base/image_manager.h", - "desc": " 图片管理器。负责加载,解码和缓存图片。\r\n", + "desc": " 图片管理器。负责加载,解码和缓存图片。\n\n", "name": "image_manager_t", "annotation": { "scriptable": true @@ -3821,7 +3859,7 @@ "annotation": { "constructor": true }, - "desc": " 创建输入法引擎对象。\r\n\r\n", + "desc": " 创建输入法引擎对象。\n\n\n", "name": "input_engine_create", "return": { "type": "input_engine_t*", @@ -3839,7 +3877,7 @@ "annotation": { "deconstructor": true }, - "desc": " 销毁输入法引擎对象。\r\n\r\n", + "desc": " 销毁输入法引擎对象。\n\n\n", "name": "input_engine_destroy", "return": { "type": "ret_t", @@ -3855,7 +3893,7 @@ } ], "annotation": {}, - "desc": " 清除所有输入的按键组合和候选字。\r\n\r\n", + "desc": " 清除所有输入的按键组合和候选字。\n\n\n", "name": "input_engine_reset_input", "return": { "type": "ret_t", @@ -3876,7 +3914,7 @@ } ], "annotation": {}, - "desc": " 输入新的按键,并更新候选字。\r\n\r\n", + "desc": " 输入新的按键,并更新候选字。\n\n\n", "name": "input_engine_input", "return": { "type": "ret_t", @@ -3888,7 +3926,7 @@ "properties": [ { "name": "keys", - "desc": " 当前的按键组合。\r\n", + "desc": " 当前的按键组合。\n\n", "type": "str_t", "annotation": { "private": true @@ -3896,7 +3934,7 @@ }, { "name": "candidates", - "desc": " 当前按键组合对应的候选字列表。\r\n", + "desc": " 当前按键组合对应的候选字列表。\n\n", "type": "char*", "annotation": { "private": true @@ -3904,7 +3942,7 @@ }, { "name": "candidates_nr", - "desc": " 当前按键组合对应的候选字/词个数。\r\n", + "desc": " 当前按键组合对应的候选字/词个数。\n\n", "type": "uint32_t", "annotation": { "private": true @@ -3912,52 +3950,52 @@ } ], "header": "base/input_engine.h", - "desc": " 输入法引擎接口。\r\n\r\n 常见的实现方式有以下几种:\r\n\r\n * 空实现。用于不需要输入法的嵌入式平台。\r\n\r\n * 拼音输入法实现。用于需要输入法的嵌入式平台。\r\n\r\n ```graphviz\r\n [default_style]\r\n\r\n input_engine_pinyin_t -> input_engine_t[arrowhead=empty style=dashed]\r\n input_engine_null_t -> input_engine_t[arrowhead=empty style=dashed]\r\n\r\n ```\r\n", + "desc": " 输入法引擎接口。\n\n 常见的实现方式有以下几种:\n\n * 空实现。用于不需要输入法的嵌入式平台。\n\n * 拼音输入法实现。用于需要输入法的嵌入式平台。\n\n ```graphviz\n [default_style]\n\n input_engine_pinyin_t -> input_engine_t[arrowhead=empty style=dashed]\n input_engine_null_t -> input_engine_t[arrowhead=empty style=dashed]\n\n ```\n\n", "name": "input_engine_t", "level": 1 }, { "type": "enum", - "desc": " 输入类型常量定义。\r\n", + "desc": " 输入类型常量定义。\n\n", "consts": [ { - "desc": " 文本。\r\n", + "desc": " 文本。\n\n", "name": "INPUT_TEXT" }, { - "desc": " 整数。\r\n", + "desc": " 整数。\n\n", "name": "INPUT_INT" }, { - "desc": " 非负整数。\r\n", + "desc": " 非负整数。\n\n", "name": "INPUT_UINT" }, { - "desc": " 16进制整数。\r\n", + "desc": " 16进制整数。\n\n", "name": "INPUT_HEX" }, { - "desc": " 浮点数。\r\n", + "desc": " 浮点数。\n\n", "name": "INPUT_FLOAT" }, { - "desc": " 非负浮点数。\r\n", + "desc": " 非负浮点数。\n\n", "name": "INPUT_UFLOAT" }, { - "desc": " 邮件地址。\r\n", + "desc": " 邮件地址。\n\n", "name": "INPUT_EMAIL" }, { - "desc": " 密码。\r\n", + "desc": " 密码。\n\n", "name": "INPUT_PASSWORD" }, { - "desc": " 电话号码。\r\n", + "desc": " 电话号码。\n\n", "name": "INPUT_PHONE" }, { - "desc": " 使用自定义的软键盘(如计算器等应用不希望弹出系统软键盘)。\r\n", + "desc": " 使用自定义的软键盘(如计算器等应用不希望弹出系统软键盘)。\n\n", "name": "INPUT_CUSTOM" } ], @@ -3986,7 +4024,7 @@ } ], "annotation": {}, - "desc": " 分发一个事件。\r\n\r\n", + "desc": " 分发一个事件。\n\n\n", "name": "input_method_dispatch", "return": { "type": "ret_t", @@ -4007,7 +4045,7 @@ } ], "annotation": {}, - "desc": " 分发一个事件当前焦点控件。\r\n\r\n", + "desc": " 分发一个事件当前焦点控件。\n\n\n", "name": "input_method_dispatch_to_widget", "return": { "type": "ret_t", @@ -4038,7 +4076,7 @@ } ], "annotation": {}, - "desc": " 注册指定事件的处理函数。\r\n\r\n", + "desc": " 注册指定事件的处理函数。\n\n\n", "name": "input_method_on", "return": { "type": "uint32_t", @@ -4059,7 +4097,7 @@ } ], "annotation": {}, - "desc": " 注销指定事件的处理函数。\r\n\r\n", + "desc": " 注销指定事件的处理函数。\n\n\n", "name": "input_method_off", "return": { "type": "ret_t", @@ -4080,7 +4118,7 @@ } ], "annotation": {}, - "desc": " 打开或关闭输入法。\r\n\r\n", + "desc": " 打开或关闭输入法。\n\n\n", "name": "input_method_request", "return": { "type": "ret_t", @@ -4106,7 +4144,7 @@ } ], "annotation": {}, - "desc": " 设置软键盘上的action按钮的信息。\r\n\r\n", + "desc": " 设置软键盘上的action按钮的信息。\n\n\n", "name": "input_method_update_action_button_info", "return": { "type": "ret_t", @@ -4122,7 +4160,7 @@ } ], "annotation": {}, - "desc": " 软键盘上的action按钮被点击时,调用本函数分发EVT_IM_ACTION事件。\r\n\r\n", + "desc": " 软键盘上的action按钮被点击时,调用本函数分发EVT_IM_ACTION事件。\n\n\n", "name": "input_method_dispatch_action", "return": { "type": "ret_t", @@ -4145,7 +4183,7 @@ "annotation": { "scriptable": true }, - "desc": " 提交输入文本。\r\n\r\n", + "desc": " 提交输入文本。\n\n\n", "name": "input_method_commit_text", "return": { "type": "ret_t", @@ -4171,7 +4209,7 @@ } ], "annotation": {}, - "desc": " 提交输入文本。\r\n\r\n", + "desc": " 提交输入文本。\n\n\n", "name": "input_method_commit_text_ex", "return": { "type": "ret_t", @@ -4194,7 +4232,7 @@ "annotation": { "scriptable": true }, - "desc": " 提交按键。\r\n\r\n", + "desc": " 提交按键。\n\n\n", "name": "input_method_dispatch_key", "return": { "type": "ret_t", @@ -4220,7 +4258,7 @@ } ], "annotation": {}, - "desc": " 请求显示候选字。\r\n\r\n", + "desc": " 请求显示候选字。\n\n\n", "name": "input_method_dispatch_candidates", "return": { "type": "ret_t", @@ -4230,7 +4268,7 @@ { "params": [], "annotation": {}, - "desc": " 创建输入法对象。在具体实现中实现。\r\n\r\n", + "desc": " 创建输入法对象。在具体实现中实现。\n\n\n", "name": "input_method_create", "return": { "type": "input_method_t*", @@ -4246,7 +4284,7 @@ } ], "annotation": {}, - "desc": " 销毁输入法对象。在具体实现中实现。\r\n\r\n", + "desc": " 销毁输入法对象。在具体实现中实现。\n\n\n", "name": "input_method_destroy", "return": { "type": "ret_t", @@ -4259,7 +4297,7 @@ "constructor": true, "scriptable": true }, - "desc": " 获取全局输入法对象。\r\n\r\n", + "desc": " 获取全局输入法对象。\n\n\n", "name": "input_method", "alias": "input_method_instance", "return": { @@ -4276,7 +4314,7 @@ } ], "annotation": {}, - "desc": " 设置全局输入法对象。\r\n\r\n", + "desc": " 设置全局输入法对象。\n\n\n", "name": "input_method_set", "return": { "type": "ret_t", @@ -4288,7 +4326,7 @@ "properties": [ { "name": "widget", - "desc": " 当前的焦点控件。\r\n", + "desc": " 当前的焦点控件。\n\n", "type": "widget_t*", "annotation": { "private": true @@ -4296,7 +4334,7 @@ }, { "name": "keyboard", - "desc": " 当前的软件键盘。\r\n", + "desc": " 当前的软件键盘。\n\n", "type": "widget_t*", "annotation": { "private": true @@ -4304,7 +4342,7 @@ }, { "name": "win", - "desc": " 当前的窗口。\r\n", + "desc": " 当前的窗口。\n\n", "type": "widget_t*", "annotation": { "private": true @@ -4312,7 +4350,7 @@ }, { "name": "win_delta_y", - "desc": " 由于软键盘的弹出,可能会将窗口向上推移,win_delta_y为推移的距离。\r\n", + "desc": " 由于软键盘的弹出,可能会将窗口向上推移,win_delta_y为推移的距离。\n\n", "type": "int32_t", "annotation": { "private": true @@ -4320,7 +4358,7 @@ }, { "name": "action_button_enable", - "desc": " 软键盘的上的action按钮是否可用。\r\n", + "desc": " 软键盘的上的action按钮是否可用。\n\n", "type": "bool_t", "annotation": { "readable": true @@ -4328,7 +4366,7 @@ }, { "name": "action_button_enable", - "desc": " 软键盘的上的action按钮文本。\r\n", + "desc": " 软键盘的上的action按钮文本。\n\n", "type": "bool_t", "annotation": { "readable": true @@ -4336,7 +4374,7 @@ }, { "name": "emitter", - "desc": " emitter。用于实现dispatch/on/off等功能。\r\n", + "desc": " emitter。用于实现dispatch/on/off等功能。\n\n", "type": "emitter_t", "annotation": { "private": true @@ -4344,7 +4382,7 @@ }, { "name": "input_type", - "desc": " 当前输入的类型。\r\n", + "desc": " 当前输入的类型。\n\n", "type": "input_type_t", "annotation": { "readable": true @@ -4352,7 +4390,7 @@ } ], "header": "base/input_method.h", - "desc": " 输入法接口。\r\n\r\n 常见的实现方式有以下几种:\r\n\r\n * 空实现。用于不需要输入法的嵌入式平台。\r\n\r\n * 缺省实现。用于需要输入法的嵌入式平台。\r\n\r\n * 基于SDL实现的平台原生输入法。用于桌面系统和手机系统。\r\n\r\n ```graphviz\r\n [default_style]\r\n\r\n input_method_default_t -> input_method_t [arrowhead=empty style=dashed]\r\n input_method_sdl_t -> input_method_t [arrowhead=empty style=dashed]\r\n input_method_null_t -> input_method_t [arrowhead=empty style=dashed]\r\n\r\n ```\r\n\r\n > 输入类型请参考:[input\\_type](input_type_t.md)\r\n\r\n", + "desc": " 输入法接口。\n\n 常见的实现方式有以下几种:\n\n * 空实现。用于不需要输入法的嵌入式平台。\n\n * 缺省实现。用于需要输入法的嵌入式平台。\n\n * 基于SDL实现的平台原生输入法。用于桌面系统和手机系统。\n\n ```graphviz\n [default_style]\n\n input_method_default_t -> input_method_t [arrowhead=empty style=dashed]\n input_method_sdl_t -> input_method_t [arrowhead=empty style=dashed]\n input_method_null_t -> input_method_t [arrowhead=empty style=dashed]\n\n ```\n\n > 输入类型请参考:[input\\_type](input_type_t.md)\n\n\n", "name": "input_method_t", "annotation": { "scriptable": true @@ -4361,522 +4399,522 @@ }, { "type": "enum", - "desc": " key code。\r\n", + "desc": " key code。\n\n", "consts": [ { - "desc": " TK_KEY_RETURN\r\n", + "desc": " TK_KEY_RETURN\n\n", "name": "TK_KEY_RETURN" }, { - "desc": " TK_KEY_ESCAPE\r\n", + "desc": " TK_KEY_ESCAPE\n\n", "name": "TK_KEY_ESCAPE" }, { - "desc": " TK_KEY_BACKSPACE\r\n", + "desc": " TK_KEY_BACKSPACE\n\n", "name": "TK_KEY_BACKSPACE" }, { - "desc": " TK_KEY_TAB\r\n", + "desc": " TK_KEY_TAB\n\n", "name": "TK_KEY_TAB" }, { - "desc": " TK_KEY_SPACE\r\n", + "desc": " TK_KEY_SPACE\n\n", "name": "TK_KEY_SPACE" }, { - "desc": " TK_KEY_EXCLAIM\r\n", + "desc": " TK_KEY_EXCLAIM\n\n", "name": "TK_KEY_EXCLAIM" }, { - "desc": " TK_KEY_QUOTEDBL\r\n", + "desc": " TK_KEY_QUOTEDBL\n\n", "name": "TK_KEY_QUOTEDBL" }, { - "desc": " TK_KEY_HASH\r\n", + "desc": " TK_KEY_HASH\n\n", "name": "TK_KEY_HASH" }, { - "desc": " TK_KEY_PERCENT\r\n", + "desc": " TK_KEY_PERCENT\n\n", "name": "TK_KEY_PERCENT" }, { - "desc": " TK_KEY_DOLLAR\r\n", + "desc": " TK_KEY_DOLLAR\n\n", "name": "TK_KEY_DOLLAR" }, { - "desc": " TK_KEY_AMPERSAND\r\n", + "desc": " TK_KEY_AMPERSAND\n\n", "name": "TK_KEY_AMPERSAND" }, { - "desc": " TK_KEY_QUOTE\r\n", + "desc": " TK_KEY_QUOTE\n\n", "name": "TK_KEY_QUOTE" }, { - "desc": " TK_KEY_LEFTPAREN\r\n", + "desc": " TK_KEY_LEFTPAREN\n\n", "name": "TK_KEY_LEFTPAREN" }, { - "desc": " TK_KEY_RIGHTPAREN\r\n", + "desc": " TK_KEY_RIGHTPAREN\n\n", "name": "TK_KEY_RIGHTPAREN" }, { - "desc": " TK_KEY_ASTERISK\r\n", + "desc": " TK_KEY_ASTERISK\n\n", "name": "TK_KEY_ASTERISK" }, { - "desc": " TK_KEY_PLUS\r\n", + "desc": " TK_KEY_PLUS\n\n", "name": "TK_KEY_PLUS" }, { - "desc": " TK_KEY_COMMA\r\n", + "desc": " TK_KEY_COMMA\n\n", "name": "TK_KEY_COMMA" }, { - "desc": " TK_KEY_MINUS\r\n", + "desc": " TK_KEY_MINUS\n\n", "name": "TK_KEY_MINUS" }, { - "desc": " TK_KEY_PERIOD\r\n", + "desc": " TK_KEY_PERIOD\n\n", "name": "TK_KEY_PERIOD" }, { - "desc": " TK_KEY_SLASH\r\n", + "desc": " TK_KEY_SLASH\n\n", "name": "TK_KEY_SLASH" }, { - "desc": " TK_KEY_0\r\n", + "desc": " TK_KEY_0\n\n", "name": "TK_KEY_0" }, { - "desc": " TK_KEY_1\r\n", + "desc": " TK_KEY_1\n\n", "name": "TK_KEY_1" }, { - "desc": " TK_KEY_2\r\n", + "desc": " TK_KEY_2\n\n", "name": "TK_KEY_2" }, { - "desc": " TK_KEY_3\r\n", + "desc": " TK_KEY_3\n\n", "name": "TK_KEY_3" }, { - "desc": " TK_KEY_4\r\n", + "desc": " TK_KEY_4\n\n", "name": "TK_KEY_4" }, { - "desc": " TK_KEY_5\r\n", + "desc": " TK_KEY_5\n\n", "name": "TK_KEY_5" }, { - "desc": " TK_KEY_6\r\n", + "desc": " TK_KEY_6\n\n", "name": "TK_KEY_6" }, { - "desc": " TK_KEY_7\r\n", + "desc": " TK_KEY_7\n\n", "name": "TK_KEY_7" }, { - "desc": " TK_KEY_8\r\n", + "desc": " TK_KEY_8\n\n", "name": "TK_KEY_8" }, { - "desc": " TK_KEY_9\r\n", + "desc": " TK_KEY_9\n\n", "name": "TK_KEY_9" }, { - "desc": " TK_KEY_COLON\r\n", + "desc": " TK_KEY_COLON\n\n", "name": "TK_KEY_COLON" }, { - "desc": " TK_KEY_SEMICOLON\r\n", + "desc": " TK_KEY_SEMICOLON\n\n", "name": "TK_KEY_SEMICOLON" }, { - "desc": " TK_KEY_LESS\r\n", + "desc": " TK_KEY_LESS\n\n", "name": "TK_KEY_LESS" }, { - "desc": " TK_KEY_EQUAL\r\n", + "desc": " TK_KEY_EQUAL\n\n", "name": "TK_KEY_EQUAL" }, { - "desc": " TK_KEY_GREATER\r\n", + "desc": " TK_KEY_GREATER\n\n", "name": "TK_KEY_GREATER" }, { - "desc": " TK_KEY_QUESTION\r\n", + "desc": " TK_KEY_QUESTION\n\n", "name": "TK_KEY_QUESTION" }, { - "desc": " TK_KEY_AT\r\n", + "desc": " TK_KEY_AT\n\n", "name": "TK_KEY_AT" }, { - "desc": " TK_KEY_LEFTBRACKET\r\n", + "desc": " TK_KEY_LEFTBRACKET\n\n", "name": "TK_KEY_LEFTBRACKET" }, { - "desc": " TK_KEY_BACKSLASH\r\n", + "desc": " TK_KEY_BACKSLASH\n\n", "name": "TK_KEY_BACKSLASH" }, { - "desc": " TK_KEY_RIGHTBRACKET\r\n", + "desc": " TK_KEY_RIGHTBRACKET\n\n", "name": "TK_KEY_RIGHTBRACKET" }, { - "desc": " TK_KEY_CARET\r\n", + "desc": " TK_KEY_CARET\n\n", "name": "TK_KEY_CARET" }, { - "desc": " TK_KEY_UNDERSCORE\r\n", + "desc": " TK_KEY_UNDERSCORE\n\n", "name": "TK_KEY_UNDERSCORE" }, { - "desc": " TK_KEY_BACKQUOTE\r\n", + "desc": " TK_KEY_BACKQUOTE\n\n", "name": "TK_KEY_BACKQUOTE" }, { - "desc": " TK_KEY_a\r\n", + "desc": " TK_KEY_a\n\n", "name": "TK_KEY_a" }, { - "desc": " TK_KEY_b\r\n", + "desc": " TK_KEY_b\n\n", "name": "TK_KEY_b" }, { - "desc": " TK_KEY_c\r\n", + "desc": " TK_KEY_c\n\n", "name": "TK_KEY_c" }, { - "desc": " TK_KEY_d\r\n", + "desc": " TK_KEY_d\n\n", "name": "TK_KEY_d" }, { - "desc": " TK_KEY_e\r\n", + "desc": " TK_KEY_e\n\n", "name": "TK_KEY_e" }, { - "desc": " TK_KEY_f\r\n", + "desc": " TK_KEY_f\n\n", "name": "TK_KEY_f" }, { - "desc": " TK_KEY_g\r\n", + "desc": " TK_KEY_g\n\n", "name": "TK_KEY_g" }, { - "desc": " TK_KEY_h\r\n", + "desc": " TK_KEY_h\n\n", "name": "TK_KEY_h" }, { - "desc": " TK_KEY_i\r\n", + "desc": " TK_KEY_i\n\n", "name": "TK_KEY_i" }, { - "desc": " TK_KEY_j\r\n", + "desc": " TK_KEY_j\n\n", "name": "TK_KEY_j" }, { - "desc": " TK_KEY_k\r\n", + "desc": " TK_KEY_k\n\n", "name": "TK_KEY_k" }, { - "desc": " TK_KEY_l\r\n", + "desc": " TK_KEY_l\n\n", "name": "TK_KEY_l" }, { - "desc": " TK_KEY_m\r\n", + "desc": " TK_KEY_m\n\n", "name": "TK_KEY_m" }, { - "desc": " TK_KEY_n\r\n", + "desc": " TK_KEY_n\n\n", "name": "TK_KEY_n" }, { - "desc": " TK_KEY_o\r\n", + "desc": " TK_KEY_o\n\n", "name": "TK_KEY_o" }, { - "desc": " TK_KEY_p\r\n", + "desc": " TK_KEY_p\n\n", "name": "TK_KEY_p" }, { - "desc": " TK_KEY_q\r\n", + "desc": " TK_KEY_q\n\n", "name": "TK_KEY_q" }, { - "desc": " TK_KEY_r\r\n", + "desc": " TK_KEY_r\n\n", "name": "TK_KEY_r" }, { - "desc": " TK_KEY_s\r\n", + "desc": " TK_KEY_s\n\n", "name": "TK_KEY_s" }, { - "desc": " TK_KEY_t\r\n", + "desc": " TK_KEY_t\n\n", "name": "TK_KEY_t" }, { - "desc": " TK_KEY_u\r\n", + "desc": " TK_KEY_u\n\n", "name": "TK_KEY_u" }, { - "desc": " TK_KEY_v\r\n", + "desc": " TK_KEY_v\n\n", "name": "TK_KEY_v" }, { - "desc": " TK_KEY_w\r\n", + "desc": " TK_KEY_w\n\n", "name": "TK_KEY_w" }, { - "desc": " TK_KEY_x\r\n", + "desc": " TK_KEY_x\n\n", "name": "TK_KEY_x" }, { - "desc": " TK_KEY_y\r\n", + "desc": " TK_KEY_y\n\n", "name": "TK_KEY_y" }, { - "desc": " TK_KEY_z\r\n", + "desc": " TK_KEY_z\n\n", "name": "TK_KEY_z" }, { - "desc": " TK_KEY_A\r\n", + "desc": " TK_KEY_A\n\n", "name": "TK_KEY_A" }, { - "desc": " TK_KEY_B\r\n", + "desc": " TK_KEY_B\n\n", "name": "TK_KEY_B" }, { - "desc": " TK_KEY_C\r\n", + "desc": " TK_KEY_C\n\n", "name": "TK_KEY_C" }, { - "desc": " TK_KEY_D\r\n", + "desc": " TK_KEY_D\n\n", "name": "TK_KEY_D" }, { - "desc": " TK_KEY_E\r\n", + "desc": " TK_KEY_E\n\n", "name": "TK_KEY_E" }, { - "desc": " TK_KEY_F\r\n", + "desc": " TK_KEY_F\n\n", "name": "TK_KEY_F" }, { - "desc": " TK_KEY_G\r\n", + "desc": " TK_KEY_G\n\n", "name": "TK_KEY_G" }, { - "desc": " TK_KEY_H\r\n", + "desc": " TK_KEY_H\n\n", "name": "TK_KEY_H" }, { - "desc": " TK_KEY_I\r\n", + "desc": " TK_KEY_I\n\n", "name": "TK_KEY_I" }, { - "desc": " TK_KEY_J\r\n", + "desc": " TK_KEY_J\n\n", "name": "TK_KEY_J" }, { - "desc": " TK_KEY_K\r\n", + "desc": " TK_KEY_K\n\n", "name": "TK_KEY_K" }, { - "desc": " TK_KEY_L\r\n", + "desc": " TK_KEY_L\n\n", "name": "TK_KEY_L" }, { - "desc": " TK_KEY_M\r\n", + "desc": " TK_KEY_M\n\n", "name": "TK_KEY_M" }, { - "desc": " TK_KEY_N\r\n", + "desc": " TK_KEY_N\n\n", "name": "TK_KEY_N" }, { - "desc": " TK_KEY_O\r\n", + "desc": " TK_KEY_O\n\n", "name": "TK_KEY_O" }, { - "desc": " TK_KEY_P\r\n", + "desc": " TK_KEY_P\n\n", "name": "TK_KEY_P" }, { - "desc": " TK_KEY_Q\r\n", + "desc": " TK_KEY_Q\n\n", "name": "TK_KEY_Q" }, { - "desc": " TK_KEY_R\r\n", + "desc": " TK_KEY_R\n\n", "name": "TK_KEY_R" }, { - "desc": " TK_KEY_S\r\n", + "desc": " TK_KEY_S\n\n", "name": "TK_KEY_S" }, { - "desc": " TK_KEY_T\r\n", + "desc": " TK_KEY_T\n\n", "name": "TK_KEY_T" }, { - "desc": " TK_KEY_U\r\n", + "desc": " TK_KEY_U\n\n", "name": "TK_KEY_U" }, { - "desc": " TK_KEY_V\r\n", + "desc": " TK_KEY_V\n\n", "name": "TK_KEY_V" }, { - "desc": " TK_KEY_W\r\n", + "desc": " TK_KEY_W\n\n", "name": "TK_KEY_W" }, { - "desc": " TK_KEY_X\r\n", + "desc": " TK_KEY_X\n\n", "name": "TK_KEY_X" }, { - "desc": " TK_KEY_Y\r\n", + "desc": " TK_KEY_Y\n\n", "name": "TK_KEY_Y" }, { - "desc": " TK_KEY_Z\r\n", + "desc": " TK_KEY_Z\n\n", "name": "TK_KEY_Z" }, { - "desc": " TK_KEY_DOT\r\n", + "desc": " TK_KEY_DOT\n\n", "name": "TK_KEY_DOT" }, { - "desc": " TK_KEY_DELETE\r\n", + "desc": " TK_KEY_DELETE\n\n", "name": "TK_KEY_DELETE" }, { - "desc": " TK_KEY_LEFTBRACE\r\n", + "desc": " TK_KEY_LEFTBRACE\n\n", "name": "TK_KEY_LEFTBRACE" }, { - "desc": " TK_KEY_RIGHTBRACE\r\n", + "desc": " TK_KEY_RIGHTBRACE\n\n", "name": "TK_KEY_RIGHTBRACE" }, { - "desc": " TK_KEY_LSHIFT\r\n", + "desc": " TK_KEY_LSHIFT\n\n", "name": "TK_KEY_LSHIFT" }, { - "desc": " TK_KEY_RSHIFT\r\n", + "desc": " TK_KEY_RSHIFT\n\n", "name": "TK_KEY_RSHIFT" }, { - "desc": " TK_KEY_LCTRL\r\n", + "desc": " TK_KEY_LCTRL\n\n", "name": "TK_KEY_LCTRL" }, { - "desc": " TK_KEY_RCTRL\r\n", + "desc": " TK_KEY_RCTRL\n\n", "name": "TK_KEY_RCTRL" }, { - "desc": " TK_KEY_LALT\r\n", + "desc": " TK_KEY_LALT\n\n", "name": "TK_KEY_LALT" }, { - "desc": " TK_KEY_RALT\r\n", + "desc": " TK_KEY_RALT\n\n", "name": "TK_KEY_RALT" }, { - "desc": " TK_KEY_CAPSLOCK\r\n", + "desc": " TK_KEY_CAPSLOCK\n\n", "name": "TK_KEY_CAPSLOCK" }, { - "desc": " TK_KEY_HOME\r\n", + "desc": " TK_KEY_HOME\n\n", "name": "TK_KEY_HOME" }, { - "desc": " TK_KEY_END\r\n", + "desc": " TK_KEY_END\n\n", "name": "TK_KEY_END" }, { - "desc": " TK_KEY_INSERT\r\n", + "desc": " TK_KEY_INSERT\n\n", "name": "TK_KEY_INSERT" }, { - "desc": " TK_KEY_UP\r\n", + "desc": " TK_KEY_UP\n\n", "name": "TK_KEY_UP" }, { - "desc": " TK_KEY_DOWN\r\n", + "desc": " TK_KEY_DOWN\n\n", "name": "TK_KEY_DOWN" }, { - "desc": " TK_KEY_LEFT\r\n", + "desc": " TK_KEY_LEFT\n\n", "name": "TK_KEY_LEFT" }, { - "desc": " TK_KEY_RIGHT\r\n", + "desc": " TK_KEY_RIGHT\n\n", "name": "TK_KEY_RIGHT" }, { - "desc": " TK_KEY_PAGEUP\r\n", + "desc": " TK_KEY_PAGEUP\n\n", "name": "TK_KEY_PAGEUP" }, { - "desc": " TK_KEY_PAGEDOWN\r\n", + "desc": " TK_KEY_PAGEDOWN\n\n", "name": "TK_KEY_PAGEDOWN" }, { - "desc": " TK_KEY_F1\r\n", + "desc": " TK_KEY_F1\n\n", "name": "TK_KEY_F1" }, { - "desc": " TK_KEY_F2\r\n", + "desc": " TK_KEY_F2\n\n", "name": "TK_KEY_F2" }, { - "desc": " TK_KEY_F3\r\n", + "desc": " TK_KEY_F3\n\n", "name": "TK_KEY_F3" }, { - "desc": " TK_KEY_F4\r\n", + "desc": " TK_KEY_F4\n\n", "name": "TK_KEY_F4" }, { - "desc": " TK_KEY_F5\r\n", + "desc": " TK_KEY_F5\n\n", "name": "TK_KEY_F5" }, { - "desc": " TK_KEY_F6\r\n", + "desc": " TK_KEY_F6\n\n", "name": "TK_KEY_F6" }, { - "desc": " TK_KEY_F7\r\n", + "desc": " TK_KEY_F7\n\n", "name": "TK_KEY_F7" }, { - "desc": " TK_KEY_F8\r\n", + "desc": " TK_KEY_F8\n\n", "name": "TK_KEY_F8" }, { - "desc": " TK_KEY_F9\r\n", + "desc": " TK_KEY_F9\n\n", "name": "TK_KEY_F9" }, { - "desc": " TK_KEY_F10\r\n", + "desc": " TK_KEY_F10\n\n", "name": "TK_KEY_F10" }, { - "desc": " TK_KEY_F11\r\n", + "desc": " TK_KEY_F11\n\n", "name": "TK_KEY_F11" }, { - "desc": " TK_KEY_F12\r\n", + "desc": " TK_KEY_F12\n\n", "name": "TK_KEY_F12" }, { - "desc": " TK_KEY_MENU\r\n", + "desc": " TK_KEY_MENU\n\n", "name": "TK_KEY_MENU" }, { - "desc": " TK_KEY_COMMAND\r\n", + "desc": " TK_KEY_COMMAND\n\n", "name": "TK_KEY_COMMAND" } ], @@ -5798,7 +5836,7 @@ "constructor": true, "scriptable": true }, - "desc": " 获取缺省locale_info。\r\n\r\n", + "desc": " 获取缺省locale_info。\n\n\n", "name": "locale_info", "alias": "locale_info_instance", "return": { @@ -5815,7 +5853,7 @@ } ], "annotation": {}, - "desc": " 设置缺省locale_info。\r\n\r\n", + "desc": " 设置缺省locale_info。\n\n\n", "name": "locale_info_set", "return": { "type": "ret_t", @@ -5838,7 +5876,7 @@ "annotation": { "constructor": true }, - "desc": " 创建locale_info。\r\n\r\n", + "desc": " 创建locale_info。\n\n\n", "name": "locale_info_create", "return": { "type": "locale_info_t*", @@ -5861,7 +5899,7 @@ "annotation": { "scriptable": true }, - "desc": " 翻译字符串。\r\n\r\n", + "desc": " 翻译字符串。\n\n\n", "name": "locale_info_tr", "return": { "type": "char*", @@ -5889,7 +5927,7 @@ "annotation": { "scriptable": true }, - "desc": " 设置当前的国家和语言。\r\n\r\n", + "desc": " 设置当前的国家和语言。\n\n\n", "name": "locale_info_change", "return": { "type": "ret_t", @@ -5922,7 +5960,7 @@ "annotation": { "scriptable": "custom" }, - "desc": " 注册指定事件的处理函数。\r\n\r\n", + "desc": " 注册指定事件的处理函数。\n\n\n", "name": "locale_info_on", "return": { "type": "uint32_t", @@ -5945,7 +5983,7 @@ "annotation": { "scriptable": true }, - "desc": " 注销指定事件的处理函数。\r\n\r\n", + "desc": " 注销指定事件的处理函数。\n\n\n", "name": "locale_info_off", "return": { "type": "ret_t", @@ -5966,7 +6004,7 @@ } ], "annotation": {}, - "desc": " 设置资源管理器对象。\r\n\r\n\r\n", + "desc": " 设置资源管理器对象。\n\n\n\n", "name": "locale_info_set_assets_manager", "return": { "type": "ret_t", @@ -5982,7 +6020,7 @@ } ], "annotation": {}, - "desc": " 释放全部资源并销毁locale_info对象。\r\n\r\n", + "desc": " 释放全部资源并销毁locale_info对象。\n\n\n", "name": "locale_info_destroy", "return": { "type": "ret_t", @@ -5994,7 +6032,7 @@ "properties": [ { "name": "country;", - "desc": " 国家或地区。如:CN\r\n", + "desc": " 国家或地区。如:CN\n\n", "type": "char*", "annotation": { "readable": true @@ -6002,7 +6040,7 @@ }, { "name": "language", - "desc": " 语言。如:zh\r\n", + "desc": " 语言。如:zh\n\n", "type": "char*", "annotation": { "readable": true @@ -6010,7 +6048,7 @@ }, { "name": "assets_manager", - "desc": " 资源管理器。\r\n", + "desc": " 资源管理器。\n\n", "type": "assets_manager_t*", "annotation": { "private": true @@ -6018,7 +6056,7 @@ } ], "header": "base/locale_info.h", - "desc": " 本地化信息。提供字符串翻译数据管理,当前语言改变的事件通知等等。\r\n\r\n", + "desc": " 本地化信息。提供字符串翻译数据管理,当前语言改变的事件通知等等。\n\n\n", "name": "locale_info_t", "annotation": { "scriptable": true @@ -6033,7 +6071,7 @@ "annotation": { "constructor": true }, - "desc": " 获取缺省的控件自身布局算法工厂对象。\r\n", + "desc": " 获取缺省的控件自身布局算法工厂对象。\n\n", "name": "self_layouter_factory", "return": { "type": "self_layouter_factory_t*", @@ -6049,7 +6087,7 @@ } ], "annotation": {}, - "desc": " 设置缺省的控件自身布局算法工厂对象。\r\n\r\n", + "desc": " 设置缺省的控件自身布局算法工厂对象。\n\n\n", "name": "self_layouter_factory_set", "return": { "type": "ret_t", @@ -6061,7 +6099,7 @@ "annotation": { "constructor": true }, - "desc": " 创建控件自身布局算法工厂对象。\r\n\r\n", + "desc": " 创建控件自身布局算法工厂对象。\n\n\n", "name": "self_layouter_factory_create", "return": { "type": "self_layouter_factory_t*", @@ -6087,7 +6125,7 @@ } ], "annotation": {}, - "desc": " 注册控件自身布局算法创建函数。\r\n\r\n", + "desc": " 注册控件自身布局算法创建函数。\n\n\n", "name": "self_layouter_factory_register", "return": { "type": "ret_t", @@ -6110,7 +6148,7 @@ "annotation": { "constructor": true }, - "desc": " 创建指定类型的控件自身布局算法对象。\r\n\r\n", + "desc": " 创建指定类型的控件自身布局算法对象。\n\n\n", "name": "self_layouter_factory_create_layouter", "return": { "type": "self_layouter_t*", @@ -6126,7 +6164,7 @@ } ], "annotation": {}, - "desc": " 析构并释放控件自身布局算法工厂对象。\r\n\r\n", + "desc": " 析构并释放控件自身布局算法工厂对象。\n\n\n", "name": "self_layouter_factory_destroy", "return": { "type": "ret_t", @@ -6137,7 +6175,7 @@ "events": [], "properties": [], "header": "base/self_layouter_factory.h", - "desc": " 控件自身布局算法工厂。\r\n\r\n", + "desc": " 控件自身布局算法工厂。\n\n\n", "name": "self_layouter_factory_t", "level": 1 }, @@ -6153,7 +6191,7 @@ } ], "annotation": {}, - "desc": " 获取全部参数。\r\n\r\n", + "desc": " 获取全部参数。\n\n\n", "name": "self_layouter_to_string", "return": { "type": "ret_t", @@ -6179,7 +6217,7 @@ } ], "annotation": {}, - "desc": " 对控件自身进行布局。\r\n\r\n", + "desc": " 对控件自身进行布局。\n\n\n", "name": "self_layouter_layout", "return": { "type": "ret_t", @@ -6205,7 +6243,7 @@ } ], "annotation": {}, - "desc": " 获取指定的参数。\r\n\r\n", + "desc": " 获取指定的参数。\n\n\n", "name": "self_layouter_get_param", "return": { "type": "ret_t", @@ -6231,7 +6269,7 @@ } ], "annotation": {}, - "desc": " 获取指定的参数。\r\n\r\n", + "desc": " 获取指定的参数。\n\n\n", "name": "self_layouter_set_param", "return": { "type": "ret_t", @@ -6257,7 +6295,7 @@ } ], "annotation": {}, - "desc": " 设置字符串格式的参数。\r\n\r\n", + "desc": " 设置字符串格式的参数。\n\n\n", "name": "self_layouter_set_param_str", "return": { "type": "ret_t", @@ -6283,7 +6321,7 @@ } ], "annotation": {}, - "desc": " 获取指定的浮点格式的参数。\r\n\r\n", + "desc": " 获取指定的浮点格式的参数。\n\n\n", "name": "self_layouter_get_param_float", "return": { "type": "ret_t", @@ -6309,7 +6347,7 @@ } ], "annotation": {}, - "desc": " 获取指定的整数格式的参数。\r\n\r\n", + "desc": " 获取指定的整数格式的参数。\n\n\n", "name": "self_layouter_get_param_int", "return": { "type": "ret_t", @@ -6325,7 +6363,7 @@ } ], "annotation": {}, - "desc": " 销毁layouter对象。\r\n\r\n", + "desc": " 销毁layouter对象。\n\n\n", "name": "self_layouter_destroy", "return": { "type": "ret_t", @@ -6341,7 +6379,7 @@ } ], "annotation": {}, - "desc": " 创建layouter对象。\r\n\r\n", + "desc": " 创建layouter对象。\n\n\n", "name": "self_layouter_create", "return": { "type": "self_layouter_t*", @@ -6352,7 +6390,7 @@ "events": [], "properties": [], "header": "base/self_layouter.h", - "desc": " 控件自身排版布局器的接口。\r\n\r\n 按特定算法对控件进行排版布局,子类需要实现vtable中的函数。\r\n", + "desc": " 控件自身排版布局器的接口。\n\n 按特定算法对控件进行排版布局,子类需要实现vtable中的函数。\n\n", "name": "self_layouter_t", "level": 1 }, @@ -6364,7 +6402,7 @@ "annotation": { "constructor": true }, - "desc": " 初始化快捷键对象。\r\n\r\n", + "desc": " 初始化快捷键对象。\n\n\n", "name": "shortcut_init", "return": { "type": "shortcut_t*", @@ -6382,7 +6420,7 @@ "annotation": { "constructor": true }, - "desc": " 初始化快捷键对象。\r\n\r\n", + "desc": " 初始化快捷键对象。\n\n\n", "name": "shortcut_init_with_str", "return": { "type": "shortcut_t*", @@ -6403,7 +6441,7 @@ } ], "annotation": {}, - "desc": " 比较两个快捷键对象。\r\n\r\n", + "desc": " 比较两个快捷键对象。\n\n\n", "name": "shortcut_equal", "return": { "type": "bool_t", @@ -6424,7 +6462,7 @@ } ], "annotation": {}, - "desc": " 检查事件与快捷键是否匹配。\r\n\r\n", + "desc": " 检查事件与快捷键是否匹配。\n\n\n", "name": "shortcut_match", "return": { "type": "bool_t", @@ -6436,7 +6474,7 @@ "properties": [ { "name": "is_valid", - "desc": " 是否有效。\r\n", + "desc": " 是否有效。\n\n", "type": "bool_t", "annotation": { "readable": true @@ -6444,7 +6482,7 @@ }, { "name": "key", - "desc": " 键值。\r\n", + "desc": " 键值。\n\n", "type": "uint32_t", "annotation": { "readable": true @@ -6452,7 +6490,7 @@ }, { "name": "alt", - "desc": " alt键是否按下。\r\n", + "desc": " alt键是否按下。\n\n", "type": "bool_t", "annotation": { "readable": true @@ -6460,7 +6498,7 @@ }, { "name": "lalt", - "desc": " left alt键是否按下。\r\n", + "desc": " left alt键是否按下。\n\n", "type": "bool_t", "annotation": { "readable": true @@ -6468,7 +6506,7 @@ }, { "name": "ralt", - "desc": " right alt键是否按下。\r\n", + "desc": " right alt键是否按下。\n\n", "type": "bool_t", "annotation": { "readable": true @@ -6476,7 +6514,7 @@ }, { "name": "ctrl", - "desc": " ctrl键是否按下。\r\n", + "desc": " ctrl键是否按下。\n\n", "type": "bool_t", "annotation": { "readable": true @@ -6484,7 +6522,7 @@ }, { "name": "lctrl", - "desc": " left ctrl键是否按下。\r\n", + "desc": " left ctrl键是否按下。\n\n", "type": "bool_t", "annotation": { "readable": true @@ -6492,7 +6530,7 @@ }, { "name": "rctrl", - "desc": " right ctrl键是否按下。\r\n", + "desc": " right ctrl键是否按下。\n\n", "type": "bool_t", "annotation": { "readable": true @@ -6500,7 +6538,7 @@ }, { "name": "shift", - "desc": " shift键是否按下。\r\n", + "desc": " shift键是否按下。\n\n", "type": "bool_t", "annotation": { "readable": true @@ -6508,7 +6546,7 @@ }, { "name": "lshift", - "desc": " left shift键是否按下。\r\n", + "desc": " left shift键是否按下。\n\n", "type": "bool_t", "annotation": { "readable": true @@ -6516,7 +6554,7 @@ }, { "name": "rshift", - "desc": " right shift键是否按下。\r\n", + "desc": " right shift键是否按下。\n\n", "type": "bool_t", "annotation": { "readable": true @@ -6524,7 +6562,7 @@ }, { "name": "cmd", - "desc": " cmd/win键是否按下。\r\n", + "desc": " cmd/win键是否按下。\n\n", "type": "bool_t", "annotation": { "readable": true @@ -6532,7 +6570,7 @@ }, { "name": "menu", - "desc": " menu键是否按下。\r\n", + "desc": " menu键是否按下。\n\n", "type": "bool_t", "annotation": { "readable": true @@ -6540,7 +6578,7 @@ } ], "header": "base/shortcut.h", - "desc": " 快捷键。\r\n", + "desc": " 快捷键。\n\n", "name": "shortcut_t", "level": 1 }, @@ -6561,7 +6599,7 @@ } ], "annotation": {}, - "desc": " 创建style。\r\n\r\n", + "desc": " 创建style。\n\n\n", "name": "style_factory_create_style", "return": { "type": "style_t*", @@ -6573,7 +6611,7 @@ "annotation": { "constructor": true }, - "desc": " 获取缺省的style factory。\r\n", + "desc": " 获取缺省的style factory。\n\n", "name": "style_factory", "alias": "style_factory_instance", "return": { @@ -6590,7 +6628,7 @@ } ], "annotation": {}, - "desc": " 设置缺省的style factory(需要自定义的style factory才设置)。\r\n\r\n", + "desc": " 设置缺省的style factory(需要自定义的style factory才设置)。\n\n\n", "name": "style_factory_set", "return": { "type": "ret_t", @@ -6601,140 +6639,140 @@ "events": [], "properties": [], "header": "base/style_factory.h", - "desc": " style工厂接口,主要用于创建style。\r\n\r\n> 在特殊情况下,可以实现自己的style工厂,比如支持CSS和可实时修改的style。\r\n\r\n", + "desc": " style工厂接口,主要用于创建style。\n\n> 在特殊情况下,可以实现自己的style工厂,比如支持CSS和可实时修改的style。\n\n\n", "name": "style_factory_t", "level": 1 }, { "type": "enum", - "desc": " style常量定义。\r\n", + "desc": " style常量定义。\n\n", "consts": [ { - "desc": " 背景颜色。\r\n", + "desc": " 背景颜色。\n\n", "name": "STYLE_ID_BG_COLOR" }, { - "desc": " 前景颜色。\r\n", + "desc": " 前景颜色。\n\n", "name": "STYLE_ID_FG_COLOR" }, { - "desc": " 蒙版颜色。\r\n", + "desc": " 蒙版颜色。\n\n", "name": "STYLE_ID_MASK_COLOR" }, { - "desc": " 字体名称。\r\n", + "desc": " 字体名称。\n\n", "name": "STYLE_ID_FONT_NAME" }, { - "desc": " 字体大小。\r\n", + "desc": " 字体大小。\n\n", "name": "STYLE_ID_FONT_SIZE" }, { - "desc": " 字体风格(粗体、斜体等)。\r\n", + "desc": " 字体风格(粗体、斜体等)。\n\n", "name": "STYLE_ID_FONT_STYLE" }, { - "desc": " 文本颜色。\r\n", + "desc": " 文本颜色。\n\n", "name": "STYLE_ID_TEXT_COLOR" }, { - "desc": " 提示文本颜色。\r\n", + "desc": " 提示文本颜色。\n\n", "name": "STYLE_ID_TIPS_TEXT_COLOR" }, { - "desc": " 文本水平对齐的方式。\r\n", + "desc": " 文本水平对齐的方式。\n\n", "name": "STYLE_ID_TEXT_ALIGN_H" }, { - "desc": " 文本垂直对齐的方式。\r\n", + "desc": " 文本垂直对齐的方式。\n\n", "name": "STYLE_ID_TEXT_ALIGN_V" }, { - "desc": " 边框颜色。\r\n", + "desc": " 边框颜色。\n\n", "name": "STYLE_ID_BORDER_COLOR" }, { - "desc": " 边框线宽。\r\n", + "desc": " 边框线宽。\n\n", "name": "STYLE_ID_BORDER_WIDTH" }, { - "desc": " 边框类型。\r\n", + "desc": " 边框类型。\n\n", "name": "STYLE_ID_BORDER" }, { - "desc": " 图片的名称。\r\n", + "desc": " 图片的名称。\n\n", "name": "STYLE_ID_BG_IMAGE" }, { - "desc": " 图片的显示方式。\r\n", + "desc": " 图片的显示方式。\n\n", "name": "STYLE_ID_BG_IMAGE_DRAW_TYPE" }, { - "desc": " 图标的名称。\r\n", + "desc": " 图标的名称。\n\n", "name": "STYLE_ID_ICON" }, { - "desc": " 图片的名称。\r\n", + "desc": " 图片的名称。\n\n", "name": "STYLE_ID_FG_IMAGE" }, { - "desc": " 图片的显示方式。\r\n", + "desc": " 图片的显示方式。\n\n", "name": "STYLE_ID_FG_IMAGE_DRAW_TYPE" }, { - "desc": " 间距。\r\n", + "desc": " 间距。\n\n", "name": "STYLE_ID_SPACER" }, { - "desc": " 边距。\r\n", + "desc": " 边距。\n\n", "name": "STYLE_ID_MARGIN" }, { - "desc": " 左边距。\r\n", + "desc": " 左边距。\n\n", "name": "STYLE_ID_MARGIN_LEFT" }, { - "desc": " 右边距。\r\n", + "desc": " 右边距。\n\n", "name": "STYLE_ID_MARGIN_RIGHT" }, { - "desc": " 顶边距。\r\n", + "desc": " 顶边距。\n\n", "name": "STYLE_ID_MARGIN_TOP" }, { - "desc": " 底边距。\r\n", + "desc": " 底边距。\n\n", "name": "STYLE_ID_MARGIN_BOTTOM" }, { - "desc": " 图标的位置。\r\n", + "desc": " 图标的位置。\n\n", "name": "STYLE_ID_ICON_AT" }, { - "desc": " Active图标的名称。\r\n", + "desc": " Active图标的名称。\n\n", "name": "STYLE_ID_ACTIVE_ICON" }, { - "desc": " X方向的偏移,方便实现按下的效果。\r\n", + "desc": " X方向的偏移,方便实现按下的效果。\n\n", "name": "STYLE_ID_X_OFFSET" }, { - "desc": " Y方向的偏移,方便实现按下的效果。\r\n", + "desc": " Y方向的偏移,方便实现按下的效果。\n\n", "name": "STYLE_ID_Y_OFFSET" }, { - "desc": " 编辑器中选中区域的背景颜色。\r\n", + "desc": " 编辑器中选中区域的背景颜色。\n\n", "name": "STYLE_ID_SELECTED_BG_COLOR" }, { - "desc": " 编辑器中选中区域的前景颜色。\r\n", + "desc": " 编辑器中选中区域的前景颜色。\n\n", "name": "STYLE_ID_SELECTED_FG_COLOR" }, { - "desc": " 编辑器中选中区域的文本颜色。\r\n", + "desc": " 编辑器中选中区域的文本颜色。\n\n", "name": "STYLE_ID_SELECTED_TEXT_COLOR" }, { - "desc": " 圆角半径(仅在WITH_VGCANVAS定义时生效)。\r\n", + "desc": " 圆角半径(仅在WITH_VGCANVAS定义时生效)。\n\n", "name": "STYLE_ID_ROUND_RADIUS" } ], @@ -6766,7 +6804,7 @@ "annotation": { "scriptable": true }, - "desc": " widget状态改变时,通知style更新数据。\r\n\r\n", + "desc": " widget状态改变时,通知style更新数据。\n\n\n", "name": "style_notify_widget_state_changed", "return": { "type": "ret_t", @@ -6784,7 +6822,7 @@ "annotation": { "scriptable": true }, - "desc": " 检查style对象是否有效\r\n\r\n", + "desc": " 检查style对象是否有效\n\n\n", "name": "style_is_valid", "return": { "type": "bool_t", @@ -6812,7 +6850,7 @@ "annotation": { "scriptable": true }, - "desc": " 获取指定name的整数格式的值。\r\n\r\n", + "desc": " 获取指定name的整数格式的值。\n\n\n", "name": "style_get_int", "return": { "type": "int32_t", @@ -6838,7 +6876,7 @@ } ], "annotation": {}, - "desc": " 获取指定name的颜色值。\r\n\r\n", + "desc": " 获取指定name的颜色值。\n\n\n", "name": "style_get_color", "return": { "type": "color_t", @@ -6866,7 +6904,7 @@ "annotation": { "scriptable": true }, - "desc": " 获取指定name的字符串格式的值。\r\n\r\n", + "desc": " 获取指定name的字符串格式的值。\n\n\n", "name": "style_get_str", "return": { "type": "const char*", @@ -6899,7 +6937,7 @@ "annotation": { "scriptable": true }, - "desc": " 设置指定状态的指定属性的值(仅仅对mutable的style有效)。\r\n\r\n", + "desc": " 设置指定状态的指定属性的值(仅仅对mutable的style有效)。\n\n\n", "name": "style_set", "return": { "type": "ret_t", @@ -6917,7 +6955,7 @@ "annotation": { "scriptable": true }, - "desc": " 检查style是否是mutable的。\r\n\r\n", + "desc": " 检查style是否是mutable的。\n\n\n", "name": "style_is_mutable", "return": { "type": "bool_t", @@ -6933,7 +6971,7 @@ } ], "annotation": {}, - "desc": " 销毁style对象\r\n\r\n", + "desc": " 销毁style对象\n\n\n", "name": "style_destroy", "return": { "type": "ret_t", @@ -6944,7 +6982,7 @@ "events": [], "properties": [], "header": "base/style.h", - "desc": " 控件风格。\r\n\r\n widget从style对象中,获取诸如字体、颜色和图片相关的参数,根据这些参数来绘制界面。\r\n\r\n ```c\r\n style_t* style = widget->astyle;\r\n int32_t margin = style_get_int(style, STYLE_ID_MARGIN, 2);\r\n int32_t icon_at = style_get_int(style, STYLE_ID_ICON_AT, ICON_AT_AUTO);\r\n uint16_t font_size = style_get_int(style, STYLE_ID_FONT_SIZE, TK_DEFAULT_FONT_SIZE);\r\n ```\r\n\r\n 属性名称的请参考[style\\_id](style_id_t.md)\r\n\r\n", + "desc": " 控件风格。\n\n widget从style对象中,获取诸如字体、颜色和图片相关的参数,根据这些参数来绘制界面。\n\n ```c\n style_t* style = widget->astyle;\n int32_t margin = style_get_int(style, STYLE_ID_MARGIN, 2);\n int32_t icon_at = style_get_int(style, STYLE_ID_ICON_AT, ICON_AT_AUTO);\n uint16_t font_size = style_get_int(style, STYLE_ID_FONT_SIZE, TK_DEFAULT_FONT_SIZE);\n ```\n\n 属性名称的请参考[style\\_id](style_id_t.md)\n\n\n", "name": "style_t", "annotation": { "scriptable": true @@ -6965,7 +7003,7 @@ "annotation": { "constructor": true }, - "desc": " 创建联想字对象。\r\n\r\n", + "desc": " 创建联想字对象。\n\n\n", "name": "suggest_words_create", "return": { "type": "suggest_words_t*", @@ -6986,7 +7024,7 @@ } ], "annotation": {}, - "desc": " 查找prefix对应的联想字列表,成功后会更新words/words_nr。\r\n\r\n", + "desc": " 查找prefix对应的联想字列表,成功后会更新words/words_nr。\n\n\n", "name": "suggest_words_find", "return": { "type": "ret_t", @@ -7002,7 +7040,7 @@ } ], "annotation": {}, - "desc": " @deconstructor\r\n 销毁联想字对象。\r\n\r\n", + "desc": " @deconstructor\n 销毁联想字对象。\n\n\n", "name": "suggest_words_destroy", "return": { "type": "ret_t", @@ -7014,7 +7052,7 @@ "properties": [ { "name": "words", - "desc": " 联想字列表。find函数执行成功后会更新。\r\n", + "desc": " 联想字列表。find函数执行成功后会更新。\n\n", "type": "char*", "annotation": { "private": true @@ -7022,7 +7060,7 @@ }, { "name": "words_nr", - "desc": " 联想字/词个数。find函数执行成功后会更新。\r\n", + "desc": " 联想字/词个数。find函数执行成功后会更新。\n\n", "type": "uint32_t", "annotation": { "private": true @@ -7030,7 +7068,7 @@ } ], "header": "base/suggest_words.h", - "desc": " 输入法联想字词。\r\n", + "desc": " 输入法联想字词。\n\n", "name": "suggest_words_t", "level": 1 }, @@ -7040,7 +7078,7 @@ "events": [], "properties": [], "header": "base/text_edit.h", - "desc": "", + "desc": "\n", "name": "text_edit_state_t", "level": 1 }, @@ -7061,7 +7099,7 @@ } ], "annotation": {}, - "desc": " 创建text_edit对象\r\n\r\n", + "desc": " 创建text_edit对象\n\n\n", "name": "text_edit_create", "return": { "type": "widget_t*", @@ -7082,7 +7120,7 @@ } ], "annotation": {}, - "desc": " 设置canvas对象。\r\n\r\n", + "desc": " 设置canvas对象。\n\n\n", "name": "text_edit_set_canvas", "return": { "type": "ret_t", @@ -7108,7 +7146,7 @@ } ], "annotation": {}, - "desc": " 处理点击事件。\r\n\r\n", + "desc": " 处理点击事件。\n\n\n", "name": "text_edit_click", "return": { "type": "ret_t", @@ -7134,7 +7172,7 @@ } ], "annotation": {}, - "desc": " 处理拖动事件。\r\n\r\n", + "desc": " 处理拖动事件。\n\n\n", "name": "text_edit_drag", "return": { "type": "ret_t", @@ -7160,7 +7198,7 @@ } ], "annotation": {}, - "desc": " 粘贴文本。\r\n\r\n", + "desc": " 粘贴文本。\n\n\n", "name": "text_edit_paste", "return": { "type": "ret_t", @@ -7176,7 +7214,7 @@ } ], "annotation": {}, - "desc": " 剪切文本。\r\n\r\n", + "desc": " 剪切文本。\n\n\n", "name": "text_edit_cut", "return": { "type": "ret_t", @@ -7192,7 +7230,7 @@ } ], "annotation": {}, - "desc": " 拷贝文本。\r\n\r\n", + "desc": " 拷贝文本。\n\n\n", "name": "text_edit_copy", "return": { "type": "ret_t", @@ -7213,7 +7251,7 @@ } ], "annotation": {}, - "desc": " 处理按键事件。\r\n\r\n", + "desc": " 处理按键事件。\n\n\n", "name": "text_edit_key_down", "return": { "type": "ret_t", @@ -7239,7 +7277,7 @@ } ], "annotation": {}, - "desc": " 选择指定范围的文本。\r\n\r\n", + "desc": " 选择指定范围的文本。\n\n\n", "name": "text_edit_set_select", "return": { "type": "ret_t", @@ -7255,7 +7293,7 @@ } ], "annotation": {}, - "desc": " 全选。\r\n\r\n", + "desc": " 全选。\n\n\n", "name": "text_edit_select_all", "return": { "type": "ret_t", @@ -7271,7 +7309,7 @@ } ], "annotation": {}, - "desc": " 取消选择。\r\n\r\n", + "desc": " 取消选择。\n\n\n", "name": "text_edit_unselect", "return": { "type": "ret_t", @@ -7292,7 +7330,7 @@ } ], "annotation": {}, - "desc": " 设置光标位置。\r\n\r\n", + "desc": " 设置光标位置。\n\n\n", "name": "text_edit_set_cursor", "return": { "type": "ret_t", @@ -7308,7 +7346,7 @@ } ], "annotation": {}, - "desc": " 获取光标位置。\r\n\r\n", + "desc": " 获取光标位置。\n\n\n", "name": "text_edit_get_cursor", "return": { "type": "uin32_t", @@ -7329,7 +7367,7 @@ } ], "annotation": {}, - "desc": " 获取编辑器的状态。\r\n\r\n", + "desc": " 获取编辑器的状态。\n\n\n", "name": "text_edit_get_state", "return": { "type": "ret_t", @@ -7350,7 +7388,7 @@ } ], "annotation": {}, - "desc": " 设置是否自动折行。\r\n\r\n", + "desc": " 设置是否自动折行。\n\n\n", "name": "text_edit_set_wrap_word", "return": { "type": "ret_t", @@ -7366,7 +7404,7 @@ } ], "annotation": {}, - "desc": " 如果caret可见,将其设置为不可见。 如果caret不可见,将其设置为可见。\r\n\r\n", + "desc": " 如果caret可见,将其设置为不可见。 如果caret不可见,将其设置为可见。\n\n\n", "name": "text_edit_invert_caret_visible", "return": { "type": "ret_t", @@ -7387,7 +7425,7 @@ } ], "annotation": {}, - "desc": " 设置光标的看见性。\r\n\r\n", + "desc": " 设置光标的看见性。\n\n\n", "name": "text_edit_set_caret_visible", "return": { "type": "ret_t", @@ -7408,7 +7446,7 @@ } ], "annotation": {}, - "desc": " 设置最大行数。\r\n\r\n", + "desc": " 设置最大行数。\n\n\n", "name": "text_edit_set_max_rows", "return": { "type": "ret_t", @@ -7429,7 +7467,7 @@ } ], "annotation": {}, - "desc": " 设置是否马赛克字符(用于密码)。\r\n\r\n", + "desc": " 设置是否马赛克字符(用于密码)。\n\n\n", "name": "text_edit_set_mask", "return": { "type": "ret_t", @@ -7450,7 +7488,7 @@ } ], "annotation": {}, - "desc": " 设置提示信息。\r\n\r\n", + "desc": " 设置提示信息。\n\n\n", "name": "text_edit_set_tips", "return": { "type": "ret_t", @@ -7471,7 +7509,7 @@ } ], "annotation": {}, - "desc": " 设置马赛克字符。\r\n\r\n", + "desc": " 设置马赛克字符。\n\n\n", "name": "text_edit_set_mask_char", "return": { "type": "ret_t", @@ -7492,7 +7530,7 @@ } ], "annotation": {}, - "desc": " 绘制文本。\r\n\r\n", + "desc": " 绘制文本。\n\n\n", "name": "text_edit_paint", "return": { "type": "ret_t", @@ -7508,7 +7546,7 @@ } ], "annotation": {}, - "desc": " 重新排版。\r\n\r\n", + "desc": " 重新排版。\n\n\n", "name": "text_edit_layout", "return": { "type": "ret_t", @@ -7534,7 +7572,7 @@ } ], "annotation": {}, - "desc": " 设置滚动偏移。\r\n\r\n", + "desc": " 设置滚动偏移。\n\n\n", "name": "text_edit_set_offset", "return": { "type": "ret_t", @@ -7560,7 +7598,7 @@ } ], "annotation": {}, - "desc": " 设置状态改变回调函数。\r\n\r\n", + "desc": " 设置状态改变回调函数。\n\n\n", "name": "text_edit_set_on_state_changed", "return": { "type": "ret_t", @@ -7576,7 +7614,7 @@ } ], "annotation": {}, - "desc": " 销毁text_edit对象。\r\n\r\n", + "desc": " 销毁text_edit对象。\n\n\n", "name": "text_edit_destroy", "return": { "type": "ret_t", @@ -7587,7 +7625,7 @@ "events": [], "properties": [], "header": "base/text_edit.h", - "desc": "", + "desc": "\n", "name": "text_edit_t", "level": 1 }, @@ -7600,7 +7638,7 @@ "constructor": true, "scriptable": true }, - "desc": " 获取缺省的主题对象。\r\n", + "desc": " 获取缺省的主题对象。\n\n", "name": "theme", "alias": "theme_instance", "return": { @@ -7617,7 +7655,7 @@ } ], "annotation": {}, - "desc": " 设置缺省的主题对象。\r\n\r\n", + "desc": " 设置缺省的主题对象。\n\n\n", "name": "theme_set", "return": { "type": "ret_t", @@ -7635,7 +7673,7 @@ "annotation": { "constructor": true }, - "desc": " 创建主题对象。\r\n\r\n", + "desc": " 创建主题对象。\n\n\n", "name": "theme_create", "return": { "type": "theme_t*", @@ -7658,7 +7696,7 @@ "annotation": { "constructor": true }, - "desc": " 初始化主题对象。\r\n\r\n", + "desc": " 初始化主题对象。\n\n\n", "name": "theme_init", "return": { "type": "theme_t*", @@ -7689,7 +7727,7 @@ } ], "annotation": {}, - "desc": " 查找满足条件的style。\r\n\r\n", + "desc": " 查找满足条件的style。\n\n\n", "name": "theme_find_style", "return": { "type": "theme_t*", @@ -7705,7 +7743,7 @@ } ], "annotation": {}, - "desc": " 析构主题对象。\r\n\r\n", + "desc": " 析构主题对象。\n\n\n", "name": "theme_deinit", "return": { "type": "ret_t", @@ -7721,7 +7759,7 @@ } ], "annotation": {}, - "desc": " 析构并释放主题对象。\r\n\r\n", + "desc": " 析构并释放主题对象。\n\n\n", "name": "theme_destroy", "return": { "type": "ret_t", @@ -7732,7 +7770,7 @@ "events": [], "properties": [], "header": "base/theme.h", - "desc": " 主题。\r\n\r\n 负责管理缺省的主题数据,方便实现style\\_const。\r\n\r\n", + "desc": " 主题。\n\n 负责管理缺省的主题数据,方便实现style\\_const。\n\n\n", "name": "theme_t", "annotation": { "scriptable": true @@ -7754,7 +7792,7 @@ "private": true, "static": true }, - "desc": " 初始化定时器系统。\r\n\r\n", + "desc": " 初始化定时器系统。\n\n\n", "name": "timer_init", "return": { "type": "ret_t", @@ -7783,7 +7821,7 @@ "scriptable": "custom", "static": true }, - "desc": " 增加一个timer。\r\n\r\n", + "desc": " 增加一个timer。\n\n\n", "name": "timer_add", "return": { "type": "uint32_t", @@ -7811,7 +7849,7 @@ "annotation": { "static": true }, - "desc": " 用于非GUI线程增加一个timer,本函数向主循环的事件队列中发送一个增加timer的请求。\r\n timer回调函数,回调函数返回RET_REPEAT,则下次继续执行,否则自动移出。\r\n\r\n", + "desc": " 用于非GUI线程增加一个timer,本函数向主循环的事件队列中发送一个增加timer的请求。\n timer回调函数,回调函数返回RET_REPEAT,则下次继续执行,否则自动移出。\n\n\n", "name": "timer_queue", "return": { "type": "ret_t", @@ -7830,7 +7868,7 @@ "scriptable": true, "static": true }, - "desc": " 删除指定的timer。\r\n\r\n", + "desc": " 删除指定的timer。\n\n\n", "name": "timer_remove", "return": { "type": "ret_t", @@ -7849,7 +7887,7 @@ "scriptable": true, "static": true }, - "desc": " 重置指定的timer,重置之后定时器重新开始计时。\r\n\r\n", + "desc": " 重置指定的timer,重置之后定时器重新开始计时。\n\n\n", "name": "timer_reset", "return": { "type": "ret_t", @@ -7873,7 +7911,7 @@ "scriptable": true, "static": true }, - "desc": " 修改指定的timer的duration,修改之后定时器重新开始计时。\r\n\r\n", + "desc": " 修改指定的timer的duration,修改之后定时器重新开始计时。\n\n\n", "name": "timer_modify", "return": { "type": "ret_t", @@ -7899,7 +7937,7 @@ } ], "annotation": {}, - "desc": " 设置一个回调函数,在timer被销毁时调用(方便脚本语言去释放回调函数)。\r\n\r\n", + "desc": " 设置一个回调函数,在timer被销毁时调用(方便脚本语言去释放回调函数)。\n\n\n", "name": "timer_set_on_destroy", "return": { "type": "ret_t", @@ -7911,7 +7949,7 @@ "annotation": { "private": true }, - "desc": " 查找指定ID的timer。\r\n\r\n", + "desc": " 查找指定ID的timer。\n\n\n", "name": "timer_find", "return": { "type": "timer_info_t*", @@ -7923,7 +7961,7 @@ "annotation": { "private": true }, - "desc": " 检查全部timer的函数,如果时间到期,调用相应的timer函数。\r\n\r\n", + "desc": " 检查全部timer的函数,如果时间到期,调用相应的timer函数。\n\n\n", "name": "timer_dispatch", "return": { "type": "ret_t", @@ -7935,7 +7973,7 @@ "annotation": { "static": true }, - "desc": " 返回timer的个数。\r\n\r\n", + "desc": " 返回timer的个数。\n\n\n", "name": "timer_count", "return": { "type": "uint32_t", @@ -7947,7 +7985,7 @@ "annotation": { "static": true }, - "desc": " 返回最近的timer到期时间。\r\n\r\n", + "desc": " 返回最近的timer到期时间。\n\n\n", "name": "timer_next_time", "return": { "type": "uint32_t", @@ -7958,7 +7996,7 @@ "events": [], "properties": [], "header": "base/timer.h", - "desc": " 定时器系统。\r\n\r\n > 本定时器精度较低,最高精度为1000/FPS,如果需要高精度的定时器,请用OS提供的定时器。\r\n\r\n 示例:\r\n\r\n ```c\r\n static ret_t my_on_timer(const timer_info_t* info) {\r\n widget_t* widget = WIDGET(info->ctx);\r\n ...\r\n return RET_REPEAT;\r\n }\r\n\r\n ...\r\n\r\n timer_add(my_on_timer, widget, 1000);\r\n ```\r\n > 在非GUI线程请用timer\\_queue。\r\n\r\n", + "desc": " 定时器系统。\n\n > 本定时器精度较低,最高精度为1000/FPS,如果需要高精度的定时器,请用OS提供的定时器。\n\n 示例:\n\n ```c\n static ret_t my_on_timer(const timer_info_t* info) {\n widget_t* widget = WIDGET(info->ctx);\n ...\n return RET_REPEAT;\n }\n\n ...\n\n timer_add(my_on_timer, widget, 1000);\n ```\n > 在非GUI线程请用timer\\_queue。\n\n\n", "name": "timer_t", "annotation": { "scriptable": true, @@ -8153,7 +8191,7 @@ } ], "annotation": {}, - "desc": " ui\\_loader在解析到widget时,调用本函数进一步处理。\r\n\r\n\r\n\r\n", + "desc": " ui\\_loader在解析到widget时,调用本函数进一步处理。\n\n\n\n\n", "name": "ui_builder_on_widget_start", "return": { "type": "ret_t", @@ -8179,7 +8217,7 @@ } ], "annotation": {}, - "desc": " ui\\_loader在解析到widget的属性时,调用本函数进一步处理。\r\n\r\n\r\n\r\n", + "desc": " ui\\_loader在解析到widget的属性时,调用本函数进一步处理。\n\n\n\n\n", "name": "ui_builder_on_widget_prop", "return": { "type": "ret_t", @@ -8195,7 +8233,7 @@ } ], "annotation": {}, - "desc": " ui\\_loader在解析到widget全部属性结束时,调用本函数进一步处理。\r\n\r\n\r\n\r\n", + "desc": " ui\\_loader在解析到widget全部属性结束时,调用本函数进一步处理。\n\n\n\n\n", "name": "ui_builder_on_widget_prop", "return": { "type": "ret_t", @@ -8211,7 +8249,7 @@ } ], "annotation": {}, - "desc": " ui\\_loader在解析到widget结束时,调用本函数进一步处理。\r\n\r\n\r\n\r\n", + "desc": " ui\\_loader在解析到widget结束时,调用本函数进一步处理。\n\n\n\n\n", "name": "ui_builder_on_widget_end", "return": { "type": "ret_t", @@ -8227,7 +8265,7 @@ } ], "annotation": {}, - "desc": " ui\\_loader在解析开始时,调用本函数做些准备工作。\r\n\r\n\r\n\r\n", + "desc": " ui\\_loader在解析开始时,调用本函数做些准备工作。\n\n\n\n\n", "name": "ui_builder_on_start", "return": { "type": "ret_t", @@ -8243,7 +8281,7 @@ } ], "annotation": {}, - "desc": " ui\\_loader在解析结束时,调用本函数做些收尾工作。\r\n\r\n\r\n\r\n", + "desc": " ui\\_loader在解析结束时,调用本函数做些收尾工作。\n\n\n\n\n", "name": "ui_builder_on_end", "return": { "type": "ret_t", @@ -8254,7 +8292,7 @@ "events": [], "properties": [], "header": "base/ui_builder.h", - "desc": "\r\n 界面构造器接口。\r\n\r\n 负责把ui\\_loader解析的数据进一步处理,至于具体做什么,由具体实现决定。常见的实现有:\r\n\r\n * 构建widget对象树。\r\n\r\n * 生成二进制的UI描述数据。\r\n\r\n * 生成XML格式的UI描述数据。\r\n\r\n ```graphviz\r\n [default_style]\r\n\r\n ui_builder_defualt_t -> ui_builder_t[arrowhead = \"empty\"]\r\n ui_xml_writer_t -> ui_builder_t[arrowhead = \"empty\"]\r\n ui_binary_writer_t -> ui_builder_t[arrowhead = \"empty\"]\r\n ```\r\n", + "desc": "\n 界面构造器接口。\n\n 负责把ui\\_loader解析的数据进一步处理,至于具体做什么,由具体实现决定。常见的实现有:\n\n * 构建widget对象树。\n\n * 生成二进制的UI描述数据。\n\n * 生成XML格式的UI描述数据。\n\n ```graphviz\n [default_style]\n\n ui_builder_defualt_t -> ui_builder_t[arrowhead = \"empty\"]\n ui_xml_writer_t -> ui_builder_t[arrowhead = \"empty\"]\n ui_binary_writer_t -> ui_builder_t[arrowhead = \"empty\"]\n ```\n\n", "name": "ui_builder_t", "level": 1 }, @@ -8277,7 +8315,7 @@ "annotation": { "static": true }, - "desc": " 请求反馈。\r\n\r\n\r\n", + "desc": " 请求反馈。\n\n\n\n", "name": "ui_feedback_request", "return": { "type": "ret_t", @@ -8300,7 +8338,7 @@ "annotation": { "static": true }, - "desc": " 初始化。\r\n 设置实际的处理函数。\r\n\r\n\r\n", + "desc": " 初始化。\n 设置实际的处理函数。\n\n\n\n", "name": "ui_feedback_init", "return": { "type": "ret_t", @@ -8311,7 +8349,7 @@ "events": [], "properties": [], "header": "base/ui_feedback.h", - "desc": "\r\n 提供按键音、触屏音和震动等反馈。\r\n", + "desc": "\n 提供按键音、触屏音和震动等反馈。\n\n", "name": "ui_feedback_t", "annotation": { "fake": true @@ -8345,7 +8383,7 @@ } ], "annotation": {}, - "desc": " 加载界面描述数据,然后分发给ui\\_builder,由ui\\_builder进一步处理。\r\n\r\n\r\n\r\n", + "desc": " 加载界面描述数据,然后分发给ui\\_builder,由ui\\_builder进一步处理。\n\n\n\n\n", "name": "ui_loader_load", "return": { "type": "ret_t", @@ -8361,7 +8399,7 @@ } ], "annotation": {}, - "desc": "\r\n 从指定的资源加载widget对象,通常用于加载非窗口的widget。\r\n\r\n>需要自己将widget加入窗口后,再调用widget\\_layout。\r\n\r\n\r\n\r\n", + "desc": "\n 从指定的资源加载widget对象,通常用于加载非窗口的widget。\n\n>需要自己将widget加入窗口后,再调用widget\\_layout。\n\n\n\n\n", "name": "ui_loader_load_widget", "return": { "type": "widget_t*", @@ -8372,7 +8410,7 @@ "events": [], "properties": [], "header": "base/ui_loader.h", - "desc": "\r\n UI加载器。\r\n\r\n 负责从资源加载界面描述数据,然后分发给ui\\_builder,由ui\\_builder进一步处理。\r\n\r\n 常见的实现有两种:\r\n\r\n * XML格式的加载器。\r\n\r\n * 二进制格式的加载器。\r\n\r\n ```graphviz\r\n [default_style]\r\n\r\n ui_loader_defualt_t -> ui_loader_t[arrowhead = \"empty\"]\r\n ui_loader_xml_t -> ui_loader_t[arrowhead = \"empty\"]\r\n\r\n ```\r\n\r\n", + "desc": "\n UI加载器。\n\n 负责从资源加载界面描述数据,然后分发给ui\\_builder,由ui\\_builder进一步处理。\n\n 常见的实现有两种:\n\n * XML格式的加载器。\n\n * 二进制格式的加载器。\n\n ```graphviz\n [default_style]\n\n ui_loader_defualt_t -> ui_loader_t[arrowhead = \"empty\"]\n ui_loader_xml_t -> ui_loader_t[arrowhead = \"empty\"]\n\n ```\n\n\n", "name": "ui_loader_t", "level": 1 }, @@ -8420,7 +8458,7 @@ "annotation": { "constructor": true }, - "desc": " 创建vgcanvas。\r\n\r\n", + "desc": " 创建vgcanvas。\n\n\n", "name": "vgcanvas_create", "return": { "type": "vgcanvas_t", @@ -8439,7 +8477,7 @@ "cast": true, "scriptable": true }, - "desc": " 转换为vgcanvas对象(供脚本语言使用)。\r\n\r\n", + "desc": " 转换为vgcanvas对象(供脚本语言使用)。\n\n\n", "name": "vgcanvas_cast", "return": { "type": "vgcanvas_t*", @@ -8480,7 +8518,7 @@ } ], "annotation": {}, - "desc": " 重新初始化,系统内部调用。\r\n\r\n\r\n", + "desc": " 重新初始化,系统内部调用。\n\n\n\n", "name": "vgcanvas_reinit", "return": { "type": "ret_t", @@ -8496,7 +8534,7 @@ } ], "annotation": {}, - "desc": " 重置状态。\r\n\r\n\r\n", + "desc": " 重置状态。\n\n\n\n", "name": "vgcanvas_reset", "return": { "type": "ret_t", @@ -8514,7 +8552,7 @@ "annotation": { "scriptable": true }, - "desc": " flush\r\n\r\n\r\n", + "desc": " flush\n\n\n\n", "name": "vgcanvas_flush", "return": { "type": "ret_t", @@ -8535,7 +8573,7 @@ } ], "annotation": {}, - "desc": " 开始绘制,系统内部调用。\r\n\r\n\r\n", + "desc": " 开始绘制,系统内部调用。\n\n\n\n", "name": "vgcanvas_begin_frame", "return": { "type": "ret_t", @@ -8576,7 +8614,7 @@ } ], "annotation": {}, - "desc": " 用颜色清除指定矩形区域。\r\n\r\n\r\n", + "desc": " 用颜色清除指定矩形区域。\n\n\n\n", "name": "vgcanvas_clear_rect", "return": { "type": "ret_t", @@ -8594,7 +8632,7 @@ "annotation": { "scriptable": true }, - "desc": " 清除之前的路径,并重新开始一条路径。\r\n\r\n\r\n", + "desc": " 清除之前的路径,并重新开始一条路径。\n\n\n\n", "name": "vgcanvas_begin_path", "return": { "type": "ret_t", @@ -8622,7 +8660,7 @@ "annotation": { "scriptable": true }, - "desc": " 移动当前点到指定点。\r\n\r\n\r\n", + "desc": " 移动当前点到指定点。\n\n\n\n", "name": "vgcanvas_move_to", "return": { "type": "ret_t", @@ -8650,7 +8688,7 @@ "annotation": { "scriptable": true }, - "desc": " 生成一条线段(从当前点到目标点)。\r\n\r\n\r\n", + "desc": " 生成一条线段(从当前点到目标点)。\n\n\n\n", "name": "vgcanvas_line_to", "return": { "type": "ret_t", @@ -8688,7 +8726,7 @@ "annotation": { "scriptable": true }, - "desc": " 生成一条二次贝塞尔曲线。\r\n\r\n\r\n", + "desc": " 生成一条二次贝塞尔曲线。\n\n\n\n", "name": "vgcanvas_quad_to", "return": { "type": "ret_t", @@ -8736,7 +8774,7 @@ "annotation": { "scriptable": true }, - "desc": " 生成一条三次贝塞尔曲线。\r\n\r\n\r\n", + "desc": " 生成一条三次贝塞尔曲线。\n\n\n\n", "name": "vgcanvas_bezier_to", "return": { "type": "ret_t", @@ -8779,7 +8817,7 @@ "annotation": { "scriptable": true }, - "desc": " 生成一条圆弧路径到指定点。\r\n\r\n\r\n", + "desc": " 生成一条圆弧路径到指定点。\n\n\n\n", "name": "vgcanvas_arc_to", "return": { "type": "ret_t", @@ -8827,7 +8865,7 @@ "annotation": { "scriptable": true }, - "desc": " 生成一条圆弧。\r\n\r\n\r\n", + "desc": " 生成一条圆弧。\n\n\n\n", "name": "vgcanvas_arc", "return": { "type": "ret_t", @@ -8855,7 +8893,7 @@ "annotation": { "scriptable": true }, - "desc": " 检查点是否在当前路径中。\r\n\r\n\r\n", + "desc": " 检查点是否在当前路径中。\n\n\n\n", "name": "vgcanvas_is_point_in_path", "return": { "type": "bool_t", @@ -8893,7 +8931,7 @@ "annotation": { "scriptable": true }, - "desc": " 生成一个矩形路径。\r\n\r\n\r\n", + "desc": " 生成一个矩形路径。\n\n\n\n", "name": "vgcanvas_rect", "return": { "type": "ret_t", @@ -8936,7 +8974,7 @@ "annotation": { "scriptable": true }, - "desc": " 生成一个圆角矩形路径。\r\n\r\n\r\n", + "desc": " 生成一个圆角矩形路径。\n\n\n\n", "name": "vgcanvas_rounded_rect", "return": { "type": "ret_t", @@ -8974,7 +9012,7 @@ "annotation": { "scriptable": true }, - "desc": " 生成一个椭圆路径。\r\n\r\n\r\n", + "desc": " 生成一个椭圆路径。\n\n\n\n", "name": "vgcanvas_ellipse", "return": { "type": "ret_t", @@ -8992,7 +9030,7 @@ "annotation": { "scriptable": true }, - "desc": " 闭合路径。\r\n\r\n >闭合路径是指把起点和终点连接起来,形成一个封闭的多边形。\r\n\r\n\r\n", + "desc": " 闭合路径。\n\n >闭合路径是指把起点和终点连接起来,形成一个封闭的多边形。\n\n\n\n", "name": "vgcanvas_close_path", "return": { "type": "ret_t", @@ -9015,7 +9053,7 @@ "annotation": { "scriptable": true }, - "desc": " 旋转。\r\n\r\n\r\n", + "desc": " 旋转。\n\n\n\n", "name": "vgcanvas_rotate", "return": { "type": "ret_t", @@ -9043,7 +9081,7 @@ "annotation": { "scriptable": true }, - "desc": " 缩放。\r\n\r\n\r\n", + "desc": " 缩放。\n\n\n\n", "name": "vgcanvas_scale", "return": { "type": "ret_t", @@ -9071,7 +9109,7 @@ "annotation": { "scriptable": true }, - "desc": " 平移。\r\n\r\n\r\n", + "desc": " 平移。\n\n\n\n", "name": "vgcanvas_translate", "return": { "type": "ret_t", @@ -9119,7 +9157,7 @@ "annotation": { "scriptable": true }, - "desc": " 变换矩阵。\r\n\r\n\r\n", + "desc": " 变换矩阵。\n\n\n\n", "name": "vgcanvas_transform", "return": { "type": "ret_t", @@ -9167,7 +9205,7 @@ "annotation": { "scriptable": true }, - "desc": " 设置变换矩阵。\r\n\r\n\r\n", + "desc": " 设置变换矩阵。\n\n\n\n", "name": "vgcanvas_set_transform", "return": { "type": "ret_t", @@ -9205,7 +9243,7 @@ "annotation": { "scriptable": true }, - "desc": " 矩形裁剪。\r\n\r\n\r\n", + "desc": " 矩形裁剪。\n\n\n\n", "name": "vgcanvas_clip_rect", "return": { "type": "ret_t", @@ -9223,7 +9261,7 @@ "annotation": { "scriptable": true }, - "desc": " 填充多边形。\r\n\r\n\r\n", + "desc": " 填充多边形。\n\n\n\n", "name": "vgcanvas_fill", "return": { "type": "ret_t", @@ -9241,7 +9279,7 @@ "annotation": { "scriptable": true }, - "desc": " 画线。\r\n\r\n\r\n", + "desc": " 画线。\n\n\n\n", "name": "vgcanvas_stroke", "return": { "type": "ret_t", @@ -9269,7 +9307,7 @@ "annotation": { "scriptable": true }, - "desc": " 用图片填充/画多边形(可能存在可移植性问题,除非必要请勿使用)。\r\n 多边形的顶点必须在图片范围内,可以通过矩阵变化画到不同的位置。\r\n\r\n\r\n", + "desc": " 用图片填充/画多边形(可能存在可移植性问题,除非必要请勿使用)。\n 多边形的顶点必须在图片范围内,可以通过矩阵变化画到不同的位置。\n\n\n\n", "name": "vgcanvas_paint", "return": { "type": "ret_t", @@ -9292,7 +9330,7 @@ "annotation": { "scriptable": true }, - "desc": " 设置字体的名称。\r\n\r\n\r\n", + "desc": " 设置字体的名称。\n\n\n\n", "name": "vgcanvas_set_font", "return": { "type": "ret_t", @@ -9315,7 +9353,7 @@ "annotation": { "scriptable": true }, - "desc": " 设置字体的大小。\r\n\r\n\r\n", + "desc": " 设置字体的大小。\n\n\n\n", "name": "vgcanvas_set_font_size", "return": { "type": "ret_t", @@ -9338,7 +9376,7 @@ "annotation": { "scriptable": true }, - "desc": " 设置文本水平对齐的方式。\r\n\r\n\r\n", + "desc": " 设置文本水平对齐的方式。\n\n\n\n", "name": "vgcanvas_set_text_align", "return": { "type": "ret_t", @@ -9361,7 +9399,7 @@ "annotation": { "scriptable": true }, - "desc": " 设置文本垂直对齐的方式。\r\n\r\n\r\n", + "desc": " 设置文本垂直对齐的方式。\n\n\n\n", "name": "vgcanvas_set_text_baseline", "return": { "type": "ret_t", @@ -9399,7 +9437,7 @@ "annotation": { "scriptable": true }, - "desc": " 绘制文本。\r\n\r\n\r\n", + "desc": " 绘制文本。\n\n\n\n", "name": "vgcanvas_fill_text", "return": { "type": "ret_t", @@ -9422,7 +9460,7 @@ "annotation": { "scriptable": true }, - "desc": " 测量文本的宽度。\r\n\r\n\r\n", + "desc": " 测量文本的宽度。\n\n\n\n", "name": "vgcanvas_measure_text", "return": { "type": "float_t", @@ -9485,7 +9523,7 @@ "annotation": { "scriptable": true }, - "desc": " 绘制图片。\r\n\r\n\r\n", + "desc": " 绘制图片。\n\n\n\n", "name": "vgcanvas_draw_image", "return": { "type": "ret_t", @@ -9548,7 +9586,7 @@ "annotation": { "scriptable": true }, - "desc": " 绘制图标。\r\n\r\n 绘制图标时会根据屏幕密度进行自动缩放,而绘制普通图片时不会。\r\n\r\n\r\n", + "desc": " 绘制图标。\n\n 绘制图标时会根据屏幕密度进行自动缩放,而绘制普通图片时不会。\n\n\n\n", "name": "vgcanvas_draw_icon", "return": { "type": "ret_t", @@ -9571,7 +9609,7 @@ "annotation": { "scriptable": true }, - "desc": " 设置是否启用反走样。\r\n\r\n\r\n", + "desc": " 设置是否启用反走样。\n\n\n\n", "name": "vgcanvas_set_antialias", "return": { "type": "ret_t", @@ -9594,7 +9632,7 @@ "annotation": { "scriptable": true }, - "desc": " 设置全局透明度。\r\n\r\n\r\n", + "desc": " 设置全局透明度。\n\n\n\n", "name": "vgcanvas_set_global_alpha", "return": { "type": "ret_t", @@ -9617,7 +9655,7 @@ "annotation": { "scriptable": true }, - "desc": " 设置线条的宽度。\r\n\r\n\r\n", + "desc": " 设置线条的宽度。\n\n\n\n", "name": "vgcanvas_set_line_width", "return": { "type": "ret_t", @@ -9638,7 +9676,7 @@ } ], "annotation": {}, - "desc": " 设置填充颜色。\r\n\r\n\r\n", + "desc": " 设置填充颜色。\n\n\n\n", "name": "vgcanvas_set_fill_color", "return": { "type": "ret_t", @@ -9661,7 +9699,7 @@ "annotation": { "scriptable": true }, - "desc": " 设置填充颜色。\r\n\r\n\r\n", + "desc": " 设置填充颜色。\n\n\n\n", "name": "vgcanvas_set_fill_color_str", "alias": "vgcanvas_set_fill_color", "return": { @@ -9708,7 +9746,7 @@ } ], "annotation": {}, - "desc": " 设置填充颜色为线性渐变色。\r\n\r\n\r\n", + "desc": " 设置填充颜色为线性渐变色。\n\n\n\n", "name": "vgcanvas_set_fill_linear_gradient", "return": { "type": "ret_t", @@ -9754,7 +9792,7 @@ } ], "annotation": {}, - "desc": " 设置填充颜色为径向渐变色。\r\n\r\n\r\n", + "desc": " 设置填充颜色为径向渐变色。\n\n\n\n", "name": "vgcanvas_set_fill_radial_gradient", "return": { "type": "ret_t", @@ -9775,7 +9813,7 @@ } ], "annotation": {}, - "desc": " 设置线条颜色。\r\n\r\n\r\n", + "desc": " 设置线条颜色。\n\n\n\n", "name": "vgcanvas_set_stroke_color", "return": { "type": "ret_t", @@ -9798,7 +9836,7 @@ "annotation": { "scriptable": true }, - "desc": " 设置线条颜色。\r\n\r\n\r\n", + "desc": " 设置线条颜色。\n\n\n\n", "name": "vgcanvas_set_stroke_color_str", "alias": "vgcanvas_set_stroke_color", "return": { @@ -9845,7 +9883,7 @@ } ], "annotation": {}, - "desc": " 设置线条颜色为线性渐变色。\r\n\r\n\r\n", + "desc": " 设置线条颜色为线性渐变色。\n\n\n\n", "name": "vgcanvas_set_stroke_linear_gradient", "return": { "type": "ret_t", @@ -9891,7 +9929,7 @@ } ], "annotation": {}, - "desc": " 设置线条颜色为径向渐变色。\r\n\r\n\r\n", + "desc": " 设置线条颜色为径向渐变色。\n\n\n\n", "name": "vgcanvas_set_stroke_radial_gradient", "return": { "type": "ret_t", @@ -9914,7 +9952,7 @@ "annotation": { "scriptable": true }, - "desc": " 设置line cap。\r\n\r\n\r\n", + "desc": " 设置line cap。\n\n\n\n", "name": "vgcanvas_set_line_cap", "return": { "type": "ret_t", @@ -9937,7 +9975,7 @@ "annotation": { "scriptable": true }, - "desc": " 设置line join。\r\n\r\n\r\n", + "desc": " 设置line join。\n\n\n\n", "name": "vgcanvas_set_line_join", "return": { "type": "ret_t", @@ -9960,7 +9998,7 @@ "annotation": { "scriptable": true }, - "desc": " 设置miter limit。\r\n\r\n\r\n", + "desc": " 设置miter limit。\n\n\n\n", "name": "vgcanvas_set_miter_limit", "return": { "type": "ret_t", @@ -9978,7 +10016,7 @@ "annotation": { "scriptable": true }, - "desc": " 保存当前的状态。如颜色和矩阵等信息。\r\n\r\n > save/restore必须配套使用,否则可能导致状态混乱。\r\n\r\n\r\n", + "desc": " 保存当前的状态。如颜色和矩阵等信息。\n\n > save/restore必须配套使用,否则可能导致状态混乱。\n\n\n\n", "name": "vgcanvas_save", "return": { "type": "ret_t", @@ -9996,7 +10034,7 @@ "annotation": { "scriptable": true }, - "desc": " 恢复上次save的状态。\r\n\r\n> save/restore必须配套使用,否则可能导致状态混乱。\r\n\r\n\r\n", + "desc": " 恢复上次save的状态。\n\n> save/restore必须配套使用,否则可能导致状态混乱。\n\n\n\n", "name": "vgcanvas_restore", "return": { "type": "ret_t", @@ -10012,7 +10050,7 @@ } ], "annotation": {}, - "desc": " 结束绘制。系统内部调用。\r\n\r\n", + "desc": " 结束绘制。系统内部调用。\n\n\n", "name": "vgcanvas_end_frame", "return": { "type": "ret_t", @@ -10028,7 +10066,7 @@ } ], "annotation": {}, - "desc": " 获取宽度。\r\n\r\n", + "desc": " 获取宽度。\n\n\n", "name": "vgcanvas_get_width", "return": { "type": "wh_t", @@ -10044,7 +10082,7 @@ } ], "annotation": {}, - "desc": " 获取高度。\r\n\r\n", + "desc": " 获取高度。\n\n\n", "name": "vgcanvas_get_height", "return": { "type": "wh_t", @@ -10060,7 +10098,7 @@ } ], "annotation": {}, - "desc": " 销毁vgcanvas对象。\r\n\r\n", + "desc": " 销毁vgcanvas对象。\n\n\n", "name": "vgcanvas_destroy", "return": { "type": "ret_t", @@ -10072,7 +10110,7 @@ "properties": [ { "name": "w", - "desc": " canvas的宽度\r\n", + "desc": " canvas的宽度\n\n", "type": "wh_t", "annotation": { "readable": true, @@ -10081,7 +10119,7 @@ }, { "name": "h", - "desc": " canvas的高度\r\n", + "desc": " canvas的高度\n\n", "type": "wh_t", "annotation": { "readable": true, @@ -10090,7 +10128,7 @@ }, { "name": "ratio", - "desc": " 显示比例。\r\n", + "desc": " 显示比例。\n\n", "type": "float_t", "annotation": { "readable": true, @@ -10099,7 +10137,7 @@ }, { "name": "anti_alias", - "desc": " 是否启用反走样功能。\r\n", + "desc": " 是否启用反走样功能。\n\n", "type": "bool_t", "annotation": { "readable": true, @@ -10108,7 +10146,7 @@ }, { "name": "line_width", - "desc": " 线宽。\r\n", + "desc": " 线宽。\n\n", "type": "float_t", "annotation": { "readable": true, @@ -10117,7 +10155,7 @@ }, { "name": "global_alpha", - "desc": " 全局alpha。\r\n", + "desc": " 全局alpha。\n\n", "type": "float_t", "annotation": { "readable": true, @@ -10126,7 +10164,7 @@ }, { "name": "miter_limit", - "desc": " miter\\_limit。\r\n @see http://www.w3school.com.cn/tags/canvas_miterlimit.asp\r\n", + "desc": " miter\\_limit。\n @see http://www.w3school.com.cn/tags/canvas_miterlimit.asp\n\n", "type": "float_t", "annotation": { "readable": true, @@ -10135,7 +10173,7 @@ }, { "name": "line_cap", - "desc": " line\\_cap。\r\n @see http://www.w3school.com.cn/tags/canvas_linecap.asp\r\n", + "desc": " line\\_cap。\n @see http://www.w3school.com.cn/tags/canvas_linecap.asp\n\n", "type": "const char*", "annotation": { "readable": true, @@ -10144,7 +10182,7 @@ }, { "name": "line_join", - "desc": " line\\_join。\r\n @see http://www.w3school.com.cn/tags/canvas_linejoin.asp\r\n", + "desc": " line\\_join。\n @see http://www.w3school.com.cn/tags/canvas_linejoin.asp\n\n", "type": "const char*", "annotation": { "readable": true, @@ -10153,7 +10191,7 @@ }, { "name": "font", - "desc": " 字体。\r\n", + "desc": " 字体。\n\n", "type": "char*", "annotation": { "readable": true, @@ -10162,7 +10200,7 @@ }, { "name": "font_size", - "desc": " 字体大小。\r\n", + "desc": " 字体大小。\n\n", "type": "float_t", "annotation": { "readable": true, @@ -10171,7 +10209,7 @@ }, { "name": "text_align", - "desc": " 文本对齐方式。\r\n\r\n @see http://www.w3school.com.cn/tags/canvas_textalign.asp\r\n", + "desc": " 文本对齐方式。\n\n @see http://www.w3school.com.cn/tags/canvas_textalign.asp\n\n", "type": "const char*", "annotation": { "readable": true, @@ -10180,7 +10218,7 @@ }, { "name": "text_baseline", - "desc": " 文本基线。\r\n\r\n @see http://www.w3school.com.cn/tags/canvas_textbaseline.asp\r\n", + "desc": " 文本基线。\n\n @see http://www.w3school.com.cn/tags/canvas_textbaseline.asp\n\n", "type": "const char*", "annotation": { "readable": true, @@ -10189,7 +10227,7 @@ }, { "name": "fill_color", - "desc": " 填充颜色\r\n", + "desc": " 填充颜色\n\n", "type": "color_t", "annotation": { "readable": true @@ -10197,7 +10235,7 @@ }, { "name": "stroke_color", - "desc": " 线条颜色\r\n", + "desc": " 线条颜色\n\n", "type": "color_t", "annotation": { "readable": true @@ -10205,7 +10243,7 @@ }, { "name": "buff;", - "desc": " frame buffer\r\n", + "desc": " frame buffer\n\n", "type": "uint32_t*", "annotation": { "private": true @@ -10213,7 +10251,7 @@ }, { "name": "format;", - "desc": " frame buffer format\r\n", + "desc": " frame buffer format\n\n", "type": "bitmap_format_t", "annotation": { "private": true @@ -10221,7 +10259,7 @@ } ], "header": "base/vgcanvas.h", - "desc": " 矢量图画布抽象基类。\r\n\r\n 具体实现时可以使用agg,nanovg, cairo和skia等方式。\r\n\r\n cairo和skia体积太大,不适合嵌入式平台,但在PC平台也是一种选择。\r\n\r\n 目前我们只提供了基于nanovg的实现,支持软件渲染和硬件渲染。\r\n\r\n 我们对nanovg进行了一些改进:\r\n\r\n * 可以用agg/agge实现软件渲染(暂时不支持文本绘制)。\r\n\r\n * 可以用bgfx使用DirectX(Windows平台)和Metal(iOS)平台硬件加速。\r\n\r\n ```graphviz\r\n [default_style]\r\n\r\n vgcanvas_cairo_t -> vgcanvas_t[arrowhead = \"empty\"]\r\n vgcanvas_nanovg_t -> vgcanvas_t[arrowhead = \"empty\"]\r\n opengl -> vgcanvas_nanovg_t[arrowhead = \"none\"]\r\n bgfx -> vgcanvas_nanovg_t[arrowhead = \"none\"]\r\n agg -> vgcanvas_nanovg_t[arrowhead = \"none\"]\r\n agge -> vgcanvas_nanovg_t[arrowhead = \"none\"]\r\n vgcanvas_skia_t -> vgcanvas_t[arrowhead = \"empty\"]\r\n vgcanvas_agge_t -> vgcanvas_t[arrowhead = \"empty\"]\r\n ```\r\n\r\n 示例:\r\n\r\n ```c\r\n vgcanvas_t* vg = canvas_get_vgcanvas(c);\r\n vgcanvas_save(vg);\r\n vgcanvas_translate(vg, 0, 100);\r\n\r\n vgcanvas_set_line_width(vg, 1);\r\n vgcanvas_set_fill_color(vg, color_init(0xff, 0, 0, 0xff));\r\n vgcanvas_rect(vg, 5, 5, 100, 100);\r\n vgcanvas_fill(vg);\r\n vgcanvas_restore(vg);\r\n ```\r\n\r\n >请参考:https://www.w3schools.com/tags/ref_canvas.asp\r\n\r\n", + "desc": " 矢量图画布抽象基类。\n\n 具体实现时可以使用agg,nanovg, cairo和skia等方式。\n\n cairo和skia体积太大,不适合嵌入式平台,但在PC平台也是一种选择。\n\n 目前我们只提供了基于nanovg的实现,支持软件渲染和硬件渲染。\n\n 我们对nanovg进行了一些改进:\n\n * 可以用agg/agge实现软件渲染(暂时不支持文本绘制)。\n\n * 可以用bgfx使用DirectX(Windows平台)和Metal(iOS)平台硬件加速。\n\n ```graphviz\n [default_style]\n\n vgcanvas_cairo_t -> vgcanvas_t[arrowhead = \"empty\"]\n vgcanvas_nanovg_t -> vgcanvas_t[arrowhead = \"empty\"]\n opengl -> vgcanvas_nanovg_t[arrowhead = \"none\"]\n bgfx -> vgcanvas_nanovg_t[arrowhead = \"none\"]\n agg -> vgcanvas_nanovg_t[arrowhead = \"none\"]\n agge -> vgcanvas_nanovg_t[arrowhead = \"none\"]\n vgcanvas_skia_t -> vgcanvas_t[arrowhead = \"empty\"]\n vgcanvas_agge_t -> vgcanvas_t[arrowhead = \"empty\"]\n ```\n\n 示例:\n\n ```c\n vgcanvas_t* vg = canvas_get_vgcanvas(c);\n vgcanvas_save(vg);\n vgcanvas_translate(vg, 0, 100);\n\n vgcanvas_set_line_width(vg, 1);\n vgcanvas_set_fill_color(vg, color_init(0xff, 0, 0, 0xff));\n vgcanvas_rect(vg, 5, 5, 100, 100);\n vgcanvas_fill(vg);\n vgcanvas_restore(vg);\n ```\n\n >请参考:https://www.w3schools.com/tags/ref_canvas.asp\n\n\n", "name": "vgcanvas_t", "annotation": { "scriptable": true @@ -10244,7 +10282,7 @@ "annotation": { "global": true }, - "desc": " 创建animator对象。\r\n\r\n", + "desc": " 创建animator对象。\n\n\n", "name": "widget_animator_create", "return": { "type": "widget_animator_t*", @@ -10262,7 +10300,7 @@ "annotation": { "constructor": true }, - "desc": " 获取缺省的控件动画管理器。\r\n", + "desc": " 获取缺省的控件动画管理器。\n\n", "name": "widget_animator_manager", "alias": "widget_animator_manager_instance", "return": { @@ -10279,7 +10317,7 @@ } ], "annotation": {}, - "desc": " 设置缺省的控件动画管理器。\r\n\r\n", + "desc": " 设置缺省的控件动画管理器。\n\n\n", "name": "widget_animator_manager_set", "return": { "type": "ret_t", @@ -10291,7 +10329,7 @@ "annotation": { "constructor": true }, - "desc": " 创建控件动画管理器。\r\n\r\n", + "desc": " 创建控件动画管理器。\n\n\n", "name": "widget_animator_manager_create", "return": { "type": "widget_animator_manager_t*", @@ -10309,7 +10347,7 @@ "annotation": { "constructor": true }, - "desc": " 初始化控件动画管理器。\r\n\r\n", + "desc": " 初始化控件动画管理器。\n\n\n", "name": "widget_animator_manager_init", "return": { "type": "widget_animator_manager_t*", @@ -10325,7 +10363,7 @@ } ], "annotation": {}, - "desc": " 析构控件动画管理器。\r\n\r\n", + "desc": " 析构控件动画管理器。\n\n\n", "name": "widget_animator_manager_deinit", "return": { "type": "ret_t", @@ -10341,7 +10379,7 @@ } ], "annotation": {}, - "desc": " 析构并释放控件动画管理器。\r\n\r\n", + "desc": " 析构并释放控件动画管理器。\n\n\n", "name": "widget_animator_manager_destroy", "return": { "type": "ret_t", @@ -10362,7 +10400,7 @@ } ], "annotation": {}, - "desc": " 添加指定的动画,动画在创建时调用本函数。\r\n\r\n", + "desc": " 添加指定的动画,动画在创建时调用本函数。\n\n\n", "name": "widget_animator_manager_add", "return": { "type": "ret_t", @@ -10383,7 +10421,7 @@ } ], "annotation": {}, - "desc": " 移出指定的动画,动画在销毁时调用本函数。。\r\n\r\n", + "desc": " 移出指定的动画,动画在销毁时调用本函数。。\n\n\n", "name": "widget_animator_manager_remove", "return": { "type": "ret_t", @@ -10399,7 +10437,7 @@ } ], "annotation": {}, - "desc": " 获取动画个数。\r\n\r\n", + "desc": " 获取动画个数。\n\n\n", "name": "widget_animator_manager_count", "return": { "type": "ret_t", @@ -10425,7 +10463,7 @@ } ], "annotation": {}, - "desc": " 播放满足条件的动画。\r\n 1.widget为NULL时,播放所有名称为name的动画。\r\n 2.name为NULL时,播放所有widget相关的动画。\r\n 3.widget和name均为NULL,播放所有动画。\r\n\r\n", + "desc": " 播放满足条件的动画。\n 1.widget为NULL时,播放所有名称为name的动画。\n 2.name为NULL时,播放所有widget相关的动画。\n 3.widget和name均为NULL,播放所有动画。\n\n\n", "name": "widget_animator_manager_start", "return": { "type": "ret_t", @@ -10451,7 +10489,7 @@ } ], "annotation": {}, - "desc": " 停止满足条件的动画。\r\n 1.widget为NULL时,停止所有名称为name的动画。\r\n 2.name为NULL时,停止所有widget相关的动画。\r\n 3.widget和name均为NULL,停止所有动画。\r\n\r\n", + "desc": " 停止满足条件的动画。\n 1.widget为NULL时,停止所有名称为name的动画。\n 2.name为NULL时,停止所有widget相关的动画。\n 3.widget和name均为NULL,停止所有动画。\n\n\n", "name": "widget_animator_manager_stop", "return": { "type": "ret_t", @@ -10477,7 +10515,7 @@ } ], "annotation": {}, - "desc": " 暂停满足条件的动画。\r\n 1.widget为NULL时,暂停所有名称为name的动画。\r\n 2.name为NULL时,暂停所有widget相关的动画。\r\n 3.widget和name均为NULL,暂停所有动画。\r\n\r\n", + "desc": " 暂停满足条件的动画。\n 1.widget为NULL时,暂停所有名称为name的动画。\n 2.name为NULL时,暂停所有widget相关的动画。\n 3.widget和name均为NULL,暂停所有动画。\n\n\n", "name": "widget_animator_manager_pause", "return": { "type": "ret_t", @@ -10503,7 +10541,7 @@ } ], "annotation": {}, - "desc": " 查找满足条件的动画。\r\n\r\n", + "desc": " 查找满足条件的动画。\n\n\n", "name": "widget_animator_manager_find", "return": { "type": "widget_animator_t*", @@ -10529,7 +10567,7 @@ } ], "annotation": {}, - "desc": " 销毁满足条件的动画。\r\n\r\n", + "desc": " 销毁满足条件的动画。\n\n\n", "name": "widget_animator_manager_remove_all", "return": { "type": "ret_t", @@ -10560,7 +10598,7 @@ } ], "annotation": {}, - "desc": " 设置时间倍率。\r\n 设置动画的时间倍率,<0: 时间倒退,<1: 时间变慢,>1 时间变快。\r\n\r\n", + "desc": " 设置时间倍率。\n 设置动画的时间倍率,<0: 时间倒退,<1: 时间变慢,>1 时间变快。\n\n\n", "name": "widget_animator_manager_set_time_scale", "return": { "type": "ret_t", @@ -10581,7 +10619,7 @@ } ], "annotation": {}, - "desc": " 时间流失,调用本函数更新动画(public for test)。\r\n\r\n\r\n", + "desc": " 时间流失,调用本函数更新动画(public for test)。\n\n\n\n", "name": "widget_animator_manager_time_elapse", "return": { "type": "ret_t", @@ -10593,12 +10631,12 @@ "properties": [ { "name": "time_scale", - "desc": " 时间倍率,可以让时间变快或变慢。\r\n", + "desc": " 时间倍率,可以让时间变快或变慢。\n\n", "type": "float_t" } ], "header": "base/widget_animator_manager.h", - "desc": " 控件动画管理器。\r\n", + "desc": " 控件动画管理器。\n\n", "name": "widget_animator_t", "level": 1 }, @@ -10634,7 +10672,7 @@ } ], "annotation": {}, - "desc": " 初始化。仅供子类内部使用。\r\n\r\n", + "desc": " 初始化。仅供子类内部使用。\n\n\n", "name": "widget_animator_init", "return": { "type": "ret_t", @@ -10655,7 +10693,7 @@ } ], "annotation": {}, - "desc": " 设置名称。\r\n\r\n", + "desc": " 设置名称。\n\n\n", "name": "widget_animator_set_name", "return": { "type": "ret_t", @@ -10676,7 +10714,7 @@ } ], "annotation": {}, - "desc": " 设置为yoyo模式。\r\n\r\n", + "desc": " 设置为yoyo模式。\n\n\n", "name": "widget_animator_set_yoyo", "return": { "type": "ret_t", @@ -10697,7 +10735,7 @@ } ], "annotation": {}, - "desc": " 设置为重复模式。\r\n\r\n", + "desc": " 设置为重复模式。\n\n\n", "name": "widget_animator_set_repeat", "return": { "type": "ret_t", @@ -10718,7 +10756,7 @@ } ], "annotation": {}, - "desc": " 设置为逆向模式。\r\n\r\n", + "desc": " 设置为逆向模式。\n\n\n", "name": "widget_animator_set_reversed", "return": { "type": "ret_t", @@ -10739,7 +10777,7 @@ } ], "annotation": {}, - "desc": " 设置时间倍率,用于实现时间加速减速和停滞的功能。\r\n\r\n", + "desc": " 设置时间倍率,用于实现时间加速减速和停滞的功能。\n\n\n", "name": "widget_animator_set_time_scale", "return": { "type": "ret_t", @@ -10772,7 +10810,7 @@ "annotation": { "scriptable": "custom" }, - "desc": " 注册指定事件的处理函数。\r\n 事件类型。目前支持:EVT_ANIM_START,EVT_ANIM_STOP,EVT_ANIM_PAUSE,EVT_ANIM_ONCE和EVT_ANIM_END。\r\n\r\n", + "desc": " 注册指定事件的处理函数。\n 事件类型。目前支持:EVT_ANIM_START,EVT_ANIM_STOP,EVT_ANIM_PAUSE,EVT_ANIM_ONCE和EVT_ANIM_END。\n\n\n", "name": "widget_animator_on", "return": { "type": "uint32_t", @@ -10795,7 +10833,7 @@ "annotation": { "scriptable": "custom" }, - "desc": " 注销指定事件的处理函数。\r\n\r\n", + "desc": " 注销指定事件的处理函数。\n\n\n", "name": "widget_animator_off", "return": { "type": "ret_t", @@ -10811,7 +10849,7 @@ } ], "annotation": {}, - "desc": " 启动动画。\r\n\r\n", + "desc": " 启动动画。\n\n\n", "name": "widget_animator_start", "return": { "type": "ret_t", @@ -10827,7 +10865,7 @@ } ], "annotation": {}, - "desc": " 停止动画。\r\n\r\n", + "desc": " 停止动画。\n\n\n", "name": "widget_animator_stop", "return": { "type": "ret_t", @@ -10843,7 +10881,7 @@ } ], "annotation": {}, - "desc": " 暂停动画。\r\n\r\n", + "desc": " 暂停动画。\n\n\n", "name": "widget_animator_pause", "return": { "type": "ret_t", @@ -10864,7 +10902,7 @@ } ], "annotation": {}, - "desc": " 设置完成时是否自动销毁动画对象(缺省销毁)。\r\n\r\n", + "desc": " 设置完成时是否自动销毁动画对象(缺省销毁)。\n\n\n", "name": "widget_animator_set_destroy_when_done", "return": { "type": "ret_t", @@ -10887,7 +10925,7 @@ "annotation": { "private": true }, - "desc": " 时间流失,更新动画(由动画管理器调用)。\r\n\r\n", + "desc": " 时间流失,更新动画(由动画管理器调用)。\n\n\n", "name": "widget_animator_time_elapse", "return": { "type": "ret_t", @@ -10903,7 +10941,7 @@ } ], "annotation": {}, - "desc": " 销毁animator对象。\r\n\r\n", + "desc": " 销毁animator对象。\n\n\n", "name": "widget_animator_destroy", "return": { "type": "ret_t", @@ -10915,12 +10953,12 @@ "properties": [ { "name": "name", - "desc": " 名称。\r\n", + "desc": " 名称。\n\n", "type": "char*" }, { "name": "widget", - "desc": " 控件对象。\r\n", + "desc": " 控件对象。\n\n", "type": "widget_t*", "annotation": { "private": true @@ -10928,7 +10966,7 @@ }, { "name": "reversed", - "desc": " 逆向运行,在yoyo模式下自动设置。\r\n", + "desc": " 逆向运行,在yoyo模式下自动设置。\n\n", "type": "bool_t", "annotation": { "private": true @@ -10936,7 +10974,7 @@ }, { "name": "yoyo_times", - "desc": " yoyo剩余次数。\r\n", + "desc": " yoyo剩余次数。\n\n", "type": "uint32_t", "annotation": { "private": true @@ -10944,7 +10982,7 @@ }, { "name": "repeat_times", - "desc": " 重复剩余次数。\r\n", + "desc": " 重复剩余次数。\n\n", "type": "uint32_t", "annotation": { "private": true @@ -10952,7 +10990,7 @@ }, { "name": "now", - "desc": " 当前时间(毫秒)。\r\n", + "desc": " 当前时间(毫秒)。\n\n", "type": "uint32_t", "annotation": { "private": true @@ -10960,7 +10998,7 @@ }, { "name": "time_scale", - "desc": " 时间倍率。\r\n", + "desc": " 时间倍率。\n\n", "type": "float_t", "annotation": { "private": true @@ -10968,7 +11006,7 @@ }, { "name": "start_time", - "desc": " 起始时间(毫秒)。\r\n", + "desc": " 起始时间(毫秒)。\n\n", "type": "uint32_t", "annotation": { "private": true @@ -10976,7 +11014,7 @@ }, { "name": "delay", - "desc": " 延迟执行时间(毫秒)。\r\n", + "desc": " 延迟执行时间(毫秒)。\n\n", "type": "uint32_t", "annotation": { "private": true @@ -10984,7 +11022,7 @@ }, { "name": "duration", - "desc": " 单次动画执行时间(毫秒)。\r\n", + "desc": " 单次动画执行时间(毫秒)。\n\n", "type": "uint32_t", "annotation": { "private": true @@ -10992,7 +11030,7 @@ }, { "name": "state", - "desc": " 动画的状态。\r\n", + "desc": " 动画的状态。\n\n", "type": "animator_state_t", "annotation": { "private": true @@ -11000,7 +11038,7 @@ }, { "name": "emitter", - "desc": " emitter\r\n", + "desc": " emitter\n\n", "type": "uint32_t", "annotation": { "private": true @@ -11008,7 +11046,7 @@ }, { "name": "destroy_when_done;", - "desc": " 播放完成时是否自动销毁(缺省销毁)。\r\n", + "desc": " 播放完成时是否自动销毁(缺省销毁)。\n\n", "type": "bool_t", "annotation": { "private": true @@ -11016,7 +11054,7 @@ }, { "name": "forever", - "desc": " 是否永远播放(yoyo_times/repeat_times为0时,自动设置此标志)。\r\n", + "desc": " 是否永远播放(yoyo_times/repeat_times为0时,自动设置此标志)。\n\n", "type": "bool_t", "annotation": { "private": true @@ -11024,7 +11062,7 @@ }, { "name": "widget_destroy_id", - "desc": " widget_destroy_id。\r\n", + "desc": " widget_destroy_id。\n\n", "type": "uint32_t", "annotation": { "private": true @@ -11032,7 +11070,7 @@ }, { "name": "easing", - "desc": " 插值函数。\r\n", + "desc": " 插值函数。\n\n", "type": "easing_func_t", "annotation": { "private": true @@ -11040,7 +11078,7 @@ }, { "name": "update", - "desc": " update函数,子类需要实现。\r\n", + "desc": " update函数,子类需要实现。\n\n", "type": "widget_animator_update_t", "annotation": { "private": true @@ -11048,7 +11086,7 @@ }, { "name": "destroy", - "desc": " destroy函数,子类需要实现。\r\n", + "desc": " destroy函数,子类需要实现。\n\n", "type": "widget_animator_destroy_t", "annotation": { "private": true @@ -11056,476 +11094,476 @@ } ], "header": "base/widget_animator.h", - "desc": " 控件动画接口。\r\n", + "desc": " 控件动画接口。\n\n", "name": "widget_animator_t", "level": 1 }, { "type": "enum", - "desc": " 控件的属性。\r\n", + "desc": " 控件的属性。\n\n", "consts": [ { - "desc": " X坐标。\r\n", + "desc": " X坐标。\n\n", "name": "WIDGET_PROP_X" }, { - "desc": " Y坐标。\r\n", + "desc": " Y坐标。\n\n", "name": "WIDGET_PROP_Y" }, { - "desc": " 宽度。\r\n", + "desc": " 宽度。\n\n", "name": "WIDGET_PROP_W" }, { - "desc": " 高度。\r\n", + "desc": " 高度。\n\n", "name": "WIDGET_PROP_H" }, { - "desc": " Canvas。\r\n", + "desc": " Canvas。\n\n", "name": "WIDGET_PROP_CANVAS" }, { - "desc": " Canvas。\r\n", + "desc": " Canvas。\n\n", "name": "WIDGET_PROP_LOCALIZE_OPTIONS" }, { - "desc": " Native Window。\r\n", + "desc": " Native Window。\n\n", "name": "WIDGET_PROP_NATIVE_WINDOW" }, { - "desc": " dialog highlight。\r\n", + "desc": " dialog highlight。\n\n", "name": "WIDGET_PROP_HIGHLIGHT" }, { - "desc": " slider中的bar的的宽度或高度。\r\n", + "desc": " slider中的bar的的宽度或高度。\n\n", "name": "WIDGET_PROP_BAR_SIZE" }, { - "desc": " 不透明度。\r\n", + "desc": " 不透明度。\n\n", "name": "WIDGET_PROP_OPACITY" }, { - "desc": " 最小宽度。\r\n", + "desc": " 最小宽度。\n\n", "name": "WIDGET_PROP_MIN_W" }, { - "desc": " 最大宽度。\r\n", + "desc": " 最大宽度。\n\n", "name": "WIDGET_PROP_MAX_W" }, { - "desc": " 子控件布局参数。\r\n", + "desc": " 子控件布局参数。\n\n", "name": "WIDGET_PROP_CHILDREN_LAYOUT" }, { - "desc": " 子控件布局参数(过时)。\r\n", + "desc": " 子控件布局参数(过时)。\n\n", "name": "WIDGET_PROP_LAYOUT" }, { - "desc": " 控件布局参数。\r\n", + "desc": " 控件布局参数。\n\n", "name": "WIDGET_PROP_SELF_LAYOUT" }, { - "desc": " layout宽度。\r\n", + "desc": " layout宽度。\n\n", "name": "WIDGET_PROP_LAYOUT_W" }, { - "desc": " layout高度。\r\n", + "desc": " layout高度。\n\n", "name": "WIDGET_PROP_LAYOUT_H" }, { - "desc": " 虚拟宽度。\r\n", + "desc": " 虚拟宽度。\n\n", "name": "WIDGET_PROP_VIRTUAL_W" }, { - "desc": " 虚拟高度。\r\n", + "desc": " 虚拟高度。\n\n", "name": "WIDGET_PROP_VIRTUAL_H" }, { - "desc": " 名称。\r\n", + "desc": " 名称。\n\n", "name": "WIDGET_PROP_NAME" }, { - "desc": " 类型。\r\n", + "desc": " 类型。\n\n", "name": "WIDGET_PROP_TYPE" }, { - "desc": " 是否可以关闭。\r\n", + "desc": " 是否可以关闭。\n\n", "name": "WIDGET_PROP_CLOSABLE" }, { - "desc": " 鼠标指针。\r\n", + "desc": " 鼠标指针。\n\n", "name": "WIDGET_PROP_CURSOR" }, { - "desc": " 值。\r\n", + "desc": " 值。\n\n", "name": "WIDGET_PROP_VALUE" }, { - "desc": " 长度。\r\n", + "desc": " 长度。\n\n", "name": "WIDGET_PROP_LENGTH" }, { - "desc": " 文本。\r\n", + "desc": " 文本。\n\n", "name": "WIDGET_PROP_TEXT" }, { - "desc": " 待翻译文本。\r\n", + "desc": " 待翻译文本。\n\n", "name": "WIDGET_PROP_TR_TEXT" }, { - "desc": " style。\r\n", + "desc": " style。\n\n", "name": "WIDGET_PROP_STYLE" }, { - "desc": " 是否启用。\r\n", + "desc": " 是否启用。\n\n", "name": "WIDGET_PROP_ENABLE" }, { - "desc": " 是否启用按键音等反馈。\r\n", + "desc": " 是否启用按键音等反馈。\n\n", "name": "WIDGET_PROP_FEEDBACK" }, { - "desc": " 是否启用floating布局。\r\n", + "desc": " 是否启用floating布局。\n\n", "name": "WIDGET_PROP_FLOATING" }, { - "desc": " 边距。\r\n", + "desc": " 边距。\n\n", "name": "WIDGET_PROP_MARGIN" }, { - "desc": " 间距。\r\n", + "desc": " 间距。\n\n", "name": "WIDGET_PROP_SPACING" }, { - "desc": " 左边距。\r\n", + "desc": " 左边距。\n\n", "name": "WIDGET_PROP_LEFT_MARGIN" }, { - "desc": " 右边距。\r\n", + "desc": " 右边距。\n\n", "name": "WIDGET_PROP_RIGHT_MARGIN" }, { - "desc": " 顶边距。\r\n", + "desc": " 顶边距。\n\n", "name": "WIDGET_PROP_TOP_MARGIN" }, { - "desc": " 底边距。\r\n", + "desc": " 底边距。\n\n", "name": "WIDGET_PROP_BOTTOM_MARGIN" }, { - "desc": " 步长。\r\n", + "desc": " 步长。\n\n", "name": "WIDGET_PROP_STEP" }, { - "desc": " 是否可见。\r\n", + "desc": " 是否可见。\n\n", "name": "WIDGET_PROP_VISIBLE" }, { - "desc": " 是否接受用户事件。\r\n", + "desc": " 是否接受用户事件。\n\n", "name": "WIDGET_PROP_SENSITIVE" }, { - "desc": " 控件动画。\r\n", + "desc": " 控件动画。\n\n", "name": "WIDGET_PROP_ANIMATION" }, { - "desc": " 窗口动画。\r\n", + "desc": " 窗口动画。\n\n", "name": "WIDGET_PROP_ANIM_HINT" }, { - "desc": " 窗口设置为全部大小。\r\n", + "desc": " 窗口设置为全部大小。\n\n", "name": "WIDGET_PROP_FULLSCREEN" }, { - "desc": " 打开窗口动画。\r\n", + "desc": " 打开窗口动画。\n\n", "name": "WIDGET_PROP_OPEN_ANIM_HINT" }, { - "desc": " 关闭窗口动画。\r\n", + "desc": " 关闭窗口动画。\n\n", "name": "WIDGET_PROP_CLOSE_ANIM_HINT" }, { - "desc": " 最小值。\r\n", + "desc": " 最小值。\n\n", "name": "WIDGET_PROP_MIN" }, { - "desc": " 提示信息。\r\n", + "desc": " 提示信息。\n\n", "name": "WIDGET_PROP_TIPS" }, { - "desc": " 输入类型。\r\n", + "desc": " 输入类型。\n\n", "name": "WIDGET_PROP_INPUT_TYPE" }, { - "desc": " 只读模式。\r\n", + "desc": " 只读模式。\n\n", "name": "WIDGET_PROP_READONLY" }, { - "desc": " 密码是否可见。\r\n", + "desc": " 密码是否可见。\n\n", "name": "WIDGET_PROP_PASSWORD_VISIBLE" }, { - "desc": " 是否处于active状态。\r\n", + "desc": " 是否处于active状态。\n\n", "name": "WIDGET_PROP_ACTIVE" }, { - "desc": " 是否为垂直模式。\r\n", + "desc": " 是否为垂直模式。\n\n", "name": "WIDGET_PROP_VERTICAL" }, { - "desc": " 是否显示文本。\r\n", + "desc": " 是否显示文本。\n\n", "name": "WIDGET_PROP_SHOW_TEXT" }, { - "desc": " X方向的偏移。\r\n", + "desc": " X方向的偏移。\n\n", "name": "WIDGET_PROP_XOFFSET" }, { - "desc": " Y方向的偏移。\r\n", + "desc": " Y方向的偏移。\n\n", "name": "WIDGET_PROP_YOFFSET" }, { - "desc": " 垂直对齐模式。\r\n", + "desc": " 垂直对齐模式。\n\n", "name": "WIDGET_PROP_ALIGN_V" }, { - "desc": " 水平对齐模式。\r\n", + "desc": " 水平对齐模式。\n\n", "name": "WIDGET_PROP_ALIGN_H" }, { - "desc": " 是否自动播放或指定播放的时间。\r\n", + "desc": " 是否自动播放或指定播放的时间。\n\n", "name": "WIDGET_PROP_AUTO_PLAY" }, { - "desc": " 是否循环播放或循环播放的次数。\r\n", + "desc": " 是否循环播放或循环播放的次数。\n\n", "name": "WIDGET_PROP_LOOP" }, { - "desc": " 是否启用自动更正功能。\r\n", + "desc": " 是否启用自动更正功能。\n\n", "name": "WIDGET_PROP_AUTO_FIX" }, { - "desc": " X最小值。\r\n", + "desc": " X最小值。\n\n", "name": "WIDGET_PROP_X_MIN" }, { - "desc": " X最大值。\r\n", + "desc": " X最大值。\n\n", "name": "WIDGET_PROP_X_MAX" }, { - "desc": " Y最小值。\r\n", + "desc": " Y最小值。\n\n", "name": "WIDGET_PROP_Y_MIN" }, { - "desc": " Y最大值。\r\n", + "desc": " Y最大值。\n\n", "name": "WIDGET_PROP_Y_MAX" }, { - "desc": " 最大值。\r\n", + "desc": " 最大值。\n\n", "name": "WIDGET_PROP_MAX" }, { - "desc": " 行数或每行的高度。\r\n", + "desc": " 行数或每行的高度。\n\n", "name": "WIDGET_PROP_ROW" }, { - "desc": " 控件状态。\r\n", + "desc": " 控件状态。\n\n", "name": "WIDGET_PROP_STATE_FOR_STYLE" }, { - "desc": " 窗口主题名称。\r\n", + "desc": " 窗口主题名称。\n\n", "name": "WIDGET_PROP_THEME" }, { - "desc": " window stage\r\n", + "desc": " window stage\n\n", "name": "WIDGET_PROP_STAGE" }, { - "desc": " 图片管理器。\r\n", + "desc": " 图片管理器。\n\n", "name": "WIDGET_PROP_IMAGE_MANAGER" }, { - "desc": " 资源管理器。\r\n", + "desc": " 资源管理器。\n\n", "name": "WIDGET_PROP_ASSETS_MANAGER" }, { - "desc": " locale_info。\r\n", + "desc": " locale_info。\n\n", "name": "WIDGET_PROP_LOCALE_INFO" }, { - "desc": " 字体管理器。\r\n", + "desc": " 字体管理器。\n\n", "name": "WIDGET_PROP_FONT_MANAGER" }, { - "desc": " 窗口的主题对象。\r\n", + "desc": " 窗口的主题对象。\n\n", "name": "WIDGET_PROP_THEME_OBJ" }, { - "desc": " 缺省的主题对象。\r\n", + "desc": " 缺省的主题对象。\n\n", "name": "WIDGET_PROP_DEFAULT_THEME_OBJ" }, { - "desc": " 项的宽度。\r\n", + "desc": " 项的宽度。\n\n", "name": "WIDGET_PROP_ITEM_WIDTH" }, { - "desc": " 项的高度。\r\n", + "desc": " 项的高度。\n\n", "name": "WIDGET_PROP_ITEM_HEIGHT" }, { - "desc": " 项的缺省高度。\r\n", + "desc": " 项的缺省高度。\n\n", "name": "WIDGET_PROP_DEFAULT_ITEM_HEIGHT" }, { - "desc": " X方向是否可拖动。\r\n", + "desc": " X方向是否可拖动。\n\n", "name": "WIDGET_PROP_XSLIDABLE" }, { - "desc": " Y方向是否可拖动。\r\n", + "desc": " Y方向是否可拖动。\n\n", "name": "WIDGET_PROP_YSLIDABLE" }, { - "desc": " 重复次数。\r\n", + "desc": " 重复次数。\n\n", "name": "WIDGET_PROP_REPEAT" }, { - "desc": " 是否启用长按。\r\n", + "desc": " 是否启用长按。\n\n", "name": "WIDGET_PROP_ENABLE_LONG_PRESS" }, { - "desc": " 是否启用动画。\r\n", + "desc": " 是否启用动画。\n\n", "name": "WIDGET_PROP_ANIMATABLE" }, { - "desc": " 是否自动隐藏滚动条。\r\n", + "desc": " 是否自动隐藏滚动条。\n\n", "name": "WIDGET_PROP_AUTO_HIDE_SCROLL_BAR" }, { - "desc": " 图片名称。\r\n", + "desc": " 图片名称。\n\n", "name": "WIDGET_PROP_IMAGE" }, { - "desc": " 显示格式。\r\n", + "desc": " 显示格式。\n\n", "name": "WIDGET_PROP_FORMAT" }, { - "desc": " 图片绘制类型。\r\n", + "desc": " 图片绘制类型。\n\n", "name": "WIDGET_PROP_DRAW_TYPE" }, { - "desc": " 是否可选择。\r\n", + "desc": " 是否可选择。\n\n", "name": "WIDGET_PROP_SELECTABLE" }, { - "desc": " 是否可点击。\r\n", + "desc": " 是否可点击。\n\n", "name": "WIDGET_PROP_CLICKABLE" }, { - "desc": " X方向缩放比例。\r\n", + "desc": " X方向缩放比例。\n\n", "name": "WIDGET_PROP_SCALE_X" }, { - "desc": " Y方向缩放比例。\r\n", + "desc": " Y方向缩放比例。\n\n", "name": "WIDGET_PROP_SCALE_Y" }, { - "desc": " x锚点。\r\n", + "desc": " x锚点。\n\n", "name": "WIDGET_PROP_ANCHOR_X" }, { - "desc": " y锚点。\r\n", + "desc": " y锚点。\n\n", "name": "WIDGET_PROP_ANCHOR_Y" }, { - "desc": " 选中角度(幅度)\r\n", + "desc": " 选中角度(幅度)\n\n", "name": "WIDGET_PROP_ROTATION" }, { - "desc": " 紧凑模式。\r\n", + "desc": " 紧凑模式。\n\n", "name": "WIDGET_PROP_COMPACT" }, { - "desc": " 是否支持滚动。\r\n", + "desc": " 是否支持滚动。\n\n", "name": "WIDGET_PROP_SCROLLABLE" }, { - "desc": " 图标名称。\r\n", + "desc": " 图标名称。\n\n", "name": "WIDGET_PROP_ICON" }, { - "desc": " 选项集合。\r\n", + "desc": " 选项集合。\n\n", "name": "WIDGET_PROP_OPTIONS" }, { - "desc": " 是否被选中。\r\n", + "desc": " 是否被选中。\n\n", "name": "WIDGET_PROP_SELECTED" }, { - "desc": " 是否被勾选。\r\n", + "desc": " 是否被勾选。\n\n", "name": "WIDGET_PROP_CHECKED" }, { - "desc": " active状态下的图标。\r\n", + "desc": " active状态下的图标。\n\n", "name": "WIDGET_PROP_ACTIVE_ICON" }, { - "desc": " 要打开窗口的名称。\r\n", + "desc": " 要打开窗口的名称。\n\n", "name": "WIDGET_PROP_OPEN_WINDOW" }, { - "desc": " 被选中项的索引。\r\n", + "desc": " 被选中项的索引。\n\n", "name": "WIDGET_PROP_SELECTED_INDEX" }, { - "desc": " 点击窗口时关闭窗口。\r\n", + "desc": " 点击窗口时关闭窗口。\n\n", "name": "WIDGET_PROP_CLOSE_WHEN_CLICK" }, { - "desc": " 点击窗口外部时关闭窗口。\r\n", + "desc": " 点击窗口外部时关闭窗口。\n\n", "name": "WIDGET_PROP_CLOSE_WHEN_CLICK_OUTSIDE" }, { - "desc": " 行间距。\r\n", + "desc": " 行间距。\n\n", "name": "WIDGET_PROP_LINE_GAP" }, { - "desc": " 背景颜色(仅仅使用于color tile)。\r\n", + "desc": " 背景颜色(仅仅使用于color tile)。\n\n", "name": "WIDGET_PROP_BG_COLOR" }, { - "desc": " 边框颜色(仅仅使用于color tile)。\r\n", + "desc": " 边框颜色(仅仅使用于color tile)。\n\n", "name": "WIDGET_PROP_BORDER_COLOR" }, { - "desc": " 延迟时间(毫秒)\r\n", + "desc": " 延迟时间(毫秒)\n\n", "name": "WIDGET_PROP_DELAY" }, { - "desc": " 是否为键盘。\r\n", + "desc": " 是否为键盘。\n\n", "name": "WIDGET_PROP_IS_KEYBOARD" }, { - "desc": " 是否为焦点控件。\r\n", + "desc": " 是否为焦点控件。\n\n", "name": "WIDGET_PROP_FOCUSED" }, { - "desc": " (过时请用focused)。\r\n", + "desc": " (过时请用focused)。\n\n", "name": "WIDGET_PROP_FOCUS" }, { - "desc": " 是否支持焦点停留。\r\n", + "desc": " 是否支持焦点停留。\n\n", "name": "WIDGET_PROP_FOCUSABLE" }, { - "desc": " 是否支持焦点状态(如果希望style支持焦点状态,但有不希望焦点停留,可用本属性)。\r\n", + "desc": " 是否支持焦点状态(如果希望style支持焦点状态,但有不希望焦点停留,可用本属性)。\n\n", "name": "WIDGET_PROP_WITH_FOCUS_STATE" }, { - "desc": " 将焦点移到下一个的键值。\r\n", + "desc": " 将焦点移到下一个的键值。\n\n", "name": "WIDGET_PROP_MOVE_FOCUS_NEXT_KEY" }, { - "desc": " 将焦点移到下一个的键值。\r\n", + "desc": " 将焦点移到下一个的键值。\n\n", "name": "WIDGET_PROP_MOVE_FOCUS_PREV_KEY" } ], @@ -11540,218 +11578,218 @@ }, { "type": "enum", - "desc": " 控件的类型。\r\n", + "desc": " 控件的类型。\n\n", "consts": [ { - "desc": " 无特殊类型。\r\n", + "desc": " 无特殊类型。\n\n", "name": "WIDGET_TYPE_NONE" }, { - "desc": " 窗口管理器。\r\n", + "desc": " 窗口管理器。\n\n", "name": "WIDGET_TYPE_WINDOW_MANAGER" }, { - "desc": " 普通窗口。\r\n", + "desc": " 普通窗口。\n\n", "name": "WIDGET_TYPE_NORMAL_WINDOW" }, { - "desc": " overlay窗口。\r\n", + "desc": " overlay窗口。\n\n", "name": "WIDGET_TYPE_OVERLAY" }, { - "desc": " 工具条。\r\n", + "desc": " 工具条。\n\n", "name": "WIDGET_TYPE_TOOL_BAR" }, { - "desc": " 对话框。\r\n", + "desc": " 对话框。\n\n", "name": "WIDGET_TYPE_DIALOG" }, { - "desc": " 弹出窗口。\r\n", + "desc": " 弹出窗口。\n\n", "name": "WIDGET_TYPE_POPUP" }, { - "desc": " system bar window\r\n", + "desc": " system bar window\n\n", "name": "WIDGET_TYPE_SYSTEM_BAR" }, { - "desc": " 精灵窗口。\r\n", + "desc": " 精灵窗口。\n\n", "name": "WIDGET_TYPE_SPRITE" }, { - "desc": " 键盘窗口。\r\n", + "desc": " 键盘窗口。\n\n", "name": "WIDGET_TYPE_KEYBOARD" }, { - "desc": " 拖放状态窗口。\r\n", + "desc": " 拖放状态窗口。\n\n", "name": "WIDGET_TYPE_DND" }, { - "desc": " 文本控件。\r\n", + "desc": " 文本控件。\n\n", "name": "WIDGET_TYPE_LABEL" }, { - "desc": " 按钮控件。\r\n", + "desc": " 按钮控件。\n\n", "name": "WIDGET_TYPE_BUTTON" }, { - "desc": " 图片控件。\r\n", + "desc": " 图片控件。\n\n", "name": "WIDGET_TYPE_IMAGE" }, { - "desc": " 文本编辑控件。\r\n", + "desc": " 文本编辑控件。\n\n", "name": "WIDGET_TYPE_EDIT" }, { - "desc": " 进度条控件。\r\n", + "desc": " 进度条控件。\n\n", "name": "WIDGET_TYPE_PROGRESS_BAR" }, { - "desc": " 分组控件。\r\n", + "desc": " 分组控件。\n\n", "name": "WIDGET_TYPE_GROUP_BOX" }, { - "desc": " 多选按钮控件。\r\n", + "desc": " 多选按钮控件。\n\n", "name": "WIDGET_TYPE_CHECK_BUTTON" }, { - "desc": " 单选按钮控件。\r\n", + "desc": " 单选按钮控件。\n\n", "name": "WIDGET_TYPE_RADIO_BUTTON" }, { - "desc": " 对话框标题。\r\n", + "desc": " 对话框标题。\n\n", "name": "WIDGET_TYPE_DIALOG_TITLE" }, { - "desc": " 对话框客户区域。\r\n", + "desc": " 对话框客户区域。\n\n", "name": "WIDGET_TYPE_DIALOG_CLIENT" }, { - "desc": " 滑块控件。\r\n", + "desc": " 滑块控件。\n\n", "name": "WIDGET_TYPE_SLIDER" }, { - "desc": " 视图控件。\r\n", + "desc": " 视图控件。\n\n", "name": "WIDGET_TYPE_VIEW" }, { - "desc": " 下拉选择框控件。\r\n", + "desc": " 下拉选择框控件。\n\n", "name": "WIDGET_TYPE_COMBO_BOX" }, { - "desc": " 下拉选择框的列表项控件。\r\n", + "desc": " 下拉选择框的列表项控件。\n\n", "name": "WIDGET_TYPE_COMBO_BOX_ITEM" }, { - "desc": " 滑动视图控件。\r\n", + "desc": " 滑动视图控件。\n\n", "name": "WIDGET_TYPE_SLIDE_VIEW" }, { - "desc": " 滑动视图的指示器控件。\r\n", + "desc": " 滑动视图的指示器控件。\n\n", "name": "WIDGET_TYPE_SLIDE_INDICATOR" }, { - "desc": " 滑动视图的指示器控件(圆弧显示)。\r\n", + "desc": " 滑动视图的指示器控件(圆弧显示)。\n\n", "name": "WIDGET_TYPE_SLIDE_INDICATOR_ARC" }, { - "desc": " 多页控件。\r\n", + "desc": " 多页控件。\n\n", "name": "WIDGET_TYPE_PAGES" }, { - "desc": " 标签按钮控件。\r\n", + "desc": " 标签按钮控件。\n\n", "name": "WIDGET_TYPE_TAB_BUTTON" }, { - "desc": " 标签控件。\r\n", + "desc": " 标签控件。\n\n", "name": "WIDGET_TYPE_TAB_CONTROL" }, { - "desc": " 标签按钮分组控件。\r\n", + "desc": " 标签按钮分组控件。\n\n", "name": "WIDGET_TYPE_TAB_BUTTON_GROUP" }, { - "desc": " 按钮分组控件。\r\n", + "desc": " 按钮分组控件。\n\n", "name": "WIDGET_TYPE_BUTTON_GROUP" }, { - "desc": " 候选字控件。\r\n", + "desc": " 候选字控件。\n\n", "name": "WIDGET_TYPE_CANDIDATES" }, { - "desc": " 数值编辑控件。\r\n", + "desc": " 数值编辑控件。\n\n", "name": "WIDGET_TYPE_SPIN_BOX" }, { - "desc": " 拖动块控件。\r\n", + "desc": " 拖动块控件。\n\n", "name": "WIDGET_TYPE_DRAGGER" }, { - "desc": " 滚动条控件。\r\n", + "desc": " 滚动条控件。\n\n", "name": "WIDGET_TYPE_SCROLL_BAR" }, { - "desc": " 桌面版滚动条控件。\r\n", + "desc": " 桌面版滚动条控件。\n\n", "name": "WIDGET_TYPE_SCROLL_BAR_DESKTOP" }, { - "desc": " 移动版滚动条控件。\r\n", + "desc": " 移动版滚动条控件。\n\n", "name": "WIDGET_TYPE_SCROLL_BAR_MOBILE" }, { - "desc": " 滚动视图控件。\r\n", + "desc": " 滚动视图控件。\n\n", "name": "WIDGET_TYPE_SCROLL_VIEW" }, { - "desc": " 列表视图控件。\r\n", + "desc": " 列表视图控件。\n\n", "name": "WIDGET_TYPE_LIST_VIEW" }, { - "desc": " 水平列表视图控件。\r\n", + "desc": " 水平列表视图控件。\n\n", "name": "WIDGET_TYPE_LIST_VIEW_H" }, { - "desc": " 列表项控件。\r\n", + "desc": " 列表项控件。\n\n", "name": "WIDGET_TYPE_LIST_ITEM" }, { - "desc": " 颜色选择器控件。\r\n", + "desc": " 颜色选择器控件。\n\n", "name": "WIDGET_TYPE_COLOR_PICKER" }, { - "desc": " 颜色选择器组件控件。\r\n", + "desc": " 颜色选择器组件控件。\n\n", "name": "WIDGET_TYPE_COLOR_COMPONENT" }, { - "desc": " 颜色块控件。\r\n", + "desc": " 颜色块控件。\n\n", "name": "WIDGET_TYPE_COLOR_TILE" }, { - "desc": " 富文本控件。\r\n", + "desc": " 富文本控件。\n\n", "name": "WIDGET_TYPE_RICH_TEXT" }, { - "desc": " AppBar控件。\r\n", + "desc": " AppBar控件。\n\n", "name": "WIDGET_TYPE_APP_BAR" }, { - "desc": " 网格控件。\r\n", + "desc": " 网格控件。\n\n", "name": "WIDGET_TYPE_GRID" }, { - "desc": " 网格项目控件。\r\n", + "desc": " 网格项目控件。\n\n", "name": "WIDGET_TYPE_GRID_ITEM" }, { - "desc": " 行控件。\r\n", + "desc": " 行控件。\n\n", "name": "WIDGET_TYPE_ROW" }, { - "desc": " 列控件。\r\n", + "desc": " 列控件。\n\n", "name": "WIDGET_TYPE_COLUMN" }, { - "desc": " 电阻屏校准窗口。\r\n", + "desc": " 电阻屏校准窗口。\n\n", "name": "WIDGET_TYPE_CALIBRATION_WIN" } ], @@ -11766,22 +11804,22 @@ }, { "type": "enum", - "desc": " 窗口的生命周期常量定义。\r\n", + "desc": " 窗口的生命周期常量定义。\n\n", "consts": [ { - "desc": " 初始状态。\r\n", + "desc": " 初始状态。\n\n", "name": "WINDOW_STAGE_NONE" }, { - "desc": " 创建完成。\r\n", + "desc": " 创建完成。\n\n", "name": "WINDOW_STAGE_CREATED" }, { - "desc": " 窗口已经打开(窗口打开动画完成后,处于该状态,直到窗口被关闭)\r\n", + "desc": " 窗口已经打开(窗口打开动画完成后,处于该状态,直到窗口被关闭)\n\n", "name": "WINDOW_STAGE_OPENED" }, { - "desc": " 窗口已关闭。\r\n", + "desc": " 窗口已关闭。\n\n", "name": "WINDOW_STAGE_CLOSED" } ], @@ -11795,18 +11833,18 @@ }, { "type": "enum", - "desc": " 窗口的closable常量定义。\r\n", + "desc": " 窗口的closable常量定义。\n\n", "consts": [ { - "desc": " 窗口可关闭。\r\n", + "desc": " 窗口可关闭。\n\n", "name": "WINDOW_CLOSABLE_YES" }, { - "desc": " 窗口不可关闭。\r\n", + "desc": " 窗口不可关闭。\n\n", "name": "WINDOW_CLOSABLE_NO" }, { - "desc": " 窗口需要确认后才能关闭。\r\n", + "desc": " 窗口需要确认后才能关闭。\n\n", "name": "WINDOW_CLOSABLE_CONFIRM" } ], @@ -11820,30 +11858,30 @@ }, { "type": "enum", - "desc": " 位图标志常量定义。\r\n", + "desc": " 位图标志常量定义。\n\n", "consts": [ { - "desc": " 无特殊标志。\r\n", + "desc": " 无特殊标志。\n\n", "name": "BITMAP_FLAG_NONE" }, { - "desc": " 不透明图片。\r\n", + "desc": " 不透明图片。\n\n", "name": "BITMAP_FLAG_OPAQUE" }, { - "desc": " 图片内容不会变化。\r\n", + "desc": " 图片内容不会变化。\n\n", "name": "BITMAP_FLAG_IMMUTABLE" }, { - "desc": " OpenGL Texture, bitmap的id是有效的texture id。\r\n", + "desc": " OpenGL Texture, bitmap的id是有效的texture id。\n\n", "name": "BITMAP_FLAG_TEXTURE" }, { - "desc": " 如果是MUTABLE的图片,更新时需要设置此标志,底层可能会做特殊处理,比如更新图片到GPU。\r\n", + "desc": " 如果是MUTABLE的图片,更新时需要设置此标志,底层可能会做特殊处理,比如更新图片到GPU。\n\n", "name": "BITMAP_FLAG_CHANGED" }, { - "desc": " 预乘alpha。\r\n", + "desc": " 预乘alpha。\n\n", "name": "BITMAP_FLAG_PREMULTI_ALPHA" } ], @@ -11869,7 +11907,7 @@ "annotation": { "scriptable": true }, - "desc": " 获取子控件的个数。\r\n\r\n", + "desc": " 获取子控件的个数。\n\n\n", "name": "widget_count_children", "return": { "type": "int32_t", @@ -11892,7 +11930,7 @@ "annotation": { "scriptable": true }, - "desc": " 获取指定索引的子控件。\r\n\r\n", + "desc": " 获取指定索引的子控件。\n\n\n", "name": "widget_get_child", "return": { "type": "widget_t*", @@ -11910,7 +11948,7 @@ "annotation": { "scriptable": true }, - "desc": " 获取控件在父控件中的索引编号。\r\n\r\n", + "desc": " 获取控件在父控件中的索引编号。\n\n\n", "name": "widget_index_of", "return": { "type": "int32_t", @@ -11938,7 +11976,7 @@ "annotation": { "scriptable": true }, - "desc": " 移动控件。\r\n\r\n", + "desc": " 移动控件。\n\n\n", "name": "widget_move", "return": { "type": "ret_t", @@ -11966,7 +12004,7 @@ "annotation": { "scriptable": true }, - "desc": " 调整控件的大小。\r\n\r\n", + "desc": " 调整控件的大小。\n\n\n", "name": "widget_resize", "return": { "type": "ret_t", @@ -12004,7 +12042,7 @@ "annotation": { "scriptable": true }, - "desc": " 移动控件并调整控件的大小。\r\n\r\n", + "desc": " 移动控件并调整控件的大小。\n\n\n", "name": "widget_move_resize", "return": { "type": "ret_t", @@ -12027,7 +12065,7 @@ "annotation": { "scriptable": true }, - "desc": " 设置控件的值。\r\n 只是对widget\\_set\\_prop的包装,值的意义由子类控件决定。\r\n\r\n", + "desc": " 设置控件的值。\n 只是对widget\\_set\\_prop的包装,值的意义由子类控件决定。\n\n\n", "name": "widget_set_value", "return": { "type": "ret_t", @@ -12055,7 +12093,7 @@ "annotation": { "scriptable": true }, - "desc": " 设置控件的值(以动画形式变化到指定的值)。\r\n 只是对widget\\_set\\_prop的包装,值的意义由子类控件决定。\r\n\r\n", + "desc": " 设置控件的值(以动画形式变化到指定的值)。\n 只是对widget\\_set\\_prop的包装,值的意义由子类控件决定。\n\n\n", "name": "widget_animate_value_to", "return": { "type": "ret_t", @@ -12078,7 +12116,7 @@ "annotation": { "scriptable": true }, - "desc": " 增加控件的值。\r\n 只是对widget\\_set\\_prop的包装,值的意义由子类控件决定。\r\n\r\n", + "desc": " 增加控件的值。\n 只是对widget\\_set\\_prop的包装,值的意义由子类控件决定。\n\n\n", "name": "widget_add_value", "return": { "type": "ret_t", @@ -12099,7 +12137,7 @@ } ], "annotation": {}, - "desc": " 设置控件的文本。\r\n 只是对widget\\_set\\_prop的包装,文本的意义由子类控件决定。\r\n\r\n", + "desc": " 设置控件的文本。\n 只是对widget\\_set\\_prop的包装,文本的意义由子类控件决定。\n\n\n", "name": "widget_set_text", "return": { "type": "ret_t", @@ -12122,7 +12160,7 @@ "annotation": { "scriptable": true }, - "desc": " 启用指定的主题。\r\n\r\n", + "desc": " 启用指定的主题。\n\n\n", "name": "widget_use_style", "return": { "type": "ret_t", @@ -12145,7 +12183,7 @@ "annotation": { "scriptable": true }, - "desc": " 设置控件的文本。\r\n 只是对widget\\_set\\_prop的包装,文本的意义由子类控件决定。\r\n\r\n", + "desc": " 设置控件的文本。\n 只是对widget\\_set\\_prop的包装,文本的意义由子类控件决定。\n\n\n", "name": "widget_set_text_utf8", "alias": "set_text", "return": { @@ -12169,7 +12207,7 @@ "annotation": { "scriptable": true }, - "desc": " 获取翻译之后的文本,然后调用widget_set_text。\r\n\r\n", + "desc": " 获取翻译之后的文本,然后调用widget_set_text。\n\n\n", "name": "widget_set_tr_text", "return": { "type": "ret_t", @@ -12187,7 +12225,7 @@ "annotation": { "scriptable": true }, - "desc": " 获取控件的值。只是对widget\\_get\\_prop的包装,值的意义由子类控件决定。\r\n\r\n", + "desc": " 获取控件的值。只是对widget\\_get\\_prop的包装,值的意义由子类控件决定。\n\n\n", "name": "widget_get_value", "return": { "type": "int32_t", @@ -12205,7 +12243,7 @@ "annotation": { "scriptable": true }, - "desc": " 获取控件的文本。\r\n 只是对widget\\_get\\_prop的包装,文本的意义由子类控件决定。\r\n\r\n", + "desc": " 获取控件的文本。\n 只是对widget\\_get\\_prop的包装,文本的意义由子类控件决定。\n\n\n", "name": "widget_get_text", "return": { "type": "wchar_t*", @@ -12226,7 +12264,7 @@ } ], "annotation": {}, - "desc": " 将屏幕坐标转换成控件内的本地坐标,即相对于控件左上角的坐标。\r\n\r\n", + "desc": " 将屏幕坐标转换成控件内的本地坐标,即相对于控件左上角的坐标。\n\n\n", "name": "widget_to_local", "return": { "type": "ret_t", @@ -12247,7 +12285,7 @@ } ], "annotation": {}, - "desc": " 将控件内的本地坐标转换成全局坐标。\r\n\r\n", + "desc": " 将控件内的本地坐标转换成全局坐标。\n\n\n", "name": "widget_to_global", "return": { "type": "ret_t", @@ -12268,7 +12306,7 @@ } ], "annotation": {}, - "desc": " 将控件内的本地坐标转换成屏幕上的坐标。\r\n\r\n", + "desc": " 将控件内的本地坐标转换成屏幕上的坐标。\n\n\n", "name": "widget_to_screen", "return": { "type": "ret_t", @@ -12291,13 +12329,36 @@ "annotation": { "scriptable": true }, - "desc": " 设置控件的名称。\r\n\r\n", + "desc": " 设置控件的名称。\n\n\n", "name": "widget_set_name", "return": { "type": "ret_t", "desc": "返回RET_OK表示成功,否则表示失败。" } }, + { + "params": [ + { + "type": "widget_t*", + "name": "widget", + "desc": "控件对象。" + }, + { + "type": "char*", + "name": "name", + "desc": "主题的名称。" + } + ], + "annotation": { + "scriptable": true + }, + "desc": " 设置theme的名称,用于动态切换主题。名称与当前主题名称相同,则重新加载全部资源。\n\n > 目前只支持带有文件系统的平台。\n\n\n\n", + "name": "widget_set_theme", + "return": { + "type": "ret_t", + "desc": "返回RET_OK表示成功,否则表示失败。" + } + }, { "params": [ { @@ -12314,7 +12375,7 @@ "annotation": { "scriptable": true }, - "desc": " 设置鼠标指针的图片名。\r\n\r\n", + "desc": " 设置鼠标指针的图片名。\n\n\n", "name": "widget_set_cursor", "return": { "type": "ret_t", @@ -12337,7 +12398,7 @@ "annotation": { "scriptable": true }, - "desc": " 设置控件的动画参数(仅用于在UI文件使用)。\r\n 请参考[控件动画](https://github.com/zlgopen/awtk/blob/master/docs/widget_animator.md)\r\n\r\n\r\n", + "desc": " 设置控件的动画参数(仅用于在UI文件使用)。\n 请参考[控件动画](https://github.com/zlgopen/awtk/blob/master/docs/widget_animator.md)\n\n\n\n", "name": "widget_set_animation", "return": { "type": "ret_t", @@ -12360,7 +12421,7 @@ "annotation": { "scriptable": true }, - "desc": " 创建动画。\r\n 请参考[控件动画](https://github.com/zlgopen/awtk/blob/master/docs/widget_animator.md)\r\n\r\n * 除非指定auto_start=false,动画创建后自动启动。\r\n * 除非指定auto_destroy=false,动画播放完成后自动销毁。\r\n\r\n\r\n", + "desc": " 创建动画。\n 请参考[控件动画](https://github.com/zlgopen/awtk/blob/master/docs/widget_animator.md)\n\n * 除非指定auto_start=false,动画创建后自动启动。\n * 除非指定auto_destroy=false,动画播放完成后自动销毁。\n\n\n\n", "name": "widget_create_animator", "return": { "type": "ret_t", @@ -12383,7 +12444,7 @@ "annotation": { "scriptable": true }, - "desc": " 播放动画。\r\n 请参考[控件动画](https://github.com/zlgopen/awtk/blob/master/docs/widget_animator.md)\r\n\r\n * 1.widget为NULL时,播放所有名称为name的动画。\r\n * 2.name为NULL时,播放所有widget相关的动画。\r\n * 3.widget和name均为NULL,播放所有动画。\r\n\r\n\r\n", + "desc": " 播放动画。\n 请参考[控件动画](https://github.com/zlgopen/awtk/blob/master/docs/widget_animator.md)\n\n * 1.widget为NULL时,播放所有名称为name的动画。\n * 2.name为NULL时,播放所有widget相关的动画。\n * 3.widget和name均为NULL,播放所有动画。\n\n\n\n", "name": "widget_start_animator", "return": { "type": "ret_t", @@ -12411,7 +12472,7 @@ "annotation": { "scriptable": true }, - "desc": " 设置动画的时间倍率,<0: 时间倒退,<1: 时间变慢,>1 时间变快。\r\n 请参考[控件动画](https://github.com/zlgopen/awtk/blob/master/docs/widget_animator.md)\r\n\r\n * 1.widget为NULL时,设置所有名称为name的动画的时间倍率。\r\n * 2.name为NULL时,设置所有widget相关的动画的时间倍率。\r\n * 3.widget和name均为NULL,设置所有动画的时间倍率。\r\n\r\n\r\n", + "desc": " 设置动画的时间倍率,<0: 时间倒退,<1: 时间变慢,>1 时间变快。\n 请参考[控件动画](https://github.com/zlgopen/awtk/blob/master/docs/widget_animator.md)\n\n * 1.widget为NULL时,设置所有名称为name的动画的时间倍率。\n * 2.name为NULL时,设置所有widget相关的动画的时间倍率。\n * 3.widget和name均为NULL,设置所有动画的时间倍率。\n\n\n\n", "name": "widget_set_animator_time_scale", "return": { "type": "ret_t", @@ -12434,7 +12495,7 @@ "annotation": { "scriptable": true }, - "desc": " 暂停动画。\r\n 请参考[控件动画](https://github.com/zlgopen/awtk/blob/master/docs/widget_animator.md)\r\n\r\n * 1.widget为NULL时,暂停所有名称为name的动画。\r\n * 2.name为NULL时,暂停所有widget相关的动画。\r\n * 3.widget和name均为NULL,暂停所有动画。\r\n\r\n\r\n", + "desc": " 暂停动画。\n 请参考[控件动画](https://github.com/zlgopen/awtk/blob/master/docs/widget_animator.md)\n\n * 1.widget为NULL时,暂停所有名称为name的动画。\n * 2.name为NULL时,暂停所有widget相关的动画。\n * 3.widget和name均为NULL,暂停所有动画。\n\n\n\n", "name": "widget_pause_animator", "return": { "type": "ret_t", @@ -12457,7 +12518,7 @@ "annotation": { "scriptable": true }, - "desc": " 查找指定名称的动画。\r\n\r\n\r\n", + "desc": " 查找指定名称的动画。\n\n\n\n", "name": "widget_find_animator", "return": { "type": "widget_animator_t*", @@ -12480,7 +12541,7 @@ "annotation": { "scriptable": true }, - "desc": " 停止动画(控件的相应属性回归原位)。\r\n 请参考[控件动画](https://github.com/zlgopen/awtk/blob/master/docs/widget_animator.md)\r\n\r\n * 1.widget为NULL时,停止所有名称为name的动画。\r\n * 2.name为NULL时,停止所有widget相关的动画。\r\n * 3.widget和name均为NULL,停止所有动画。\r\n\r\n\r\n", + "desc": " 停止动画(控件的相应属性回归原位)。\n 请参考[控件动画](https://github.com/zlgopen/awtk/blob/master/docs/widget_animator.md)\n\n * 1.widget为NULL时,停止所有名称为name的动画。\n * 2.name为NULL时,停止所有widget相关的动画。\n * 3.widget和name均为NULL,停止所有动画。\n\n\n\n", "name": "widget_stop_animator", "return": { "type": "ret_t", @@ -12503,7 +12564,7 @@ "annotation": { "scriptable": true }, - "desc": " 销毁动画。\r\n 请参考[控件动画](https://github.com/zlgopen/awtk/blob/master/docs/widget_animator.md)\r\n\r\n * 1.widget为NULL时,销毁所有名称为name的动画。\r\n * 2.name为NULL时,销毁所有widget相关的动画。\r\n * 3.widget和name均为NULL,销毁所有动画。\r\n\r\n\r\n", + "desc": " 销毁动画。\n 请参考[控件动画](https://github.com/zlgopen/awtk/blob/master/docs/widget_animator.md)\n\n * 1.widget为NULL时,销毁所有名称为name的动画。\n * 2.name为NULL时,销毁所有widget相关的动画。\n * 3.widget和name均为NULL,销毁所有动画。\n\n\n\n", "name": "widget_destroy_animator", "return": { "type": "ret_t", @@ -12526,7 +12587,7 @@ "annotation": { "scriptable": true }, - "desc": " 设置控件的可用性。\r\n\r\n", + "desc": " 设置控件的可用性。\n\n\n", "name": "widget_set_enable", "return": { "type": "ret_t", @@ -12549,7 +12610,7 @@ "annotation": { "scriptable": true }, - "desc": " 设置控件是否启用反馈。\r\n\r\n", + "desc": " 设置控件是否启用反馈。\n\n\n", "name": "widget_set_feedback", "return": { "type": "ret_t", @@ -12572,7 +12633,7 @@ "annotation": { "scriptable": true }, - "desc": " 设置控件的floating标志。\r\n\r\n", + "desc": " 设置控件的floating标志。\n\n\n", "name": "widget_set_floating", "return": { "type": "ret_t", @@ -12595,7 +12656,7 @@ "annotation": { "scriptable": true }, - "desc": " 设置控件的是否聚焦。\r\n\r\n", + "desc": " 设置控件的是否聚焦。\n\n\n", "name": "widget_set_focused", "return": { "type": "ret_t", @@ -12616,7 +12677,7 @@ } ], "annotation": {}, - "desc": " 设置控件的状态。\r\n\r\n", + "desc": " 设置控件的状态。\n\n\n", "name": "widget_set_state", "return": { "type": "ret_t", @@ -12637,7 +12698,7 @@ } ], "annotation": {}, - "desc": " 设置控件的不透明度。\r\n\r\n>在嵌入式平台,半透明效果会使性能大幅下降,请谨慎使用。\r\n\r\n\r\n", + "desc": " 设置控件的不透明度。\n\n>在嵌入式平台,半透明效果会使性能大幅下降,请谨慎使用。\n\n\n\n", "name": "widget_set_opacity", "return": { "type": "ret_t", @@ -12653,7 +12714,7 @@ } ], "annotation": {}, - "desc": " 销毁全部子控件。\r\n\r\n", + "desc": " 销毁全部子控件。\n\n\n", "name": "widget_destroy_children", "return": { "type": "ret_t", @@ -12674,7 +12735,7 @@ } ], "annotation": {}, - "desc": " 加入一个子控件。\r\n\r\n", + "desc": " 加入一个子控件。\n\n\n", "name": "widget_add_child", "return": { "type": "ret_t", @@ -12695,7 +12756,7 @@ } ], "annotation": {}, - "desc": " 移出指定的子控件(并不销毁)。\r\n\r\n", + "desc": " 移出指定的子控件(并不销毁)。\n\n\n", "name": "widget_remove_child", "return": { "type": "ret_t", @@ -12721,7 +12782,7 @@ } ], "annotation": {}, - "desc": " 插入子控件到指定的位置。\r\n\r\n", + "desc": " 插入子控件到指定的位置。\n\n\n", "name": "widget_insert_child", "return": { "type": "ret_t", @@ -12742,7 +12803,7 @@ } ], "annotation": {}, - "desc": " 调整控件在父控件中的位置序数。\r\n\r\n", + "desc": " 调整控件在父控件中的位置序数。\n\n\n", "name": "widget_restack", "return": { "type": "ret_t", @@ -12765,7 +12826,7 @@ "annotation": { "scriptable": true }, - "desc": " 查找指定名称的子控件(同widget_lookup(widget, name, FALSE))。\r\n\r\n", + "desc": " 查找指定名称的子控件(同widget_lookup(widget, name, FALSE))。\n\n\n", "name": "widget_child", "return": { "type": "widget_t*", @@ -12793,7 +12854,7 @@ "annotation": { "scriptable": true }, - "desc": " 查找指定名称的子控件(返回第一个)。\r\n\r\n", + "desc": " 查找指定名称的子控件(返回第一个)。\n\n\n", "name": "widget_lookup", "return": { "type": "widget_t*", @@ -12821,7 +12882,7 @@ "annotation": { "scriptable": true }, - "desc": " 查找指定类型的子控件(返回第一个)。\r\n\r\n", + "desc": " 查找指定类型的子控件(返回第一个)。\n\n\n", "name": "widget_lookup_by_type", "return": { "type": "widget_t*", @@ -12849,7 +12910,7 @@ "annotation": { "scriptable": true }, - "desc": " 设置控件的可见性。\r\n\r\n", + "desc": " 设置控件的可见性。\n\n\n", "name": "widget_set_visible", "return": { "type": "ret_t", @@ -12872,7 +12933,7 @@ "annotation": { "scriptable": true }, - "desc": " 设置控件的可见性(不触发repaint和relayout)。\r\n\r\n", + "desc": " 设置控件的可见性(不触发repaint和relayout)。\n\n\n", "name": "widget_set_visible_only", "return": { "type": "ret_t", @@ -12895,7 +12956,7 @@ "annotation": { "scriptable": true }, - "desc": " 设置控件是否接受用户事件。\r\n\r\n", + "desc": " 设置控件是否接受用户事件。\n\n\n", "name": "widget_set_sensitive", "return": { "type": "ret_t", @@ -12928,7 +12989,7 @@ "annotation": { "scriptable": "custom" }, - "desc": " 注册指定事件的处理函数。\r\n 使用示例:\r\n\r\n ```c\r\n widget_t* ok = button_create(win, 10, 10, 80, 30);\r\n widget_on(ok, EVT_CLICK, on_click, NULL);\r\n\r\n ```\r\n\r\n", + "desc": " 注册指定事件的处理函数。\n 使用示例:\n\n ```c\n widget_t* ok = button_create(win, 10, 10, 80, 30);\n widget_on(ok, EVT_CLICK, on_click, NULL);\n\n ```\n\n\n", "name": "widget_on", "return": { "type": "int32_t", @@ -12951,7 +13012,7 @@ "annotation": { "scriptable": true }, - "desc": " 注销指定事件的处理函数。\r\n\r\n", + "desc": " 注销指定事件的处理函数。\n\n\n", "name": "widget_off", "return": { "type": "ret_t", @@ -12987,7 +13048,7 @@ } ], "annotation": {}, - "desc": " 为指定名称的子控件注册指定事件的处理函数。\r\n 递归查找指定名称的子控件,然后为其注册指定事件的处理函数。\r\n\r\n", + "desc": " 为指定名称的子控件注册指定事件的处理函数。\n 递归查找指定名称的子控件,然后为其注册指定事件的处理函数。\n\n\n", "name": "widget_child_on", "return": { "type": "int32_t", @@ -13018,7 +13079,7 @@ } ], "annotation": {}, - "desc": " 注销指定事件的处理函数。\r\n 仅用于辅助实现脚本绑定。\r\n\r\n", + "desc": " 注销指定事件的处理函数。\n 仅用于辅助实现脚本绑定。\n\n\n", "name": "widget_off_by_func", "return": { "type": "ret_t", @@ -13039,7 +13100,7 @@ } ], "annotation": {}, - "desc": " 请求重绘指定的区域,如果widget->dirty已经为TRUE,直接返回。\r\n\r\n", + "desc": " 请求重绘指定的区域,如果widget->dirty已经为TRUE,直接返回。\n\n\n", "name": "widget_invalidate", "return": { "type": "ret_t", @@ -13062,7 +13123,7 @@ "annotation": { "scriptable": true }, - "desc": " 请求强制重绘控件。\r\n\r\n", + "desc": " 请求强制重绘控件。\n\n\n", "name": "widget_invalidate_force", "return": { "type": "ret_t", @@ -13085,7 +13146,7 @@ "annotation": { "private": true }, - "desc": " 绘制控件到一个canvas上。\r\n\r\n", + "desc": " 绘制控件到一个canvas上。\n\n\n", "name": "widget_paint", "return": { "type": "ret_t", @@ -13106,7 +13167,7 @@ } ], "annotation": {}, - "desc": " 分发一个事件。\r\n\r\n", + "desc": " 分发一个事件。\n\n\n", "name": "widget_dispatch", "return": { "type": "ret_t", @@ -13132,7 +13193,7 @@ } ], "annotation": {}, - "desc": " 获取控件指定属性的值。\r\n\r\n", + "desc": " 获取控件指定属性的值。\n\n\n", "name": "widget_get_prop", "return": { "type": "ret_t", @@ -13158,7 +13219,7 @@ } ], "annotation": {}, - "desc": " 获取控件指定属性的缺省值(在持久化控件时,无需保存缺省值)。\r\n\r\n", + "desc": " 获取控件指定属性的缺省值(在持久化控件时,无需保存缺省值)。\n\n\n", "name": "widget_get_prop_default_value", "return": { "type": "ret_t", @@ -13184,7 +13245,7 @@ } ], "annotation": {}, - "desc": " 设置控件指定属性的值。\r\n\r\n", + "desc": " 设置控件指定属性的值。\n\n\n", "name": "widget_set_prop", "return": { "type": "ret_t", @@ -13212,7 +13273,7 @@ "annotation": { "scriptable": true }, - "desc": " 设置字符串格式的属性。\r\n\r\n", + "desc": " 设置字符串格式的属性。\n\n\n", "name": "widget_set_prop_str", "return": { "type": "ret_t", @@ -13240,7 +13301,7 @@ "annotation": { "scriptable": true }, - "desc": " 获取字符串格式的属性。\r\n\r\n", + "desc": " 获取字符串格式的属性。\n\n\n", "name": "widget_get_prop_str", "return": { "type": "const char*", @@ -13266,7 +13327,7 @@ } ], "annotation": {}, - "desc": " 设置指针格式的属性。\r\n\r\n", + "desc": " 设置指针格式的属性。\n\n\n", "name": "widget_set_prop_pointer", "return": { "type": "ret_t", @@ -13287,7 +13348,7 @@ } ], "annotation": {}, - "desc": " 获取指针格式的属性。\r\n\r\n", + "desc": " 获取指针格式的属性。\n\n\n", "name": "widget_get_prop_pointer", "return": { "type": "void*", @@ -13315,7 +13376,7 @@ "annotation": { "scriptable": true }, - "desc": " 设置整数格式的属性。\r\n\r\n", + "desc": " 设置整数格式的属性。\n\n\n", "name": "widget_set_prop_int", "return": { "type": "ret_t", @@ -13343,7 +13404,7 @@ "annotation": { "scriptable": true }, - "desc": " 获取整数格式的属性。\r\n\r\n", + "desc": " 获取整数格式的属性。\n\n\n", "name": "widget_get_prop_int", "return": { "type": "int32_t", @@ -13371,7 +13432,7 @@ "annotation": { "scriptable": true }, - "desc": " 设置布尔格式的属性。\r\n\r\n", + "desc": " 设置布尔格式的属性。\n\n\n", "name": "widget_set_prop_bool", "return": { "type": "ret_t", @@ -13399,7 +13460,7 @@ "annotation": { "scriptable": true }, - "desc": " 获取布尔格式的属性。\r\n\r\n", + "desc": " 获取布尔格式的属性。\n\n\n", "name": "widget_get_prop_bool", "return": { "type": "bool_t", @@ -13417,7 +13478,7 @@ "annotation": { "scriptable": true }, - "desc": " 判断当前控件所在的窗口是否已经打开。\r\n\r\n", + "desc": " 判断当前控件所在的窗口是否已经打开。\n\n\n", "name": "widget_is_window_opened", "return": { "type": "bool_t", @@ -13435,7 +13496,7 @@ "annotation": { "scriptable": true }, - "desc": " 判断当前控件是否是窗口。\r\n\r\n", + "desc": " 判断当前控件是否是窗口。\n\n\n", "name": "widget_is_window", "return": { "type": "bool_t", @@ -13453,7 +13514,7 @@ "annotation": { "scriptable": true }, - "desc": " 判断当前控件是否是设计窗口。\r\n\r\n", + "desc": " 判断当前控件是否是设计窗口。\n\n\n", "name": "widget_is_designing_window", "return": { "type": "bool_t", @@ -13471,7 +13532,7 @@ "annotation": { "scriptable": true }, - "desc": " 判断当前控件是否是窗口管理器。\r\n\r\n", + "desc": " 判断当前控件是否是窗口管理器。\n\n\n", "name": "widget_is_window_manager", "return": { "type": "bool_t", @@ -13492,7 +13553,7 @@ } ], "annotation": {}, - "desc": " 让指定子控件抓住事件。\r\n 控件抓住之后,事件直接分发给该控件。\r\n\r\n", + "desc": " 让指定子控件抓住事件。\n 控件抓住之后,事件直接分发给该控件。\n\n\n", "name": "widget_grab", "return": { "type": "ret_t", @@ -13513,7 +13574,7 @@ } ], "annotation": {}, - "desc": " 让指定子控件放弃抓住事件。\r\n\r\n", + "desc": " 让指定子控件放弃抓住事件。\n\n\n", "name": "widget_ungrab", "return": { "type": "ret_t", @@ -13541,7 +13602,7 @@ "annotation": { "scriptable": "custom" }, - "desc": " 遍历当前控件及子控件。\r\n\r\n", + "desc": " 遍历当前控件及子控件。\n\n\n", "name": "widget_foreach", "return": { "type": "ret_t", @@ -13559,7 +13620,7 @@ "annotation": { "scriptable": true }, - "desc": " 获取当前控件所在的窗口。\r\n\r\n", + "desc": " 获取当前控件所在的窗口。\n\n\n", "name": "widget_get_window", "return": { "type": "widget_t*", @@ -13577,7 +13638,7 @@ "annotation": { "scriptable": true }, - "desc": " 获取当前的窗口管理器。\r\n\r\n", + "desc": " 获取当前的窗口管理器。\n\n\n", "name": "widget_get_window_manager", "return": { "type": "widget_t*", @@ -13595,7 +13656,7 @@ "annotation": { "scriptable": true }, - "desc": " 获取当前控件的类型名称。\r\n\r\n", + "desc": " 获取当前控件的类型名称。\n\n\n", "name": "widget_get_type", "return": { "type": "char*", @@ -13618,7 +13679,7 @@ "annotation": { "scriptable": true }, - "desc": " clone。\r\n\r\n", + "desc": " clone。\n\n\n", "name": "widget_clone", "return": { "type": "widget_t*", @@ -13641,7 +13702,7 @@ "annotation": { "scriptable": true }, - "desc": " 判断两个widget是否相同。\r\n\r\n", + "desc": " 判断两个widget是否相同。\n\n\n", "name": "widget_equal", "return": { "type": "bool_t", @@ -13667,7 +13728,7 @@ } ], "annotation": {}, - "desc": " 创建定时器。\r\n 该定时器在控件销毁时自动销毁,**timer\\_info\\_t**的ctx为widget。\r\n 如果定时器的生命周期与控件无关,请直接调用**timer_add**,以避免不必要的内存开销。\r\n\r\n 使用示例:\r\n\r\n ```c\r\n static ret_t digit_clock_on_timer(const timer_info_t* info) {\r\n widget_t* widget = WIDGET(info->ctx);\r\n\r\n return RET_REPEAT;\r\n }\r\n ...\r\n widget_add_timer(widget, digit_clock_on_timer, 1000);\r\n\r\n ```\r\n\r\n", + "desc": " 创建定时器。\n 该定时器在控件销毁时自动销毁,**timer\\_info\\_t**的ctx为widget。\n 如果定时器的生命周期与控件无关,请直接调用**timer_add**,以避免不必要的内存开销。\n\n 使用示例:\n\n ```c\n static ret_t digit_clock_on_timer(const timer_info_t* info) {\n widget_t* widget = WIDGET(info->ctx);\n\n return RET_REPEAT;\n }\n ...\n widget_add_timer(widget, digit_clock_on_timer, 1000);\n\n ```\n\n\n", "name": "widget_add_timer", "return": { "type": "uint32_t", @@ -13688,7 +13749,7 @@ } ], "annotation": {}, - "desc": " 创建idle。\r\n 该idle在控件销毁时自动销毁,**idle\\_info\\_t**的ctx为widget。\r\n 如果idle的生命周期与控件无关,请直接调用**idle_add**,以避免不必要的内存开销。\r\n\r\n", + "desc": " 创建idle。\n 该idle在控件销毁时自动销毁,**idle\\_info\\_t**的ctx为widget。\n 如果idle的生命周期与控件无关,请直接调用**idle_add**,以避免不必要的内存开销。\n\n\n", "name": "widget_add_idle", "return": { "type": "uint32_t", @@ -13714,7 +13775,7 @@ } ], "annotation": {}, - "desc": " 加载图片。\r\n 返回的bitmap对象只在当前调用有效,请不保存对bitmap对象的引用。\r\n\r\n\r\n 使用示例:\r\n\r\n ```c\r\n bitmap_t bitmap;\r\n widget_load_image(widget, \"myimage\", &bitmap);\r\n\r\n ```\r\n\r\n", + "desc": " 加载图片。\n 返回的bitmap对象只在当前调用有效,请不保存对bitmap对象的引用。\n\n\n 使用示例:\n\n ```c\n bitmap_t bitmap;\n widget_load_image(widget, \"myimage\", &bitmap);\n\n ```\n\n\n", "name": "widget_load_image", "return": { "type": "ret_t", @@ -13735,7 +13796,7 @@ } ], "annotation": {}, - "desc": " 卸载图片。\r\n\r\n> 一般不需要调用,只有确认在图片不再需要时才调用本函数卸载。\r\n\r\n\r\n", + "desc": " 卸载图片。\n\n> 一般不需要调用,只有确认在图片不再需要时才调用本函数卸载。\n\n\n\n", "name": "widget_unload_image", "return": { "type": "ret_t", @@ -13761,7 +13822,7 @@ } ], "annotation": {}, - "desc": " 加载资源。\r\n\r\n 使用示例:\r\n\r\n ```c\r\n const asset_info_t* asset = widget_load_asset(widget, ASSET_TYPE_IMAGE, \"mysvg\");\r\n ...\r\n widget_unload_asset(widget, asset);\r\n ```\r\n\r\n", + "desc": " 加载资源。\n\n 使用示例:\n\n ```c\n const asset_info_t* asset = widget_load_asset(widget, ASSET_TYPE_IMAGE, \"mysvg\");\n ...\n widget_unload_asset(widget, asset);\n ```\n\n\n", "name": "widget_load_asset", "return": { "type": "const asset_info_t*", @@ -13782,7 +13843,7 @@ } ], "annotation": {}, - "desc": " 卸载资源。\r\n\r\n 使用示例:\r\n\r\n ```c\r\n const asset_info_t* asset = widget_load_asset(widget, ASSET_TYPE_IMAGE, \"mysvg\");\r\n ...\r\n widget_unload_asset(widget, asset);\r\n ```\r\n\r\n", + "desc": " 卸载资源。\n\n 使用示例:\n\n ```c\n const asset_info_t* asset = widget_load_asset(widget, ASSET_TYPE_IMAGE, \"mysvg\");\n ...\n widget_unload_asset(widget, asset);\n ```\n\n\n", "name": "widget_unload_asset", "return": { "type": "ret_t", @@ -13801,7 +13862,7 @@ "cast": true, "scriptable": true }, - "desc": " 转换为widget对象(供脚本语言使用)。\r\n\r\n", + "desc": " 转换为widget对象(供脚本语言使用)。\n\n\n", "name": "widget_cast", "return": { "type": "widget_t*", @@ -13819,7 +13880,7 @@ "annotation": { "scriptable": true }, - "desc": " 销毁控件。\r\n 一般无需直接调用,关闭窗口时,自动销毁相关控件。\r\n\r\n", + "desc": " 销毁控件。\n 一般无需直接调用,关闭窗口时,自动销毁相关控件。\n\n\n", "name": "widget_destroy", "return": { "type": "ret_t", @@ -13837,7 +13898,7 @@ "annotation": { "private": true }, - "desc": " 判断当前控件是否是keyboard。\r\n\r\n> keyboard收到pointer事件时,不会让当前控件失去焦点。\r\n\r\n 在自定义软键盘时,将所有按钮放到一个容器当中,并设置为is_keyboard。\r\n\r\n ```c\r\n widget_set_prop_bool(group, WIDGET_PROP_IS_KEYBOARD, TRUE);\r\n ```\r\n\r\n\r\n", + "desc": " 判断当前控件是否是keyboard。\n\n> keyboard收到pointer事件时,不会让当前控件失去焦点。\n\n 在自定义软键盘时,将所有按钮放到一个容器当中,并设置为is_keyboard。\n\n ```c\n widget_set_prop_bool(group, WIDGET_PROP_IS_KEYBOARD, TRUE);\n ```\n\n\n\n", "name": "widget_is_keyboard", "return": { "type": "ret_t", @@ -13870,7 +13931,7 @@ "annotation": { "private": true }, - "desc": " 帮助子控件实现自己的绘制函数。\r\n\r\n", + "desc": " 帮助子控件实现自己的绘制函数。\n\n\n", "name": "widget_paint_helper", "return": { "type": "ret_t", @@ -13898,7 +13959,7 @@ "annotation": { "private": true }, - "desc": " 根据控件的style绘制边框矩形。\r\n\r\n", + "desc": " 根据控件的style绘制边框矩形。\n\n\n", "name": "widget_stroke_border_rect", "return": { "type": "ret_t", @@ -13931,7 +13992,7 @@ "annotation": { "private": true }, - "desc": " 根据控件的style绘制背景矩形。\r\n\r\n", + "desc": " 根据控件的style绘制背景矩形。\n\n\n", "name": "widget_fill_bg_rect", "return": { "type": "ret_t", @@ -13964,7 +14025,7 @@ "annotation": { "private": true }, - "desc": " 根据控件的style绘制前景矩形。\r\n\r\n", + "desc": " 根据控件的style绘制前景矩形。\n\n\n", "name": "widget_fill_fg_rect", "return": { "type": "ret_t", @@ -13987,7 +14048,7 @@ "annotation": { "private": true }, - "desc": " 从widget的style中取出字体名称、大小和颜色数据,设置到canvas中。\r\n\r\n\r\n", + "desc": " 从widget的style中取出字体名称、大小和颜色数据,设置到canvas中。\n\n\n\n", "name": "widget_prepare_text_style", "return": { "type": "ret_t", @@ -14010,7 +14071,7 @@ "annotation": { "private": true }, - "desc": " 计算文本的宽度。\r\n 字体由控件当前的状态和style决定。\r\n\r\n", + "desc": " 计算文本的宽度。\n 字体由控件当前的状态和style决定。\n\n\n", "name": "widget_measure_text", "return": { "type": "float_t", @@ -14033,7 +14094,7 @@ "annotation": { "private": true }, - "desc": " 递归分发事件到targe控件。\r\n\r\n", + "desc": " 递归分发事件到targe控件。\n\n\n", "name": "widget_dispatch_event_to_target_recursive", "return": { "type": "ret_t", @@ -14066,7 +14127,7 @@ "annotation": { "private": true }, - "desc": " 判断一个点是否在控件内。\r\n\r\n", + "desc": " 判断一个点是否在控件内。\n\n\n", "name": "widget_is_point_in", "return": { "type": "bool_t", @@ -14089,7 +14150,7 @@ "annotation": { "private": true }, - "desc": " 递归的分发一个事件到所有target子控件。\r\n\r\n", + "desc": " 递归的分发一个事件到所有target子控件。\n\n\n", "name": "widget_dispatch_to_target", "return": { "type": "ret_t", @@ -14112,7 +14173,7 @@ "annotation": { "private": true }, - "desc": " 递归的分发一个事件到所有key_target子控件。\r\n\r\n", + "desc": " 递归的分发一个事件到所有key_target子控件。\n\n\n", "name": "widget_dispatch_to_key_target", "return": { "type": "ret_t", @@ -14140,7 +14201,7 @@ "annotation": { "private": true }, - "desc": " 查找x/y坐标对应的子控件。\r\n\r\n", + "desc": " 查找x/y坐标对应的子控件。\n\n\n", "name": "widget_find_target", "return": { "type": "widget*", @@ -14158,7 +14219,7 @@ "annotation": { "private": true }, - "desc": " 语言改变后,重新翻译控件上的文本(包括子控件)。\r\n\r\n", + "desc": " 语言改变后,重新翻译控件上的文本(包括子控件)。\n\n\n", "name": "widget_re_translate_text", "return": { "type": "ret_t", @@ -14206,7 +14267,7 @@ "annotation": { "private": true }, - "desc": " 初始化控件。仅在子类控件构造函数中使用。\r\n\r\n > 请用widget\\_create代替本函数。\r\n\r\n @depreated\r\n\r\n", + "desc": " 初始化控件。仅在子类控件构造函数中使用。\n\n > 请用widget\\_create代替本函数。\n\n @depreated\n\n\n", "name": "widget_init", "return": { "type": "widget_t*", @@ -14249,7 +14310,7 @@ "annotation": { "private": true }, - "desc": " 创建控件。仅在子类控件构造函数中使用。\r\n\r\n", + "desc": " 创建控件。仅在子类控件构造函数中使用。\n\n\n", "name": "widget_create", "return": { "type": "widget_t*", @@ -14267,7 +14328,7 @@ "annotation": { "private": true }, - "desc": " 让控件根据自己当前状态更新style。\r\n\r\n", + "desc": " 让控件根据自己当前状态更新style。\n\n\n", "name": "widget_update_style", "return": { "type": "ret_t", @@ -14285,7 +14346,7 @@ "annotation": { "private": true }, - "desc": " 递归的把父控件的key_target设置为自己。\r\n\r\n\r\n", + "desc": " 递归的把父控件的key_target设置为自己。\n\n\n\n", "name": "widget_set_as_key_target", "return": { "type": "ret_t", @@ -14303,7 +14364,7 @@ "annotation": { "private": true }, - "desc": " 把焦点移动下一个控件。\r\n\r\n>widget必须是当前焦点控件。\r\n\r\n", + "desc": " 把焦点移动下一个控件。\n\n>widget必须是当前焦点控件。\n\n\n", "name": "widget_focus_next", "return": { "type": "ret_t", @@ -14321,7 +14382,7 @@ "annotation": { "private": true }, - "desc": " 把焦点移动前一个控件。\r\n\r\n>widget必须是当前焦点控件。\r\n\r\n", + "desc": " 把焦点移动前一个控件。\n\n>widget必须是当前焦点控件。\n\n\n", "name": "widget_focus_prev", "return": { "type": "ret_t", @@ -14349,7 +14410,7 @@ "annotation": { "private": true }, - "desc": " 把控件的状态转成获取style选要的状态,一般只在子类中使用。\r\n\r\n", + "desc": " 把控件的状态转成获取style选要的状态,一般只在子类中使用。\n\n\n", "name": "widget_get_state_for_style", "return": { "type": "const char*", @@ -14367,7 +14428,7 @@ "annotation": { "scriptable": true }, - "desc": " 布局当前控件及子控件。\r\n\r\n", + "desc": " 布局当前控件及子控件。\n\n\n", "name": "widget_layout", "return": { "type": "ret_t", @@ -14383,7 +14444,7 @@ } ], "annotation": {}, - "desc": " layout子控件。\r\n\r\n", + "desc": " layout子控件。\n\n\n", "name": "widget_layout_children", "return": { "type": "ret_t", @@ -14406,7 +14467,7 @@ "annotation": { "scriptable": true }, - "desc": " 设置控件自己的布局参数。\r\n\r\n", + "desc": " 设置控件自己的布局参数。\n\n\n", "name": "widget_set_self_layout", "return": { "type": "ret_t", @@ -14429,7 +14490,7 @@ "annotation": { "scriptable": true }, - "desc": " 设置子控件的布局参数。\r\n\r\n", + "desc": " 设置子控件的布局参数。\n\n\n", "name": "widget_set_children_layout", "return": { "type": "ret_t", @@ -14467,7 +14528,7 @@ "annotation": { "scriptable": true }, - "desc": " 设置控件自己的布局(缺省布局器)参数(过时,请用widget\\_set\\_self\\_layout)。\r\n\r\n", + "desc": " 设置控件自己的布局(缺省布局器)参数(过时,请用widget\\_set\\_self\\_layout)。\n\n\n", "name": "widget_set_self_layout_params", "return": { "type": "ret_t", @@ -14495,7 +14556,7 @@ "annotation": { "scriptable": true }, - "desc": " 设置整数类型的style。\r\n\r\n", + "desc": " 设置整数类型的style。\n\n\n", "name": "widget_set_style_int", "return": { "type": "ret_t", @@ -14523,7 +14584,7 @@ "annotation": { "scriptable": true }, - "desc": " 设置字符串类型的style。\r\n\r\n", + "desc": " 设置字符串类型的style。\n\n\n", "name": "widget_set_style_str", "return": { "type": "ret_t", @@ -14551,7 +14612,7 @@ "annotation": { "scriptable": true }, - "desc": " 设置颜色类型的style。\r\n\r\n", + "desc": " 设置颜色类型的style。\n\n\n", "name": "widget_set_style_color", "return": { "type": "ret_t", @@ -14561,7 +14622,7 @@ { "params": [], "annotation": {}, - "desc": " 获取canvas对象。\r\n\r\n", + "desc": " 获取canvas对象。\n\n\n", "name": "widget_get_canvas", "return": { "type": "canvas_t*", @@ -14572,119 +14633,119 @@ "events": [ { "name": "EVT_WILL_MOVE", - "desc": " 控件移动前触发。\r\n", + "desc": " 控件移动前触发。\n\n", "type": "event_t" }, { "name": "EVT_MOVE", - "desc": " 控件移动后触发。\r\n", + "desc": " 控件移动后触发。\n\n", "type": "event_t" }, { "name": "EVT_WILL_RESIZE", - "desc": " 控件调整大小前触发。\r\n", + "desc": " 控件调整大小前触发。\n\n", "type": "event_t" }, { "name": "EVT_RESIZE", - "desc": " 控件调整大小后触发。\r\n", + "desc": " 控件调整大小后触发。\n\n", "type": "event_t" }, { "name": "EVT_WILL_MOVE_RESIZE", - "desc": " 控件移动并调整大小前触发。\r\n", + "desc": " 控件移动并调整大小前触发。\n\n", "type": "event_t" }, { "name": "EVT_MOVE_RESIZE", - "desc": " 控件移动并调整大小后触发。\r\n", + "desc": " 控件移动并调整大小后触发。\n\n", "type": "event_t" }, { "name": "EVT_PROP_WILL_CHANGE", - "desc": " 控件属性改变前触发(通过set_prop设置属性,才会触发)。\r\n", + "desc": " 控件属性改变前触发(通过set_prop设置属性,才会触发)。\n\n", "type": "prop_change_event_t" }, { "name": "EVT_PROP_CHANGED", - "desc": " 控件属性改变后触发(通过set_prop设置属性,才会触发)。\r\n", + "desc": " 控件属性改变后触发(通过set_prop设置属性,才会触发)。\n\n", "type": "prop_change_event_t" }, { "name": "EVT_BEFORE_PAINT", - "desc": " 控件绘制前触发。\r\n", + "desc": " 控件绘制前触发。\n\n", "type": "paint_event_t" }, { "name": "EVT_AFTER_PAINT", - "desc": " 控件绘制完成时触发。\r\n", + "desc": " 控件绘制完成时触发。\n\n", "type": "paint_event_t" }, { "name": "EVT_FOCUS", - "desc": " 控件得到焦点时触发。\r\n", + "desc": " 控件得到焦点时触发。\n\n", "type": "event_t" }, { "name": "EVT_BLUR", - "desc": " 控件失去焦点时触发。\r\n", + "desc": " 控件失去焦点时触发。\n\n", "type": "event_t" }, { "name": "EVT_WHEEL", - "desc": " 鼠标滚轮事件。\r\n", + "desc": " 鼠标滚轮事件。\n\n", "type": "wheel_event_t" }, { "name": "EVT_POINTER_LEAVE", - "desc": " 鼠标指针离开控件时触发。\r\n", + "desc": " 鼠标指针离开控件时触发。\n\n", "type": "pointer_event_t" }, { "name": "EVT_POINTER_ENTER", - "desc": " 鼠标指针进入控件时触发。\r\n", + "desc": " 鼠标指针进入控件时触发。\n\n", "type": "pointer_event_t" }, { "name": "EVT_KEY_DOWN", - "desc": " 键按下事件。\r\n", + "desc": " 键按下事件。\n\n", "type": "pointer_event_t" }, { "name": "EVT_KEY_UP", - "desc": " 键释放事件。\r\n", + "desc": " 键释放事件。\n\n", "type": "pointer_event_t" }, { "name": "EVT_POINTER_DOWN", - "desc": " 指针设备按下事件。\r\n", + "desc": " 指针设备按下事件。\n\n", "type": "pointer_event_t" }, { "name": "EVT_POINTER_DOWN_ABORT", - "desc": " 取消指针设备按下事件。\r\n", + "desc": " 取消指针设备按下事件。\n\n", "type": "pointer_event_t" }, { "name": "EVT_POINTER_MOVE", - "desc": " 指针设备移动事件。\r\n", + "desc": " 指针设备移动事件。\n\n", "type": "pointer_event_t" }, { "name": "EVT_POINTER_UP", - "desc": " 指针设备释放事件。\r\n", + "desc": " 指针设备释放事件。\n\n", "type": "pointer_event_t" }, { "name": "EVT_DESTROY", - "desc": " 控件销毁时触发。\r\n", + "desc": " 控件销毁时触发。\n\n", "type": "event_t" } ], "properties": [ { "name": "x", - "desc": " x坐标(相对于父控件的x坐标)。\r\n", + "desc": " x坐标(相对于父控件的x坐标)。\n\n", "type": "xy_t", "annotation": { "set_prop": true, @@ -14697,7 +14758,7 @@ }, { "name": "y", - "desc": " y坐标(相对于父控件的y坐标)。\r\n", + "desc": " y坐标(相对于父控件的y坐标)。\n\n", "type": "xy_t", "annotation": { "set_prop": true, @@ -14710,7 +14771,7 @@ }, { "name": "w", - "desc": " 宽度。\r\n", + "desc": " 宽度。\n\n", "type": "wh_t", "annotation": { "set_prop": true, @@ -14723,7 +14784,7 @@ }, { "name": "h", - "desc": " 高度。\r\n", + "desc": " 高度。\n\n", "type": "wh_t", "annotation": { "set_prop": true, @@ -14736,7 +14797,7 @@ }, { "name": "name", - "desc": " 控件名字。\r\n", + "desc": " 控件名字。\n\n", "type": "char*", "annotation": { "set_prop": true, @@ -14749,7 +14810,7 @@ }, { "name": "tr_text", - "desc": " 保存用于翻译的字符串。\r\n", + "desc": " 保存用于翻译的字符串。\n\n", "type": "char*", "annotation": { "set_prop": true, @@ -14762,7 +14823,7 @@ }, { "name": "style", - "desc": " style的名称。\r\n", + "desc": " style的名称。\n\n", "type": "char*", "annotation": { "set_prop": true, @@ -14775,7 +14836,7 @@ }, { "name": "animation", - "desc": " 动画参数。请参考[控件动画](https://github.com/zlgopen/awtk/blob/master/docs/widget_animator.md)\r\n", + "desc": " 动画参数。请参考[控件动画](https://github.com/zlgopen/awtk/blob/master/docs/widget_animator.md)\n\n", "type": "char*", "annotation": { "set_prop": true, @@ -14788,7 +14849,7 @@ }, { "name": "enable", - "desc": " 启用/禁用状态。\r\n", + "desc": " 启用/禁用状态。\n\n", "type": "bool_t", "annotation": { "set_prop": true, @@ -14801,7 +14862,7 @@ }, { "name": "feedback", - "desc": " 是否启用按键音、触屏音和震动等反馈。\r\n", + "desc": " 是否启用按键音、触屏音和震动等反馈。\n\n", "type": "bool_t", "annotation": { "set_prop": true, @@ -14814,7 +14875,7 @@ }, { "name": "visible", - "desc": " 是否可见。\r\n", + "desc": " 是否可见。\n\n", "type": "bool_t", "annotation": { "set_prop": true, @@ -14828,7 +14889,7 @@ }, { "name": "sensitive", - "desc": " 是否接受用户事件。\r\n", + "desc": " 是否接受用户事件。\n\n", "type": "bool_t", "annotation": { "set_prop": true, @@ -14842,7 +14903,7 @@ }, { "name": "focusable", - "desc": " 是否支持焦点停留。\r\n", + "desc": " 是否支持焦点停留。\n\n", "type": "bool_t", "annotation": { "set_prop": true, @@ -14856,7 +14917,7 @@ }, { "name": "with_focus_state", - "desc": " 是否支持焦点状态。\r\n > 如果希望style支持焦点状态,但有不希望焦点停留,可用本属性。\r\n", + "desc": " 是否支持焦点状态。\n > 如果希望style支持焦点状态,但有不希望焦点停留,可用本属性。\n\n", "type": "bool_t", "annotation": { "set_prop": true, @@ -14870,7 +14931,7 @@ }, { "name": "focused", - "desc": " 是否得到焦点。\r\n", + "desc": " 是否得到焦点。\n\n", "type": "bool_t", "annotation": { "readable": true @@ -14878,7 +14939,7 @@ }, { "name": "auto_created", - "desc": " 是否由父控件自动创建。\r\n", + "desc": " 是否由父控件自动创建。\n\n", "type": "bool_t", "annotation": { "readable": true @@ -14886,7 +14947,7 @@ }, { "name": "dirty", - "desc": " 标识控件是否需要重绘。\r\n", + "desc": " 标识控件是否需要重绘。\n\n", "type": "bool_t", "annotation": { "readable": true @@ -14894,7 +14955,7 @@ }, { "name": "floating", - "desc": " 标识控件是否启用浮动布局,不受父控件的children_layout的控制。\r\n", + "desc": " 标识控件是否启用浮动布局,不受父控件的children_layout的控制。\n\n", "type": "bool_t", "annotation": { "set_prop": true, @@ -14907,7 +14968,7 @@ }, { "name": "need_relayout_children", - "desc": " 标识控件是否需要重新layout子控件。\r\n", + "desc": " 标识控件是否需要重新layout子控件。\n\n", "type": "bool_t", "annotation": { "readable": true @@ -14915,7 +14976,7 @@ }, { "name": "need_update_style", - "desc": " 标识控件是否需要update style。\r\n", + "desc": " 标识控件是否需要update style。\n\n", "type": "bool_t", "annotation": { "readable": true @@ -14923,7 +14984,7 @@ }, { "name": "can_not_destroy", - "desc": " 标识控件目前不能被销毁(比如正在分发事件),如果此时调用widget\\_destroy,自动异步处理。\r\n", + "desc": " 标识控件目前不能被销毁(比如正在分发事件),如果此时调用widget\\_destroy,自动异步处理。\n\n", "type": "uint16_t", "annotation": { "readable": true @@ -14931,7 +14992,7 @@ }, { "name": "initializing", - "desc": " 标识控件正在初始化。\r\n", + "desc": " 标识控件正在初始化。\n\n", "type": "bool_t", "annotation": { "readable": true @@ -14939,7 +15000,7 @@ }, { "name": "destroying", - "desc": " 标识控件正在被销毁。\r\n", + "desc": " 标识控件正在被销毁。\n\n", "type": "bool_t", "annotation": { "readable": true @@ -14947,7 +15008,7 @@ }, { "name": "state", - "desc": " 控件的状态(取值参考widget_state_t)。\r\n", + "desc": " 控件的状态(取值参考widget_state_t)。\n\n", "type": "uint8_t", "annotation": { "readable": true @@ -14955,7 +15016,7 @@ }, { "name": "opacity", - "desc": " 不透明度(0-255),0完全透明,255完全不透明。\r\n", + "desc": " 不透明度(0-255),0完全透明,255完全不透明。\n\n", "type": "uint8_t", "annotation": { "readable": true @@ -14963,7 +15024,7 @@ }, { "name": "text", - "desc": " 文本。用途视具体情况而定。\r\n", + "desc": " 文本。用途视具体情况而定。\n\n", "type": "wstr_t", "annotation": { "readable": true @@ -14971,7 +15032,7 @@ }, { "name": "parent", - "desc": " 父控件\r\n", + "desc": " 父控件\n\n", "type": "widget_t*", "annotation": { "readable": true @@ -14979,7 +15040,7 @@ }, { "name": "target", - "desc": " 接收事件的子控件。\r\n", + "desc": " 接收事件的子控件。\n\n", "type": "widget_t*", "annotation": { "private": true @@ -14987,7 +15048,7 @@ }, { "name": "grab_widget", - "desc": " grab事件的子控件。\r\n", + "desc": " grab事件的子控件。\n\n", "type": "widget_t*", "annotation": { "private": true @@ -14995,7 +15056,7 @@ }, { "name": "grab_widget_count", - "desc": " 有时子控件和控件自己都会grab widget,所需要grab的计数。\r\n", + "desc": " 有时子控件和控件自己都会grab widget,所需要grab的计数。\n\n", "type": "int32_t", "annotation": { "private": true @@ -15003,7 +15064,7 @@ }, { "name": "key_target", - "desc": " 接收按键事件的子控件。\r\n", + "desc": " 接收按键事件的子控件。\n\n", "type": "widget_t*", "annotation": { "private": true @@ -15011,7 +15072,7 @@ }, { "name": "children", - "desc": " 全部子控件。\r\n", + "desc": " 全部子控件。\n\n", "type": "darray_t*", "annotation": { "readable": true @@ -15019,7 +15080,7 @@ }, { "name": "emitter", - "desc": " 事件发射器。\r\n", + "desc": " 事件发射器。\n\n", "type": "emitter_t*", "annotation": { "readable": true @@ -15027,7 +15088,7 @@ }, { "name": "astyle", - "desc": " Style对象。\r\n", + "desc": " Style对象。\n\n", "type": "style_t*", "annotation": { "readable": true @@ -15035,7 +15096,7 @@ }, { "name": "children_layout", - "desc": " 子控件布局器。请参考[控件布局参数](https://github.com/zlgopen/awtk/blob/master/docs/layout.md)\r\n", + "desc": " 子控件布局器。请参考[控件布局参数](https://github.com/zlgopen/awtk/blob/master/docs/layout.md)\n\n", "type": "children_layouter_t*", "annotation": { "readable": true, @@ -15045,7 +15106,7 @@ }, { "name": "self_layout", - "desc": " 控件布局器。请参考[控件布局参数](https://github.com/zlgopen/awtk/blob/master/docs/layout.md)\r\n", + "desc": " 控件布局器。请参考[控件布局参数](https://github.com/zlgopen/awtk/blob/master/docs/layout.md)\n\n", "type": "self_layouter_t*", "annotation": { "readable": true, @@ -15055,7 +15116,7 @@ }, { "name": "custom_props", - "desc": " 自定义属性。\r\n", + "desc": " 自定义属性。\n\n", "type": "object_t*", "annotation": { "readable": true @@ -15063,7 +15124,7 @@ }, { "name": "vt", - "desc": " 虚函数表。\r\n", + "desc": " 虚函数表。\n\n", "type": "widget_vtable_t", "annotation": { "readable": true @@ -15071,7 +15132,7 @@ } ], "header": "base/widget.h", - "desc": " **widget_t** 是所有控件、窗口和窗口管理器的基类。\r\n **widget_t**也是一个容器,可放其它**widget_t**到它的内部,形成一个树形结构。\r\n\r\n ```graphviz\r\n [default_style]\r\n\r\n widget_t -> widget_t[arrowhead = \"diamond\"]\r\n window_t -> widget_t[arrowhead = \"empty\"]\r\n window_manager_t -> widget_t[arrowhead = \"empty\"]\r\n button_t -> widget_t[arrowhead = \"empty\"]\r\n label_t -> widget_t[arrowhead = \"empty\"]\r\n xxx_widget_t -> widget_t[arrowhead = \"empty\"]\r\n ```\r\n\r\n 通常**widget_t**通过一个矩形区域向用户呈现一些信息,接受用户的输入,并据此做出适当的反应。\r\n 它负责控件的生命周期、通用状态、事件分发和Style的管理。\r\n 本类提供的接口(函数和属性)除非特别说明,一般都适用于子类控件。\r\n\r\n 为了便于解释,这里特别说明一下几个术语:\r\n\r\n * **父控件与子控件**:父控件与子控件指的两个控件的组合关系(这是在运行时决定的)。\r\n 比如:在窗口中放一个按钮,此时,我们称按钮是窗口的子控件,窗口是按钮的父控件。\r\n\r\n ```graphviz\r\n [default_style]\r\n\r\n 子控件 -> 父控件[arrowhead = \"ediamond\"]\r\n ```\r\n\r\n * **子类控件与父类控件**:子类控件与父类控件指的两类控件的继承关系(这是在设计时决定的)。\r\n 比如:我们称**button_t**是**widget_t**的子类控件,**widget_t**是**button_t**的父类控件。\r\n\r\n ```graphviz\r\n [default_style]\r\n\r\n 子类控件 -> 父类控件[arrowhead = \"empty\"]\r\n\r\n ```\r\n\r\n widget相关的函数都只能在GUI线程中执行,如果需在非GUI线程中想调用widget相关函数,\r\n 请用idle\\_queue或timer\\_queue进行串行化。\r\n 请参考[demo thread](https://github.com/zlgopen/awtk/blob/master/demos/demo_thread_app.c)\r\n\r\n **widget\\_t**是抽象类,不要直接创建**widget\\_t**的实例。控件支持两种创建方式:\r\n\r\n * 通过XML创建。如:\r\n\r\n ```xml\r\n