drawInBox

fun drawInBox(drawer: Drawer, owner: Any, slot: String, style: StyleSheet, text: String, box: Rectangle, horizontalAlign: Double, verticalAlign: Double, color: ColorRGBa, wrap: Boolean = false)(source)

Draws text in the face of style in box, at horizontalAlign and verticalAlign in it, from 0 at the left and the top to 1 at the right and the bottom; broken into lines at the width of the box when wrap is set and the white space of the style wraps, cut with an ellipsis when it is a single line that does not fit and the text overflow of the style is ellipsis, with the decoration of the style