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.