Class

RemoteSingleLineTextBounds

Contains the single-line layout dimensions and baseline from RemoteTextMeasurer.measureSingleLine.

Source set: JvmAndAndroid
public class RemoteSingleLineTextBounds(
    /**
     * Contains the single-line layout box dimensions in pixels.
     *
     * * Matches [androidx.compose.ui.text.TextLayoutResult.size] when `includeFontPadding` is
     *   `false`: `size.width` includes glyph side-bearings and spaces, and `size.height` spans the
     *   font box (`descent - ascent`).
     */
    public val size: RemoteSize,
    /**
     * Contains the distance in pixels from the top of the layout box to the alphabetic baseline.
     *
     * * Matches [androidx.compose.ui.text.TextLayoutResult.firstBaseline] for a single-line layout
     *   (`-ascent` when `includeFontPadding` is `false`).
     */
    public val baseline: RemoteFloat,
)

Contains the single-line layout dimensions and baseline from RemoteTextMeasurer.measureSingleLine.

Functions

equals

Source set: JvmAndAndroid
override fun equals(other: Any?): Boolean

hashCode

Source set: JvmAndAndroid
override fun hashCode(): Int

toString

Source set: JvmAndAndroid
override fun toString(): String
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: