Struct libadwaita::builders::ClampLayoutBuilder
source · [−]pub struct ClampLayoutBuilder { /* private fields */ }
Expand description
A builder-pattern type to construct ClampLayout
objects.
Implementations
sourceimpl ClampLayoutBuilder
impl ClampLayoutBuilder
sourcepub fn new() -> Self
pub fn new() -> Self
Create a new ClampLayoutBuilder
.
sourcepub fn build(self) -> ClampLayout
pub fn build(self) -> ClampLayout
Build the ClampLayout
.
pub fn maximum_size(self, maximum_size: i32) -> Self
pub fn tightening_threshold(self, tightening_threshold: i32) -> Self
pub fn orientation(self, orientation: Orientation) -> Self
Trait Implementations
sourceimpl Clone for ClampLayoutBuilder
impl Clone for ClampLayoutBuilder
sourcefn clone(&self) -> ClampLayoutBuilder
fn clone(&self) -> ClampLayoutBuilder
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 ClampLayoutBuilder
impl Default for ClampLayoutBuilder
sourcefn default() -> ClampLayoutBuilder
fn default() -> ClampLayoutBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for ClampLayoutBuilder
impl Send for ClampLayoutBuilder
impl Sync for ClampLayoutBuilder
impl Unpin for ClampLayoutBuilder
impl UnwindSafe for ClampLayoutBuilder
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