public sealed interface PaneMotion
Interface to specify a custom pane enter/exit motion when a pane's visibility changes.
Properties
type
public val type: Type
The type of the motion, like exiting, entering, etc. See Type.
Members
Type
public class Type private constructor(public val value: Int)
Indicates the current type of pane motion, like if the pane is entering or exiting, or is kept showing or hidden.
Members
Companion
public companion object
Properties
Hidden
public val Hidden: Type = Type(0)
Indicates the pane is kept hidden during the current motion.
Exiting
public val Exiting: Type = Type(1)
Indicates the pane is exiting or hiding during the current motion.
Entering
public val Entering: Type = Type(2)
Indicates the pane is entering or showing during the current motion.
Shown
public val Shown: Type = Type(3)
Indicates the pane is keeping being shown during the current motion.
ExitingModal
public val ExitingModal: Type = Type(5)
Indicates the pane is exiting or hiding as a modal, i.e., a levitated pane, during the current motion.
EnteringModal
public val EnteringModal: Type = Type(6)
Indicates the pane is entering or showing as a modal, i.e., a levitated pane, during the current motion.
Companion
public companion object
Properties
NoMotion
public val NoMotion: PaneMotion = DefaultImpl("NoMotion", Type.Hidden)
The default pane motion that no animation will be performed.
AnimateBounds
public val AnimateBounds: PaneMotion = DefaultImpl("AnimateBounds", Type.Shown)
The default pane motion that will animate panes bounds with the given animation specs during motion. Note that this should only be used when the associated pane is keeping showing during the motion.
EnterFromLeft
public val EnterFromLeft: PaneMotion = DefaultImpl("EnterFromLeft", Type.Entering)
The default pane motion that will slide panes in from left. Note that this should only be used when the associated pane is entering - i.e. becoming visible from a hidden state.
EnterFromRight
public val EnterFromRight: PaneMotion = DefaultImpl("EnterFromRight", Type.Entering)
The default pane motion that will slide panes in from right. Note that this should only be used when the associated pane is entering - i.e. becoming visible from a hidden state.
EnterFromLeftDelayed
public val EnterFromLeftDelayed: PaneMotion =
DefaultImpl("EnterFromLeftDelayed", Type.Entering)
The default pane motion that will slide panes in from left with a delay, usually to avoid the interference of other exiting panes. Note that this should only be used when the associated pane is entering - i.e. becoming visible from a hidden state.
EnterFromRightDelayed
public val EnterFromRightDelayed: PaneMotion =
DefaultImpl("EnterFromRightDelayed", Type.Entering)
The default pane motion that will slide panes in from right with a delay, usually to avoid the interference of other exiting panes. Note that this should only be used when the associated pane is entering - i.e. becoming visible from a hidden state.
ExitToLeft
public val ExitToLeft: PaneMotion = DefaultImpl("ExitToLeft", Type.Exiting)
The default pane motion that will slide panes out to left. Note that this should only be used when the associated pane is exiting - i.e. becoming hidden from a visible state.
ExitToRight
public val ExitToRight: PaneMotion = DefaultImpl("ExitToRight", Type.Exiting)
The default pane motion that will slide panes out to right. Note that this should only be used when the associated pane is exiting - i.e. becoming hidden from a visible state.
EnterWithExpand
public val EnterWithExpand: PaneMotion = DefaultImpl("EnterWithExpand", Type.Entering)
The default pane motion that will expand panes from a zero size. Note that this should only be used when the associated pane is entering - i.e. becoming visible from a hidden state.
ExitWithShrink
public val ExitWithShrink: PaneMotion = DefaultImpl("ExitWithShrink", Type.Exiting)
The default pane motion that will shrink panes until it's gone. Note that this should only be used when the associated pane is exiting - i.e. becoming hidden from a visible state.
EnterAsModal
public val EnterAsModal: PaneMotion = DefaultImpl("EnterAsModal", Type.EnteringModal)
The default pane motion that will show the pane as a modal. Note that this should only be used when the associated pane is entering into a levitated state from a hidden state.
ExitAsModal
public val ExitAsModal: PaneMotion = DefaultImpl("ExitAsModal", Type.ExitingModal)
The default pane motion that will hide the pane as a modal. Note that this should only be used when the associated pane is exiting from a leviated state to a hidden state.