CSSPosition

class CSSPosition : StylePropertyValue(source)

Support for declaring a 2D coordinate relative to some element rectangle.

We also introduce the Edge class to support a strongly-typed API for the position concept. For example, CSSPosition(Edge.Left, Edge.Top)

You can specify an offset from an edge by "invoking" it: CSSPosition(Edge.Left(10.percent), Edge.Top(20.percent))

For more information about position values and what they mean, see: https://developer.mozilla.org/en-US/docs/Web/CSS/position_value

Constructors

Link copied to clipboard
constructor(x: CSSLengthOrPercentageNumericValue = 50.percent, y: CSSLengthOrPercentageNumericValue = 50.percent)
constructor(xAnchor: EdgeXOrCenter)
constructor(yAnchor: EdgeYOrCenter)
constructor(xAnchor: EdgeXOrCenter, yAnchor: EdgeYOrCenter)
constructor(xOffset: EdgeXOffset)
constructor(yOffset: EdgeYOffset)
constructor(xCenter: CenterX, y: CSSLengthOrPercentageNumericValue)
constructor(x: CSSLengthOrPercentageNumericValue, yCenter: CenterY)
constructor(xOffset: EdgeXOffset, yAnchor: EdgeYOrCenter)
constructor(xAnchor: EdgeXOrCenter, yOffset: EdgeYOffset)
constructor(xAnchor: EdgeXOffset, yAnchor: EdgeYOffset)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun toString(): String