Skip to content

TextFieldDefaults

The measurements a text field lays itself out by, for anything that has to line up beside one.

Public because a caller cannot arrive at these on its own: the padding is not derivable from the font, and a control sitting next to a field - a spinner's step buttons, say - matching it by a hand-picked number is a number that stops matching the moment either changes.

Properties

BORDER_PADDING

const val BORDER_PADDING: Int = 4

Space between a field's border and its text, on every side.

Functions

singleLineHeight

fun singleLineHeight(font: Font): Int

The height a single-line field lays itself out at in font - what singleLine measures to.