• Home
Name
Date
Size
#Lines
LOC

..--

AppDemo/window/12-May-2024-1,027866

dm/12-May-2024-6,2034,698

dmserver/12-May-2024-13,25310,590

etc/12-May-2024-6558

extension/12-May-2024-2,4851,759

figures/12-May-2024-

interfaces/12-May-2024-17,76213,143

previewer/12-May-2024-4,2372,943

resources/12-May-2024-544304

sa_profile/12-May-2024-4946

snapshot/12-May-2024-1,3801,029

test/12-May-2024-17,06612,403

utils/12-May-2024-10,5317,906

window_scene/12-May-2024-33,59527,524

wm/12-May-2024-24,37618,688

wmserver/12-May-2024-37,31429,087

LICENSED12-May-20249.9 KiB177150

OAT.xmlD12-May-20244.3 KiB7015

README.mdD12-May-20242.5 KiB6039

README_zh.mdD12-May-20244.9 KiB10789

bundle.jsonD12-May-20249.6 KiB269268

hisysevent.yamlD12-May-20245.4 KiB12468

windowmanager_aafwk.gniD12-May-20241.7 KiB4036

README.md

1 # Window Manager
2 
3 ## Introduction
4 
5 The Window Manager subsystem provides basic capabilities of window and display management. It is the basis for UI display. The following figure shows the architecture of the Window Manager subsystem.
6 
7 **Figure 1** Architecture of the Window Manager subsystem
8 
9 ![WindowManager-subsystem-architecture](./figures/WindowManager_EN.png)
10 
11 - **Window Manager Client**
12 
13     Provides window object abstraction and window management interfaces, and connects to the ability and UI framework.
14 
15 - **Display Manager Client**
16 
17     Provides display information abstraction and display management interfaces.
18 
19 - **Window Manager Server**
20 
21     Provides capabilities such as window layout, Z-order control, window tree structure, window dragging, and window snapshot, and offers the window layout and focus window for multimodal input.
22 
23 - **Display Manager Server**
24 
25     Provides display information, screenshot, screen on/off, and brightness processing control, and processes the mapping between the display and screen.
26 
27 ## Directory Structure
28 
29 ```text
30 foundation/window/window_manager/
31 ├── dm                      # Stores Display Manager Client implementation code
32 ├── dmserver                # Stores Display Manager Server implementation code
33 ├── interfaces              # Stores external APIs
34 │   ├── innerkits           # Stores native APIs
35 │   └── kits                # Stores JS APIs and native APIs
36 ├── resources               # Stores resource files used by the framework
37 ├── sa_profile              # Stores system service configuration files
38 ├── snapshot                # Stores implementation code of the screenshot command line tool
39 ├── utils                   # Stores tools
40 ├── wm                      # Stores Window Manager Client implementation code
41 ├── wmserver                # Stores Window Manager Server implementation code
42 ```
43 
44 ## Constraints
45 
46 - Programming language version
47   - C++ 11 or later
48 
49 ## Available APIs
50 
51 - [Window](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-window.md)
52 - [Display](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-display.md)
53 
54 ## Repositories Involved
55 
56 - [graphic_graphic_2d](https://gitee.com/openharmony/graphic_graphic_2d)
57 - [arkui_ace_engine](https://gitee.com/openharmony/arkui_ace_engine)
58 - [ability_ability_runtime](https://gitee.com/openharmony/ability_ability_runtime)
59 - [multimodalinput_input](https://gitee.com/openharmony/multimodalinput_input)
60 

README_zh.md

1 # window_manager
2 
3 -   [简介](#简介)
4 -   [目录](#目录)
5 -   [约束](#约束)
6 -   [接口说明](#接口说明)
7 -   [相关仓](#相关仓)
8 
9 ## 简介
10 
11 **窗口子系统** 提供窗口管理和Display管理的基础能力,是系统图形界面显示所需的基础子系统
12 
13 其主要的结构如下图所示:
14 
15 ![窗口子系统架构图](./figures/WindowManager.png)
16 
17 - **Window Manager Client**
18 
19     应用进程窗口管理接口层,提供窗口对对象抽象和窗口管理接口,对接原能力和UI框架。
20 
21 - **Display Manager Client**
22 
23     应用进程Display管理接口层,提供Display信息抽象和Display管理接口。
24 
25 - **Window Manager Server**
26 
27     窗口管理服务,提供窗口布局、Z序控制、窗口树结构、窗口拖拽、窗口快照等能力,并提供窗口布局和焦点窗口给多模输入
28 
29 - **Display Manager Server**
30 
31     Display管理服务,提供Display信息、屏幕截图、屏幕亮灭和亮度处理控制,并处理Display与Screen映射关系
32 
33 ## 目录
34 ```
35 foundation/window/window_manager/
36 ├── dm                              # Dislplay Manager Client实现代码
37 │   ├── BUILD.gn
38 │   ├── include
39 │   ├── src
40 │   └── test
41 ├── dmserver                        # Dislplay Manager Service实现代码
42 │   ├── BUILD.gn
43 │   ├── include
44 │   ├── src
45 │   └── test
46 ├── extension                       # Ability Component 窗口相关代码实现目录
47 │   ├── extension_connection        # Ability Component 嵌入部分
48 │   └── window_extension            # Ability Component 被嵌入部分
49 ├── interfaces                      # 对外接口存放目录
50 │   ├── innerkits                   # native接口存放目录
51 │   └── kits                        # js/napi接口存放目录
52 ├── previewer                       # IDE轻量模拟器窗口代码实现目录
53 │   ├── BUILD.gn
54 │   ├── include
55 │   ├── mock
56 │   └── src
57 ├── resources                       # 框架使用资源文件存放目录
58 │   ├── BUILD.gn
59 │   ├── config
60 │   ├── dialog_ui
61 │   └── media
62 ├── sa_profile                      # 系统服务配置文件
63 │   ├── 4606.xml
64 │   ├── 4607.xml
65 │   └── BUILD.gn
66 ├── snapshot                        # 截屏命令行工具实现代码
67 │   ├── BUILD.gn
68 │   ├── include
69 │   ├── src
70 │   └── test
71 ├── test                            # Fuzz测试和系统测试用例存放目录
72 │   ├── BUILD.gn
73 │   ├── common
74 │   ├── demo
75 │   ├── fuzztest
76 │   └── systemtest
77 ├── utils                           # 工具类存放目录
78 │   ├── BUILD.gn
79 │   ├── include
80 │   ├── src
81 │   └── test
82 ├── wm                              # Window Manager Client实现代码
83 │   ├── BUILD.gn
84 │   ├── include
85 │   ├── src
86 │   └── test
87 └── wmserver                        # Window Manager Service实现代码
88     ├── BUILD.gn
89     ├── include
90     ├── src
91     └── test
92 ```
93 
94 ## 约束
95 - 语言版本
96     - C++11或以上
97 
98 ## 接口说明
99 
100 - [Window](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis/js-apis-window.md)
101 - [Display](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis/js-apis-display.md)
102 
103 ## 相关仓
104 - [graphic_graphic_2d](https://gitee.com/openharmony/graphic_graphic_2d)
105 - [arkui_ace_engine](https://gitee.com/openharmony/arkui_ace_engine)
106 - [ability_ability_runtime](https://gitee.com/openharmony/ability_ability_runtime)
107 - [multimodalinput_input](https://gitee.com/openharmony/multimodalinput_input)