• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..17-Mar-2025-

figures/H17-Mar-2025-

frameworks/H17-Mar-2025-1,223869

interfaces/innerkits/H17-Mar-2025-374168

services/H17-Mar-2025-2,5591,978

test/H17-Mar-2025-469393

.clang-formatH A D17-Mar-20256.6 KiB161160

BUILD.gnH A D17-Mar-20253.3 KiB10999

LICENSEH A D17-Mar-20259.9 KiB177150

OAT.xmlH A D17-Mar-20254 KiB6511

README.mdH A D17-Mar-20252.6 KiB6241

README_zh.mdH A D17-Mar-20252.4 KiB6241

bundle.jsonH A D17-Mar-20251,000 4342

README.md

1# WMS<a name="EN-US_TOPIC_0000001122925147"></a>
2
3-   [Introduction](#section11660541593)
4-   [Directory Structure](#section161941989596)
5-   [Compilation and Building](#section137768191623)
6-   [Description](#section1312121216216)
7    -   [Usage](#section129654513264)
8
9-   [Repositories Involved](#section1371113476307)
10
11## Introduction<a name="section11660541593"></a>
12
13The graphics service uses the client/server \(C/S\) architecture and is divided into two sub-services: Window Manager Service \(WMS\) and Input Manager Service \(IMS\). The application calls the APIs provided by the client to obtain the window status and process events. The server interacts with the hardware to implement display and input event distribution.
14
15-   WMS: Manages and combines windows of different applications in a unified manner. Each window is bound to a  **RootView**  object.
16-   IMS: Connects to the underlying input event driver framework to monitor and distribute input events.
17
18**Figure  1** <a name="fig163546295165"></a>
19
20
21![](figures/en-us_image_0000001127903103.png)
22
23## Directory Structure<a name="section161941989596"></a>
24
25```
26/foundation/window/window_manager_lite
27├── frameworks      # Client
28│   ├── ims         # Input event management service client
29│   └── wms         # Window management service client
30├── interfaces      # APIs
31│   ├── innerkits   # APIs between modules
32├── services        # Server
33│   ├── ims         # Input event management service
34│   └── wms         # Window management service
35└── test            # Test code
36```
37
38## Compilation and Building<a name="section137768191623"></a>
39
40```
41# Generate the wms_server and libwms_client.so files in the out directory of the product folder through GN compilation.
42hb build window_manager_lite
43```
44
45## Description<a name="section1312121216216"></a>
46
47### Usage<a name="section129654513264"></a>
48
49-   WMS provides methods to display various UI components, send event notifications, and process various events. For details, see the related source code.
50-   **test/sample\_window**  provides the unit testing for each WMS API. Refer to it for the usage of WMS.
51
52## Repositories Involved<a name="section1371113476307"></a>
53
54[Graphic subsystem](https://gitee.com/openharmony/docs/blob/master/en/readme/graphics.md)
55
56**window_manager_lite**
57
58[graphic_surface_lite](https://gitee.com/openharmony/graphic_surface_lite/blob/master/README.md)
59
60[arkui_ui_lite](https://gitee.com/openharmony/arkui_ui_lite/blob/master/README.md)
61
62[graphic_graphic_utils_lite](https://gitee.com/openharmony/graphic_graphic_utils_lite/blob/master/README.md)

README_zh.md

1# 图形WMS组件<a name="ZH-CN_TOPIC_0000001122925147"></a>
2
3-   [简介](#section11660541593)
4-   [目录](#section161941989596)
5-   [编译构建](#section137768191623)
6-   [说明](#section1312121216216)
7    -   [使用说明](#section129654513264)
8
9-   [相关仓](#section1371113476307)
10
11## 简介<a name="section11660541593"></a>
12
13图形服务采用C/S架构,内部分为窗口管理(WMS: Window Manager Service)和输入事件管理(IMS: Input Manager Service)两个子服务。APP调用客户端接口完成窗口状态获取、事件处理等操作,服务端与硬件交互实现送显、输入事件分发等。
14
15-   WMS:窗口管理服务对不同APP的窗口进行统一管理、合成。窗口与UI组件中的RootView呈一一对应的关系;
16-   IMS:输入事件管理服务对接底层输入事件驱动框架,对输入事件进行监听和分发。
17
18**图 1** <a name="fig163546295165"></a>
19
20
21![](figures/zh-cn_image_0000001127903103.png)
22
23## 目录<a name="section161941989596"></a>
24
25```
26/foundation/window/window_manager_lite
27├── frameworks      # 客户端
28│   ├── ims         # 输入管理客户端
29│   └── wms         # 窗口管理服务客户端
30├── interfaces      # 接口
31│   └── innerkits   # 模块间接口
32├── services        # 服务端
33│   ├── ims         # 输入管理服务
34│   └── wms         # 窗口管理服务
35└── test            # 测试代码
36```
37
38## 编译构建<a name="section137768191623"></a>
39
40```
41# 通过gn编译,在out目录下对应产品的文件夹中生成可执行文件wms_server和libwms_client.so
42hb build window_manager_lite
43```
44
45## 说明<a name="section1312121216216"></a>
46
47### 使用说明<a name="section129654513264"></a>
48
49-   图形UI组件基于WMS组件实现了各种UI组件的显示以及事件通知、处理,可参考相关源码;
50-   test/sample\_window提供了WMS组件各接口的单元测试,也可参考使用。
51
52## 相关仓<a name="section1371113476307"></a>
53
54[图形子系统](https://gitee.com/openharmony/docs/blob/master/zh-cn/readme/%E5%9B%BE%E5%BD%A2%E5%AD%90%E7%B3%BB%E7%BB%9F.md)
55
56**window_manager_lite**
57
58[graphic_surface_lite](https://gitee.com/openharmony/graphic_surface_lite/blob/master/README.md)
59
60[arkui_ui_lite](https://gitee.com/openharmony/arkui_ui_lite/blob/master/README.md)
61
62[graphic_graphic_utils_lite](https://gitee.com/openharmony/graphic_graphic_utils_lite/blob/master/README.md)