libvtemm: Gnome::Vte::Pty::Size Class Reference
Size - simple class holding size of a pseudo-terminal. More...
#include <libvtemm/ptysize.h>
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:
-
columns Pseudo-terminals number of columns. rows Pseudo-terminals number of rows. ok false, 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:
falseif something went wrong, otherwisetrue.
