Class StatedProperties
-
- All Implemented Interfaces:
-
kotlin.Cloneable
public class StatedProperties extends BlockProperties
-
-
Field Summary
Fields Modifier and Type Field Description private final Colors.PaletteactivePaletteprivate final Animation.TypeactivateAnimationprivate final LongactivateAnimationDurationprivate final transient Function1<StateBlock, Unit>onActivateprivate final transient Function1<StateBlock, Unit>onDeactivateprivate final ColoroutlineColorprivate final Colors.Palettepaletteprivate final Animation.TypepressedAnimationprivate final Animation.TypehoverAnimationprivate final LongpressedAnimationDurationprivate final LonghoverAnimationDurationprivate final FloatArraycornerRadiiprivate final FloatoutlineThicknessprivate transient Function1<Properties, Colors.Palette>paletteGetprivate transient Colorscolorsprivate transient FontFamilyfontsprivate final Vec2<Unit>sizeprivate final transient HashMap<Event, Function2<Component, Event, Boolean>>eventHandlersprivate final Booleaninitialized
-
Constructor Summary
Constructors Constructor Description StatedProperties()
-
Method Summary
Modifier and Type Method Description Colors.PalettegetActivePalette()Animation.TypegetActivateAnimation()This is the animation used when the component is activated. LonggetActivateAnimationDuration()Function1<StateBlock, Unit>getOnActivate()This function is called when the component is activated. Function1<StateBlock, Unit>getOnDeactivate()This function is called when the component is deactivated. -
Methods inherited from class org.polyfrost.polyui.property.impl.BlockProperties
getCornerRadii, getHoverAnimation, getHoverAnimationDuration, getOutlineColor, getOutlineThickness, getPalette, getPaletteGet, getPressedAnimation, getPressedAnimationDuration, setPaletteGet -
Methods inherited from class org.polyfrost.polyui.property.Properties
addEventHandler, getColors, getEventHandlers, getFonts, getInitialized, getSize, init, setColors, setFonts -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getActivePalette
Colors.Palette getActivePalette()
-
getActivateAnimation
Animation.Type getActivateAnimation()
This is the animation used when the component is activated.
-
getActivateAnimationDuration
Long getActivateAnimationDuration()
-
getOnActivate
Function1<StateBlock, Unit> getOnActivate()
This function is called when the component is activated.
-
getOnDeactivate
Function1<StateBlock, Unit> getOnDeactivate()
This function is called when the component is deactivated.
-
-
-
-