TextBufferBounds.centerY

Finds the relative center point on the Y axis, optionally taking into account the height of another object (e.g. text).

struct TextBufferBounds
pure
size_t
centerY
(
const size_t height = 0
)

Parameters

height size_t

The optional height to take into account.

Return Value

Type: size_t

The relative center Y position, optionally offset by height.

Meta