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

#include "dialog.h"

Include dependency graph for menubox.c:

Include dependency graph

Go to the source code of this file.

Functions

void print_item (WINDOW *win, const char *item, int choice, int selected, int hotkey)
void print_arrows (WINDOW *win, int item_no, int scroll, int y, int x, int height)
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

int menu_width
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:

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.

Referenced by dialog_checklist(), and dialog_menu().

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:

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.

Referenced by dialog_checklist(), and dialog_menu().

Here is the call graph for this function:


Variable Documentation

int item_x [static]
 

Definition at line 61 of file menubox.c.

Referenced by dialog_menu(), and print_item().

int menu_width [static]
 

Definition at line 61 of file menubox.c.

Referenced by dialog_menu(), and print_item().


Generated on Thu Nov 20 11:51:24 2008 for RTAI API by doxygen 1.3.8