Yes, and those implementations look like
@Stable
val TopStart: Alignment = DirectionalAlignment(-1f, -1f)
@Stable
val TopCenter: Alignment = DirectionalAlignment(-1f, 0f)
@Stable
val TopEnd: Alignment = DirectionalAlignment(-1f, 1f)
@Stable
val CenterStart: Alignment = DirectionalAlignment(0f, -1f)
@Stable
val Center: Alignment = DirectionalAlignment(0f, 0f)
But let's say that I want some element not quite at the top center, but almost there (verticalBias = -0.75f instead of -1f).
Why not provide the ability to create new instances of that
DirectionalAlignment
implementation?
As you say, yes it's an interface so custom implementations can be easily created, that's really good. Just wondering if there's any reason why that specific implementation is
private
instead of public.