WithinAlignmentStrategy

data class WithinAlignmentStrategy(other: Boundable, alignmentType: ComponentAlignment) : AlignmentStrategy

Can be used to align objects within an other object. This means that calculatePosition will return a Position for which Boundable.containsPosition will return true when called on other.

Constructors

WithinAlignmentStrategy
Link copied to clipboard
common
fun WithinAlignmentStrategy(other: Boundable, alignmentType: ComponentAlignment)

Functions

calculatePosition
Link copied to clipboard
common
open override fun calculatePosition(size: Size): Position
Calculates the Position for an object having the given size relative to a Boundable.
copy
Link copied to clipboard
common
fun copy(other: Boundable, alignmentType: ComponentAlignment): WithinAlignmentStrategy
equals
Link copied to clipboard
common
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open override fun hashCode(): Int
toString
Link copied to clipboard
common
open override fun toString(): String

Sources

(source)
Link copied to clipboard