#[non_exhaustive]pub struct ParameterSliderControlBuilder { /* private fields */ }
Expand description
A builder for ParameterSliderControl
.
Implementations§
source§impl ParameterSliderControlBuilder
impl ParameterSliderControlBuilder
sourcepub fn parameter_control_id(self, input: impl Into<String>) -> Self
pub fn parameter_control_id(self, input: impl Into<String>) -> Self
The ID of the ParameterSliderControl
.
sourcepub fn set_parameter_control_id(self, input: Option<String>) -> Self
pub fn set_parameter_control_id(self, input: Option<String>) -> Self
The ID of the ParameterSliderControl
.
sourcepub fn get_parameter_control_id(&self) -> &Option<String>
pub fn get_parameter_control_id(&self) -> &Option<String>
The ID of the ParameterSliderControl
.
sourcepub fn title(self, input: impl Into<String>) -> Self
pub fn title(self, input: impl Into<String>) -> Self
The title of the ParameterSliderControl
.
sourcepub fn source_parameter_name(self, input: impl Into<String>) -> Self
pub fn source_parameter_name(self, input: impl Into<String>) -> Self
The source parameter name of the ParameterSliderControl
.
sourcepub fn set_source_parameter_name(self, input: Option<String>) -> Self
pub fn set_source_parameter_name(self, input: Option<String>) -> Self
The source parameter name of the ParameterSliderControl
.
sourcepub fn get_source_parameter_name(&self) -> &Option<String>
pub fn get_source_parameter_name(&self) -> &Option<String>
The source parameter name of the ParameterSliderControl
.
sourcepub fn display_options(self, input: SliderControlDisplayOptions) -> Self
pub fn display_options(self, input: SliderControlDisplayOptions) -> Self
The display options of a control.
sourcepub fn set_display_options(
self,
input: Option<SliderControlDisplayOptions>
) -> Self
pub fn set_display_options( self, input: Option<SliderControlDisplayOptions> ) -> Self
The display options of a control.
sourcepub fn get_display_options(&self) -> &Option<SliderControlDisplayOptions>
pub fn get_display_options(&self) -> &Option<SliderControlDisplayOptions>
The display options of a control.
sourcepub fn maximum_value(self, input: f64) -> Self
pub fn maximum_value(self, input: f64) -> Self
The smaller value that is displayed at the left of the slider.
This field is required.sourcepub fn set_maximum_value(self, input: Option<f64>) -> Self
pub fn set_maximum_value(self, input: Option<f64>) -> Self
The smaller value that is displayed at the left of the slider.
sourcepub fn get_maximum_value(&self) -> &Option<f64>
pub fn get_maximum_value(&self) -> &Option<f64>
The smaller value that is displayed at the left of the slider.
sourcepub fn minimum_value(self, input: f64) -> Self
pub fn minimum_value(self, input: f64) -> Self
The larger value that is displayed at the right of the slider.
This field is required.sourcepub fn set_minimum_value(self, input: Option<f64>) -> Self
pub fn set_minimum_value(self, input: Option<f64>) -> Self
The larger value that is displayed at the right of the slider.
sourcepub fn get_minimum_value(&self) -> &Option<f64>
pub fn get_minimum_value(&self) -> &Option<f64>
The larger value that is displayed at the right of the slider.
sourcepub fn step_size(self, input: f64) -> Self
pub fn step_size(self, input: f64) -> Self
The number of increments that the slider bar is divided into.
This field is required.sourcepub fn set_step_size(self, input: Option<f64>) -> Self
pub fn set_step_size(self, input: Option<f64>) -> Self
The number of increments that the slider bar is divided into.
sourcepub fn get_step_size(&self) -> &Option<f64>
pub fn get_step_size(&self) -> &Option<f64>
The number of increments that the slider bar is divided into.
sourcepub fn build(self) -> Result<ParameterSliderControl, BuildError>
pub fn build(self) -> Result<ParameterSliderControl, BuildError>
Consumes the builder and constructs a ParameterSliderControl
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ParameterSliderControlBuilder
impl Clone for ParameterSliderControlBuilder
source§fn clone(&self) -> ParameterSliderControlBuilder
fn clone(&self) -> ParameterSliderControlBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ParameterSliderControlBuilder
impl Default for ParameterSliderControlBuilder
source§fn default() -> ParameterSliderControlBuilder
fn default() -> ParameterSliderControlBuilder
source§impl PartialEq for ParameterSliderControlBuilder
impl PartialEq for ParameterSliderControlBuilder
source§fn eq(&self, other: &ParameterSliderControlBuilder) -> bool
fn eq(&self, other: &ParameterSliderControlBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.