diff --git a/changelog.md b/changelog.md new file mode 100644 index 0000000000000000000000000000000000000000..3db6507ae9dca02187339919edbc0fd87617ace7 --- /dev/null +++ b/changelog.md @@ -0,0 +1,78 @@ +# 轻设备图形子系统更新说明 + +202106: +摘要: +1. 新增DFX维测能力:UIKit支持显示控件轮廓 +2. 移除AmimanatorManager对外接口,封装到Animator类 +3. 增多后端框架:支持对接不同芯片 +4. 组件UIScrollView/UIList新增进度条功能 +5. UISlider接口及功能变更 +6. 点阵字体解耦:字库工具更新 +7. 支持UICheckBox/UIRadioButton/UIToggleButton动效 +8. UIButton支持点击动效 + +详情: +1. 新增DFX维测能力:UIKit支持显示控件轮廓 + 代码路径: graphic_ui/interfaces/kits/dfx/ui_view_bounds.h; + + 使用方式:调用 SetShowState 控制是否显示边框 + +2. 移除AmimanatorManager对外接口,封装到Animator类 + + 直接使用Animator Start和Stop接口,不需要手动去调用AmimanatorManager的Add/Remove添加Animator类。 + +3. 新增多后端框架:支持对接不同芯片 + + 抽象出一套绘制接口作为南向API,新芯片显示硬件加速能力需要实现这套接口。 + + 代码路径:/foundation/graphic/ui/interfaces/innerkits/engines/gfx/gfx_engine_manager.h + +4. 组件UIScrollView/UIList新增进度条功能,接口变更如下: + + | 删除接口 | + | --------------------------------------------------- | + | void UIScrollView::SetScrollbarWidth(uint8_t width) | + | void UIScrollView::RefreshScrollBar() | + + | 新增接口: | + | --------------------------------------------------------- | + | void UIAbstractScroll::SetXScrollBarVisible(bool visible) | + | void UIAbstractScroll::SetYScrollBarVisible(bool visible) | + +5. UISlider接口及功能修改如下: + + | 删除接口: | + | ------------------------------------------------------------ | + | void SetImage(const ImageInfo* backgroundImage, const ImageInfo* foregroundImage, const ImageInfo* knobImage) | + | void SetImage(const char* backgroundImage, const char* foregroundImage, const char* knobImage); | + | void SetSliderColor(const ColorType backgroundColor, const ColorType foregroundColor, const ColorType knobColor) | + | void SetSliderRadius(int16_t backgroundRadius, int16_t foregroundRadius, int16_t knobRadius) | + + | 新增接口: | + | ------------------------------------------------------------ | + | void SetImage(**const** ImageInfo* backgroundImage, **const** ImageInfo* foregroundImage) | + | void SetKnobImage(const ImageInfo* knobImage) | + | void SetImage(const char* backgroundImage, const char* foregroundImage) | + | void SetKnobImage(const char* knobImage) | + | void SetSliderColor(const ColorType backgroundColor, const ColorType foregroundColor) | + | void SetKnobColor(const ColorType knobColor) | + | void SetSliderRadius(int16_t backgroundRadius, int16_t foregroundRadius) | + | void SetKnobRadius(int16_t knobRadius) | + + | 功能变更接口 | 原功能 | 现功能 | + | -------------------------------- | ------------------------------------------------------------ | --------- | + | int16_t UISlider::GetKnobWidth() | 如果未调用UISlider::SetKnobWidth(), GetKnobWidth()默认值为progressHeight_ / progressWidth_ | 默认值为0 | + +6. 点阵字体解耦:字库工具更新 + + (1)需要使用新的字库工具生成字体bin文件 + + (2)在字体引擎初始化时需要调用BitmapFontInit接口来设置点阵字体相关资源。 + +7. 支持UICheckBox/UIRadioButton/UIToggleButton动效 + + (1)支持UICheckBox软件绘制和动效,默认为图片绘制,可以调用SetImages接口取消默认图片。 + + (2)支持UIRadioButton和UIToggleButton动效,默认软件绘制。 + +8. UIButton支持点击动效,默认开启,不需要开发者适配。