• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Region
2
3
4## Overview
5
6The **Region** struct describes the rectangle (dirty region) where the content is to be updated in the local **OHNativeWindow**.
7
8**Since**: 8
9
10**Related module**: [NativeWindow](_native_window.md)
11
12**Header file**: [external_window.h](external__window_8h.md)
13
14## Summary
15
16
17### Structs
18
19| Name| Description|
20| -------- | -------- |
21| struct  [Rect](_rect.md) | Describes a rectangle.|
22
23
24### Member Variables
25
26| Name| Description|
27| -------- | -------- |
28| struct [Region::Rect](_rect.md) \* rects | If **rects** is a null pointer, the buffer size is the same as the size of the dirty region by default.|
29| int32_t [rectNumber](#rectnumber) | If **rectNumber** is **0**, the buffer size is the same as the size of the dirty region by default.|
30
31
32## Member Variable Description
33
34
35### rectNumber
36
37```
38int32_t Region::rectNumber
39```
40
41**Description**
42
43If **rectNumber** is **0**, the buffer size is the same as the size of the dirty region by default.
44
45
46### \*rects
47
48```
49struct Rect Region::*rects
50```
51
52**Description**
53
54Pointer to the struct. The type is [Rect](_rect.md). If **rects** is a null pointer, the buffer size is the same as the size of the dirty region by default.
55