[−][src]Struct alacritty_terminal::term::SizeInfo
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
DPR of the current window.
Implementations
impl SizeInfo
[src]
pub fn lines(&self) -> Line
[src]
pub fn cols(&self) -> Column
[src]
pub fn padding_right(&self) -> usize
[src]
pub fn padding_bottom(&self) -> usize
[src]
pub fn contains_point(&self, x: usize, y: usize) -> bool
[src]
Check if coordinates are inside the terminal grid.
The padding is not counted as part of the grid.
pub fn pixels_to_coords(&self, x: usize, y: usize) -> Point
[src]
Trait Implementations
impl Clone for SizeInfo
[src]
impl Copy for SizeInfo
[src]
impl Debug for SizeInfo
[src]
impl<'de> Deserialize<'de> for SizeInfo
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<SizeInfo> for SizeInfo
[src]
impl Serialize for SizeInfo
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for SizeInfo
[src]
impl<'a> ToWinsize for &'a SizeInfo
[src]
fn to_winsize(&self) -> winsize
[src]
Auto Trait Implementations
impl RefUnwindSafe for SizeInfo
impl Send for SizeInfo
impl Sync for SizeInfo
impl Unpin for SizeInfo
impl UnwindSafe for SizeInfo
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,