Struct gtk4::builders::ConstraintGuideBuilder
source · [−]pub struct ConstraintGuideBuilder { /* private fields */ }
Expand description
A builder-pattern type to construct ConstraintGuide
objects.
Implementations
sourceimpl ConstraintGuideBuilder
impl ConstraintGuideBuilder
sourcepub fn new() -> Self
pub fn new() -> Self
Create a new ConstraintGuideBuilder
.
sourcepub fn build(self) -> ConstraintGuide
pub fn build(self) -> ConstraintGuide
Build the ConstraintGuide
.
pub fn max_height(self, max_height: i32) -> Self
pub fn max_width(self, max_width: i32) -> Self
pub fn min_height(self, min_height: i32) -> Self
pub fn min_width(self, min_width: i32) -> Self
pub fn name(self, name: &str) -> Self
pub fn nat_height(self, nat_height: i32) -> Self
pub fn nat_width(self, nat_width: i32) -> Self
pub fn strength(self, strength: ConstraintStrength) -> Self
Trait Implementations
sourceimpl Clone for ConstraintGuideBuilder
impl Clone for ConstraintGuideBuilder
sourcefn clone(&self) -> ConstraintGuideBuilder
fn clone(&self) -> ConstraintGuideBuilder
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 ConstraintGuideBuilder
impl Default for ConstraintGuideBuilder
sourcefn default() -> ConstraintGuideBuilder
fn default() -> ConstraintGuideBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for ConstraintGuideBuilder
impl Send for ConstraintGuideBuilder
impl Sync for ConstraintGuideBuilder
impl Unpin for ConstraintGuideBuilder
impl UnwindSafe for ConstraintGuideBuilder
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