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_HEIGHT_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.c101 static void print_page(WINDOW *win, int height, int width) in print_page() argument
106 for (i = 0; i < height; i++) { in print_page()
156 int height, width, boxh, boxw; in dialog_textbox() local
177 getmaxyx(stdscr, height, width); in dialog_textbox()
178 if (height < TEXTBOX_HEIGHT_MIN || width < TEXTBOX_WIDTH_MIN) in dialog_textbox()
181 height = initial_height; in dialog_textbox()
183 if (height > 4) in dialog_textbox()
184 height -= 4; in dialog_textbox()
186 height = 0; in dialog_textbox()
197 y = (getmaxy(stdscr) - height) / 2; 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
48 if (getmaxy(stdscr) <= (height - INPUTBOX_HEIGHT_MIN)) in dialog_inputbox()
55 y = (getmaxy(stdscr) - height) / 2; in dialog_inputbox()
57 draw_shadow(stdscr, y, x, height, width); in dialog_inputbox()
59 dialog = newwin(height, width, y, x); in dialog_inputbox()
62 draw_box(dialog, 0, 0, height, width, in dialog_inputbox()
65 mvwaddch(dialog, height - 3, 0, ACS_LTEE); in dialog_inputbox()
84 print_buttons(dialog, height, width, 0); in dialog_inputbox()
[all …]
Dmenubox.c91 int height) in print_arrows() argument
111 y = y + height + 1; in print_arrows()
115 if ((height < item_no) && (scroll + height < item_no)) { in print_arrows()
134 static void print_buttons(WINDOW * win, int height, int width, int selected) in print_buttons() argument
137 int y = height - 2; in print_buttons()
167 int height, width, menu_height; in dialog_menu() local
173 height = getmaxy(stdscr); in dialog_menu()
175 if (height < MENUBOX_HEIGHT_MIN || width < MENUBOX_WIDTH_MIN) in dialog_menu()
178 height -= 4; in dialog_menu()
180 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_HEIGHT_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.h182 void attr_clear(WINDOW * win, int height, int width, chtype attr);
187 void draw_box(WINDOW * win, int y, int x, int height, int width, chtype box,
189 void draw_shadow(WINDOW * win, int y, int x, int height, int width);
192 int dialog_yesno(const char *title, const char *prompt, int height, int width);
193 int dialog_msgbox(const char *title, const char *prompt, int height,
200 int dialog_checklist(const char *title, const char *prompt, int height,
202 int dialog_inputbox(const char *title, const char *prompt, int height,
Dutil.c202 void attr_clear(WINDOW * win, int height, int width, chtype attr) in attr_clear() argument
207 for (i = 0; i < height; i++) { in attr_clear()
277 int height, width; in init_dialog() local
284 getmaxyx(stdscr, height, width); in init_dialog()
285 if (height < WINDOW_HEIGHT_MIN || width < WINDOW_WIDTH_MIN) { in init_dialog()
437 draw_box(WINDOW * win, int y, int x, int height, int width, in draw_box() argument
443 for (i = 0; i < height; i++) { in draw_box()
448 else if (i == height - 1 && !j) in draw_box()
452 else if (i == height - 1 && j == width - 1) in draw_box()
456 else if (i == height - 1) in draw_box()
[all …]
/scripts/kconfig/
Dqconf.cc1256 int width, height; in ConfigSearchWindow() local
1261 height = configSettings->value("/window height", parent->height() / 2).toInt(); in ConfigSearchWindow()
1262 resize(width, height); in ConfigSearchWindow()
1282 configSettings->setValue("/window height", size().height()); in saveSettings()
1316 int width, height; in ConfigMainWindow() local
1327 height = configSettings->value("/window height", g.height() - 64).toInt(); in ConfigMainWindow()
1328 resize(width, height); in ConfigMainWindow()
1821 configSettings->setValue("/window height", size().height()); in saveSettings()