Home
last modified time | relevance | path

Searched refs:height (Results 1 – 25 of 287) sorted by relevance

12345678910>>...12

/freebsd-9-stable/sys/ofed/include/linux/
Dlinux_radix.c46 return (1 << (root->height * RADIX_TREE_MAP_SHIFT)) - 1; in radix_max()
50 radix_pos(long id, int height) in radix_pos() argument
52 return (id >> (RADIX_TREE_MAP_SHIFT * height)) & RADIX_TREE_MAP_MASK; in radix_pos()
60 int height; in radix_tree_lookup() local
64 height = root->height - 1; in radix_tree_lookup()
67 while (height && node) in radix_tree_lookup()
68 node = node->slots[radix_pos(index, height--)]; in radix_tree_lookup()
82 int height; in radix_tree_delete() local
87 height = root->height - 1; in radix_tree_delete()
93 while (height && node) { in radix_tree_delete()
[all …]
/freebsd-9-stable/contrib/dialog/
Ddialog.pl23 local ( $title, $file, $width, $height ) = @_;
25 system("dialog --title \"$title\" --textbox $file $height $width");
32 local ( $tmp, $height, $message_len );
40 $height = 4 + $message_len;
42 $tmp = system("dialog --title \"$title\" --msgbox \"$message\" $height $width");
52 local ( $tmp, $height, $message_len );
60 $height = 2 + $message_len;
62 return system("dialog --title \"$title\" --infobox \"$message\" $height $width");
67 local ( $tmp, $height, $message_len );
75 $height = 4 + $message_len;
[all …]
Dmsgbox.c35 dialog_msgbox(const char *title, const char *cprompt, int height, int width, in dialog_msgbox() argument
67 int req_high = height; in dialog_msgbox()
75 dlg_auto_size(title, prompt, &height, &width, in dialog_msgbox()
78 dlg_print_size(height, width); in dialog_msgbox()
79 dlg_ctl_size(height, width); in dialog_msgbox()
82 y = dlg_box_y_ordinate(height); in dialog_msgbox()
86 dlg_move_window(dialog, height, width, y, x); in dialog_msgbox()
90 dialog = dlg_new_window(height, width, y, x); in dialog_msgbox()
94 page = height - (1 + 3 * MARGIN); in dialog_msgbox()
98 dlg_draw_box(dialog, 0, 0, height, width, dialog_attr, border_attr); in dialog_msgbox()
[all …]
Dyesno.c34 dialog_yesno(const char *title, const char *cprompt, int height, int width) in dialog_yesno() argument
65 int req_high = height; in dialog_yesno()
72 dlg_auto_size(title, prompt, &height, &width, 2, min_width); in dialog_yesno()
73 dlg_print_size(height, width); in dialog_yesno()
74 dlg_ctl_size(height, width); in dialog_yesno()
77 y = dlg_box_y_ordinate(height); in dialog_yesno()
81 dlg_move_window(dialog, height, width, y, x); in dialog_yesno()
85 dialog = dlg_new_window(height, width, y, x); in dialog_yesno()
90 dlg_draw_box(dialog, 0, 0, height, width, dialog_attr, border_attr); in dialog_yesno()
97 page = height - (1 + 3 * MARGIN); in dialog_yesno()
[all …]
Dpause.c50 int height, in dialog_pause() argument
70 int old_height = height; in dialog_pause()
94 height = old_height; in dialog_pause()
99 dlg_auto_size(title, prompt, &height, &width, in dialog_pause()
104 dlg_auto_size(title, prompt, &height, &width, in dialog_pause()
108 gauge_y = height - button_high - (1 + 2 * MARGIN); in dialog_pause()
109 dlg_print_size(height, width); in dialog_pause()
110 dlg_ctl_size(height, width); in dialog_pause()
114 y = dlg_box_y_ordinate(height); in dialog_pause()
116 dialog = dlg_new_window(height, width, y, x); in dialog_pause()
[all …]
Dtimebox.c52 int height; member
84 data->height + (2 * MARGIN), data->width + (2 * MARGIN), in draw_cell()
96 int width, int height, in init_object() argument
106 data->height = height; in init_object()
111 data->height, data->width, in init_object()
118 dlg_mouse_mkregion(y, x, height, width, code); in init_object()
142 int height, in dialog_timebox() argument
177 int old_height = height; in dialog_timebox()
205 dlg_auto_size(title, prompt, &height, &width, 0, 0); in dialog_timebox()
206 height += MIN_HIGH; in dialog_timebox()
[all …]
Dprogressbox.c108 pause_for_ok(WINDOW *dialog, int height, int width) in pause_for_ok() argument
129 mouse_mkbutton(height - 2, width / 2 - 4, 6, '\n'); in pause_for_ok()
130 dlg_draw_buttons(dialog, height - 2, 0, buttons, button, FALSE, width); in pause_for_ok()
168 int height, in dlg_progressbox() argument
181 dlg_auto_size(title, prompt, &height, &width, MIN_HIGH, MIN_WIDE); in dlg_progressbox()
182 dlg_print_size(height, width); in dlg_progressbox()
183 dlg_ctl_size(height, width); in dlg_progressbox()
186 y = dlg_box_y_ordinate(height); in dlg_progressbox()
187 thigh = height - (2 * MARGIN); in dlg_progressbox()
189 dialog = dlg_new_window(height, width, y, x); in dlg_progressbox()
[all …]
Dmixedgauge.c42 int height, old_height, min_height; member
110 int limit_y = dlg->height; in myprint_status()
187 mydraw_mixed_box(WINDOW *win, int y, int x, int height, int width, in mydraw_mixed_box() argument
190 dlg_draw_box(win, y, x, height, width, boxchar, borderchar); in mydraw_mixed_box()
225 (void) wmove(dlg->dialog, dlg->height - 3, 4); in dlg_update_mixedgauge()
231 (void) wmove(dlg->dialog, dlg->height - 3, (dlg->width / 2) - 2); in dlg_update_mixedgauge()
245 (void) wmove(dlg->dialog, dlg->height - 3, 4); in dlg_update_mixedgauge()
277 dlg->height = dlg->old_height = aHeight; in dlg_begin_mixedgauge()
307 dlg->height = dlg->old_height; in dlg_begin_mixedgauge()
313 &(dlg->height), in dlg_begin_mixedgauge()
[all …]
Dutil.c153 dlg_attr_clear(WINDOW *win, int height, int width, chtype attr) in dlg_attr_clear() argument
158 for (i = 0; i < height; i++) { in dlg_attr_clear()
855 dlg_print_autowrap(WINDOW *win, const char *prompt, int height, int width) in dlg_print_autowrap() argument
858 height, in dlg_print_autowrap()
875 int height, in dlg_print_scrolled() argument
906 dlg_print_autowrap(win, prompt, height + 1 + (3 * MARGIN), width); in dlg_print_scrolled()
921 height, /* dmaxrow */ in dlg_print_scrolled()
929 percent = (int) ((height + offset) * 100.0 / y); in dlg_print_scrolled()
936 (void) wmove(win, MARGIN + height, wide - 4); in dlg_print_scrolled()
945 last = (y - height); in dlg_print_scrolled()
[all …]
Dguage.c46 int height; member
125 dlg_draw_box(dialog, 0, 0, obj->height, obj->width, dialog_attr, border_attr); in repaint_text()
131 dlg_print_autowrap(dialog, obj->prompt, obj->height, obj->width); in repaint_text()
134 obj->height - 4, 2 + MARGIN, in repaint_text()
144 (void) wmove(dialog, obj->height - 3, 4); in repaint_text()
150 (void) wmove(dialog, obj->height - 3, (obj->width / 2) - 2); in repaint_text()
164 (void) wmove(dialog, obj->height - 3, 4); in repaint_text()
285 int height, in dlg_allocate_gauge() argument
296 dlg_auto_size(title, prompt, &height, &width, MIN_HIGH, MIN_WIDE); in dlg_allocate_gauge()
297 dlg_print_size(height, width); in dlg_allocate_gauge()
[all …]
Dinputbox.c44 dialog_inputbox(const char *title, const char *cprompt, int height, int width, in dialog_inputbox() argument
64 int old_height = height; in dialog_inputbox()
98 dlg_auto_size(title, prompt, &height, &width, 5, in dialog_inputbox()
104 dlg_auto_size(title, prompt, &height, &width, 5, 26); in dialog_inputbox()
107 dlg_print_size(height, width); in dialog_inputbox()
108 dlg_ctl_size(height, width); in dialog_inputbox()
111 yorg = dlg_box_y_ordinate(height); in dialog_inputbox()
113 dialog = dlg_new_window(height, width, yorg, xorg); in dialog_inputbox()
119 dlg_draw_box(dialog, 0, 0, height, width, dialog_attr, border_attr); in dialog_inputbox()
125 dlg_print_autowrap(dialog, prompt, height, width); in dialog_inputbox()
[all …]
Dcalendar.c57 int height; member
230 data->height + (2 * MARGIN), data->width + (2 * MARGIN), in draw_day()
282 data->y + data->height); in draw_day()
301 data->height + 2, data->width + 2, in draw_month()
321 data->height + 2, data->width + 2, in draw_year()
333 int width, int height, in init_object() argument
341 data->height = height; in init_object()
345 data->height, data->width, in init_object()
353 dlg_mouse_mkbigregion(y + 1, x + MON_WIDE, height - 1, width - MON_WIDE, in init_object()
356 dlg_mouse_mkregion(y, x, height, width, code); in init_object()
[all …]
/freebsd-9-stable/gnu/lib/libodialog/
Dmsgbox.c30 static void print_page(WINDOW *win, int height, int width, unsigned char *buf, int startline, int h…
38 int dialog_msgbox(unsigned char *title, unsigned char *prompt, int height, int width, int pause) in dialog_msgbox() argument
43 if (height < 0) in dialog_msgbox()
44 height = strheight(prompt)+2+2*(!!pause); in dialog_msgbox()
55 if (height > LINES) in dialog_msgbox()
56 height = LINES; in dialog_msgbox()
59 y = DialogY ? DialogY : (LINES - height)/2; in dialog_msgbox()
63 draw_shadow(stdscr, y, x, height, width); in dialog_msgbox()
65 dialog = newwin(height, width, y, x); in dialog_msgbox()
68 fprintf(stderr, "\nnewwin(%d,%d,%d,%d) failed, maybe wrong dims\n", height,width,y,x); in dialog_msgbox()
[all …]
Dtextbox.c29 static void print_page(WINDOW *win, int height, int width);
32 static int get_search_term(WINDOW *win, unsigned char *search_term, int height, int width);
33 static void print_position(WINDOW *win, int height, int width);
44 int dialog_textbox(unsigned char *title, unsigned char *file, int height, int width) in dialog_textbox() argument
53 if (height < 0 || width < 0) { in dialog_textbox()
91 if (height > LINES) in dialog_textbox()
92 height = LINES; in dialog_textbox()
95 y = DialogY ? DialogY : (LINES - height)/2; in dialog_textbox()
99 draw_shadow(stdscr, y, x, height, width); in dialog_textbox()
101 dialog = newwin(height, width, y, x); in dialog_textbox()
[all …]
Dyesno.c29 int height, int width, int yesdefault);
35 dialog_yesno(unsigned char *title, unsigned char *prompt, int height, int width) in dialog_yesno() argument
37 return dialog_yesno_proc(title, prompt, height, width, TRUE); in dialog_yesno()
44 dialog_noyes(unsigned char *title, unsigned char *prompt, int height, int width) in dialog_noyes() argument
46 return dialog_yesno_proc(title, prompt, height, width, FALSE); in dialog_noyes()
50 dialog_yesno_proc(unsigned char *title, unsigned char *prompt, int height, int width, int yesdefaul… in dialog_yesno_proc() argument
60 if (height < 0) in dialog_yesno_proc()
61 height = strheight(prompt)+4; in dialog_yesno_proc()
71 if (height > LINES) in dialog_yesno_proc()
72 height = LINES; in dialog_yesno_proc()
[all …]
Dprgbox.c35 int dialog_prgbox(unsigned char *title, const unsigned char *line, int height, int width, int pause… in dialog_prgbox() argument
44 if (height < 0 || width < 0) { in dialog_prgbox()
53 if (height > LINES) in dialog_prgbox()
54 height = LINES; in dialog_prgbox()
57 y = DialogY ? DialogY : (LINES - height)/2; in dialog_prgbox()
61 draw_shadow(stdscr, y, x, height, width); in dialog_prgbox()
63 dialog = newwin(height, width, y, x); in dialog_prgbox()
66 fprintf(stderr, "\nnewwin(%d,%d,%d,%d) failed, maybe wrong dims\n", height,width,y,x); in dialog_prgbox()
71 draw_box(dialog, 0, 0, height, width, dialog_attr, border_attr); in dialog_prgbox()
103 print_autowrap(dialog, buf, height-(pause?3:1), width-2, width, 1, 2, FALSE, TRUE); in dialog_prgbox()
[all …]
Ddialog.h128 void draw_shadow(WINDOW *win, int y, int x, int height, int width);
130 void draw_box(WINDOW *win, int y, int x, int height, int width, chtype box, chtype border);
136 int dialog_yesno(unsigned char *title, unsigned char *prompt, int height, int width);
137 int dialog_noyes(unsigned char *title, unsigned char *prompt, int height, int width);
138 int dialog_prgbox(unsigned char *title, const unsigned char *line, int height, int width, int pause…
139 int dialog_msgbox(unsigned char *title, unsigned char *prompt, int height, int width, int pause);
140 int dialog_textbox(unsigned char *title, unsigned char *file, int height, int width);
141 int dialog_menu(unsigned char *title, unsigned char *prompt, int height, int width, int menu_height,
143 int dialog_checklist(unsigned char *title, unsigned char *prompt, int height, int width, int list_h…
145 int dialog_radiolist(unsigned char *title, unsigned char *prompt, int height, int width, int list_h…
[all …]
Dinputbox.c29 int dialog_inputbox(unsigned char *title, unsigned char *prompt, int height, int width, unsigned ch… in dialog_inputbox() argument
36 if (height < 0) in dialog_inputbox()
37 height = strheight(prompt)+2+4; in dialog_inputbox()
47 if (height > LINES) in dialog_inputbox()
48 height = LINES; in dialog_inputbox()
51 y = DialogY ? DialogY : (LINES - height)/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 fprintf(stderr, "\nnewwin(%d,%d,%d,%d) failed, maybe wrong dims\n", height,width,y,x); in dialog_inputbox()
65 draw_box(dialog, 0, 0, height, width, dialog_attr, border_attr); in dialog_inputbox()
[all …]
Dtree.c130 int height; /* height + */ member
143 int height,
157 int height, int width, int menu_height,
167 int height, int width, int menu_height, in dialog_treemenu() argument
190 if (height < 0) in dialog_treemenu()
191 height = strheight(prompt)+menu_height+4+2; in dialog_treemenu()
202 if (height > LINES) in dialog_treemenu()
203 height = LINES; in dialog_treemenu()
206 y = (LINES - height)/2; in dialog_treemenu()
210 draw_shadow(stdscr, y, x, height, width); in dialog_treemenu()
[all …]
/freebsd-9-stable/contrib/groff/src/utils/addftinfo/
Dguess.cpp25 int &height = metric->height; in guess() local
31 height = 0; in guess()
42 height = param.asc_height; in guess()
44 height = param.x_height; in guess()
52 height = param.asc_height; in guess()
69 height = param.x_height; in guess()
72 height = param.x_height; in guess()
84 height = param.asc_height; in guess()
87 height = param.asc_height; in guess()
93 height = param.x_height; in guess()
[all …]
/freebsd-9-stable/contrib/texinfo/info/
Dwindow.c48 #define echo_area_required (1 + the_echo_area->height)
54 window_initialize_windows (int width, int height) in window_initialize_windows() argument
83 the_echo_area->height = ECHO_AREA_HEIGHT; in window_initialize_windows()
84 active_window->height = the_screen->height - 1 - the_echo_area->height; in window_initialize_windows()
85 window_new_screen_size (width, height); in window_initialize_windows()
105 window_new_screen_size (int width, int height) in window_new_screen_size() argument
112 if (width == the_screen->width && height == the_screen->height) in window_new_screen_size()
116 if (height < (WINDOW_MIN_SIZE + the_echo_area->height)) in window_new_screen_size()
117 height = 0; in window_new_screen_size()
130 while ((height - echo_area_required) / numwins <= WINDOW_MIN_SIZE) in window_new_screen_size()
[all …]
/freebsd-9-stable/contrib/gdb/gdb/tui/
Dtui-win.c428 tui_active ? TUI_CMD_WIN->generic.height : screenheight); in tui_update_gdb_sizes()
459 _num_to_scroll = win_to_scroll->generic.height - 3; in tui_scroll_forward()
483 _num_to_scroll = win_to_scroll->generic.height - 3; in tui_scroll_backward()
654 new_height = first_win->generic.height; in tui_resize_all()
655 else if ((first_win->generic.height + split_diff) >= in tui_resize_all()
658 else if ((first_win->generic.height + split_diff) <= 0) in tui_resize_all()
661 new_height = first_win->generic.height + split_diff; in tui_resize_all()
691 new_height = first_win->generic.height; in tui_resize_all()
692 else if ((first_win->generic.height + in tui_resize_all()
693 second_win->generic.height + (split_diff * 2)) >= in tui_resize_all()
[all …]
/freebsd-9-stable/contrib/dialog/samples/
Ddialog.py103 def yesno(self, text, height=10, width=30, title=''): argument
110 '--yesno "%s" %d %d' % (text, height, width))
114 def msgbox(self, text, height=10, width=30, title=''): argument
120 '--msgbox "%s" %d %d' % (text, height, width))
123 def infobox(self, text, height=10, width=30): argument
125 self.__perform('--infobox "%s" %d %d' % (text, height, width))
128 def inputbox(self, text, height=10, width=30, init='', title=''): argument
134 '--inputbox "%s" %d %d "%s"' % (text, height, width, init))
144 def textbox(self, filename, height=20, width=60, title=None): argument
149 ' --textbox "%s" %d %d' % (filename, height, width))
[all …]
/freebsd-9-stable/usr.sbin/bsdinstall/partedit/
Ddiskeditor.c76 int height, width, min_width; in diskeditor_show() local
103 height = width = 0; in diskeditor_show()
107 dlg_auto_size(title, prompt, &height, &width, 2, min_width); in diskeditor_show()
108 height += partlist_height; in diskeditor_show()
110 dlg_print_size(height, width); in diskeditor_show()
111 dlg_ctl_size(height, width); in diskeditor_show()
114 y = dlg_box_y_ordinate(height); in diskeditor_show()
116 dialog = dlg_new_window(height, width, y, x); in diskeditor_show()
120 dlg_draw_box(dialog, 0, 0, height, width, dialog_attr, border_attr); in diskeditor_show()
133 dlg_draw_buttons(dialog, height - 2*MARGIN, 0, buttons, in diskeditor_show()
[all …]
/freebsd-9-stable/usr.sbin/bsdconfig/share/
Ddialog.subr107 # need to know the size of the embedded GUI objects because the height passed
112 # height (but does for width) -- a height of 3 will display three lines and a
114 # given a height of 3). For dialog(1), use these values for making sure that
115 # the height does not exceed max_height (obtained by f_dialog_max_size()).
294 # Get the maximum height and width for a dialog widget and store the values in
338 # Don't adjust height if already too small (allowing
351 # and no-greater-than terminal height (or screen height if $USE_XDIALOG is
373 # NOTE: Don't change the name of $__{var,min,}{height,width}
377 for __arg in height width; do
390 for __arg in height width; do
[all …]

12345678910>>...12