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 recorded 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 <= 1f.

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

Sets finite horizontal and vertical scales in 0f < value <= 1f.

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

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