slint::platform::SoftwareRenderer::PhysicalRegion Struct
struct PhysicalRegion;C++
#include <slint-platform.h>C++
Represents a region on the screen, used for partial rendering.
The region may be composed of multiple sub-regions.
Public Functions
Section titled “Public Functions” bounding_box_size
Section titled “ bounding_box_size”PhysicalSize slint::platform::SoftwareRenderer::PhysicalRegion::bounding_box_size() const
Returns the size of the bounding box of this region.
bounding_box_origin
Section titled “ bounding_box_origin”PhysicalPosition slint::platform::SoftwareRenderer::PhysicalRegion::bounding_box_origin() const
Returns the origin of the bounding box of this region.
rectangles
Section titled “ rectangles”auto slint::platform::SoftwareRenderer::PhysicalRegion::rectangles() const
Returns a view on all the rectangles in this region. The rectangles do not overlap. The returned type is a C++ view over PhysicalRegion::Rect structs.
It can be used like so:
for (auto [origin, size] : region.rectangles()) { // Do something with the rect}C++
© 2026 SixtyFPS GmbH