Package-level declarations

Types

Link copied to clipboard

Direction used by a shared layout plan.

Link copied to clipboard
fun interface StylishLayoutEngine<I>

Computes a StylishRenderPlan from a pure model and host viewport.

Link copied to clipboard
data class StylishLayoutRect(val leftPx: Float, val topPx: Float, val rightPx: Float, val bottomPx: Float)

A renderer-independent rectangle in viewport pixels.

Link copied to clipboard
fun interface StylishReducer<S, A>

Framework-neutral reducer contract retained in the root artifact for source and binary compatibility.

Link copied to clipboard
fun interface StylishRenderer<T>

Platform bridge boundary for a render plan.

Link copied to clipboard
data class StylishRenderNode(val id: String, val bounds: StylishLayoutRect, val role: StylishSemanticRole = StylishSemanticRole.Generic, val label: String? = null, val stateDescription: String? = null, val enabled: Boolean = true, val selected: Boolean = false, val children: List<String> = emptyList())

A single node in a renderer-independent visual and semantic plan.

Link copied to clipboard
data class StylishRenderPlan(val nodes: List<StylishRenderNode>, val focusedNodeId: String? = null)

Immutable output of a headless layout engine.

Link copied to clipboard

Semantic roles understood by host renderers.

Link copied to clipboard
data class StylishViewport(val widthPx: Float, val heightPx: Float, val density: Float = 1.0f, val layoutDirection: StylishLayoutDirection = StylishLayoutDirection.Ltr)

Platform-neutral viewport metrics supplied by a host before layout.