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: u32
The height in pixels of the display region.
term_x: u32
The width in pixels of the display region.
cell_y: u32
The height in pixels of a single cell.
cell_x: u32
The width in pixels of a single cell.
max_bitmap_y: u32
The height in pixels of the maximum displayable bitmap (0 if not supported).
max_bitmap_x: u32
The 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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more