38 lines
772 B
C
38 lines
772 B
C
#ifndef _NWTUI_H_
|
|
#define _NWTUI_H_
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef enum nwtui_style_e {
|
|
NWTUI_STYLE_NORMAL = 0,
|
|
NWTUI_STYLE_HEADER,
|
|
NWTUI_STYLE_MENU,
|
|
NWTUI_STYLE_MENU_SELECTED,
|
|
NWTUI_STYLE_PANEL,
|
|
NWTUI_STYLE_PANEL_TITLE,
|
|
NWTUI_STYLE_STATUS,
|
|
NWTUI_STYLE_HELP,
|
|
NWTUI_STYLE_ERROR,
|
|
NWTUI_STYLE_WARNING,
|
|
NWTUI_STYLE_OK,
|
|
NWTUI_STYLE_DISABLED
|
|
} NwTuiStyle;
|
|
|
|
const char *nwtui_style_name(NwTuiStyle style);
|
|
int nwtui_init(void);
|
|
void nwtui_shutdown(void);
|
|
void nwtui_clear(void);
|
|
void nwtui_present(void);
|
|
int nwtui_width(void);
|
|
int nwtui_height(void);
|
|
void nwtui_puts(int x, int y, NwTuiStyle style, const char *text);
|
|
void nwtui_box(int x, int y, int w, int h, NwTuiStyle style, const char *title);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|