mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-11-30 02:58:26 +08:00
improve object
This commit is contained in:
parent
b4410787c5
commit
63cdc9877c
@ -1,8 +1,11 @@
|
||||
# 最新动态
|
||||
|
||||
* 2020/07/22
|
||||
* 增加 OBJECT\_CMD\_REMOVE\_CHECKED 、OBJECT\_PROP\_CHECKED和 OBJECT\_PROP\_SIZE。
|
||||
|
||||
* 2020/07/21
|
||||
* 完善API文档增加导出函数。
|
||||
* 完善文档。
|
||||
* 完善 API 文档增加导出函数。
|
||||
* 修改 gles 和 agge 的 svg 效果不一致的问题(感谢智明提供补丁)。
|
||||
* 给 bitmap 的函数注释,方便动态类库编译的时候调用其函数(感谢智明提供补丁)。
|
||||
|
||||
|
@ -602,6 +602,13 @@ float_t object_get_prop_float_by_path(object_t* obj, const char* path, float_t d
|
||||
*/
|
||||
#define OBJECT_CMD_REMOVE "remove"
|
||||
|
||||
/**
|
||||
* @const OBJECT_CMD_REMOVE_CHECKED
|
||||
* 删除勾选的属性。
|
||||
*>参数为属性的名称或路径。
|
||||
*/
|
||||
#define OBJECT_CMD_REMOVE_CHECKED "remove_checked"
|
||||
|
||||
/**
|
||||
* @const OBJECT_CMD_CLEAR
|
||||
* 清除全部属性。
|
||||
@ -623,6 +630,25 @@ float_t object_get_prop_float_by_path(object_t* obj, const char* path, float_t d
|
||||
*/
|
||||
#define OBJECT_CMD_EDIT "edit"
|
||||
|
||||
/**
|
||||
* @enum object_prop_t
|
||||
* @annotation ["scriptable", "string"]
|
||||
* @prefix OBJECT_PROP_
|
||||
* 对象常见属性定义
|
||||
*/
|
||||
|
||||
/**
|
||||
* @const OBJECT_PROP_SIZE
|
||||
* 属性的个数。
|
||||
*/
|
||||
#define OBJECT_PROP_SIZE "#size"
|
||||
|
||||
/**
|
||||
* @const OBJECT_PROP_CHECKED
|
||||
* 属性是否勾选。
|
||||
*/
|
||||
#define OBJECT_PROP_CHECKED "checked"
|
||||
|
||||
END_C_DECLS
|
||||
|
||||
#endif /*TK_OBJECT_H*/
|
||||
|
Loading…
Reference in New Issue
Block a user