Struct gtk4::builders::ConstraintGuideBuilder
source · pub struct ConstraintGuideBuilder { /* private fields */ }
Expand description
A builder-pattern type to construct ConstraintGuide
objects.
Implementations§
source§impl ConstraintGuideBuilder
impl ConstraintGuideBuilder
sourcepub fn max_height(self, max_height: i32) -> Self
pub fn max_height(self, max_height: i32) -> Self
The maximum height of the guide.
sourcepub fn min_height(self, min_height: i32) -> Self
pub fn min_height(self, min_height: i32) -> Self
The minimum height of the guide.
sourcepub fn name(self, name: impl Into<GString>) -> Self
pub fn name(self, name: impl Into<GString>) -> Self
A name that identifies the ConstraintGuide
, for debugging.
sourcepub fn nat_height(self, nat_height: i32) -> Self
pub fn nat_height(self, nat_height: i32) -> Self
The preferred, or natural, height of the guide.
sourcepub fn strength(self, strength: ConstraintStrength) -> Self
pub fn strength(self, strength: ConstraintStrength) -> Self
The ConstraintStrength
to be used for the constraint on
the natural size of the guide.
sourcepub fn build(self) -> ConstraintGuide
pub fn build(self) -> ConstraintGuide
Build the ConstraintGuide
.
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more