1 Star 0 Fork 4.9K

戈英祯 / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
subsys-graphics-overview.md 2.27 KB
一键复制 编辑 原始数据 按行查看 历史
duangavin123 提交于 2021-07-20 22:06 . update 导入OpenHarmony工程

Graphics

The OpenHarmony graphics subsystem provides you with basic UI and container components, including buttons, images, labels, lists, animators, scroll views, swipe views, fonts, clock, charts, canvas, sliders, and layouts. In addition, this subsystem provides the Design for X (DFX) capability to capture screenshots and export the component tree. It also implements features such as component rendering, animation, and input event distribution.

UI Components

Contain a variety of basic components (such as buttons, text, and progress bars) and complex components (such as page switching and image sequence frames).

Layouts

Implement grid layout and flexible layout (such as centered, left-aligned, and right-aligned).

As each layout is a one-off, the positions of components in a specific layout are calculated each time related functions are called on the layout. However, if the position of a component changes with an operation (dragging for example), the positions of other associated components do not automatically change. To change them, you need to call the layout functions again.

Animators

Each time the Tick event is received, the Task Manager module periodically invokes callbacks upon attribute changes and then triggers redrawing to produce the desired animation effect.

You can call related functions to start, stop, pause, resume, create, and destroy an animator.

Input Events

Include touchscreen and physical key input events. Each time the GUI engine runs, the Input Manager module reads the input of all registered hardware devices and converts the input into various events for UI components to use.

Rendering

  • 2D graphics rendering

    Draws lines, rectangles, triangles, and arcs.

  • Image rendering

    Draws images of various types, such as RGB565, RGB888, ARGB8888, PNG, and JPG.

  • Font rendering

    Draws vector fonts in real time.

1
https://gitee.com/geyingzhen/docs.git
git@gitee.com:geyingzhen/docs.git
geyingzhen
docs
docs
master

搜索帮助