#include "dialog.h"
#include "colors.h"
Go to the source code of this file.
Functions | |
void | attr_clear (WINDOW *win, int height, int width, chtype attr) |
void | dialog_clear (void) |
void | init_dialog (void) |
void | color_setup (void) |
void | end_dialog (void) |
void | print_autowrap (WINDOW *win, const char *prompt, int width, int y, int x) |
void | print_button (WINDOW *win, const char *label, int y, int x, int selected) |
void | draw_box (WINDOW *win, int y, int x, int height, int width, chtype box, chtype border) |
void | draw_shadow (WINDOW *win, int y, int x, int height, int width) |
int | first_alpha (const char *string, const char *exempt) |
Variables | |
bool | use_colors = 1 |
const char * | backtitle = NULL |
const char * | dialog_result |
chtype | attributes [] |
int | color_table [][3] |
void attr_clear | ( | WINDOW * | win, | |
int | height, | |||
int | width, | |||
chtype | attr | |||
) |
Definition at line 112 of file util.c.
References i.
Referenced by dialog_clear(), dialog_textbox(), and main().
void color_setup | ( | void | ) |
Definition at line 164 of file util.c.
References ATTRIBUTE_COUNT, attributes, C_ATTR, color_table, and i.
Referenced by init_dialog().
void dialog_clear | ( | void | ) |
Definition at line 125 of file util.c.
References ACS_HLINE, attr_clear(), backtitle, i, and screen_attr.
Referenced by init_dialog().
void draw_box | ( | WINDOW * | win, | |
int | y, | |||
int | x, | |||
int | height, | |||
int | width, | |||
chtype | box, | |||
chtype | border | |||
) |
Definition at line 286 of file util.c.
References ACS_HLINE, ACS_LLCORNER, ACS_LRCORNER, ACS_ULCORNER, ACS_URCORNER, ACS_VLINE, and i.
Referenced by dialog_checklist(), dialog_inputbox(), dialog_menu(), dialog_msgbox(), dialog_textbox(), and dialog_yesno().
void draw_shadow | ( | WINDOW * | win, | |
int | y, | |||
int | x, | |||
int | height, | |||
int | width | |||
) |
Definition at line 321 of file util.c.
References i, and shadow_attr.
Referenced by dialog_checklist(), dialog_inputbox(), dialog_menu(), dialog_msgbox(), dialog_textbox(), and dialog_yesno().
int first_alpha | ( | const char * | string, | |
const char * | exempt | |||
) |
void init_dialog | ( | void | ) |
Definition at line 145 of file util.c.
References color_setup(), dialog_clear(), TRUE, and use_colors.
Referenced by main().
void print_autowrap | ( | WINDOW * | win, | |
const char * | prompt, | |||
int | width, | |||
int | y, | |||
int | x | |||
) |
Definition at line 198 of file util.c.
Referenced by dialog_checklist(), dialog_inputbox(), dialog_menu(), dialog_msgbox(), and dialog_yesno().
void print_button | ( | WINDOW * | win, | |
const char * | label, | |||
int | y, | |||
int | x, | |||
int | selected | |||
) |
Definition at line 258 of file util.c.
References button_active_attr, button_inactive_attr, button_key_active_attr, button_key_inactive_attr, button_label_active_attr, button_label_inactive_attr, and i.
Referenced by dialog_msgbox(), and dialog_textbox().
chtype attributes[] |
const char* backtitle = NULL |
int color_table[][3] |
const char* dialog_result |
bool use_colors = 1 |