1 #ifndef TABLE_ENGINE_CONSOLE_H_ 2 #define TABLE_ENGINE_CONSOLE_H_ 16 int CreateTable(
const char *pColumnName[],
unsigned nCount,
unsigned isTStudio);
18 int SetValueTable(
unsigned nRow,
unsigned nColumn,
const char *fmt, ...);
20 int SetValueTable(
unsigned nRow,
unsigned nColumn,
signed nVal,
const char* format=
"%d");
21 int SetValueTable(
unsigned nRow,
unsigned nColumn,
unsigned nVal,
const char *format=
"%u");
22 int SetValueTable(
unsigned nRow,
unsigned nColumn,
float dVal,
const char *format=
"%f");
31 #if defined(__linux__) 35 std::vector<struct row_t> rows;
37 int get_screen(
int *W,
int *H);
38 int get_pos(
int *X,
int *Y);
39 void cell_draw(
int x,
int y,
int w,
int h);
41 cell_t& get_cell(
int row,
int col);
46 #endif // TABLE_ENGINE_CONSOLE_H_
void SetConsolePos(int X, int Y)
void GetConsolePos(int &X, int &Y)
int CreateTable(const char *pColumnName[], unsigned nCount, unsigned isTStudio)
int SetValueTable(unsigned nRow, unsigned nColumn, const char *fmt,...)