Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
nconf.gui.c File Reference
#include "nconf.h"

Go to the source code of this file.

Macros

#define mkattr(name, attr)
 
#define mkattrn(name, attr)   { attributes[name] = attr; }
 

Functions

void set_colors ()
 
void print_in_middle (WINDOW *win, int starty, int startx, int width, const char *string, chtype color)
 
int get_line_no (const char *text)
 
const charget_line (const char *text, int line_no)
 
int get_line_length (const char *line)
 
void fill_window (WINDOW *win, const char *text)
 
int btn_dialog (WINDOW *main_window, const char *msg, int btn_num,...)
 
int dialog_inputbox (WINDOW *main_window, const char *title, const char *prompt, const char *init, char **resultp, int *result_len)
 
void refresh_all_windows (WINDOW *main_window)
 
void show_scroll_win (WINDOW *main_window, const char *title, const char *text)
 

Variables

attributes_t attributes [ATTR_MAX+1] = {0}
 

Macro Definition Documentation

#define mkattr (   name,
  attr 
)
Value:
do { \
attributes[name] = attr | COLOR_PAIR(name); } while (0)
#define mkattrn (   name,
  attr 
)    { attributes[name] = attr; }

Function Documentation

int btn_dialog ( WINDOW main_window,
const char msg,
int  btn_num,
  ... 
)

Definition at line 241 of file nconf.gui.c.

int dialog_inputbox ( WINDOW main_window,
const char title,
const char prompt,
const char init,
char **  resultp,
int result_len 
)

Definition at line 357 of file nconf.gui.c.

void fill_window ( WINDOW win,
const char text 
)

Definition at line 214 of file nconf.gui.c.

const char* get_line ( const char text,
int  line_no 
)

Definition at line 189 of file nconf.gui.c.

int get_line_length ( const char line)

Definition at line 203 of file nconf.gui.c.

int get_line_no ( const char text)

Definition at line 175 of file nconf.gui.c.

void print_in_middle ( WINDOW win,
int  starty,
int  startx,
int  width,
const char string,
chtype  color 
)

Definition at line 147 of file nconf.gui.c.

void refresh_all_windows ( WINDOW main_window)

Definition at line 534 of file nconf.gui.c.

void set_colors ( void  )

Definition at line 132 of file nconf.gui.c.

void show_scroll_win ( WINDOW main_window,
const char title,
const char text 
)

Definition at line 542 of file nconf.gui.c.

Variable Documentation

attributes_t attributes[ATTR_MAX+1] = {0}

Definition at line 11 of file nconf.gui.c.