OrbiterPosition.TopEnd

class OrbiterPosition.TopEnd : OrbiterPosition


Top-End edge alignment.

Summary

Public constructors

TopEnd(
    horizontalEdgeAlignment: OrbiterPosition.EdgeAlignment,
    verticalEdgeAlignment: OrbiterPosition.EdgeAlignment,
    offset: DpVolumeOffset
)

Public constructors

TopEnd

Added in 1.0.0-beta01
TopEnd(
    horizontalEdgeAlignment: OrbiterPosition.EdgeAlignment = EdgeAlignment.Outside,
    verticalEdgeAlignment: OrbiterPosition.EdgeAlignment = EdgeAlignment.Outside,
    offset: DpVolumeOffset = DpVolumeOffset(0.dp, 0.dp, OrbiterDefaults.Elevation)
)
Parameters
horizontalEdgeAlignment: OrbiterPosition.EdgeAlignment = EdgeAlignment.Outside

boundary offset behavior relative to the end edge of the parent's bounds

verticalEdgeAlignment: OrbiterPosition.EdgeAlignment = EdgeAlignment.Outside

boundary offset behavior relative to the top edge of the parent's bounds

offset: DpVolumeOffset = DpVolumeOffset(0.dp, 0.dp, OrbiterDefaults.Elevation)

manual offset applied to the orbiter after the edge offset is applied. This offset will automatically adjust the horizontal offset according to the layout direction: when the layout direction is LTR, positive x offsets will move the content to the right and when the layout direction is RTL, positive x offsets will move the content to the left.