Home
last modified time | relevance | path

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

/scripts/kconfig/lxdialog/
Dyesno.c14 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 …]
Dinputbox.c16 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 …]
Dtextbox.c84 static void print_line(WINDOW *win, int row, int width) in print_line() argument
92 waddnstr(win, line, MIN(strlen(line), width - 2)); in print_line()
101 static void print_page(WINDOW *win, int height, int width) in print_page() argument
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()
178 if (height < TEXTBOX_HEIGTH_MIN || width < TEXTBOX_WIDTH_MIN) in dialog_textbox()
188 width = initial_width; in dialog_textbox()
190 if (width > 5) in dialog_textbox()
191 width -= 5; in dialog_textbox()
[all …]
Ddialog.h186 void attr_clear(WINDOW * win, int height, int width, chtype attr);
188 void print_autowrap(WINDOW * win, const char *prompt, int width, int y, int x);
190 void print_title(WINDOW *dialog, const char *title, int width);
191 void draw_box(WINDOW * win, int y, int x, int height, int width, chtype box,
193 void draw_shadow(WINDOW * win, int y, int x, int height, int width);
196 int dialog_yesno(const char *title, const char *prompt, int height, int width);
198 int width, int pause);
205 int width, int list_height);
207 int width, const char *init);
Dchecklist.c88 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 …]
Dmenubox.c134 static void print_buttons(WINDOW * win, int height, int width, int selected) in print_buttons() argument
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()
175 if (height < MENUBOX_HEIGTH_MIN || width < MENUBOX_WIDTH_MIN) in dialog_menu()
179 width -= 5; in dialog_menu()
185 x = (getmaxx(stdscr) - width) / 2; in dialog_menu()
188 draw_shadow(stdscr, y, x, height, width); in dialog_menu()
190 dialog = newwin(height, width, y, x); in dialog_menu()
193 draw_box(dialog, 0, 0, height, width, in dialog_menu()
[all …]
Dutil.c229 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/
Ddecodecode58 width=`expr index "$code" ' '`
59 width=$((($width-1)/2))
60 case $width in
81 if [ $width -eq 2 ]; then
89 if [ $width -eq 4 ]; then
166 local num_bytes_ip=$(( $3 + 1 * $width ))
183 num_bytes_ip=$((num_bytes_ip - ($ate_opcodes * $width) ))
194 del_chars=$(( ($ate_opcodes * $width * 2) + $ate_opcodes ))
215 pc_sub=$(( (($marker - 1) / (2 * $width + 1)) * $width ))
/scripts/dtc/
Dyamltree.c33 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()
Dtreesource.c102 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/
Dproc.py71 width = 4 if resource['end'] < 0x10000 else 8
77 "{0:0{1}x}-".format(start, width) +
78 "{0:0{1}x} : ".format(end, width) +
/scripts/kconfig/
Dnconf.h73 void print_in_middle(WINDOW *win, int y, int width, const char *str, int attrs);
Dqconf.cc810 if (x >= off && x < off + icon.availableSizes().first().width()) { in mouseReleaseEvent()
1264 int width, height; in ConfigSearchWindow() local
1268 width = configSettings->value("/window width", parent->width() / 2).toInt(); in ConfigSearchWindow()
1270 resize(width, height); in ConfigSearchWindow()
1289 configSettings->setValue("/window width", size().width()); in saveSettings()
1324 int width, height; in ConfigMainWindow() local
1334 width = configSettings->value("/window width", g.width() - 64).toInt(); in ConfigMainWindow()
1336 resize(width, height); in ConfigMainWindow()
1828 configSettings->setValue("/window width", size().width()); in saveSettings()
Dnconf.gui.c120 void print_in_middle(WINDOW *win, int y, int width, const char *str, int attrs) in print_in_middle() argument
123 mvwprintw(win, y, (width - strlen(str)) / 2, "%s", str); in print_in_middle()