|
ScrUtil
Gestor de consola de texto
|
Estructuras de datos | |
| struct | Position |
| struct | Attributes |
Enumeraciones | |
| enum | Color { Black, Blue, Red, Magenta, Green, Cyan, Yellow, White, UndefinedColor } |
Funciones | |
| void | clear () |
| void | setColors (Attributes colors) |
| void | setColors (Color tinta, Color papel) |
| void | moveCursorTo (Position pos) |
| void | moveCursorTo (unsigned short int fila, unsigned short int columna) |
| Position | getConsoleSize () |
| Attributes | getCurrentAttributes () |
| short int | getMaxRows () |
| short int | getMaxColumns () |
| Position | getCursorPosition () |
| void | showCursor (bool see) |
| int | getCharacterAt (Position pos) |
| void | moveCursorTo (unsigned short int fila, int unsigned short columna) |
| enum ScrUtil::Color |
| void ScrUtil::clear | ( | ) |
Borra la pantalla

| int ScrUtil::getCharacterAt | ( | Position | pos | ) |
Obtiene el char. en una pos. de la pantalla
| La | pos. como una estructura Position |
| Position ScrUtil::getConsoleSize | ( | ) |
| Attributes ScrUtil::getCurrentAttributes | ( | ) |
Obtiene los atributos en uso
| Position ScrUtil::getCursorPosition | ( | ) |
Devuelve la pos. del cursor
| short int ScrUtil::getMaxColumns | ( | ) |
Devuelve el num. de columnas

| short int ScrUtil::getMaxRows | ( | ) |
| void ScrUtil::moveCursorTo | ( | unsigned short int | fila, |
| int unsigned short | columna | ||
| ) |
Mover el cursor a una pos. determinada
| fila | La fila donde colocar cursor |
| columna | La columna donde colocar el cursor |
| void ScrUtil::moveCursorTo | ( | Position | pos | ) |
| void ScrUtil::moveCursorTo | ( | unsigned short int | fila, |
| unsigned short int | columna | ||
| ) |
| void ScrUtil::setColors | ( | Attributes | color | ) |
Indica los colores del texto a escribir
| color | Color de la tinta y el papel |
| void ScrUtil::setColors | ( | Color | tinta, |
| Color | papel | ||
| ) |
Indica los colores del texto a escribir
| tinta | Color de la tinta |
| papel | Color de fondo |

| void ScrUtil::showCursor | ( | bool | see | ) |
Esconde o visualiza el cursor
| see | Si es verdadero, lo visualiza, si es falso lo esconde. |
1.8.1.2