Struct gtk::builders::AdjustmentBuilder
source · [−]pub struct AdjustmentBuilder { /* private fields */ }
Expand description
A builder-pattern type to construct Adjustment
objects.
Implementations
sourceimpl AdjustmentBuilder
impl AdjustmentBuilder
sourcepub fn new() -> Self
pub fn new() -> Self
Create a new AdjustmentBuilder
.
sourcepub fn build(self) -> Adjustment
pub fn build(self) -> Adjustment
Build the Adjustment
.
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.
Trait Implementations
sourceimpl Clone for AdjustmentBuilder
impl Clone for AdjustmentBuilder
sourcefn clone(&self) -> AdjustmentBuilder
fn clone(&self) -> AdjustmentBuilder
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Default for AdjustmentBuilder
impl Default for AdjustmentBuilder
sourcefn default() -> AdjustmentBuilder
fn default() -> AdjustmentBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for AdjustmentBuilder
impl Send for AdjustmentBuilder
impl Sync for AdjustmentBuilder
impl Unpin for AdjustmentBuilder
impl UnwindSafe for AdjustmentBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more