pub struct LogicalPixelsPoint {
pub x: LogicalPixels,
pub y: LogicalPixels,
}Fields§
§x: LogicalPixels§y: LogicalPixelsImplementations§
Source§impl LogicalPixelsPoint
impl LogicalPixelsPoint
pub fn new(x: LogicalPixels, y: LogicalPixels) -> Self
pub fn zero() -> Self
pub fn distance(self, other: Self) -> f32
Trait Implementations§
Source§impl Add for LogicalPixelsPoint
impl Add for LogicalPixelsPoint
Source§impl Clone for LogicalPixelsPoint
impl Clone for LogicalPixelsPoint
Source§fn clone(&self) -> LogicalPixelsPoint
fn clone(&self) -> LogicalPixelsPoint
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 LogicalPixelsPoint
Source§impl Debug for LogicalPixelsPoint
impl Debug for LogicalPixelsPoint
Source§impl Default for LogicalPixelsPoint
impl Default for LogicalPixelsPoint
Source§fn default() -> LogicalPixelsPoint
fn default() -> LogicalPixelsPoint
Returns the “default value” for a type. Read more
Source§impl From<(LogicalPixels, LogicalPixels)> for LogicalPixelsPoint
impl From<(LogicalPixels, LogicalPixels)> for LogicalPixelsPoint
Source§fn from(tuple: (LogicalPixels, LogicalPixels)) -> Self
fn from(tuple: (LogicalPixels, LogicalPixels)) -> Self
Converts to this type from the input type.
Source§impl From<LogicalPixelsPoint> for [LogicalPixels; 2]
impl From<LogicalPixelsPoint> for [LogicalPixels; 2]
Source§fn from(point: LogicalPixelsPoint) -> Self
fn from(point: LogicalPixelsPoint) -> Self
Converts to this type from the input type.
Source§impl From<LogicalPixelsPoint> for (LogicalPixels, LogicalPixels)
impl From<LogicalPixelsPoint> for (LogicalPixels, LogicalPixels)
Source§fn from(point: LogicalPixelsPoint) -> Self
fn from(point: LogicalPixelsPoint) -> Self
Converts to this type from the input type.
Source§impl From<LogicalPixelsPoint> for [f32; 2]
impl From<LogicalPixelsPoint> for [f32; 2]
Source§fn from(point: LogicalPixelsPoint) -> Self
fn from(point: LogicalPixelsPoint) -> Self
Converts to this type from the input type.
Source§impl From<LogicalPixelsPoint> for (f32, f32)
impl From<LogicalPixelsPoint> for (f32, f32)
Source§fn from(point: LogicalPixelsPoint) -> Self
fn from(point: LogicalPixelsPoint) -> Self
Converts to this type from the input type.
Source§impl From<[LogicalPixels; 2]> for LogicalPixelsPoint
impl From<[LogicalPixels; 2]> for LogicalPixelsPoint
Source§fn from(arr: [LogicalPixels; 2]) -> Self
fn from(arr: [LogicalPixels; 2]) -> Self
Converts to this type from the input type.
Source§impl InLogicalScale<LogicalPixelsPoint> for PhysicalPixelsPoint
impl InLogicalScale<LogicalPixelsPoint> for PhysicalPixelsPoint
fn in_logical_scale(&self, scale_factor: &ScaleFactor) -> LogicalPixelsPoint
Source§impl InLogicalScale<LogicalPixelsPoint> for PhysicalPixelsFPoint
impl InLogicalScale<LogicalPixelsPoint> for PhysicalPixelsFPoint
fn in_logical_scale(&self, scale_factor: &ScaleFactor) -> LogicalPixelsPoint
Source§impl InPhysicalScale<PhysicalPixelsFPoint> for LogicalPixelsPoint
impl InPhysicalScale<PhysicalPixelsFPoint> for LogicalPixelsPoint
fn in_physical_scale(&self, scale_factor: &ScaleFactor) -> PhysicalPixelsFPoint
Source§impl InPhysicalScale<PhysicalPixelsPoint> for LogicalPixelsPoint
impl InPhysicalScale<PhysicalPixelsPoint> for LogicalPixelsPoint
fn in_physical_scale(&self, scale_factor: &ScaleFactor) -> PhysicalPixelsPoint
Source§impl Mul for LogicalPixelsPoint
impl Mul for LogicalPixelsPoint
Source§impl PartialEq for LogicalPixelsPoint
impl PartialEq for LogicalPixelsPoint
impl StructuralPartialEq for LogicalPixelsPoint
Auto Trait Implementations§
impl Freeze for LogicalPixelsPoint
impl RefUnwindSafe for LogicalPixelsPoint
impl Send for LogicalPixelsPoint
impl Sync for LogicalPixelsPoint
impl Unpin for LogicalPixelsPoint
impl UnsafeUnpin for LogicalPixelsPoint
impl UnwindSafe for LogicalPixelsPoint
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