Stress_UI/include/ui.hpp

38 lines
1.3 KiB
C++
Raw Normal View History

2020-10-20 14:16:46 +02:00
#include <ncurses.h>
#include <string>
#include <vector>
#ifndef __UI_HPP_
#define __UI_HPP_
namespace ui {
2021-05-06 12:00:44 +02:00
extern int g_maxLines, g_maxCols, g_begCol, g_begLine, g_menuWith;
// int8_t error;
extern bool g_mensaje;
2020-10-20 14:16:46 +02:00
uint8_t initUI(const uint8_t *menu_principal, const uint8_t *menu_error);
2020-10-20 14:16:46 +02:00
2021-05-06 12:00:44 +02:00
void closeUI();
std::vector<std::string> showCentralInputBox(std::vector<std::string> *textos,
const uint8_t *num_box,
2021-05-06 12:00:44 +02:00
std::vector<std::string> *elems,
const uint8_t *color_error);
2021-05-06 12:00:44 +02:00
std::vector<std::string> showCentralInputBox(std::vector<std::string> *textos,
const uint8_t *num_box,
2021-05-06 12:00:44 +02:00
std::vector<std::string> *elems,
long title_size,
const uint8_t *color_error);
2021-05-06 12:00:44 +02:00
void showCenterMensaje(std::vector<std::string> *mensaje,
const uint8_t *menu_color);
2021-05-06 12:00:44 +02:00
void showTopTitle(const std::vector<std::string> *titulo);
void mostrarVentana(WINDOW *ventana, std::vector<std::string> *texto,
int *ancho, uint8_t *sectores, std::string *tituloVentana);
void borrarVentana(WINDOW *ventana);
2020-10-20 14:16:46 +02:00
} // namespace ui
#endif // __UI_HPP_