Enum arc_util::ui::window::WindowAnchor
source · pub enum WindowAnchor {
TopLeft,
TopRight,
BottomLeft,
BottomRight,
Center,
}
Expand description
Screen anchor point for window.
Variants§
TopLeft
Anchored to top left of screen, growing down & right.
TopRight
Anchored to top right of screen, growing down & left.
BottomLeft
Anchored to bottom left of screen, growing up & right.
BottomRight
Anchored to bottom right of screen, growing up & left.
Center
Anchored to center of screen, growing centered.
Implementations§
Trait Implementations§
source§impl Clone for WindowAnchor
impl Clone for WindowAnchor
source§fn clone(&self) -> WindowAnchor
fn clone(&self) -> WindowAnchor
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for WindowAnchor
impl Debug for WindowAnchor
source§impl<'de> Deserialize<'de> for WindowAnchor
impl<'de> Deserialize<'de> for WindowAnchor
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
source§impl Hash for WindowAnchor
impl Hash for WindowAnchor
source§impl Ord for WindowAnchor
impl Ord for WindowAnchor
source§fn cmp(&self, other: &WindowAnchor) -> Ordering
fn cmp(&self, other: &WindowAnchor) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for WindowAnchor
impl PartialEq for WindowAnchor
source§fn eq(&self, other: &WindowAnchor) -> bool
fn eq(&self, other: &WindowAnchor) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for WindowAnchor
impl PartialOrd for WindowAnchor
source§fn partial_cmp(&self, other: &WindowAnchor) -> Option<Ordering>
fn partial_cmp(&self, other: &WindowAnchor) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for WindowAnchor
impl Serialize for WindowAnchor
impl Copy for WindowAnchor
impl Eq for WindowAnchor
impl StructuralPartialEq for WindowAnchor
Auto Trait Implementations§
impl Freeze for WindowAnchor
impl RefUnwindSafe for WindowAnchor
impl Send for WindowAnchor
impl Sync for WindowAnchor
impl Unpin for WindowAnchor
impl UnwindSafe for WindowAnchor
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