struct HStack
Swift
struct HStack<Content> where Content : View
Not documented.
Sources/LavaUI/Stack.swift:47
Constructors
init(flexGrow: Float = 0, width: Dimension = .auto, height: Dimension = .auto, padding: Float = 0, alignment: StackAlignment = .stretch, spacing: Float? = nil, wraps: Bool = false, onClick: (() -> Void)? = nil, onPointer: ((_ mods: Int32, _ button: Int32) -> Void)? = nil, onHover: ((Bool) -> Void)? = nil, onWheel: ((Float, Float) -> Void)? = nil, @ViewBuilder content: () -> Content)
Not documented.
Sources/LavaUI/Stack.swift:57
Properties
var content: Content
Not documented.
Sources/LavaUI/Stack.swift:49
var dumpDetail: String { get }
Not documented.
Sources/LavaUI/Stack.swift:82
var onClick: (() -> Void)?
Not documented.
Sources/LavaUI/Stack.swift:50
var onHover: ((Bool) -> Void)?
Not documented.
Sources/LavaUI/Stack.swift:54
var onPointer: ((_ mods: Int32, _ button: Int32) -> Void)?
Button-aware press (PointerButton.left / .right / …). When set,
takes priority over onClick.
Sources/LavaUI/Stack.swift:53
var onWheel: ((Float, Float) -> Void)?
Not documented.
Sources/LavaUI/Stack.swift:55
var style: StackStyle
Not documented.
Sources/LavaUI/Stack.swift:48
Methods
func mountPrimitive() -> any AnyViewNode
Not documented.
Sources/LavaUI/Stack.swift:92
func reconcilePrimitive(_ node: any AnyViewNode) -> any AnyViewNode
Not documented.
Sources/LavaUI/Stack.swift:105
func structureLines(indent: Int = 0) -> [String]
Not documented.
Sources/LavaUI/Stack.swift:84