Stress_UI/include/ui.hpp
somebody_master e2b7ac2434
Re-factorización del código
Signed-off-by: somebody_master <somebody_master@somebodyserver.mooo.com>
2020-10-27 16:39:38 +01:00

20 lines
771 B
C++

#include <ncurses.h>
#include <string>
#include <vector>
#ifndef __UI_HPP_
#define __UI_HPP_
namespace ui {
extern int g_maxLines, g_maxCols, g_begCol, g_begLine, g_menuWith;
extern bool g_mensaje;
int8_t initUI(const int8_t *menu_principal, const int8_t *menu_error);
void closeUI();
void showCentralInputBox(std::vector<std::string> *textos, const int8_t *num_box, std::vector<std::string> *elems);
std::vector<std::string> showCentralInputBox(std::vector<std::string> *textos, const int8_t *num_box, std::vector<std::string> *elems, long title_size);
void showCenterMensaje(std::vector<std::string> *mensaje, const int8_t *menu_color);
void showTopTitle(const std::vector<std::string> *titulo);
} // namespace ui
#endif // __UI_HPP_