Represents a SeekBar object in the Bind framework. More...
#include <BindSeekBar.hpp>
Public Member Functions | |
| BindSeekBar () | |
Default constructor to create a BindSeekBar with default properties. | |
| void | setCallback (void(*callback)(int16_t)) |
| Set the Callback function for the SeekBar. | |
| void | invokeCallback (int16_t valueIn) |
| uint16_t | getBytes (uint8_t *out) override |
| Serialize the SeekBar data into a byte array. | |
Public Attributes | |
| int16_t | x |
| X-coordinate position of the SeekBar. | |
| int16_t | y |
| Y-coordinate position of the SeekBar. | |
| uint8_t | cmdId = 0 |
| Command identifier. See the notes for possible cmdId values. | |
| int16_t | value = 0 |
| Current value selected on the SeekBar. | |
| int16_t | maxValue = 100 |
| Maximum value of the SeekBar. | |
| int16_t | width = 200 |
| Width of the SeekBar. | |
Public Attributes inherited from BindView | |
| int16_t | tag |
Represents a SeekBar object in the Bind framework.
The BindSeekBar class defines a SeekBar object that can be used in the Bind framework. SeekBars are typically used to select a value within a specified range (determined by maxValue) by dragging a slider. This class provides methods to configure SeekBars on the screen.
|
inlineoverridevirtual |
Serialize the SeekBar data into a byte array.
This function serializes the SeekBar's properties and data into a byte array for communication with the Bind framework.
| out | A pointer to the output byte array. |
Reimplemented from BindView.
|
inline |
Set the Callback function for the SeekBar.
This callback function is called when the SeekBar value is changed. The signature of the callback function should be like:
| callback |