#[repr(u16)]pub enum Position {
TopLeft = 0,
TopRight = 1,
BottomLeft = 2,
BottomRight = 3,
TopCenter = 4,
BottomCenter = 5,
LeftCenter = 6,
RightCenter = 7,
Center = 8,
}Expand description
Well known window positions.
The Tray* variants require the tray-icon feature and only resolve once the tray icon has
reported its position (see on_tray_event); using one before that happens returns an error.
Variants§
TopLeft = 0
Top left corner of the current screen.
TopRight = 1
Top right corner of the current screen.
BottomLeft = 2
Bottom left corner of the current screen.
BottomRight = 3
Bottom right corner of the current screen.
TopCenter = 4
Top center of the current screen.
BottomCenter = 5
Bottom center of the current screen.
LeftCenter = 6
Vertically centered on the left edge of the current screen.
RightCenter = 7
Vertically centered on the right edge of the current screen.
Center = 8
Center of the current screen.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Position
impl<'de> Deserialize<'de> for Position
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Position
impl RefUnwindSafe for Position
impl Send for Position
impl Sync for Position
impl Unpin for Position
impl UnsafeUnpin for Position
impl UnwindSafe for Position
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