@Deprecated(message = "Use OrbiterPosition instead.", replaceWith = ReplaceWith("OrbiterPosition"))
public sealed class OrbiterAlignment private constructor(
internal val alignment: SpatialAlignment,
internal val edgeOffsetType: OrbiterEdgeOffsetType,
internal val offset: DpVolumeOffset,
)
Represents the alignment and offset configuration for an Orbiter in relation to the parent.
TopStart OrbiterEdgeOffsetType.None LTR Visual representation:
+---------+
| Orbiter | -----------------+
+---------+ |
| |
| SpatialPanel |
| |
| |
+------------------------+
BottomCenter OrbiterEdgeOffsetType.OuterEdge Visual representation:
+------------------------+
| |
| |
| SpatialPanel |
| |
| |
+------+----------+------+
| Orbiter |
+----------+
Members
Center
public class Center(
offset: DpVolumeOffset = DpVolumeOffset(0.dp, 0.dp, OrbiterDefaults.Elevation)
) : OrbiterAlignment(SpatialAlignment.Center, OrbiterEdgeOffsetType.None, offset)
Center of the parent (non-edge).
Parameters
| offset | manual offset applied to the orbiter after the edgeOffsetType's 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. |
TopStart
public class TopStart(
edgeOffsetType: OrbiterEdgeOffsetType = OrbiterEdgeOffsetType.OuterEdge,
offset: DpVolumeOffset = DpVolumeOffset(0.dp, 0.dp, OrbiterDefaults.Elevation),
) : OrbiterAlignment(SpatialAlignment.TopStart, edgeOffsetType, offset)
Top-Start edge alignment.
Parameters
| edgeOffsetType | boundary offset behavior relative to the parent bounds |
| offset | manual offset applied to the orbiter after the edgeOffsetType's 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. |
TopCenter
public class TopCenter(
edgeOffsetType: OrbiterEdgeOffsetType = OrbiterEdgeOffsetType.OuterEdge,
offset: DpVolumeOffset = DpVolumeOffset(0.dp, 0.dp, OrbiterDefaults.Elevation),
) : OrbiterAlignment(SpatialAlignment.TopCenter, edgeOffsetType, offset)
Top-Center edge alignment.
Parameters
| edgeOffsetType | boundary offset behavior relative to the parent bounds |
| offset | manual offset applied to the orbiter after the edgeOffsetType's 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. |
TopEnd
public class TopEnd(
edgeOffsetType: OrbiterEdgeOffsetType = OrbiterEdgeOffsetType.OuterEdge,
offset: DpVolumeOffset = DpVolumeOffset(0.dp, 0.dp, OrbiterDefaults.Elevation),
) : OrbiterAlignment(SpatialAlignment.TopEnd, edgeOffsetType, offset)
Top-End edge alignment.
Parameters
| edgeOffsetType | boundary offset behavior relative to the parent bounds |
| offset | manual offset applied to the orbiter after the edgeOffsetType's 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. |
CenterStart
public class CenterStart(
edgeOffsetType: OrbiterEdgeOffsetType = OrbiterEdgeOffsetType.OuterEdge,
offset: DpVolumeOffset = DpVolumeOffset(0.dp, 0.dp, OrbiterDefaults.Elevation),
) : OrbiterAlignment(SpatialAlignment.CenterStart, edgeOffsetType, offset)
Center-Start edge alignment.
Parameters
| edgeOffsetType | boundary offset behavior relative to the parent bounds |
| offset | manual offset applied to the orbiter after the edgeOffsetType's 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. |
CenterEnd
public class CenterEnd(
edgeOffsetType: OrbiterEdgeOffsetType = OrbiterEdgeOffsetType.OuterEdge,
offset: DpVolumeOffset = DpVolumeOffset(0.dp, 0.dp, OrbiterDefaults.Elevation),
) : OrbiterAlignment(SpatialAlignment.CenterEnd, edgeOffsetType, offset)
Center-End edge alignment.
Parameters
| edgeOffsetType | boundary offset behavior relative to the parent bounds |
| offset | manual offset applied to the orbiter after the edgeOffsetType's 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. |
BottomStart
public class BottomStart(
edgeOffsetType: OrbiterEdgeOffsetType = OrbiterEdgeOffsetType.OuterEdge,
offset: DpVolumeOffset = DpVolumeOffset(0.dp, 0.dp, OrbiterDefaults.Elevation),
) : OrbiterAlignment(SpatialAlignment.BottomStart, edgeOffsetType, offset)
Bottom-Start edge alignment.
Parameters
| edgeOffsetType | boundary offset behavior relative to the parent bounds |
| offset | manual offset applied to the orbiter after the edgeOffsetType's 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. |
BottomCenter
public class BottomCenter(
edgeOffsetType: OrbiterEdgeOffsetType = OrbiterEdgeOffsetType.OuterEdge,
offset: DpVolumeOffset = DpVolumeOffset(0.dp, 0.dp, OrbiterDefaults.Elevation),
) : OrbiterAlignment(SpatialAlignment.BottomCenter, edgeOffsetType, offset)
Bottom-Center edge alignment.
Parameters
| edgeOffsetType | boundary offset behavior relative to the parent bounds |
| offset | manual offset applied to the orbiter after the edgeOffsetType's 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. |
BottomEnd
public class BottomEnd(
edgeOffsetType: OrbiterEdgeOffsetType = OrbiterEdgeOffsetType.OuterEdge,
offset: DpVolumeOffset = DpVolumeOffset(0.dp, 0.dp, OrbiterDefaults.Elevation),
) : OrbiterAlignment(SpatialAlignment.BottomEnd, edgeOffsetType, offset)
Bottom-End edge alignment.
Parameters
| edgeOffsetType | boundary offset behavior relative to the parent bounds |
| offset | manual offset applied to the orbiter after the edgeOffsetType's 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. |
TopLeft
public class TopLeft(
edgeOffsetType: OrbiterEdgeOffsetType = OrbiterEdgeOffsetType.OuterEdge,
offset: DpVolumeOffset = DpVolumeOffset(0.dp, 0.dp, OrbiterDefaults.Elevation),
) : OrbiterAlignment(SpatialAbsoluteAlignment.TopLeft, edgeOffsetType, offset)
Top-Left absolute edge alignment.
Parameters
| edgeOffsetType | boundary offset behavior relative to the parent bounds |
| offset | manual offset applied to the orbiter after the edgeOffsetType's offset is applied without considering layout direction |
TopRight
public class TopRight(
edgeOffsetType: OrbiterEdgeOffsetType = OrbiterEdgeOffsetType.OuterEdge,
offset: DpVolumeOffset = DpVolumeOffset(0.dp, 0.dp, OrbiterDefaults.Elevation),
) : OrbiterAlignment(SpatialAbsoluteAlignment.TopRight, edgeOffsetType, offset)
Top-Right absolute edge alignment.
Parameters
| edgeOffsetType | boundary offset behavior relative to the parent bounds |
| offset | manual offset applied to the orbiter after the edgeOffsetType's offset is applied without considering layout direction |
CenterLeft
public class CenterLeft(
edgeOffsetType: OrbiterEdgeOffsetType = OrbiterEdgeOffsetType.OuterEdge,
offset: DpVolumeOffset = DpVolumeOffset(0.dp, 0.dp, OrbiterDefaults.Elevation),
) : OrbiterAlignment(SpatialAbsoluteAlignment.CenterLeft, edgeOffsetType, offset)
Center-Left absolute edge alignment.
Parameters
| edgeOffsetType | boundary offset behavior relative to the parent bounds |
| offset | manual offset applied to the orbiter after the edgeOffsetType's offset is applied without considering layout direction |
CenterRight
public class CenterRight(
edgeOffsetType: OrbiterEdgeOffsetType = OrbiterEdgeOffsetType.OuterEdge,
offset: DpVolumeOffset = DpVolumeOffset(0.dp, 0.dp, OrbiterDefaults.Elevation),
) : OrbiterAlignment(SpatialAbsoluteAlignment.CenterRight, edgeOffsetType, offset)
Center-Right absolute edge alignment.
Parameters
| edgeOffsetType | boundary offset behavior relative to the parent bounds |
| offset | manual offset applied to the orbiter after the edgeOffsetType's offset is applied without considering layout direction |
BottomLeft
public class BottomLeft(
edgeOffsetType: OrbiterEdgeOffsetType = OrbiterEdgeOffsetType.OuterEdge,
offset: DpVolumeOffset = DpVolumeOffset(0.dp, 0.dp, OrbiterDefaults.Elevation),
) : OrbiterAlignment(SpatialAbsoluteAlignment.BottomLeft, edgeOffsetType, offset)
Bottom-Left absolute edge alignment.
Parameters
| edgeOffsetType | boundary offset behavior relative to the parent bounds |
| offset | manual offset applied to the orbiter after the edgeOffsetType's offset is applied without considering layout direction |
BottomRight
public class BottomRight(
edgeOffsetType: OrbiterEdgeOffsetType = OrbiterEdgeOffsetType.OuterEdge,
offset: DpVolumeOffset = DpVolumeOffset(0.dp, 0.dp, OrbiterDefaults.Elevation),
) : OrbiterAlignment(SpatialAbsoluteAlignment.BottomRight, edgeOffsetType, offset)
Bottom-Right absolute edge alignment.
Parameters
| edgeOffsetType | boundary offset behavior relative to the parent bounds |
| offset | manual offset applied to the orbiter after the edgeOffsetType's offset is applied without considering layout direction |