/scripts/kconfig/lxdialog/ |
D | yesno.c | 14 static void print_buttons(WINDOW * dialog, int height, int width, int selected) in print_buttons() argument 16 int x = width / 2 - 10; in print_buttons() 29 int dialog_yesno(const char *title, const char *prompt, int height, int width) in dialog_yesno() argument 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() [all …]
|
D | inputbox.c | 16 static void print_buttons(WINDOW * dialog, int height, int width, int selected) in print_buttons() argument 18 int x = width / 2 - 11; in print_buttons() 31 int dialog_inputbox(const char *title, const char *prompt, int height, int width, in dialog_inputbox() argument 48 if (getmaxx(stdscr) <= (width - INPUTBOX_WIDTH_MIN)) in dialog_inputbox() 52 x = (getmaxx(stdscr) - width) / 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() 64 for (i = 0; i < width - 2; i++) in dialog_inputbox() 69 print_title(dialog, title, width); in dialog_inputbox() [all …]
|
D | textbox.c | 12 static void print_page(WINDOW *win, int height, int width, update_text_fn 14 static void print_line(WINDOW *win, int row, int width); 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() 80 width = initial_width; in dialog_textbox() 82 if (width > 5) in dialog_textbox() 83 width -= 5; in dialog_textbox() 85 width = 0; in dialog_textbox() 88 x = (getmaxx(stdscr) - width) / 2; in dialog_textbox() [all …]
|
D | checklist.c | 88 static void print_buttons(WINDOW * dialog, int height, int width, int selected) in print_buttons() argument 90 int x = width / 2 - 11; in print_buttons() 105 int width, int list_height) in dialog_checklist() argument 124 if (getmaxx(stdscr) < (width + CHECKLIST_WIDTH_MIN)) in dialog_checklist() 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() [all …]
|
D | dialog.h | 202 void attr_clear(WINDOW * win, int height, int width, chtype attr); 204 void print_autowrap(WINDOW * win, const char *prompt, int width, int y, int x); 206 void print_title(WINDOW *dialog, const char *title, int width); 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); 214 int width, int pause); 225 int width, int list_height); 227 int width, const char *init);
|
D | menubox.c | 142 static void print_buttons(WINDOW * win, int height, int width, int selected) in print_buttons() argument 144 int x = width / 2 - 28; in print_buttons() 175 int height, width, menu_height; in dialog_menu() local 182 width = getmaxx(stdscr); in dialog_menu() 183 if (height < MENUBOX_HEIGTH_MIN || width < MENUBOX_WIDTH_MIN) in dialog_menu() 187 width -= 5; in dialog_menu() 193 x = (getmaxx(stdscr) - width) / 2; in dialog_menu() 196 draw_shadow(stdscr, y, x, height, width); in dialog_menu() 198 dialog = newwin(height, width, y, x); in dialog_menu() 201 draw_box(dialog, 0, 0, height, width, in dialog_menu() [all …]
|
D | util.c | 229 void attr_clear(WINDOW * win, int height, int width, chtype attr) in attr_clear() argument 236 for (j = 0; j < width; j++) 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() 352 void print_title(WINDOW *dialog, const char *title, int width) in print_title() argument 355 int tlen = MIN(width - 2, strlen(title)); in print_title() 357 mvwaddch(dialog, 0, (width - tlen) / 2 - 1, ' '); in print_title() 358 mvwaddnstr(dialog, 0, (width - tlen)/2, title, tlen); in print_title() 369 void print_autowrap(WINDOW * win, const char *prompt, int width, int y, int x) in print_autowrap() argument [all …]
|
/scripts/ |
D | decodecode | 56 width=`expr index "$code" ' '` 57 width=$((($width-1)/2)) 58 case $width in 79 if [ $width -eq 2 ]; then 87 if [ $width -eq 4 ]; then
|
/scripts/dtc/ |
D | yamltree.c | 32 …d yaml_propval_int(yaml_emitter_t *emitter, struct marker *markers, char *data, int len, int width) in yaml_propval_int() argument 38 switch(width) { in yaml_propval_int() 44 die("Invalid width %i", width); in yaml_propval_int() 46 assert(len % width == 0); in yaml_propval_int() 49 (yaml_char_t *)tag, width == 4, YAML_FLOW_SEQUENCE_STYLE); in yaml_propval_int() 52 for (off = 0; off < len; off += width) { in yaml_propval_int() 57 switch(width) { in yaml_propval_int()
|
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/ |
D | proc.py | 69 width = 4 if resource['end'] < 0x10000 else 8 75 "{0:0{1}x}-".format(start, width) + 76 "{0:0{1}x} : ".format(end, width) +
|
/scripts/kconfig/ |
D | nconf.h | 78 int width,
|
D | nconf.gui.c | 150 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()
|
D | qconf.cc | 806 if (x >= off && x < off + icon.availableSizes().first().width()) { in mouseReleaseEvent() 1255 int width, height; in ConfigSearchWindow() local 1259 width = configSettings->value("/window width", parent->width() / 2).toInt(); in ConfigSearchWindow() 1261 resize(width, height); in ConfigSearchWindow() 1279 configSettings->setValue("/window width", size().width()); in saveSettings() 1314 int width, height; in ConfigMainWindow() local 1324 width = configSettings->value("/window width", d->width() - 64).toInt(); in ConfigMainWindow() 1326 resize(width, height); in ConfigMainWindow() 1792 configSettings->setValue("/window width", size().width()); in saveSettings()
|