pub struct NcPixelGeometry {
pub term_y: u32,
pub term_x: u32,
pub cell_y: u32,
pub cell_x: u32,
pub max_bitmap_y: u32,
pub max_bitmap_x: u32,
}Expand description
Contains the pixel geometry information as returned by the
NcPlane.pixel_geom method.
If bitmaps are not supported, the fields max_bitmap_* will be 0.
See also NcVisualGeometry.
Fields§
§term_y: u32The height in pixels of the display region.
term_x: u32The width in pixels of the display region.
cell_y: u32The height in pixels of a single cell.
cell_x: u32The width in pixels of a single cell.
max_bitmap_y: u32The height in pixels of the maximum displayable bitmap (0 if not supported).
max_bitmap_x: u32The width in pixels of the maximum displayable bitmap (0 if not supported).
Trait Implementations§
Source§impl Clone for NcPixelGeometry
impl Clone for NcPixelGeometry
Source§fn clone(&self) -> NcPixelGeometry
fn clone(&self) -> NcPixelGeometry
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for NcPixelGeometry
impl RefUnwindSafe for NcPixelGeometry
impl Send for NcPixelGeometry
impl Sync for NcPixelGeometry
impl Unpin for NcPixelGeometry
impl UnwindSafe for NcPixelGeometry
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