Class endstone::StepSlider¶
ClassList > endstone > StepSlider
Represents a step slider with a set of predefined options.
- #include <endstone/form/controls/step_slider.h>
Inherits the following classes: endstone::Dropdown
Public Functions¶
| Type | Name | 
|---|---|
| Dropdown () = default | |
| Dropdown (Message label, std::vector< std::string > options, std::optional< int > default_index=std::nullopt) | 
Public Functions inherited from endstone::Dropdown¶
| Type | Name | 
|---|---|
| Dropdown () = default | |
| Dropdown (Message label, std::vector< std::string > options, std::optional< int > default_index=std::nullopt) | |
| Dropdown & | addOption (const std::string & option) Adds a new option to the dropdown. | 
| std::optional< int > | getDefaultIndex () const Gets the default index of the dropdown. | 
| Message | getLabel () const Gets the label of the dropdown. | 
| std::vector< std::string > | getOptions () const Gets the options of the dropdown. | 
| Dropdown & | setDefaultIndex (std::optional< int > default_index) Sets the default index of the dropdown. | 
| Dropdown & | setLabel (Message label) Sets the label of the dropdown. | 
| Dropdown & | setOptions (std::vector< std::string > options) Sets the options of the dropdown. | 
Public Functions Documentation¶
function Dropdown [½]¶
function Dropdown [2/2]¶
inline explicit endstone::StepSlider::Dropdown (
    Message label,
    std::vector< std::string > options,
    std::optional< int > default_index=std::nullopt
) 
The documentation for this class was generated from the following file include/endstone/form/controls/step_slider.h