libvtemm 0.25.0
Public Member Functions
Gnome::Vte::Pty::Size Class Reference

Size - simple class holding size of a pseudo-terminal. More...

#include <libvtemm/ptysize.h>

List of all members.

Public Member Functions

 Size (int columns, int rows, bool ok=true)
 The only way to fill Gnome::Vte::Pty::Size class.
int get_columns () const
 Gets number of columns.
int get_rows () const
 Gets number of rows.
bool is_ok () const
 Checks if there was an error during getting size.

Detailed Description

Size - simple class holding size of a pseudo-terminal.


Constructor & Destructor Documentation

Gnome::Vte::Pty::Size::Size ( int  columns,
int  rows,
bool  ok = true 
)

The only way to fill Gnome::Vte::Pty::Size class.

Parameters:
columnsPseudo-terminals number of columns.
rowsPseudo-terminals number of rows.
okfalse, if an error occured while getting size of pseudo-terminal.

Member Function Documentation

int Gnome::Vte::Pty::Size::get_columns ( ) const

Gets number of columns.

Returns:
Number of columns.
int Gnome::Vte::Pty::Size::get_rows ( ) const

Gets number of rows.

Returns:
Number of rows.
bool Gnome::Vte::Pty::Size::is_ok ( ) const

Checks if there was an error during getting size.

Returns:
false if something went wrong, otherwise true.