| /scripts/kconfig/lxdialog/ |
| A D | yesno.c | 16 int x = width / 2 - 10; in print_buttons() 37 if (getmaxx(stdscr) < (width + YESNO_WIDTH_MIN)) in dialog_yesno() 41 x = (getmaxx(stdscr) - width) / 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() 53 for (i = 0; i < width - 2; i++) in dialog_yesno() 58 print_title(dialog, title, width); in dialog_yesno() 61 print_autowrap(dialog, prompt, width - 2, 1, 3); in dialog_yesno() 63 print_buttons(dialog, height, width, 0); in dialog_yesno() [all …]
|
| A D | inputbox.c | 18 int x = width / 2 - 11; in print_buttons() 54 x = (getmaxx(stdscr) - width) / 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() 66 for (i = 0; i < width - 2; i++) in dialog_inputbox() 71 print_title(dialog, title, width); in dialog_inputbox() 77 box_width = width - 6; in dialog_inputbox() 80 box_x = (width - box_width) / 2; in dialog_inputbox() 84 print_buttons(dialog, height, width, 0); in dialog_inputbox() [all …]
|
| A D | textbox.c | 107 print_line(win, i, width); in print_page() 156 int height, width, boxh, boxw; in dialog_textbox() local 177 getmaxyx(stdscr, height, width); in dialog_textbox() 188 width = initial_width; in dialog_textbox() 190 if (width > 5) in dialog_textbox() 191 width -= 5; in dialog_textbox() 193 width = 0; in dialog_textbox() 196 x = (getmaxx(stdscr) - width) / 2; in dialog_textbox() 206 boxw = width - 2; in dialog_textbox() 219 for (i = 0; i < width - 2; i++) in dialog_textbox() [all …]
|
| A D | dialog.h | 182 void attr_clear(WINDOW * win, int height, int width, chtype attr); 184 void print_autowrap(WINDOW * win, const char *prompt, int width, int y, int x); 186 void print_title(WINDOW *dialog, const char *title, int width); 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); 194 int width, int pause); 201 int width, int list_height); 203 int width, const char *init);
|
| A D | checklist.c | 90 int x = width / 2 - 11; in print_buttons() 105 int width, int list_height) in dialog_checklist() argument 130 x = (getmaxx(stdscr) - width) / 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() 138 draw_box(dialog, 0, 0, height, width, in dialog_checklist() 142 for (i = 0; i < width - 2; i++) in dialog_checklist() 147 print_title(dialog, title, width); in dialog_checklist() 152 list_width = width - 6; in dialog_checklist() 154 box_x = (width - list_width) / 2 - 1; in dialog_checklist() [all …]
|
| A D | menubox.c | 136 int x = width / 2 - 28; in print_buttons() 167 int height, width, menu_height; in dialog_menu() local 174 width = getmaxx(stdscr); in dialog_menu() 179 width -= 5; in dialog_menu() 185 x = (getmaxx(stdscr) - width) / 2; in dialog_menu() 190 dialog = newwin(height, width, y, x); in dialog_menu() 193 draw_box(dialog, 0, 0, height, width, in dialog_menu() 197 for (i = 0; i < width - 2; i++) in dialog_menu() 203 print_title(dialog, title, width); in dialog_menu() 208 menu_width = width - 6; in dialog_menu() [all …]
|
| A D | util.c | 209 for (j = 0; j < width; j++) in attr_clear() 277 int height, width; in init_dialog() local 284 getmaxyx(stdscr, height, width); in init_dialog() 328 int tlen = MIN(width - 2, strlen(title)); in print_title() 352 wmove(win, y, (width - prompt_len) / 2); in print_autowrap() 370 room = width - cur_x; in print_autowrap() 444 for (j = 0; j < width; j++) in draw_box() 449 else if (!i && j == width - 1) in draw_box() 459 else if (j == width - 1) in draw_box() 477 for (i = 0; i < width; i++) in draw_shadow() [all …]
|
| /scripts/ |
| A D | decodecode | 58 width=`expr index "$code" ' '` 59 width=$((($width-1)/2)) 60 case $width in 82 if [ $width -eq 2 ]; then 90 if [ $width -eq 4 ]; then 171 local num_bytes_ip=$(( $3 + 1 * $width )) 188 num_bytes_ip=$((num_bytes_ip - ($ate_opcodes * $width) )) 199 del_chars=$(( ($ate_opcodes * $width * 2) + $ate_opcodes )) 220 pc_sub=$(( (($marker - 1) / (2 * $width + 1)) * $width ))
|
| /scripts/dtc/ |
| A D | yamltree.c | 33 char *data, unsigned int seq_offset, unsigned int len, int width) in yaml_propval_int() argument 39 switch(width) { in yaml_propval_int() 45 die("Invalid width %i", width); in yaml_propval_int() 47 assert(len % width == 0); in yaml_propval_int() 50 (yaml_char_t *)tag, width == 4, YAML_FLOW_SEQUENCE_STYLE); in yaml_propval_int() 53 for (off = 0; off < len; off += width) { in yaml_propval_int() 58 switch(width) { in yaml_propval_int()
|
| A D | treesource.c | 102 static void write_propval_int(FILE *f, const char *p, size_t len, size_t width) in write_propval_int() argument 105 assert(len % width == 0); in write_propval_int() 107 for (; p < end; p += width) { in write_propval_int() 108 switch (width) { in write_propval_int() 122 if (p + width < end) in write_propval_int()
|
| /scripts/gdb/linux/ |
| A D | proc.py | 72 width = 4 if resource['end'] < 0x10000 else 8 78 "{0:0{1}x}-".format(start, width) + 79 "{0:0{1}x} : ".format(end, width) +
|
| /scripts/kconfig/ |
| A D | nconf.h | 73 void print_in_middle(WINDOW *win, int y, int width, const char *str, int attrs);
|
| A D | qconf.cc | 811 if (x >= off && x < off + icon.availableSizes().first().width()) { in mouseReleaseEvent() 1208 int width, height; in ConfigSearchWindow() local 1212 width = configSettings->value("/window width", parent->width() / 2).toInt(); in ConfigSearchWindow() 1214 resize(width, height); in ConfigSearchWindow() 1233 configSettings->setValue("/window width", size().width()); in saveSettings() 1267 int width, height; in ConfigMainWindow() local 1277 width = configSettings->value("/window width", g.width() - 64).toInt(); in ConfigMainWindow() 1279 resize(width, height); in ConfigMainWindow() 1754 configSettings->setValue("/window width", size().width()); in saveSettings()
|
| A D | nconf.gui.c | 121 void print_in_middle(WINDOW *win, int y, int width, const char *str, int attrs) in print_in_middle() argument 124 mvwprintw(win, y, (width - strlen(str)) / 2, "%s", str); in print_in_middle()
|