Struct gtk4::builders::ConstraintBuilder
source · [−]pub struct ConstraintBuilder { /* private fields */ }
Expand description
A builder-pattern type to construct Constraint
objects.
Implementations
sourceimpl ConstraintBuilder
impl ConstraintBuilder
sourcepub fn new() -> Self
pub fn new() -> Self
Create a new ConstraintBuilder
.
sourcepub fn build(self) -> Constraint
pub fn build(self) -> Constraint
Build the Constraint
.
pub fn constant(self, constant: f64) -> Self
pub fn multiplier(self, multiplier: f64) -> Self
pub fn relation(self, relation: ConstraintRelation) -> Self
pub fn source(self, source: &impl IsA<ConstraintTarget>) -> Self
pub fn source_attribute(self, source_attribute: ConstraintAttribute) -> Self
pub fn strength(self, strength: i32) -> Self
pub fn target(self, target: &impl IsA<ConstraintTarget>) -> Self
pub fn target_attribute(self, target_attribute: ConstraintAttribute) -> Self
Trait Implementations
sourceimpl Clone for ConstraintBuilder
impl Clone for ConstraintBuilder
sourcefn clone(&self) -> ConstraintBuilder
fn clone(&self) -> ConstraintBuilder
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 ConstraintBuilder
impl Default for ConstraintBuilder
sourcefn default() -> ConstraintBuilder
fn default() -> ConstraintBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for ConstraintBuilder
impl !Send for ConstraintBuilder
impl !Sync for ConstraintBuilder
impl Unpin for ConstraintBuilder
impl UnwindSafe for ConstraintBuilder
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