Knob
A circular input control that allows users to interact by rotating it, usually to select numeric values within a defined range. It’s commonly used for adjusting settings like volume, brightness, or any other parameter that can be controlled by rotating a knob. The circular design of the widget provides a visually intuitive way for users to modify values in an application
local knob = Knob()
Properties
- setOnValueChanged(callback)
The function executed when the button is clicked
- Params:
self
andvalue
- setRange(text)
Sets the
minimum
andmaximum
values for the widget
- setValue(value)
Sets current value for the widget
- setMinValue(value)
Sets the minimum value for the widget
- setMaxValue(value)
Sets the maximum value for the widget
- getValue()
Get current value
- setIndicators(enable: bool)
Set whether or not markers are visible on the widget
- isIndicatorVisible()
Check if markers are visible or not