pub struct SizeInfo {
pub width: f32,
pub height: f32,
pub cell_width: f32,
pub cell_height: f32,
pub padding_x: f32,
pub padding_y: f32,
pub dpr: f64,
}Expand description
Terminal size info
Fields§
§width: f32Terminal window width
height: f32Terminal window height
cell_width: f32Width of individual cell
cell_height: f32Height of individual cell
padding_x: f32Horizontal window padding
padding_y: f32Horizontal window padding
dpr: f64DPI factor of the current window
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SizeInfo
impl RefUnwindSafe for SizeInfo
impl Send for SizeInfo
impl Sync for SizeInfo
impl Unpin for SizeInfo
impl UnwindSafe for SizeInfo
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