#[non_exhaustive]pub enum WindowGravity {
Center,
Top,
Bottom,
Left,
Right,
TopLeft,
BottomLeft,
TopRight,
BottomRight,
}Expand description
Defines in what direction a surface should be positioned See: https://wayland.app/protocols/xdg-shell#xdg_positioner:request:set_gravity
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for WindowGravity
impl Clone for WindowGravity
Source§fn clone(&self) -> WindowGravity
fn clone(&self) -> WindowGravity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WindowGravity
Source§impl Debug for WindowGravity
impl Debug for WindowGravity
Source§impl Default for WindowGravity
impl Default for WindowGravity
Source§fn default() -> WindowGravity
fn default() -> WindowGravity
Returns the “default value” for a type. Read more
Source§impl PartialEq for WindowGravity
impl PartialEq for WindowGravity
impl StructuralPartialEq for WindowGravity
Auto Trait Implementations§
impl Freeze for WindowGravity
impl RefUnwindSafe for WindowGravity
impl Send for WindowGravity
impl Sync for WindowGravity
impl Unpin for WindowGravity
impl UnsafeUnpin for WindowGravity
impl UnwindSafe for WindowGravity
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more