ScrollbarLayoutScope

A scope, which allows to report the ScrollbarMeasurements and further draw the Scrollbar with the measured values inside the DrawScope.

Inheritors

Properties

Link copied to clipboard
abstract val density: Float
Link copied to clipboard
expect abstract val fontScale: Float

Functions

Link copied to clipboard
abstract fun drawWithMeasurements(measurements: ScrollbarMeasurements, drawScrollbarAndIndicator: DrawScope.() -> Unit): ScrollbarMeasurementResult
Link copied to clipboard
open fun Dp.roundToPx(): Int
open fun TextUnit.roundToPx(): Int
Link copied to clipboard
open fun Float.toDp(): Dp
open fun Int.toDp(): Dp
expect open fun TextUnit.toDp(): Dp
Link copied to clipboard
open fun Size.toDpSize(): DpSize
Link copied to clipboard
open fun Dp.toPx(): Float
open fun TextUnit.toPx(): Float
Link copied to clipboard
open fun DpRect.toRect(): Rect
Link copied to clipboard
open fun DpSize.toSize(): Size
Link copied to clipboard
open fun Float.toSp(): TextUnit
open fun Int.toSp(): TextUnit
expect open fun Dp.toSp(): TextUnit