Class SliderProperties
-
- All Implemented Interfaces:
-
kotlin.Cloneable
public class SliderProperties extends BlockProperties
-
-
Field Summary
Fields Modifier and Type Field Description private final Colors.PalettebarColorprivate final Colors.PaletteusedBarColorprivate final FloatthicknessRatioprivate final BooleansetInstantlyprivate 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 SliderProperties(Boolean setInstantly)
-
Method Summary
Modifier and Type Method Description Colors.PalettegetBarColor()Colors.PalettegetUsedBarColor()FloatgetThicknessRatio()This value controls the ratio of the thickness of the bar to the size of the slider head. BooleangetSetInstantly()-
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
-
getBarColor
Colors.Palette getBarColor()
-
getUsedBarColor
Colors.Palette getUsedBarColor()
-
getThicknessRatio
Float getThicknessRatio()
This value controls the ratio of the thickness of the bar to the size of the slider head.
The size of the slider head is the same as the size of the slider, and this is used to calculate the thickness of the bar.
Smaller values mean thicker bars, and larger values mean thinner bars.
-
getSetInstantly
Boolean getSetInstantly()
-
-
-
-