1e41f4b71Sopenharmony_ci# Region 2e41f4b71Sopenharmony_ci 3e41f4b71Sopenharmony_ci 4e41f4b71Sopenharmony_ci## Overview 5e41f4b71Sopenharmony_ci 6e41f4b71Sopenharmony_ciThe **Region** struct describes the rectangle (dirty region) where the content is to be updated in the local **OHNativeWindow**. 7e41f4b71Sopenharmony_ci 8e41f4b71Sopenharmony_ci**Since**: 8 9e41f4b71Sopenharmony_ci 10e41f4b71Sopenharmony_ci**Related module**: [NativeWindow](_native_window.md) 11e41f4b71Sopenharmony_ci 12e41f4b71Sopenharmony_ci 13e41f4b71Sopenharmony_ci## Summary 14e41f4b71Sopenharmony_ci 15e41f4b71Sopenharmony_ci 16e41f4b71Sopenharmony_ci### Structs 17e41f4b71Sopenharmony_ci 18e41f4b71Sopenharmony_ci| Name| Description| 19e41f4b71Sopenharmony_ci| -------- | -------- | 20e41f4b71Sopenharmony_ci| struct [Rect](_rect.md) | Describes a rectangle.| 21e41f4b71Sopenharmony_ci 22e41f4b71Sopenharmony_ci 23e41f4b71Sopenharmony_ci### Member Variables 24e41f4b71Sopenharmony_ci 25e41f4b71Sopenharmony_ci| Name| Description| 26e41f4b71Sopenharmony_ci| -------- | -------- | 27e41f4b71Sopenharmony_ci| 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.| 28e41f4b71Sopenharmony_ci| int32_t [rectNumber](#rectnumber) | If **rectNumber** is **0**, the buffer size is the same as the size of the dirty region by default.| 29e41f4b71Sopenharmony_ci 30e41f4b71Sopenharmony_ci 31e41f4b71Sopenharmony_ci## Member Variable Description 32e41f4b71Sopenharmony_ci 33e41f4b71Sopenharmony_ci 34e41f4b71Sopenharmony_ci### rectNumber 35e41f4b71Sopenharmony_ci 36e41f4b71Sopenharmony_ci``` 37e41f4b71Sopenharmony_ciint32_t Region::rectNumber 38e41f4b71Sopenharmony_ci``` 39e41f4b71Sopenharmony_ci 40e41f4b71Sopenharmony_ci**Description** 41e41f4b71Sopenharmony_ci 42e41f4b71Sopenharmony_ciIf **rectNumber** is **0**, the buffer size is the same as the size of the dirty region by default. 43e41f4b71Sopenharmony_ci 44e41f4b71Sopenharmony_ci 45e41f4b71Sopenharmony_ci### \*rects 46e41f4b71Sopenharmony_ci 47e41f4b71Sopenharmony_ci``` 48e41f4b71Sopenharmony_cistruct Rect Region::*rects 49e41f4b71Sopenharmony_ci``` 50e41f4b71Sopenharmony_ci 51e41f4b71Sopenharmony_ci**Description** 52e41f4b71Sopenharmony_ci 53e41f4b71Sopenharmony_ciPointer 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. 54