Enum gtk::WindowPosition [−][src]
#[non_exhaustive] pub enum WindowPosition { None, Center, Mouse, CenterAlways, CenterOnParent, // some variants omitted }
Expand description
Window placement can be influenced using this enumeration. Note that
using CenterAlways
is almost always a bad idea.
It won’t necessarily work well with all window managers or on all windowing systems.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
No influence is made on placement.
Windows should be placed in the center of the screen.
Windows should be placed at the current mouse position.
Keep window centered as it changes size, etc.
Center the window on its transient
parent (see GtkWindowExt::set_transient_for()
).
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 WindowPosition
impl Send for WindowPosition
impl Sync for WindowPosition
impl Unpin for WindowPosition
impl UnwindSafe for WindowPosition
Blanket Implementations
Mutably borrows from an owned value. Read more
Returns a SendValue
clone of self
.