pub struct CornerInset {
pub width: f64,
pub height: f64,
}Expand description
The footprint of a system window control at one corner, in logical pixels.
width is measured inward from the safe-area rectangle’s vertical edge and
height inward from its horizontal edge. See CornerInsets for the full
contract.
Fields§
§width: f64Horizontal extent, in logical px.
height: f64Vertical extent, in logical px.
Implementations§
Source§impl CornerInset
impl CornerInset
Trait Implementations§
Source§impl Clone for CornerInset
impl Clone for CornerInset
impl Copy for CornerInset
Source§impl Debug for CornerInset
impl Debug for CornerInset
Source§impl Default for CornerInset
impl Default for CornerInset
Source§impl PartialEq for CornerInset
impl PartialEq for CornerInset
impl StructuralPartialEq for CornerInset
Auto Trait Implementations§
impl Freeze for CornerInset
impl RefUnwindSafe for CornerInset
impl Send for CornerInset
impl Sync for CornerInset
impl Unpin for CornerInset
impl UnsafeUnpin for CornerInset
impl UnwindSafe for CornerInset
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.