Enum gtk4::ConstraintAttribute [−][src]
#[non_exhaustive]
pub enum ConstraintAttribute {
None,
Left,
Right,
Top,
Bottom,
Start,
End,
Width,
Height,
CenterX,
CenterY,
Baseline,
// some variants omitted
}
Expand description
The widget attributes that can be used when creating a Constraint
.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
No attribute, used for constant relations
The left edge of a widget, regardless of text direction
The right edge of a widget, regardless of text direction
The top edge of a widget
The bottom edge of a widget
The leading edge of a widget, depending
on text direction; equivalent to Left
for LTR
languages, and Right
for RTL ones
The trailing edge of a widget, depending
on text direction; equivalent to Right
for LTR
languages, and Left
for RTL ones
The width of a widget
The height of a widget
The center of a widget, on the horizontal axis
The center of a widget, on the vertical axis
The baseline of a widget
Trait Implementations
type Checker = GenericValueTypeChecker<Self>
type Checker = GenericValueTypeChecker<Self>
Value type checker.
Get the contained value from a Value
. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Returns the type identifier of Self
.
Auto Trait Implementations
impl RefUnwindSafe for ConstraintAttribute
impl Send for ConstraintAttribute
impl Sync for ConstraintAttribute
impl Unpin for ConstraintAttribute
impl UnwindSafe for ConstraintAttribute
Blanket Implementations
Mutably borrows from an owned value. Read more
Returns a SendValue
clone of self
.