net.kernelpanicsoft.archie.gui.interaction¶
Types¶
DragInteraction¶
sealed interface DragInteraction : Interaction
Interactions describing a pointer drag.
FocusInteraction¶
sealed interface FocusInteraction : Interaction
Interactions describing vanilla keyboard/controller focus - see net.kernelpanicsoft.archie.gui.modifiers.input.focusable.
HoverInteraction¶
sealed interface HoverInteraction : Interaction
Interactions describing pointer hover.
Interaction¶
sealed interface Interaction
A discrete input interaction a component emits about itself through its MutableInteractionSource - modeled on Jetpack Compose's Interaction/InteractionSource.
InteractionSource¶
interface InteractionSource
A read-only stream of Interactions a component emits about itself (press, hover, focus, drag). Several independent pieces of UI - the widget's own visuals, a shared "indication" effect, a test assertion - can all observe the same interaction state this way, instead of each hand-rolling its own separate hovered/pressed/focused booleans.
MutableInteractionSource¶
interface MutableInteractionSource : InteractionSource
An InteractionSource that can also emit new Interactions into itself.
PressInteraction¶
sealed interface PressInteraction : Interaction
Interactions describing a pointer press.