Skip to content

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.

PhysicalSize slint::platform::SoftwareRenderer::PhysicalRegion::bounding_box_size() const

Returns the size of the bounding box of this region.

PhysicalPosition slint::platform::SoftwareRenderer::PhysicalRegion::bounding_box_origin() const

Returns the origin of the bounding box of this region.

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