Source set: Common
public data class DpTouchBoundsExpansion(
public val start: Dp,
public val top: Dp,
public val end: Dp,
public val bottom: Dp,
public val isLayoutDirectionAware: Boolean,
)
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.
Functions
roundToTouchBoundsExpansion
Source set: Common
public fun roundToTouchBoundsExpansion(density: Density): TouchBoundsExpansion
Members
Companion
Source set: Common
public companion object
Functions
Absolute
Source set: Common
public 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.