DpTouchBoundsExpansion


Describes the expansion of a PointerInputModifierNode's touch bounds along each edges using Dp for units. See DpTouchBoundsExpansion factories and Absolute for convenient ways to build DpTouchBoundsExpansion.

Summary

Public companion functions

DpTouchBoundsExpansion
Absolute(left: Dp, top: Dp, right: Dp, bottom: Dp)

Creates a DpTouchBoundsExpansion that's unaware of LayoutDirection.

Cmn

Public constructors

DpTouchBoundsExpansion(
    start: Dp,
    top: Dp,
    end: Dp,
    bottom: Dp,
    isLayoutDirectionAware: Boolean
)
Cmn

Public functions

TouchBoundsExpansion
Cmn

Public properties

Dp
Cmn
Dp
Cmn
Boolean
Cmn
Dp
Cmn
Dp
Cmn

Public companion functions

Absolute

fun Absolute(left: Dp = 0.dp, top: Dp = 0.dp, right: Dp = 0.dp, bottom: Dp = 0.dp): DpTouchBoundsExpansion

Creates a DpTouchBoundsExpansion that's unaware of LayoutDirection. The left, top, right and bottom represent the distance that the touch bounds is expanded along the corresponding edge.

Public constructors

DpTouchBoundsExpansion

DpTouchBoundsExpansion(
    start: Dp,
    top: Dp,
    end: Dp,
    bottom: Dp,
    isLayoutDirectionAware: Boolean
)

Public functions

roundToTouchBoundsExpansion

fun roundToTouchBoundsExpansion(density: Density): TouchBoundsExpansion

Public properties

bottom

val bottomDp

end

val endDp

isLayoutDirectionAware

val isLayoutDirectionAwareBoolean

start

val startDp

top

val topDp