window_window_manager/README_zh.md
蔡美纯 c76476b34e
update README_zh.md.
Signed-off-by: 蔡美纯 <59194618@qq.com>
2024-07-15 07:18:47 +00:00

107 lines
4.9 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# window_manager
- [简介](#简介)
- [目录](#目录)
- [约束](#约束)
- [接口说明](#接口说明)
- [相关仓](#相关仓)
## 简介
**窗口子系统** 提供窗口管理和Display管理的基础能力是系统图形界面显示所需的基础子系统
其主要的结构如下图所示:
![窗口子系统架构图](./figures/WindowManager.png)
- **Window Manager Client**
应用进程窗口管理接口层提供窗口对对象抽象和窗口管理接口对接原能力和UI框架。
- **Display Manager Client**
应用进程Display管理接口层提供Display信息抽象和Display管理接口。
- **Window Manager Server**
窗口管理服务提供窗口布局、Z序控制、窗口树结构、窗口拖拽、窗口快照等能力并提供窗口布局和焦点窗口给多模输入
- **Display Manager Server**
Display管理服务提供Display信息、屏幕截图、屏幕亮灭和亮度处理控制并处理Display与Screen映射关系
## 目录
```
foundation/window/window_manager/
├── dm # Dislplay Manager Client实现代码
│   ├── BUILD.gn
│   ├── include
│   ├── src
│   └── test
├── dmserver # Dislplay Manager Service实现代码
│   ├── BUILD.gn
│   ├── include
│   ├── src
│   └── test
├── extension # Ability Component 窗口相关代码实现目录
│   ├── extension_connection # Ability Component 嵌入部分
│   └── window_extension # Ability Component 被嵌入部分
├── interfaces # 对外接口存放目录
│   ├── innerkits # native接口存放目录
│   └── kits # js/napi接口存放目录
├── previewer # IDE轻量模拟器窗口代码实现目录
│   ├── BUILD.gn
│   ├── include
│   ├── mock
│   └── src
├── resources # 框架使用资源文件存放目录
│   ├── BUILD.gn
│   ├── config
│   ├── dialog_ui
│   └── media
├── sa_profile # 系统服务配置文件
│   ├── 4606.xml
│   ├── 4607.xml
│   └── BUILD.gn
├── snapshot # 截屏命令行工具实现代码
│   ├── BUILD.gn
│   ├── include
│   ├── src
│   └── test
├── test # Fuzz测试和系统测试用例存放目录
│   ├── BUILD.gn
│   ├── common
│   ├── demo
│   ├── fuzztest
│   └── systemtest
├── utils # 工具类存放目录
│   ├── BUILD.gn
│   ├── include
│   ├── src
│   └── test
├── wm # Window Manager Client实现代码
│   ├── BUILD.gn
│   ├── include
│   ├── src
│   └── test
└── wmserver # Window Manager Service实现代码
├── BUILD.gn
├── include
├── src
└── test
```
## 约束
- 语言版本
- C++11或以上
## 接口说明
- [Window](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis-arkui/js-apis-window.md)
- [Display](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis-arkui/js-apis-display.md)
## 相关仓
- [graphic_graphic_2d](https://gitee.com/openharmony/graphic_graphic_2d)
- [arkui_ace_engine](https://gitee.com/openharmony/arkui_ace_engine)
- [ability_ability_runtime](https://gitee.com/openharmony/ability_ability_runtime)
- [multimodalinput_input](https://gitee.com/openharmony/multimodalinput_input)