---
title: "slint::platform::SoftwareRenderer::PhysicalRegion::Rect Struct"
---
```cpp
struct Rect;
```

```cpp
#include <slint-platform.h>
```

A Rectangle defined with an origin and a size. The [PhysicalRegion::rectangles()](../softwarerenderer-physicalregion/#rectangles) function returns a view over them

## Public Attributes

### `origin`

```cpp
PhysicalPosition slint::platform::SoftwareRenderer::PhysicalRegion::Rect::origin
```

The origin of the rectangle.

### `size`

```cpp
PhysicalSize slint::platform::SoftwareRenderer::PhysicalRegion::Rect::size
```

The size of the rectangle.