[][src]Struct alacritty::term::SizeInfo

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,
}

Terminal size info

Fields

width: f32

Terminal window width

height: f32

Terminal window height

cell_width: f32

Width of individual cell

cell_height: f32

Height of individual cell

padding_x: f32

Horizontal window padding

padding_y: f32

Horizontal window padding

dpr: f64

DPI factor of the current window

Methods

impl SizeInfo[src]

pub fn lines(&self) -> Line[src]

pub fn cols(&self) -> Column[src]

pub fn contains_point(&self, x: usize, y: usize, include_padding: bool) -> bool[src]

pub fn pixels_to_coords(&self, x: usize, y: usize) -> Point[src]

Trait Implementations

impl<'a> ToWinsize for &'a SizeInfo[src]

impl Clone for SizeInfo[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for SizeInfo[src]

impl Debug for SizeInfo[src]

impl Serialize for SizeInfo[src]

impl<'de> Deserialize<'de> for SizeInfo[src]

Auto Trait Implementations

impl Send for SizeInfo

impl Sync for SizeInfo

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> SetParameter for T[src]

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 
[src]

Sets value as a parameter of self.

impl<T> Erased for T[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]