🌈 Create new beautiful Compose Gradients with our new wesite ->
Class

PaneExpansionAnchor.Offset

PaneExpansionAnchor implementation that specifies the anchor position based on the offset in Dp.

Source set: Common
public abstract class Offset internal constructor(public val offset: Dp, override internal val type: Int) :
        PaneExpansionAnchor()

PaneExpansionAnchor implementation that specifies the anchor position based on the offset in Dp.

Properties

direction

Source set: Common
public val direction: Direction = Direction(type)

Indicates the direction of the offset.

Members

Direction

Source set: Common
public class Direction internal constructor(internal val value: Int)

Represents the direction from where the offset will be calculated.

Members

Companion

Source set: Common
public companion object

Properties

FromStart

Source set: Common
public val FromStart: Direction = Direction(OffsetFromStartType)

Indicates the offset will be calculated from the start. For example, if the offset is 150.dp, the resulted anchor will be at the position that is 150dp away from the start side of the associated layout.

FromEnd

Source set: Common
public val FromEnd: Direction = Direction(OffsetFromEndType)

Indicates the offset will be calculated from the end. For example, if the offset is 150.dp, the resulted anchor will be at the position that is 150dp away from the end side of the associated layout.

Companion

Source set: Common
public companion object

Functions

fromStart

Source set: Common
public fun fromStart(offset: Dp): Offset

Create an androidx.compose.material3.adaptive.layout.PaneExpansionAnchor.Offset anchor from the start side of the layout.

Parameters

offset offset to be used in Dp.

fromEnd

Source set: Common
public fun fromEnd(offset: Dp): Offset

Create an androidx.compose.material3.adaptive.layout.PaneExpansionAnchor.Offset anchor from the end side of the layout.

Parameters

offset offset to be used in Dp.

Content updated: