pub struct LogicalPixelsRect {
pub min: LogicalPixelsPoint,
pub max: LogicalPixelsPoint,
}Fields§
§min: LogicalPixelsPoint§max: LogicalPixelsPointImplementations§
Source§impl LogicalPixelsRect
impl LogicalPixelsRect
pub fn new(min: LogicalPixelsPoint, max: LogicalPixelsPoint) -> Self
pub fn with_size(min: LogicalPixelsPoint, size: LogicalPixelsSize) -> Self
pub fn zero() -> Self
pub fn width(&self) -> LogicalPixels
pub fn height(&self) -> LogicalPixels
pub fn checked_div(self, other: Self) -> Option<Self>
pub fn center(&self) -> LogicalPixelsPoint
Trait Implementations§
Source§impl Clone for LogicalPixelsRect
impl Clone for LogicalPixelsRect
Source§fn clone(&self) -> LogicalPixelsRect
fn clone(&self) -> LogicalPixelsRect
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 LogicalPixelsRect
Source§impl Debug for LogicalPixelsRect
impl Debug for LogicalPixelsRect
Source§impl Default for LogicalPixelsRect
impl Default for LogicalPixelsRect
Source§fn default() -> LogicalPixelsRect
fn default() -> LogicalPixelsRect
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 InLogicalScale<LogicalPixelsRect> for PhysicalPixelsFRect
impl InLogicalScale<LogicalPixelsRect> for PhysicalPixelsFRect
fn in_logical_scale(&self, scale_factor: &ScaleFactor) -> LogicalPixelsRect
Source§impl InPhysicalScale<PhysicalPixelsFRect> for LogicalPixelsRect
impl InPhysicalScale<PhysicalPixelsFRect> for LogicalPixelsRect
fn in_physical_scale(&self, scale_factor: &ScaleFactor) -> PhysicalPixelsFRect
Source§impl InPhysicalScale<PhysicalPixelsRect> for LogicalPixelsRect
impl InPhysicalScale<PhysicalPixelsRect> for LogicalPixelsRect
fn in_physical_scale(&self, scale_factor: &ScaleFactor) -> PhysicalPixelsRect
Source§impl PartialEq for LogicalPixelsRect
impl PartialEq for LogicalPixelsRect
impl StructuralPartialEq for LogicalPixelsRect
Auto Trait Implementations§
impl Freeze for LogicalPixelsRect
impl RefUnwindSafe for LogicalPixelsRect
impl Send for LogicalPixelsRect
impl Sync for LogicalPixelsRect
impl Unpin for LogicalPixelsRect
impl UnsafeUnpin for LogicalPixelsRect
impl UnwindSafe for LogicalPixelsRect
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