Struct libnotcurses_sys::NcPixelGeometry
source · [−]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
sourceimpl Clone for NcPixelGeometry
impl Clone for NcPixelGeometry
sourcefn clone(&self) -> NcPixelGeometry
fn clone(&self) -> NcPixelGeometry
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
Auto Trait Implementations
impl RefUnwindSafe for NcPixelGeometry
impl Send for NcPixelGeometry
impl Sync for NcPixelGeometry
impl Unpin for NcPixelGeometry
impl UnwindSafe for NcPixelGeometry
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more