Home
last modified time | relevance | path

Searched refs:width (Results 1 – 13 of 13) sorted by relevance

/scripts/kconfig/lxdialog/
Dyesno.c27 static void print_buttons(WINDOW * dialog, int height, int width, int selected) in print_buttons() argument
29 int x = width / 2 - 10; in print_buttons()
42 int dialog_yesno(const char *title, const char *prompt, int height, int width) in dialog_yesno() argument
50 if (getmaxx(stdscr) < (width + YESNO_WIDTH_MIN)) in dialog_yesno()
54 x = (getmaxx(stdscr) - width) / 2; in dialog_yesno()
57 draw_shadow(stdscr, y, x, height, width); in dialog_yesno()
59 dialog = newwin(height, width, y, x); in dialog_yesno()
62 draw_box(dialog, 0, 0, height, width, in dialog_yesno()
66 for (i = 0; i < width - 2; i++) in dialog_yesno()
71 print_title(dialog, title, width); in dialog_yesno()
[all …]
Dtextbox.c25 static void print_page(WINDOW *win, int height, int width, update_text_fn
27 static void print_line(WINDOW *win, int row, int width);
61 int height, width, boxh, boxw; in dialog_textbox() local
82 getmaxyx(stdscr, height, width); in dialog_textbox()
83 if (height < TEXTBOX_HEIGTH_MIN || width < TEXTBOX_WIDTH_MIN) in dialog_textbox()
93 width = initial_width; in dialog_textbox()
95 if (width > 5) in dialog_textbox()
96 width -= 5; in dialog_textbox()
98 width = 0; in dialog_textbox()
101 x = (getmaxx(stdscr) - width) / 2; in dialog_textbox()
[all …]
Dinputbox.c29 static void print_buttons(WINDOW * dialog, int height, int width, int selected) in print_buttons() argument
31 int x = width / 2 - 11; in print_buttons()
44 int dialog_inputbox(const char *title, const char *prompt, int height, int width, in dialog_inputbox() argument
61 if (getmaxx(stdscr) <= (width - INPUTBOX_WIDTH_MIN)) in dialog_inputbox()
65 x = (getmaxx(stdscr) - width) / 2; in dialog_inputbox()
68 draw_shadow(stdscr, y, x, height, width); in dialog_inputbox()
70 dialog = newwin(height, width, y, x); in dialog_inputbox()
73 draw_box(dialog, 0, 0, height, width, in dialog_inputbox()
77 for (i = 0; i < width - 2; i++) in dialog_inputbox()
82 print_title(dialog, title, width); in dialog_inputbox()
[all …]
Dchecklist.c101 static void print_buttons(WINDOW * dialog, int height, int width, int selected) in print_buttons() argument
103 int x = width / 2 - 11; in print_buttons()
118 int width, int list_height) in dialog_checklist() argument
137 if (getmaxx(stdscr) < (width + CHECKLIST_WIDTH_MIN)) in dialog_checklist()
143 x = (getmaxx(stdscr) - width) / 2; in dialog_checklist()
146 draw_shadow(stdscr, y, x, height, width); in dialog_checklist()
148 dialog = newwin(height, width, y, x); in dialog_checklist()
151 draw_box(dialog, 0, 0, height, width, in dialog_checklist()
155 for (i = 0; i < width - 2; i++) in dialog_checklist()
160 print_title(dialog, title, width); in dialog_checklist()
[all …]
Dmenubox.c155 static void print_buttons(WINDOW * win, int height, int width, int selected) in print_buttons() argument
157 int x = width / 2 - 28; in print_buttons()
188 int height, width, menu_height; in dialog_menu() local
195 width = getmaxx(stdscr); in dialog_menu()
196 if (height < MENUBOX_HEIGTH_MIN || width < MENUBOX_WIDTH_MIN) in dialog_menu()
200 width -= 5; in dialog_menu()
206 x = (getmaxx(stdscr) - width) / 2; in dialog_menu()
209 draw_shadow(stdscr, y, x, height, width); in dialog_menu()
211 dialog = newwin(height, width, y, x); in dialog_menu()
214 draw_box(dialog, 0, 0, height, width, in dialog_menu()
[all …]
Ddialog.h221 void attr_clear(WINDOW * win, int height, int width, chtype attr);
223 void print_autowrap(WINDOW * win, const char *prompt, int width, int y, int x);
225 void print_title(WINDOW *dialog, const char *title, int width);
226 void draw_box(WINDOW * win, int y, int x, int height, int width, chtype box,
228 void draw_shadow(WINDOW * win, int y, int x, int height, int width);
231 int dialog_yesno(const char *title, const char *prompt, int height, int width);
233 int width, int pause);
244 int width, int list_height);
246 int width, const char *init);
Dutil.c242 void attr_clear(WINDOW * win, int height, int width, chtype attr) in attr_clear() argument
249 for (j = 0; j < width; j++) in attr_clear()
317 int height, width; in init_dialog() local
324 getmaxyx(stdscr, height, width); in init_dialog()
325 if (height < WINDOW_HEIGTH_MIN || width < WINDOW_WIDTH_MIN) { in init_dialog()
365 void print_title(WINDOW *dialog, const char *title, int width) in print_title() argument
368 int tlen = MIN(width - 2, strlen(title)); in print_title()
370 mvwaddch(dialog, 0, (width - tlen) / 2 - 1, ' '); in print_title()
371 mvwaddnstr(dialog, 0, (width - tlen)/2, title, tlen); in print_title()
382 void print_autowrap(WINDOW * win, const char *prompt, int width, int y, int x) in print_autowrap() argument
[all …]
/scripts/
Ddecodecode42 width=`expr index "$code" ' '`
43 width=$((($width-1)/2))
44 case $width in
54 if [ $width -eq 2 ]; then
Danalyze_suspend.py1107 width = widfmt % (((list[dev]['end']-list[dev]['start'])*100)/tTotal)
1108 if width != '0.000000' and length >= mindevlen:
2848 ….stamp {width: 100%;text-align:center;background-color:#495E09;line-height:30px;color:white;font: …
2849 table {width:100%;border-collapse: collapse;}\n\
3156 width = '%f' % ((mTotal*100.0)/tTotal)
3159 title, left, top, '%d'%devtl.bodyH, width, '', '', '')
3177 width = '%f' % (((mTotal*100.0)-sysvals.srgap/2)/tTotal)
3178 devtl.html['timeline'] += html_tblock.format(bname, left, width)
3184 width = '%f' % ((length*100.0)/mTotal)
3185 devtl.html['timeline'] += html_phase.format(left, width, \
[all …]
/scripts/gdb/linux/
Dproc.py66 width = 4 if resource['end'] < 0x10000 else 8
72 "{0:0{1}x}-".format(start, width) +
73 "{0:0{1}x} : ".format(end, width) +
/scripts/kconfig/
Dnconf.h82 int width,
Dnconf.gui.c150 int width, in print_in_middle() argument
164 if (width == 0) in print_in_middle()
165 width = 80; in print_in_middle()
168 temp = (width - length) / 2; in print_in_middle()
Dqconf.cc789 if (x >= off && x < off + icon.availableSizes().first().width()) { in mouseReleaseEvent()
1280 int width, height; in ConfigSearchWindow() local
1284 width = configSettings->value("/window width", parent->width() / 2).toInt(); in ConfigSearchWindow()
1286 resize(width, height); in ConfigSearchWindow()
1305 configSettings->setValue("/window width", size().width()); in saveSettings()
1341 int width, height; in ConfigMainWindow() local
1351 width = configSettings->value("/window width", d->width() - 64).toInt(); in ConfigMainWindow()
1353 resize(width, height); in ConfigMainWindow()
1768 configSettings->setValue("/window width", size().width()); in saveSettings()