pub struct LogicalWindowPosition {
pub x: f64,
pub y: f64,
}Expand description
Window position in logical desktop coordinates.
Negative, fractional, and non-finite coordinates are stored verbatim.
§Examples
use ailloli_ui_app_storage::LogicalWindowPosition;
assert_eq!(LogicalWindowPosition::new(-20.5, 10.0).x, -20.5);Fields§
§x: f64Horizontal logical desktop coordinate.
y: f64Vertical logical desktop coordinate.
Implementations§
Trait Implementations§
Source§impl Clone for LogicalWindowPosition
impl Clone for LogicalWindowPosition
Source§fn clone(&self) -> LogicalWindowPosition
fn clone(&self) -> LogicalWindowPosition
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 LogicalWindowPosition
impl Debug for LogicalWindowPosition
Source§impl<'de> Deserialize<'de> for LogicalWindowPosition
impl<'de> Deserialize<'de> for LogicalWindowPosition
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 PartialEq for LogicalWindowPosition
impl PartialEq for LogicalWindowPosition
Source§impl Serialize for LogicalWindowPosition
impl Serialize for LogicalWindowPosition
impl Copy for LogicalWindowPosition
impl StructuralPartialEq for LogicalWindowPosition
Auto Trait Implementations§
impl Freeze for LogicalWindowPosition
impl RefUnwindSafe for LogicalWindowPosition
impl Send for LogicalWindowPosition
impl Sync for LogicalWindowPosition
impl Unpin for LogicalWindowPosition
impl UnwindSafe for LogicalWindowPosition
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