pub struct Geometry {
pub cols: u32,
pub rows: u32,
pub px_w: u32,
pub px_h: u32,
pub cell_px_w: u32,
pub cell_px_h: u32,
}Expand description
The size a surface currently has. cols/rows are cells; px_w/px_h
the pixel size of the graphics model (zero while the viewer has no pixel
geometry); cell_px_w/cell_px_h the pixel size of one cell.
Fields§
§cols: u32§rows: u32§px_w: u32§px_h: u32§cell_px_w: u32§cell_px_h: u32Implementations§
Trait Implementations§
impl Copy for Geometry
impl Eq for Geometry
impl StructuralPartialEq for Geometry
Auto Trait Implementations§
impl Freeze for Geometry
impl RefUnwindSafe for Geometry
impl Send for Geometry
impl Sync for Geometry
impl Unpin for Geometry
impl UnsafeUnpin for Geometry
impl UnwindSafe for Geometry
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