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

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]


Function Documentation

void attr_clear ( WINDOW *  win,
int  height,
int  width,
chtype  attr 
)

Definition at line 112 of file util.c.

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, 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().

void end_dialog ( void   ) 

Definition at line 185 of file util.c.

Referenced by main().

int first_alpha ( const char *  string,
const char *  exempt 
)

Definition at line 343 of file util.c.

Referenced by dialog_menu(), and print_item().

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().


Variable Documentation

chtype attributes[]

Definition at line 35 of file util.c.

Referenced by color_setup().

const char* backtitle = NULL

Definition at line 28 of file util.c.

Referenced by dialog_clear(), and main().

int color_table[][3]

Definition at line 74 of file util.c.

Referenced by color_setup().

const char* dialog_result

Definition at line 30 of file util.c.

bool use_colors = 1

Definition at line 26 of file util.c.

Referenced by init_dialog().


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