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
.
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§
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