Enum gdk4::Gravity [−][src]
#[non_exhaustive]
pub enum Gravity {
NorthWest,
North,
NorthEast,
West,
Center,
East,
SouthWest,
South,
SouthEast,
Static,
// some variants omitted
}
Expand description
Defines the reference point of a surface and is used in PopupLayout
.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
the reference point is at the top left corner.
the reference point is in the middle of the top edge.
the reference point is at the top right corner.
the reference point is at the middle of the left edge.
the reference point is at the center of the surface.
the reference point is at the middle of the right edge.
the reference point is at the lower left corner.
the reference point is at the middle of the lower edge.
the reference point is at the lower right corner.
the reference point is at the top left corner of the surface itself, ignoring window manager decorations.
Trait Implementations
type Checker = GenericValueTypeChecker<Self>
type Checker = GenericValueTypeChecker<Self>
Value type checker.
Get the contained value from a Value
. Read more
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 Gravity
impl UnwindSafe for Gravity
Blanket Implementations
Mutably borrows from an owned value. Read more
Returns a SendValue
clone of self
.