base/config/kconfig/lxdialog/menubox.c File Reference

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


Function Documentation

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:


Variable Documentation

int item_x [static]

Definition at line 61 of file menubox.c.

int menu_width [static]

Definition at line 61 of file menubox.c.

Referenced by dialog_menu(), and print_item().


Generated on Tue Feb 2 17:46:29 2010 for RTAI API by  doxygen 1.4.7