GlassInteractionScope

sealed interface GlassInteractionScope

Declares the visual response for one Glass interaction state.

This sealed receiver is implemented by Haze and is a declaration DSL, not a consumer implementation point. Each node evaluates these declarations into node-owned runtime state.

Functions

Link copied to clipboard
abstract fun animate(toSpec: FiniteAnimationSpec<Float>, fromSpec: FiniteAnimationSpec<Float>, block: GlassInteractionScope.() -> Unit)

Applies toSpec when entering and fromSpec when leaving the response declared by block. Animation specs retain the contract of their owning FiniteAnimationSpec type.

Link copied to clipboard
abstract fun lightingIntensity(intensity: Float)

Sets the finite lighting multiplier in the inclusive range 0f..1f.

Link copied to clipboard
abstract fun refractionMultiplier(multiplier: Float)

Sets the finite refraction multiplier in the inclusive range 0f..2f.

Link copied to clipboard
open fun scale(scale: Float)

Sets a finite uniform scale in 0f < scale <= 1.2f. Values above 1 grow the surface, which then draws beyond its layout bounds with no expandLayerBounds opt-in. In a hazeGlassContainer, the grown rect counts toward merging with nearby members.

abstract fun scale(scaleX: Float, scaleY: Float)

Sets finite horizontal and vertical scales in 0f < value <= 1.2f. Values above 1 grow the surface, which then draws beyond its layout bounds with no expandLayerBounds opt-in. In a hazeGlassContainer, a member with equal scales counts its grown rect toward merging with nearby members; unequal scales draw it on its own.

Link copied to clipboard
abstract fun whitePointDelta(delta: Float)

Sets the finite additive white-point adjustment in the inclusive range -1f..1f.