pub struct TerminalCellMetrics { /* private fields */ }Expand description
Terminal grid cell geometry converting character (cols, rows) to EUV logical dimensions.
Implementations§
Source§impl TerminalCellMetrics
Logical geometry conversion helpers for TerminalCellMetrics.
impl TerminalCellMetrics
Logical geometry conversion helpers for TerminalCellMetrics.
Sourcepub fn logical_width(&self) -> u32
pub fn logical_width(&self) -> u32
Sourcepub fn logical_height(&self) -> u32
pub fn logical_height(&self) -> u32
Source§impl TerminalCellMetrics
impl TerminalCellMetrics
pub fn get_cols(&self) -> u16
pub fn get_mut_cols(&mut self) -> &mut u16
pub fn set_cols(&mut self, val: u16) -> &mut TerminalCellMetrics
pub fn get_rows(&self) -> u16
pub fn get_mut_rows(&mut self) -> &mut u16
pub fn set_rows(&mut self, val: u16) -> &mut TerminalCellMetrics
pub fn get_cell_width_px(&self) -> f32
pub fn get_mut_cell_width_px(&mut self) -> &mut f32
pub fn set_cell_width_px(&mut self, val: f32) -> &mut TerminalCellMetrics
pub fn get_cell_height_px(&self) -> f32
pub fn get_mut_cell_height_px(&mut self) -> &mut f32
pub fn set_cell_height_px(&mut self, val: f32) -> &mut TerminalCellMetrics
Trait Implementations§
Source§impl Clone for TerminalCellMetrics
impl Clone for TerminalCellMetrics
Source§fn clone(&self) -> TerminalCellMetrics
fn clone(&self) -> TerminalCellMetrics
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TerminalCellMetrics
Source§impl Debug for TerminalCellMetrics
impl Debug for TerminalCellMetrics
Source§impl Default for TerminalCellMetrics
Default cell metrics (80x24, 8x16 logical pixels per cell).
impl Default for TerminalCellMetrics
Default cell metrics (80x24, 8x16 logical pixels per cell).
Source§fn default() -> TerminalCellMetrics
fn default() -> TerminalCellMetrics
Source§impl PartialEq for TerminalCellMetrics
impl PartialEq for TerminalCellMetrics
impl StructuralPartialEq for TerminalCellMetrics
Auto Trait Implementations§
impl Forget for TerminalCellMetrics
impl Freeze for TerminalCellMetrics
impl Move for TerminalCellMetrics
impl RefUnwindSafe for TerminalCellMetrics
impl Send for TerminalCellMetrics
impl Sync for TerminalCellMetrics
impl Unpin for TerminalCellMetrics
impl UnsafeUnpin for TerminalCellMetrics
impl UnwindSafe for TerminalCellMetrics
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