pub struct PhysicalPixelsRect {
pub min: PhysicalPixelsPoint,
pub max: PhysicalPixelsPoint,
}Fields§
§min: PhysicalPixelsPoint§max: PhysicalPixelsPointImplementations§
Source§impl PhysicalPixelsRect
impl PhysicalPixelsRect
pub fn new(min: PhysicalPixelsPoint, max: PhysicalPixelsPoint) -> Self
pub fn with_size(min: PhysicalPixelsPoint, size: PhysicalPixelsSize) -> Self
pub fn zero() -> Self
pub fn width(&self) -> PhysicalPixels
pub fn height(&self) -> PhysicalPixels
pub fn checked_div(self, other: Self) -> Option<Self>
pub fn center(&self) -> PhysicalPixelsPoint
Trait Implementations§
Source§impl Clone for PhysicalPixelsRect
impl Clone for PhysicalPixelsRect
Source§fn clone(&self) -> PhysicalPixelsRect
fn clone(&self) -> PhysicalPixelsRect
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 PhysicalPixelsRect
Source§impl Debug for PhysicalPixelsRect
impl Debug for PhysicalPixelsRect
Source§impl Default for PhysicalPixelsRect
impl Default for PhysicalPixelsRect
Source§fn default() -> PhysicalPixelsRect
fn default() -> PhysicalPixelsRect
Returns the “default value” for a type. Read more
Source§impl InLogicalScale<LogicalPixelsRect> for PhysicalPixelsRect
impl InLogicalScale<LogicalPixelsRect> for PhysicalPixelsRect
fn in_logical_scale(&self, scale_factor: &ScaleFactor) -> LogicalPixelsRect
Source§impl InPhysicalScale<PhysicalPixelsRect> for LogicalPixelsRect
impl InPhysicalScale<PhysicalPixelsRect> for LogicalPixelsRect
fn in_physical_scale(&self, scale_factor: &ScaleFactor) -> PhysicalPixelsRect
Source§impl PartialEq for PhysicalPixelsRect
impl PartialEq for PhysicalPixelsRect
impl StructuralPartialEq for PhysicalPixelsRect
Auto Trait Implementations§
impl Freeze for PhysicalPixelsRect
impl RefUnwindSafe for PhysicalPixelsRect
impl Send for PhysicalPixelsRect
impl Sync for PhysicalPixelsRect
impl Unpin for PhysicalPixelsRect
impl UnsafeUnpin for PhysicalPixelsRect
impl UnwindSafe for PhysicalPixelsRect
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