drawRect

abstract fun drawRect(char: Char, foreground: Color = Color.Unspecified, background: Color = Color.Unspecified, textStyle: TextStyle = TextStyle.Unspecified, topLeft: IntOffset = IntOffset.Zero, size: IntSize = this.size.offsetSize(topLeft), drawStyle: DrawStyle = DrawStyle.Fill)

Draws a rectangle with the given offset and size. If no offset from the top left is provided, it is drawn starting from the origin of the current translation. If no size is provided, the size of the current environment is used.

Parameters

char

Char to be applied to the rectangle

foreground

Foreground color to be applied to the rectangle

background

Background color to be applied to the rectangle

textStyle

Text style color to be applied to the rectangle

topLeft

Offset from the local origin of 0, 0 relative to the current translation

size

Dimensions of the rectangle to draw

drawStyle

Whether or not the rectangle is stroked or filled in


abstract fun drawRect(codePoint: Int = UnspecifiedCodePoint, foreground: Color = Color.Unspecified, background: Color = Color.Unspecified, textStyle: TextStyle = TextStyle.Unspecified, topLeft: IntOffset = IntOffset.Zero, size: IntSize = this.size.offsetSize(topLeft), drawStyle: DrawStyle = DrawStyle.Fill)

Draws a rectangle with the given offset and size. If no offset from the top left is provided, it is drawn starting from the origin of the current translation. If no size is provided, the size of the current environment is used.

Parameters

codePoint

Code point to be applied to the rectangle

foreground

Foreground color to be applied to the rectangle

background

Background color to be applied to the rectangle

textStyle

Text style color to be applied to the rectangle

topLeft

Offset from the local origin of 0, 0 relative to the current translation

size

Dimensions of the rectangle to draw

drawStyle

Whether or not the rectangle is stroked or filled in