Home
last modified time | relevance | path

Searched refs:height (Results 1 – 8 of 8) sorted by relevance

/scripts/kconfig/lxdialog/
Dyesno.c14 static void print_buttons(WINDOW * dialog, int height, int width, int selected) in print_buttons() argument
17 int y = height - 2; in print_buttons()
29 int dialog_yesno(const char *title, const char *prompt, int height, int width) in dialog_yesno() argument
35 if (getmaxy(stdscr) < (height + YESNO_HEIGTH_MIN)) in dialog_yesno()
42 y = (getmaxy(stdscr) - height) / 2; in dialog_yesno()
44 draw_shadow(stdscr, y, x, height, width); in dialog_yesno()
46 dialog = newwin(height, width, y, x); in dialog_yesno()
49 draw_box(dialog, 0, 0, height, width, in dialog_yesno()
52 mvwaddch(dialog, height - 3, 0, ACS_LTEE); in dialog_yesno()
63 print_buttons(dialog, height, width, 0); in dialog_yesno()
[all …]
Dtextbox.c12 static void print_page(WINDOW *win, int height, int width, update_text_fn
48 int height, width, boxh, boxw; in dialog_textbox() local
69 getmaxyx(stdscr, height, width); in dialog_textbox()
70 if (height < TEXTBOX_HEIGTH_MIN || width < TEXTBOX_WIDTH_MIN) in dialog_textbox()
73 height = initial_height; in dialog_textbox()
75 if (height > 4) in dialog_textbox()
76 height -= 4; in dialog_textbox()
78 height = 0; in dialog_textbox()
89 y = (getmaxy(stdscr) - height) / 2; in dialog_textbox()
91 draw_shadow(stdscr, y, x, height, width); in dialog_textbox()
[all …]
Dinputbox.c16 static void print_buttons(WINDOW * dialog, int height, int width, int selected) in print_buttons() argument
19 int y = height - 2; in print_buttons()
31 int dialog_inputbox(const char *title, const char *prompt, int height, int width, in dialog_inputbox() argument
46 if (getmaxy(stdscr) <= (height - INPUTBOX_HEIGTH_MIN)) in dialog_inputbox()
53 y = (getmaxy(stdscr) - height) / 2; in dialog_inputbox()
55 draw_shadow(stdscr, y, x, height, width); in dialog_inputbox()
57 dialog = newwin(height, width, y, x); in dialog_inputbox()
60 draw_box(dialog, 0, 0, height, width, in dialog_inputbox()
63 mvwaddch(dialog, height - 3, 0, ACS_LTEE); in dialog_inputbox()
82 print_buttons(dialog, height, width, 0); in dialog_inputbox()
[all …]
Dmenubox.c99 int height) in print_arrows() argument
119 y = y + height + 1; in print_arrows()
123 if ((height < item_no) && (scroll + height < item_no)) { in print_arrows()
142 static void print_buttons(WINDOW * win, int height, int width, int selected) in print_buttons() argument
145 int y = height - 2; in print_buttons()
175 int height, width, menu_height; in dialog_menu() local
181 height = getmaxy(stdscr); in dialog_menu()
183 if (height < MENUBOX_HEIGTH_MIN || width < MENUBOX_WIDTH_MIN) in dialog_menu()
186 height -= 4; in dialog_menu()
188 menu_height = height - 10; in dialog_menu()
[all …]
Dchecklist.c53 int y, int x, int height) in print_arrows() argument
69 y = y + height + 1; in print_arrows()
72 if ((height < item_no) && (scroll + choice < item_no - 1)) { in print_arrows()
88 static void print_buttons(WINDOW * dialog, int height, int width, int selected) in print_buttons() argument
91 int y = height - 2; in print_buttons()
104 int dialog_checklist(const char *title, const char *prompt, int height, in dialog_checklist() argument
122 if (getmaxy(stdscr) < (height + CHECKLIST_HEIGTH_MIN)) in dialog_checklist()
131 y = (getmaxy(stdscr) - height) / 2; in dialog_checklist()
133 draw_shadow(stdscr, y, x, height, width); in dialog_checklist()
135 dialog = newwin(height, width, y, x); in dialog_checklist()
[all …]
Ddialog.h202 void attr_clear(WINDOW * win, int height, int width, chtype attr);
207 void draw_box(WINDOW * win, int y, int x, int height, int width, chtype box,
209 void draw_shadow(WINDOW * win, int y, int x, int height, int width);
212 int dialog_yesno(const char *title, const char *prompt, int height, int width);
213 int dialog_msgbox(const char *title, const char *prompt, int height,
224 int dialog_checklist(const char *title, const char *prompt, int height,
226 int dialog_inputbox(const char *title, const char *prompt, int height,
Dutil.c229 void attr_clear(WINDOW * win, int height, int width, chtype attr) in attr_clear() argument
234 for (i = 0; i < height; i++) { in attr_clear()
304 int height, width; in init_dialog() local
311 getmaxyx(stdscr, height, width); in init_dialog()
312 if (height < WINDOW_HEIGTH_MIN || width < WINDOW_WIDTH_MIN) { in init_dialog()
464 draw_box(WINDOW * win, int y, int x, int height, int width, in draw_box() argument
470 for (i = 0; i < height; i++) { in draw_box()
475 else if (i == height - 1 && !j) in draw_box()
479 else if (i == height - 1 && j == width - 1) in draw_box()
483 else if (i == height - 1) in draw_box()
[all …]
/scripts/kconfig/
Dqconf.cc1262 int width, height; in ConfigSearchWindow() local
1267 height = configSettings->value("/window height", parent->height() / 2).toInt(); in ConfigSearchWindow()
1268 resize(width, height); in ConfigSearchWindow()
1288 configSettings->setValue("/window height", size().height()); in saveSettings()
1322 int width, height; in ConfigMainWindow() local
1333 height = configSettings->value("/window height", d->height() - 64).toInt(); in ConfigMainWindow()
1334 resize(width, height); in ConfigMainWindow()
1817 configSettings->setValue("/window height", size().height()); in saveSettings()