Struct libadwaita::builders::ClampLayoutBuilder
source · pub struct ClampLayoutBuilder { /* private fields */ }
Expand description
A builder-pattern type to construct ClampLayout
objects.
Implementations§
source§impl 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§
source§impl Clone for ClampLayoutBuilder
impl Clone for ClampLayoutBuilder
source§fn clone(&self) -> ClampLayoutBuilder
fn clone(&self) -> ClampLayoutBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for ClampLayoutBuilder
impl Default for ClampLayoutBuilder
source§fn default() -> ClampLayoutBuilder
fn default() -> ClampLayoutBuilder
Returns the “default value” for a type. Read more