docs/io.github.mkohm.detekt.hint.demo/-rectangle/index.md
---
title: Rectangle -
---
[io.github.mkohm.detekt.hint.demo](../index.html) / [Rectangle](./index.html)
# Rectangle
`open class Rectangle`
### Constructors
| [<init>](-init-.html) | `Rectangle(width: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, height: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` |
### Functions
| [setHeight](set-height.html) | `fun setHeight(newHeight: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) |
| [setWidth](set-width.html) | `fun setWidth(newWidth: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) |
### Inheritors
| [Square](../-square/index.html) | `class Square : `[`Rectangle`](./index.html) |