Include dependency graph for menubox.c:
Go to the source code of this file.
Functions | |
static void | print_item (WINDOW *win, const char *item, int choice, int selected, int hotkey) |
static void | print_arrows (WINDOW *win, int item_no, int scroll, int y, int x, int height) |
static void | print_buttons (WINDOW *win, int height, int width, int selected) |
int | dialog_menu (const char *title, const char *prompt, int height, int width, int menu_height, const char *current, int item_no, const char *const *items) |
Variables | |
static int | menu_width |
static int | item_x |
int dialog_menu | ( | const char * | title, | |
const char * | prompt, | |||
int | height, | |||
int | width, | |||
int | menu_height, | |||
const char * | current, | |||
int | item_no, | |||
const char *const * | items | |||
) |
Definition at line 166 of file menubox.c.
References ACS_HLINE, ACS_LTEE, ACS_RTEE, border_attr, dialog_attr, draw_box(), draw_shadow(), ESC, first_alpha(), item_x, MAX, menu_width, menubox_attr, menubox_border_attr, MIN, print_arrows(), print_autowrap(), print_buttons(), print_item(), TAB, and title_attr.
Referenced by j_menu().
Here is the call graph for this function:
static void print_arrows | ( | WINDOW * | win, | |
int | item_no, | |||
int | scroll, | |||
int | y, | |||
int | x, | |||
int | height | |||
) | [static] |
Definition at line 104 of file menubox.c.
References ACS_DARROW, ACS_HLINE, ACS_UARROW, darrow_attr, menubox_attr, menubox_border_attr, and uarrow_attr.
static void print_buttons | ( | WINDOW * | win, | |
int | height, | |||
int | width, | |||
int | selected | |||
) | [static] |
Definition at line 149 of file menubox.c.
References print_button().
Here is the call graph for this function:
static void print_item | ( | WINDOW * | win, | |
const char * | item, | |||
int | choice, | |||
int | selected, | |||
int | hotkey | |||
) | [static] |
Definition at line 67 of file menubox.c.
References first_alpha(), item_attr, item_selected_attr, item_x, menu_width, menubox_attr, tag_key_attr, and tag_key_selected_attr.
Here is the call graph for this function:
int menu_width [static] |