ComponentAlignments

object ComponentAlignments

This object contains factory functions for creating AlignmentStrategy objects.

Functions

alignmentAround
Link copied to clipboard
common
fun alignmentAround(component: Component, alignmentType: ComponentAlignment): AlignmentStrategy
Calculates the Position of the resulting Component relative to the given component using the given ComponentAlignment.
alignmentWithin
Link copied to clipboard
common
fun alignmentWithin(container: Container, alignmentType: ComponentAlignment): AlignmentStrategy
Calculates the Position of the resulting Component within the given container using the given ComponentAlignment.
fun alignmentWithin(tileGrid: TileGrid, alignmentType: ComponentAlignment): AlignmentStrategy
Calculates the Position of the resulting Component within the given tileGrid using the given ComponentAlignment.
equals
Link copied to clipboard
common
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open fun hashCode(): Int
positionalAlignment
Link copied to clipboard
common
fun positionalAlignment(position: Position): AlignmentStrategy
Creates a AlignmentStrategy which will align a Component within another one relative to its top left corner using the given Position.
fun positionalAlignment(x: Int, y: Int): AlignmentStrategy
Creates a AlignmentStrategy which will align a Component within another one relative to its top left corner using the given x,y coordinates.
toString
Link copied to clipboard
common
open fun toString(): String

Sources

(source)
Link copied to clipboard