mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-11-29 18:48:09 +08:00
register icon as alias of image
This commit is contained in:
parent
a59fba8544
commit
6529fc0000
@ -1,5 +1,8 @@
|
||||
# 最新动态
|
||||
|
||||
2022/05/28
|
||||
* 注册icon控件为image控件的别名。
|
||||
|
||||
2022/05/27
|
||||
* 增加函数 svg\_file\_to\_bsvg。
|
||||
* typed\_array支持bool类型(感谢兆坤提供补丁)。
|
||||
|
@ -1086,6 +1086,12 @@ BEGIN_C_DECLS
|
||||
*/
|
||||
#define WIDGET_TYPE_IMAGE "image"
|
||||
|
||||
/**
|
||||
* @const WIDGET_TYPE_ICON
|
||||
* 图标控件。
|
||||
*/
|
||||
#define WIDGET_TYPE_ICON "icon"
|
||||
|
||||
/**
|
||||
* @const WIDGET_TYPE_EDIT
|
||||
* 文本编辑控件。
|
||||
|
@ -69,6 +69,7 @@ ret_t tk_widgets_init(void) {
|
||||
#ifndef AWTK_NOGUI
|
||||
FACTORY_TABLE_ENTRY(WIDGET_TYPE_DIALOG_TITLE, dialog_title_create)
|
||||
FACTORY_TABLE_ENTRY(WIDGET_TYPE_DIALOG_CLIENT, dialog_client_create)
|
||||
FACTORY_TABLE_ENTRY(WIDGET_TYPE_ICON, image_create)
|
||||
FACTORY_TABLE_ENTRY(WIDGET_TYPE_IMAGE, image_create)
|
||||
FACTORY_TABLE_ENTRY(WIDGET_TYPE_BUTTON, button_create)
|
||||
FACTORY_TABLE_ENTRY(WIDGET_TYPE_LABEL, label_create)
|
||||
|
Loading…
Reference in New Issue
Block a user