BasicCircularSliderBehavior

class BasicCircularSliderBehavior<T : Comparable<T>>(barFill: (CircularSlider<T>) -> Paint, knobFill: (CircularSlider<T>) -> Paint, rangeFill: (CircularSlider<T>) -> Paint? = null, thickness: Double = 20.0, showTicks: CircularTickPresentation? = null, startAngle: Measure<Angle> = _270, focusManager: FocusManager? = null) : AbstractCircularSliderBehavior<T> (source)

Creates a basic behavior for rendering CircularSliders. It allows customization of the bar, range, thickness, and knob of the slider.

Parameters

barFill

for the slider's background

knobFill

for the knob

rangeFill

for the slider's range region

thickness

of the slider

showTicks

indicates if/how ticks should be drawn

startAngle

where the slider's 0 position should be

focusManager

used to manage focus

Constructors

Link copied to clipboard
constructor(barFill: Paint = Lightgray.paint, knobFill: Paint = Blue.paint, rangeFill: Paint? = null, thickness: Double = 20.0, focusManager: FocusManager? = null, showTicks: CircularTickPresentation? = null, startAngle: Measure<Angle> = _270)

Creates a basic behavior for rendering CircularSliders.

constructor(barFill: (CircularSlider<T>) -> Paint, knobFill: (CircularSlider<T>) -> Paint, rangeFill: (CircularSlider<T>) -> Paint? = null, thickness: Double = 20.0, showTicks: CircularTickPresentation? = null, startAngle: Measure<Angle> = _270, focusManager: FocusManager? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Inherited properties

Link copied to clipboard
Link copied to clipboard
protected val startAngle: Measure<Angle>

Functions

Link copied to clipboard
open override fun render(view: CircularSlider<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: CircularSlider<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
protected fun handleAngle(slider: CircularSlider<T>): Measure<Angle>
Link copied to clipboard
open override fun install(view: CircularSlider<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 fun released(event: KeyEvent)
open fun released(event: PointerEvent)
Link copied to clipboard
open override fun uninstall(view: CircularSlider<T>)