pub struct PhysicalRectI32 {
pub x: i32,
pub y: i32,
pub w: i32,
pub h: i32,
}Expand description
Rectangle in physical pixel integers (snapped bounds).
§Examples
use ailloli_ui_core::PhysicalRectI32;
assert_eq!(PhysicalRectI32 { x: 2, y: 4, w: 6, h: 8 }.w, 6);Fields§
§x: i32Left edge in physical pixels.
y: i32Top edge in physical pixels.
w: i32Non-negative width in physical pixels.
h: i32Non-negative height in physical pixels.
Trait Implementations§
Source§impl Clone for PhysicalRectI32
impl Clone for PhysicalRectI32
Source§fn clone(&self) -> PhysicalRectI32
fn clone(&self) -> PhysicalRectI32
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 PhysicalRectI32
impl Debug for PhysicalRectI32
Source§impl PartialEq for PhysicalRectI32
impl PartialEq for PhysicalRectI32
impl Copy for PhysicalRectI32
impl Eq for PhysicalRectI32
impl StructuralPartialEq for PhysicalRectI32
Auto Trait Implementations§
impl Freeze for PhysicalRectI32
impl RefUnwindSafe for PhysicalRectI32
impl Send for PhysicalRectI32
impl Sync for PhysicalRectI32
impl Unpin for PhysicalRectI32
impl UnwindSafe for PhysicalRectI32
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