• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# WindowManager_WindowProperties
2
3
4## 概述
5
6窗口属性。
7
8**起始版本:** 15
9
10**相关模块:**[WindowManager_NativeModule](_window_manager___native_module.md)
11
12
13## 汇总
14
15
16### 成员变量
17
18| 名称 | 描述 |
19| -------- | -------- |
20| [WindowManager_Rect](_window_manager___rect.md)  [windowRect](#windowrect) | 窗口的位置和尺寸。 |
21| [WindowManager_Rect](_window_manager___rect.md)  [drawableRect](#drawablerect) | 窗口内可绘制区域的尺寸。 |
22| [WindowManager_WindowType](_window_manager___native_module.md#windowmanager_windowtype)  [type](#type) | 窗口类型。 |
23| bool [isFullScreen](#isfullscreen) | 窗口是否全屏模式。默认值为false。true表示窗口是全屏模式,false表示窗口是非全屏模式。 |
24| bool [isLayoutFullScreen](#islayoutfullscreen) | 窗口布局是否沉浸式。默认值为false。true表示窗口布局是沉浸式,false表示窗口布局是非沉浸式。 |
25| bool [focusable](#focusable) | 窗口是否能获取焦点。默认值为true。true表示窗口能获取焦点,false表示窗口不能获取焦点。 |
26| bool [touchable](#touchable) | 窗口是否可触。默认值为true。true表示窗口可触,false表示窗口不可触。 |
27| float [brightness](#brightness) | 窗口亮度值。该参数为浮点数,取值范围为[0.0, 1.0]或-1.0。1.0表示最亮,-1.0表示默认亮度。 |
28| bool [isKeepScreenOn](#iskeepscreenon) | 是否打开屏幕常亮。默认值为false。true表示屏幕常亮,false表示屏幕不常亮。 |
29| bool [isPrivacyMode](#isprivacymode) | 窗口是否打开隐私模式。默认值为false。true表示窗口打开隐私模式,false表示窗口关闭隐私模式。 |
30| bool [isTransparent](#istransparent) | 窗口是否透明。默认值为false。true表示窗口透明,false表示窗口非透明。 |
31| uint32_t [id](#id) | 窗口id。默认值为0,该参数为整数。 |
32| uint32_t [displayId](#displayid) | 窗口所在屏幕的id,默认返回主屏幕id,该参数为整数 |
33
34
35## 结构体成员变量说明
36
37
38### brightness
39
40```
41float WindowManager_WindowProperties::brightness
42```
43
44**描述**
45
46窗口亮度值。该参数为浮点数,取值范围为[0.0, 1.0]或-1.0。1.0表示最亮,-1.0表示默认亮度。
47
48
49### displayId
50
51```
52uint32_t WindowManager_WindowProperties::displayId
53```
54
55**描述**
56
57窗口所在屏幕的id,默认返回主屏幕id,该参数为整数
58
59
60### drawableRect
61
62```
63WindowManager_Rect WindowManager_WindowProperties::drawableRect
64```
65
66**描述**
67
68窗口内可绘制区域的尺寸。
69
70
71### focusable
72
73```
74bool WindowManager_WindowProperties::focusable
75```
76
77**描述**
78
79窗口是否能获取焦点。默认值为true。true表示窗口能获取焦点,false表示窗口不能获取焦点。
80
81
82### id
83
84```
85uint32_t WindowManager_WindowProperties::id
86```
87
88**描述**
89
90窗口id。默认值为0,该参数为整数。
91
92
93### isFullScreen
94
95```
96bool WindowManager_WindowProperties::isFullScreen
97```
98
99**描述**
100
101窗口是否全屏模式。默认值为false。true表示窗口是全屏模式,false表示窗口是非全屏模式。
102
103
104### isKeepScreenOn
105
106```
107bool WindowManager_WindowProperties::isKeepScreenOn
108```
109
110**描述**
111
112是否打开屏幕常亮。默认值为false。true表示屏幕常亮,false表示屏幕不常亮。
113
114
115### isLayoutFullScreen
116
117```
118bool WindowManager_WindowProperties::isLayoutFullScreen
119```
120
121**描述**
122
123窗口布局是否沉浸式。默认值为false。true表示窗口布局是沉浸式,false表示窗口布局是非沉浸式。
124
125
126### isPrivacyMode
127
128```
129bool WindowManager_WindowProperties::isPrivacyMode
130```
131
132**描述**
133
134窗口是否打开隐私模式。默认值为false。true表示窗口打开隐私模式,false表示窗口关闭隐私模式。
135
136
137### isTransparent
138
139```
140bool WindowManager_WindowProperties::isTransparent
141```
142
143**描述**
144
145窗口是否透明。默认值为false。true表示窗口透明,false表示窗口非透明。
146
147
148### touchable
149
150```
151bool WindowManager_WindowProperties::touchable
152```
153
154**描述**
155
156窗口是否可触。默认值为true。true表示窗口可触,false表示窗口不可触。
157
158
159### type
160
161```
162WindowManager_WindowType WindowManager_WindowProperties::type
163```
164
165**描述**
166
167窗口类型。
168
169
170### windowRect
171
172```
173WindowManager_Rect WindowManager_WindowProperties::windowRect
174```
175
176**描述**
177
178窗口的位置和尺寸。
179