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 new() -> Self
pub fn new() -> Self
Create a new ConstraintGuideBuilder
.
sourcepub fn build(self) -> ConstraintGuide
pub fn build(self) -> ConstraintGuide
Build the ConstraintGuide
.
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: &str) -> Self
pub fn name(self, name: &str) -> 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.
Trait Implementations§
source§impl Clone for ConstraintGuideBuilder
impl Clone for ConstraintGuideBuilder
source§fn clone(&self) -> ConstraintGuideBuilder
fn clone(&self) -> ConstraintGuideBuilder
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 ConstraintGuideBuilder
impl Default for ConstraintGuideBuilder
source§fn default() -> ConstraintGuideBuilder
fn default() -> ConstraintGuideBuilder
Returns the “default value” for a type. Read more