pub struct AdjustmentBuilder { /* private fields */ }Expand description
A builder-pattern type to construct Adjustment objects.
Implementations§
Source§impl AdjustmentBuilder
impl AdjustmentBuilder
Sourcepub fn page_increment(self, page_increment: f64) -> Self
pub fn page_increment(self, page_increment: f64) -> Self
The page increment of the adjustment.
Sourcepub fn page_size(self, page_size: f64) -> Self
pub fn page_size(self, page_size: f64) -> Self
The page size of the adjustment.
Note that the page-size is irrelevant and should be set to zero
if the adjustment is used for a simple scalar value, e.g. in a
SpinButton.
Sourcepub fn step_increment(self, step_increment: f64) -> Self
pub fn step_increment(self, step_increment: f64) -> Self
The step increment of the adjustment.
Sourcepub fn upper(self, upper: f64) -> Self
pub fn upper(self, upper: f64) -> Self
The maximum value of the adjustment.
Note that values will be restricted by upper - page-size if the page-size
property is nonzero.
Sourcepub fn build(self) -> Adjustment
pub fn build(self) -> Adjustment
Build the Adjustment.