Struct neko::pty::Winszed []

#[repr(C)]
pub struct Winszed { pub ws_row: u16, pub ws_col: u16, pub ws_xpixel: u16, pub ws_ypixel: u16, }

The enum Winszed is the size of the tty window.

Fields

Rows, in characters.

Columns, in characters.

Horizontal size, pixels.

Vertical size, pixels.

Methods

impl Winszed

The constructor method new returns the window size.

The accessor function get_row returns the number of rows.

The accessor function get_col returns the number of columns.

The accessor function get_irow returns the number of rows.

The accessor function get_icol returns the number of columns.

The accessor function get_row returns the multiplication of row by colum.

The accessor function get_ref_row returns a ref on the number of rows.

The accessor function get_xpixel returns the horizontal size.

The accessor function get_ypixel returns the vertical size.

The method from_winsized changes the window size.

Trait Implementations

impl Copy for Winszed

impl Debug for Winszed

Formats the value using the given formatter.

impl PartialEq<Winszed> for Winszed

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Default for Winszed

Returns the "default value" for a type. Read more

impl Clone for Winszed

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more