Struct gtk4::ConstraintBuilder[][src]

pub struct ConstraintBuilder { /* fields omitted */ }
Expand description

A builder-pattern type to construct Constraint objects.

Implementations

Create a new ConstraintBuilder.

Build the Constraint.

The constant value to be added to the property::Constraint::source-attribute.

The multiplication factor to be applied to the property::Constraint::source-attribute.

The order relation between the terms of the constraint.

The source of the constraint.

The constraint will set the property::Constraint::target-attribute property of the target using the property::Constraint::source-attribute property of the source.

The attribute of the property::Constraint::source read by the constraint.

The strength of the constraint.

The strength can be expressed either using one of the symbolic values of the ConstraintStrength enumeration, or any positive integer value.

The target of the constraint.

The constraint will set the property::Constraint::target-attribute property of the target using the property::Constraint::source-attribute property of the source widget.

The attribute of the property::Constraint::target set by the constraint.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.