LavaUI docs GitHub

struct OverlayFrame

Swift

struct OverlayFrame

A detached overlay's resolved frame in window coordinates.

Sources/LavaUI/Overlay.swift:36

Constructors

init(x: Float, y: Float, width: Float, height: Float)

Creates a frame from its origin and size.

Sources/LavaUI/Overlay.swift:47

Properties

var height: Float

Height, in pixels.

Sources/LavaUI/Overlay.swift:44

var width: Float

Width, in pixels.

Sources/LavaUI/Overlay.swift:42

var x: Float

Left edge, in window pixels.

Sources/LavaUI/Overlay.swift:38

var y: Float

Top edge, in window pixels.

Sources/LavaUI/Overlay.swift:40