aversive_10-03-12/config/scripts/lxdialog/util.c File Reference

#include "dialog.h"
#include "colors.h"

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.

References i.

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, color_table, and i.

Referenced by init_dialog().

void dialog_clear ( void   ) 

Definition at line 125 of file util.c.

References ACS_HLINE, attr_clear(), backtitle, i, and screen_attr.

Referenced by init_dialog().

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 
)

Definition at line 321 of file util.c.

References i, and 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.

References i.

Referenced by dialog_menu().

void init_dialog ( void   ) 

Definition at line 145 of file util.c.

References color_setup(), dialog_clear(), TRUE, and use_colors.

Referenced by main().

void print_autowrap ( WINDOW *  win,
const char *  prompt,
int  width,
int  y,
int  x 
)

Definition at line 198 of file util.c.

References i, and 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 
)


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 Fri Mar 12 06:30:23 2010 for AVR by  doxygen 1.5.6