Include dependency graph for util.c:

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 | |||
| ) | 
| void color_setup | ( | void | ) | 
Definition at line 164 of file util.c.
References ATTRIBUTE_COUNT, attributes, C_ATTR, and color_table.
Referenced by init_dialog().
| void dialog_clear | ( | void | ) | 
Definition at line 125 of file util.c.
References ACS_HLINE, attr_clear(), backtitle, and screen_attr.
Referenced by init_dialog().
Here is the call graph for this function:

| 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, and ACS_VLINE.
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 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(), and use_colors.
Referenced by main().
Here is the call graph for this function:

| void print_autowrap | ( | WINDOW * | win, | |
| const char * | prompt, | |||
| int | width, | |||
| int | y, | |||
| int | x | |||
| ) | 
Definition at line 198 of file util.c.
References MAX_LEN.
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, and button_label_inactive_attr.
Referenced by dialog_msgbox(), dialog_textbox(), and print_buttons().
| chtype attributes[] | 
| const char* backtitle = NULL | 
| int color_table[][3] | 
| const char* dialog_result | 
| bool use_colors = 1 | 
 1.4.7
 1.4.7