BasicSliderBehavior

class BasicSliderBehavior<T : Comparable<T>>(barFill: (Slider<T>) -> Paint, knobFill: (Slider<T>) -> Paint, rangeFill: (Slider<T>) -> Paint? = null, grooveThicknessRatio: Float = 0.6f, showTicks: TickPresentation? = null, focusManager: FocusManager? = null) : AbstractSliderBehavior<T> (source)

A simple SliderBehavior that renders a bar with a round knob and ticks if enabled.

Parameters

barFill

paint used to fill the slider's bar

knobFill

paint used to fill the slider's knob

rangeFill

paint used to fill the section between the slider's start and knob

grooveThicknessRatio

size of the bar vs the knob diameter

showTicks

if and how ticks are shown on the slider

focusManager

used to request focus for the slider

Constructors

Link copied to clipboard
constructor(barFill: Paint = Lightgray.paint, knobFill: Paint = Blue.paint, rangeFill: Paint? = null, grooveThicknessRatio: Float = 0.6f, showTicks: TickPresentation? = null, focusManager: FocusManager? = null)

A simple SliderBehavior that renders a bar with a round knob and ticks if enabled.

constructor(barFill: (Slider<T>) -> Paint, knobFill: (Slider<T>) -> Paint, rangeFill: (Slider<T>) -> Paint? = null, grooveThicknessRatio: Float = 0.6f, showTicks: TickPresentation? = null, focusManager: FocusManager? = null)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open override fun render(view: Slider<T>, canvas: Canvas)

Inherited functions

Link copied to clipboard
Link copied to clipboard
open fun clicked(event: PointerEvent)
Link copied to clipboard
Link copied to clipboard
open fun contains(view: Slider<T>, point: Point): Boolean
Link copied to clipboard
open override fun dragged(event: PointerEvent)
Link copied to clipboard
open fun entered(event: PointerEvent)
Link copied to clipboard
open fun exited(event: PointerEvent)
Link copied to clipboard
open override fun handleBounds(slider: Slider<T>): Rectangle
Link copied to clipboard
protected fun handlePosition(slider: Slider<T>): Double
Link copied to clipboard
protected open fun handlePressed(slider: Slider<T>)
Link copied to clipboard
protected open fun handleReleased(slider: Slider<T>)
Link copied to clipboard
protected fun handleSize(slider: Slider<T>): Double
Link copied to clipboard
open override fun install(view: Slider<T>)
Link copied to clipboard
Link copied to clipboard
open fun moved(event: PointerEvent)
Link copied to clipboard
open override fun pressed(event: KeyEvent)
open override fun pressed(event: PointerEvent)
Link copied to clipboard
open override fun released(event: PointerEvent)
open fun released(event: KeyEvent)
Link copied to clipboard
open fun Slider<T>.setFraction(value: Float)
Link copied to clipboard
open override fun uninstall(view: Slider<T>)