diff options
author | ache <ache@FreeBSD.org> | 1994-11-16 14:37:37 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1994-11-16 14:37:37 +0000 |
commit | e26dcdfe6d1edef038874549fad1387f81b491ca (patch) | |
tree | 6d42ce10ce8c7263feab1c0a86525a16826ae40e /gnu/lib/libdialog/dialog.h | |
parent | 0cbabcf40fb04b5e1dd6d21c9febc638f8734018 (diff) | |
download | FreeBSD-src-e26dcdfe6d1edef038874549fad1387f81b491ca.zip FreeBSD-src-e26dcdfe6d1edef038874549fad1387f81b491ca.tar.gz |
Full autosizing support, now you can pass -1, -1 for any
string
Diffstat (limited to 'gnu/lib/libdialog/dialog.h')
-rw-r--r-- | gnu/lib/libdialog/dialog.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gnu/lib/libdialog/dialog.h b/gnu/lib/libdialog/dialog.h index f2b5d69..cb7053f 100644 --- a/gnu/lib/libdialog/dialog.h +++ b/gnu/lib/libdialog/dialog.h @@ -80,15 +80,17 @@ void draw_shadow(WINDOW *win, int y, int x, int height, int width); #endif void draw_box(WINDOW *win, int y, int x, int height, int width, chtype box, chtype border); int line_edit(WINDOW* dialog, int box_y, int box_x, int box_width, chtype attrs, int first, unsigned char *result); +int strheight(const char *p); +int strwidth(const char *p); void dialog_create_rc(unsigned char *filename); int dialog_yesno(unsigned char *title, unsigned char *prompt, int height, int width); -int dialog_prgbox(unsigned char *title, const char *line, int height, int width, int pause, int use_shell); +int dialog_prgbox(unsigned char *title, const unsigned char *line, int height, int width, int pause, int use_shell); int dialog_msgbox(unsigned char *title, unsigned char *prompt, int height, int width, int pause); int dialog_textbox(unsigned char *title, unsigned char *file, int height, int width); int dialog_menu(unsigned char *title, unsigned char *prompt, int height, int width, int menu_height, int item_no, unsigned char **items, unsigned char *result); int dialog_checklist(unsigned char *title, unsigned char *prompt, int height, int width, int list_height, int item_no, unsigned char **items, unsigned char *result); -int dialog_radiolist(char *title, char *prompt, int height, int width, int list_height, int item_no, unsigned char **items, unsigned char *result); +int dialog_radiolist(unsigned char *title, unsigned char *prompt, int height, int width, int list_height, int item_no, unsigned char **items, unsigned char *result); int dialog_inputbox(unsigned char *title, unsigned char *prompt, int height, int width, unsigned char *result); void dialog_clear(void); void dialog_update(void); |