Struct pty_proc::shell::display::winsz::Winszed [] [src]

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

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
[src]

[src]

The constructor method new returns the window size.

[src]

The accessor function get_row returns the number of rows.

[src]

The accessor function get_col returns the number of columns.

[src]

The accessor function get_irow returns the number of rows.

[src]

The accessor function get_icol returns the number of columns.

[src]

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

[src]

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

[src]

The accessor function get_xpixel returns the horizontal size.

[src]

The accessor function get_ypixel returns the vertical size.

[src]

The method from_winsized changes the window size.

Trait Implementations

impl Clone for Winszed
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Winszed
[src]

impl Debug for Winszed
[src]

[src]

Formats the value using the given formatter. Read more

impl Default for Winszed
[src]

[src]

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

impl PartialEq for Winszed
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

impl From<Winszed> for Coordinate
[src]

[src]

Performs the conversion.

impl From<Winszed> for Newline
[src]

[src]

Performs the conversion.