You need to sign in or sign up before continuing.
窗口子系统.md 2.1 KB
Newer Older
Z
zhouyaoying 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
# windowmanager

-   [简介](#简介)
-   [目录](#目录)
-   [约束](#约束)
-   [接口说明](#接口说明)
-   [相关仓](#相关仓)

## 简介

**窗口子系统** 提供窗口管理和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/windowmanager/
├── dm                      # Dislplay Manager Client实现代码
├── dmserver                # Dislplay Manager Service实现代码
├── interfaces              # 对外接口存放目录
│   ├── innerkits           # native接口存放目录
│   └── kits                # js/napi接口存放目录
├── resources               # 框架使用资源文件存放目录
├── sa_profile              # 系统服务配置文件
├── snapshot                # 截屏命令行工具实现代码
├── utils                   # 工具类存放目录
├── wm                      # Window Manager Client实现代码
├── wmserver                # Window Manager Service实现代码
```

## 约束
- 语言版本
    - C++11或以上

## 接口说明

- [Window](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis/js-apis-window.md)  
- [Display](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis/js-apis-display.md)

## 相关仓
- graphic_standard
- ace_ace_engine
- aafwk_standard
- multimodalinput_input