rect 66 lib/widget/background.c w->rect = WIDGET (w->owner)->rect; rect 78 lib/widget/background.c tty_fill_region (w->rect.y, w->rect.x, w->rect.lines, w->rect.cols, b->pattern); rect 254 lib/widget/button.c w->rect.cols = button_get_len (b); rect 184 lib/widget/buttonbar.c tty_printf ("%-*s", w->rect.cols, ""); rect 175 lib/widget/check.c w->rect.cols = 3; /* "[ ]" */ rect 177 lib/widget/check.c w->rect.cols = 4 + hotkey_width (check->text); /* "[ ] text" */ rect 251 lib/widget/dialog-switch.c title = dlg->get_title (dlg, WIDGET (listbox->list)->rect.cols - 2); rect 382 lib/widget/dialog.c if (event->y < 0 || event->y >= w->rect.lines || event->x < 0 || event->x >= w->rect.cols) rect 439 lib/widget/dialog.c WIDGET (frame_new (0, 0, w->rect.lines, w->rect.cols, title, FALSE, new_d->compact)); rect 61 lib/widget/frame.c w->rect = WIDGET (w->owner)->rect; rect 71 lib/widget/frame.c const WRect *w = &wf->rect; rect 75 lib/widget/gauge.c tty_printf ("%*s", w->rect.cols, ""); rect 97 lib/widget/gauge.c gauge_len = w->rect.cols - 7; /* 7 positions for percentage */ rect 203 lib/widget/group.c WRect r = WIDGET (w->owner)->rect; rect 239 lib/widget/group.c WRect r = WIDGET (w->owner)->rect; rect 391 lib/widget/group.c const WRect *g = &CONST_WIDGET (c->owner)->rect; rect 393 lib/widget/group.c WRect r = c->rect; rect 396 lib/widget/group.c r.x = g->x + (g->cols - c->rect.cols) / 2; rect 408 lib/widget/group.c r.y = g->y + (g->lines - c->rect.lines) / 2; rect 427 lib/widget/group.c WRect *w = &WIDGET (g)->rect; rect 465 lib/widget/group.c r0 = r != NULL ? *r : w->rect; rect 774 lib/widget/group.c ww->rect.x = (wg->rect.cols - ww->rect.cols) / 2; rect 777 lib/widget/group.c ww->rect.y = (wg->rect.lines - ww->rect.lines) / 2; rect 75 lib/widget/groupbox.c tty_draw_box (w->rect.y, w->rect.x, w->rect.lines, w->rect.cols, TRUE); rect 247 lib/widget/history.c if (WIDGET (query_dlg)->rect.y < hd->y) rect 292 lib/widget/history.c if (WIDGET (query_dlg)->rect.y < hd->y) rect 68 lib/widget/hline.c WRect *w = &wl->rect; rect 69 lib/widget/hline.c const WRect *wo = &o->rect; rect 99 lib/widget/hline.c w->rect.y = RECT (data)->y; rect 113 lib/widget/hline.c tty_draw_hline (w->rect.y, w->rect.x + 1, ACS_HLINE, w->rect.cols - 2); rect 119 lib/widget/hline.c widget_gotoyx (w, 0, w->rect.cols - 1); rect 128 lib/widget/hline.c widget_gotoyx (w, 0, (w->rect.cols - text_width) / 2); rect 73 lib/widget/input.c (in->history.list != NULL && WIDGET (in)->rect.cols > HISTORY_BUTTON_WIDTH * 2 + 1 \ rect 116 lib/widget/input.c widget_gotoyx (in, 0, WIDGET (in)->rect.cols - HISTORY_BUTTON_WIDTH); rect 122 lib/widget/input.c widget_gotoyx (in, 0, WIDGET (in)->rect.cols - HISTORY_BUTTON_WIDTH + 1); rect 162 lib/widget/input.c history_descriptor_init (&hd, WIDGET (in)->rect.y, WIDGET (in)->rect.x, in->history.list, rect 909 lib/widget/input.c if (event->x >= w->rect.cols - HISTORY_BUTTON_WIDTH && should_show_history_button (in)) rect 1186 lib/widget/input.c const WRect *w = &wi->rect; rect 1213 lib/widget/input_complete.c start_x = WIDGET (in)->rect.x; rect 1214 lib/widget/input_complete.c start_y = WIDGET (in)->rect.y; rect 108 lib/widget/label.c tty_print_string (str_fit_to_term (p, w->rect.cols, align)); rect 160 lib/widget/label.c int newcols = w->rect.cols; rect 176 lib/widget/label.c w->rect.cols = MAX (newcols, w->rect.cols); rect 177 lib/widget/label.c w->rect.lines = MAX (newlines, w->rect.lines); rect 183 lib/widget/label.c w->rect.cols = MIN (newcols, w->rect.cols); rect 95 lib/widget/listbox.c const WRect *w = &CONST_WIDGET (l)->rect; rect 137 lib/widget/listbox.c const WRect *w = &CONST_WIDGET (l)->rect; rect 279 lib/widget/listbox.c const WRect *w = &CONST_WIDGET (l)->rect; rect 641 lib/widget/listbox.c int lines = WIDGET (l)->rect.lines; rect 675 lib/widget/listbox.c int lines = WIDGET (l)->rect.lines; rect 126 lib/widget/menu.c const WRect *w = &CONST_WIDGET (menubar)->rect; rect 184 lib/widget/menu.c const WRect *w = &CONST_WIDGET (menubar)->rect; rect 222 lib/widget/menu.c const WRect *w = &CONST_WIDGET (menubar)->rect; rect 318 lib/widget/menu.c w->rect.lines = 1; rect 638 lib/widget/menu.c w->rect.lines = LINES; rect 732 lib/widget/menu.c const WRect *w = &CONST_WIDGET (menubar)->rect; rect 1022 lib/widget/menu.c gap = WIDGET (menubar)->rect.cols - 2; rect 66 lib/widget/mouse.c event->x = global_gpm->x - w->rect.x - 1; /* '-1' because Gpm_Event is 1-based. */ rect 67 lib/widget/mouse.c event->y = global_gpm->y - w->rect.y - 1; rect 103 lib/widget/quick.c *y += label.widget->rect.lines - 1; rect 110 lib/widget/quick.c *width = MAX (label.widget->rect.cols, in.widget->rect.cols); rect 117 lib/widget/quick.c in.widget = WIDGET (quick_create_input (*y, x + label.widget->rect.cols + 1, quick_widget)); rect 121 lib/widget/quick.c *width = label.widget->rect.cols + in.widget->rect.cols + 1; rect 131 lib/widget/quick.c (*y, x + in.widget->rect.cols + 1, I18N (quick_widget->u.input.label_text))); rect 134 lib/widget/quick.c *width = label.widget->rect.cols + in.widget->rect.cols + 1; rect 143 lib/widget/quick.c *y += label.widget->rect.lines - 1; rect 146 lib/widget/quick.c *width = MAX (label.widget->rect.cols, in.widget->rect.cols); rect 191 lib/widget/quick.c quick_dlg->rect.cols = MAX (quick_dlg->rect.cols, len); rect 212 lib/widget/quick.c width = item.widget->rect.cols; rect 229 lib/widget/quick.c width = item.widget->rect.cols; rect 250 lib/widget/quick.c width = item.widget->rect.cols; rect 263 lib/widget/quick.c y += item.widget->rect.lines - 1; rect 264 lib/widget/quick.c width = item.widget->rect.cols; rect 289 lib/widget/quick.c y += item.widget->rect.lines - 1; rect 290 lib/widget/quick.c width = item.widget->rect.cols; rect 315 lib/widget/quick.c w->rect.lines = y + 1 - w->rect.y; rect 374 lib/widget/quick.c blen += item.widget->rect.cols + 1; rect 389 lib/widget/quick.c quick_dlg->rect.cols = MAX (quick_dlg->rect.cols, blen + 6); rect 406 lib/widget/quick.c quick_dlg->rect.cols = MAX (quick_dlg->rect.cols, len); rect 407 lib/widget/quick.c width1 = quick_dlg->rect.cols - 6; rect 408 lib/widget/quick.c width2 = (quick_dlg->rect.cols - 7) / 2; rect 410 lib/widget/quick.c if (quick_dlg->rect.x == -1 || quick_dlg->rect.y == -1) rect 411 lib/widget/quick.c dd = dlg_create (TRUE, 0, 0, y + 3, quick_dlg->rect.cols, WPOS_CENTER | WPOS_TRYUP, FALSE, rect 415 lib/widget/quick.c dd = dlg_create (TRUE, quick_dlg->rect.y, quick_dlg->rect.x, y + 3, quick_dlg->rect.cols, rect 423 lib/widget/quick.c x = (WIDGET (dd)->rect.cols - blen) / 2; rect 432 lib/widget/quick.c r = &item->widget->rect; rect 484 lib/widget/quick.c r->x = label->rect.x + label->rect.cols + 1 - WIDGET (label->owner)->rect.x; rect 485 lib/widget/quick.c r->cols = width - label->rect.cols - 1; rect 493 lib/widget/quick.c r->cols = width - label->rect.cols - 1; rect 494 lib/widget/quick.c label->rect.x = r->x + r->cols + 1; rect 531 lib/widget/quick.c r->x = wg->rect.x + 1 - WIDGET (wg->owner)->rect.x; rect 532 lib/widget/quick.c r->cols = wg->rect.cols; rect 331 lib/widget/quick.h WRect rect; /* if rect.x == -1 or rect.y == -1, then dialog is ceneterd; rect 169 lib/widget/radio.c tty_draw_hline (w->rect.y + i, w->rect.x, ' ', w->rect.cols); rect 90 lib/widget/widget-common.c w->rect = *r; rect 313 lib/widget/widget-common.c w->rect = *r; rect 483 lib/widget/widget-common.c tty_fill_region (w->rect.y, w->rect.x, w->rect.lines, w->rect.cols, ' '); rect 693 lib/widget/widget-common.c rect_move (&w->rect, delta->y, delta->x); rect 695 lib/widget/widget-common.c rect_move (&w->rect, WIDGET (w->owner)->rect.y, WIDGET (w->owner)->rect.x); rect 712 lib/widget/widget-common.c rect_move (&w->rect, -delta->y, -delta->x); rect 714 lib/widget/widget-common.c rect_move (&w->rect, -WIDGET (w->owner)->rect.y, -WIDGET (w->owner)->rect.x); rect 887 lib/widget/widget-common.c local.x = global->x - w->rect.x; rect 888 lib/widget/widget-common.c local.y = global->y - w->rect.y; rect 899 lib/widget/widget-common.c const WRect *r = &w->rect; rect 18 lib/widget/widget-common.h #define widget_gotoyx(w, _y, _x) tty_gotoyx (CONST_WIDGET(w)->rect.y + (_y), CONST_WIDGET(w)->rect.x + (_x)) rect 133 lib/widget/widget-common.h WRect rect; /* position and size */ rect 457 lib/widget/widget-common.h return rects_are_overlapped (&a->rect, &b->rect); rect 100 lib/widget/wtools.c ypos = LINES / 3 - (w->rect.lines - 3) / 2; rect 102 lib/widget/wtools.c ypos = WIDGET (prev_dlg)->rect.y + 2; rect 105 lib/widget/wtools.c if (ypos + w->rect.lines < LINES / 2) rect 108 lib/widget/wtools.c xpos = COLS / 2 - w->rect.cols / 2; rect 111 lib/widget/wtools.c rect_init (&r, ypos, xpos, w->rect.lines, w->rect.cols); rect 714 lib/widget/wtools.c wd_width = MAX (wd->rect.cols, b_width + 6); rect 723 lib/widget/wtools.c r = wd->rect; rect 2214 src/diffviewer/ydiff.c dview->height = w->rect.lines - 1; rect 2215 src/diffviewer/ydiff.c dview->half1 = w->rect.cols / 2; rect 2216 src/diffviewer/ydiff.c dview->half2 = w->rect.cols - dview->half1; rect 3372 src/diffviewer/ydiff.c r = dw->rect; rect 175 src/editor/edit.c r = wd->rect; rect 176 src/editor/edit.c r.cols = MAX (r.cols, lw->rect.cols + 6); rect 178 src/editor/edit.c r = lw->rect; rect 179 src/editor/edit.c r.x = wd->rect.x + (wd->rect.cols - r.cols) / 2; rect 514 src/editor/edit.c edit_move_display (edit, line - (WIDGET (edit)->rect.lines / 2)); rect 843 src/editor/edit.c edit_move_down (edit, WIDGET (edit)->rect.lines - edit->curs_row - 1, FALSE); rect 874 src/editor/edit.c edit_scroll_upward (edit, WIDGET (edit)->rect.lines - 1); rect 1592 src/editor/edit.c if (n++ >= WIDGET (edit)->rect.lines - edit->curs_row) /* out of screen */ rect 2299 src/editor/edit.c if (edit_init (e, &w->rect, arg) == NULL) rect 2963 src/editor/edit.c lines_below = edit->buffer.lines - edit->start_line - (WIDGET (edit)->rect.lines - 1); rect 3384 src/editor/edit.c WRect *w = &WIDGET (edit)->rect; rect 1087 src/editor/editcmd.c WRect r = WIDGET (h)->rect; rect 1690 src/editor/editcmd.c edit_move_display (edit, l - WIDGET (edit)->rect.lines / 2 - 1); rect 359 src/editor/editcomplete.c const WRect *we = &CONST_WIDGET (edit)->rect; rect 185 src/editor/editdraw.c const int w = h->rect.cols; rect 250 src/editor/editdraw.c int cols = w->rect.cols; rect 271 src/editor/editdraw.c tty_printf ("[%s]", str_term_trim (fname, w->rect.cols - 8 - 6)); rect 275 src/editor/editdraw.c x -= w->rect.x; rect 288 src/editor/editdraw.c edit_move (2, w->rect.lines - 1); rect 302 src/editor/editdraw.c edit_move (32, w->rect.lines - 1); rect 344 src/editor/editdraw.c tty_draw_box (w->rect.y, w->rect.x, w->rect.lines, w->rect.cols, !active); rect 349 src/editor/editdraw.c widget_gotoyx (w, w->rect.lines - 1, w->rect.cols - 1); rect 370 src/editor/editdraw.c widget_gotoyx (w->owner, 0, WIDGET (w->owner)->rect.cols - 6); rect 372 src/editor/editdraw.c widget_gotoyx (w, 0, w->rect.cols - 8); rect 408 src/editor/editdraw.c if (len > 0 && w->rect.y + y >= 0) rect 411 src/editor/editdraw.c tty_draw_hline (w->rect.y + y, w->rect.x + x1, ' ', len); rect 415 src/editor/editdraw.c tty_draw_hline (w->rect.y + y, w->rect.x + x1, ' ', len); rect 420 src/editor/editdraw.c tty_draw_hline (w->rect.y + y, w->rect.x + x1, ' ', wrap_start); rect 426 src/editor/editdraw.c tty_draw_hline (w->rect.y + y, w->rect.x + x1 + wrap_start, ' ', len); rect 506 src/editor/editdraw.c if (row > w->rect.lines - 1 - EDIT_TEXT_VERTICAL_OFFSET - 2 * (edit->fullscreen ? 0 : 1)) rect 523 src/editor/editdraw.c if (w->rect.x + w->rect.cols <= WIDGET (w->owner)->rect.cols) rect 839 src/editor/editdraw.c WRect *w = &we->rect; rect 847 src/editor/editdraw.c last_line = wh->rect.y + wh->rect.lines - 1; rect 853 src/editor/editdraw.c last_column = wh->rect.x + wh->rect.cols - 1; rect 860 src/editor/editdraw.c if (y2 < wh->rect.y + 1 /* menubar */ ) rect 864 src/editor/editdraw.c if (x2 < wh->rect.x) rect 874 src/editor/editdraw.c else if (y1 >= wh->rect.y + 1 /* menubar */ ) rect 875 src/editor/editdraw.c end_row = wh->rect.lines - 1 - y1 - 1; rect 877 src/editor/editdraw.c end_row = start_row + wh->rect.lines - 1 - 1; rect 881 src/editor/editdraw.c else if (x1 >= wh->rect.x) rect 882 src/editor/editdraw.c end_column = wh->rect.cols - 1 - x1; rect 884 src/editor/editdraw.c end_column = start_column + wh->rect.cols - 1; rect 1042 src/editor/editdraw.c WRect *w = &WIDGET (edit)->rect; rect 227 src/editor/editsearch.c xpos = w->rect.x + edit_options.line_state_width + 1; rect 229 src/editor/editsearch.c ypos = w->rect.y + w->rect.lines / 2; rect 234 src/editor/editsearch.c dlg_width = WIDGET (w->owner)->rect.cols - xpos - 1; rect 735 src/editor/editsearch.c r = wd->rect; rect 736 src/editor/editsearch.c r.cols = MAX (r.cols, lw->rect.cols + 6); rect 738 src/editor/editsearch.c r = lw->rect; rect 739 src/editor/editsearch.c r.x = wd->rect.x + (wd->rect.cols - r.cols) / 2; rect 909 src/editor/editsearch.c l = edit->curs_row - WIDGET (edit)->rect.lines / 3; rect 222 src/editor/editwidget.c WRect *w = &we->rect; rect 223 src/editor/editwidget.c const WRect *wh = &wo->rect; rect 264 src/editor/editwidget.c WRect *w = &we->rect; rect 265 src/editor/editwidget.c const WRect *wh = &wo->rect; rect 340 src/editor/editwidget.c str_term_trim (fname, WIDGET (listbox->list)->rect.cols - 2), e, rect 890 src/editor/editwidget.c x = w->rect.cols - 6; rect 928 src/editor/editwidget.c w->rect = WIDGET (w->owner)->rect; rect 929 src/editor/editwidget.c rect_grow (&w->rect, -1, 0); rect 1017 src/editor/editwidget.c WRect *r = &w->rect; rect 1018 src/editor/editwidget.c const WRect *h = &CONST_WIDGET (w->owner)->rect; rect 1082 src/editor/editwidget.c close_x = (w->rect.cols - 1) - dx - 1; rect 1096 src/editor/editwidget.c if (msg == MSG_MOUSE_DOWN && (event->y + w->rect.y == LINES - 1)) rect 1127 src/editor/editwidget.c if (event->y == w->rect.lines - 1 && event->x == w->rect.cols - 1) rect 1257 src/editor/editwidget.c (1, 0, wd->rect.lines - 2, wd->rect.cols, EDITOR_BACKGROUND, ' ', rect 1345 src/editor/editwidget.c edit->loc_prev = WIDGET (edit)->rect; rect 1421 src/editor/editwidget.c edit->drag_state_start = w->rect.cols / 2; rect 1529 src/editor/editwidget.c r = WIDGET (w->owner)->rect; rect 317 src/editor/etags.c const WRect *w = &CONST_WIDGET (edit)->rect; rect 222 src/file_history.c history_descriptor_init (&hd, w->rect.y, w->rect.x, file_list, 0); rect 546 src/filemanager/achown.c lxx = WIDGET (b_user)->rect.x + 1; rect 551 src/filemanager/achown.c lxx = WIDGET (b_group)->rect.x + 1; rect 555 src/filemanager/achown.c dlg_create (TRUE, wh->rect.y - 1, lxx, wh->rect.lines + 2, 17, WPOS_KEEP_DEFAULT, TRUE, rect 560 src/filemanager/achown.c listbox_new (1, 1, WIDGET (chl_dlg)->rect.lines - 2, WIDGET (chl_dlg)->rect.cols - 2, rect 786 src/filemanager/achown.c WIDGET (ch_dlg)->rect.cols / 2 - rect 794 src/filemanager/achown.c WIDGET (ch_dlg)->rect.cols / 2 + 1, rect 805 src/filemanager/achown.c WIDGET (ch_dlg)->rect.cols / 2 - rect 812 src/filemanager/achown.c button_new (y, WIDGET (ch_dlg)->rect.cols / 2 + 1, rect 1027 src/filemanager/achown.c str_fit_to_term (fname->str, WIDGET (ch_dlg)->rect.cols - 20, J_LEFT_FIT), rect 194 src/filemanager/boxes.c const WRect *wd = &WIDGET (d->data.p)->rect; rect 195 src/filemanager/boxes.c WRect r = w->rect; rect 408 src/filemanager/boxes.c WRect r = w->rect; rect 416 src/filemanager/boxes.c bar->rect.x = 0; rect 417 src/filemanager/boxes.c bar->rect.y = LINES - 1; rect 1094 src/filemanager/boxes.c rect_init (&r, 2, 2, wd->rect.lines - 6, wd->rect.cols - 5); rect 1097 src/filemanager/boxes.c group_add_widget_autopos (g, hline_new (wd->rect.lines - 4, 1, -1), WPOS_KEEP_BOTTOM, NULL); rect 1101 src/filemanager/boxes.c WIDGET (bar)->rect.x = 0; rect 1102 src/filemanager/boxes.c WIDGET (bar)->rect.y = LINES - 1; rect 1229 src/filemanager/boxes.c WRect r = { w->rect.y + w->rect.lines - 6, w->rect.x, 0, w->rect.cols }; rect 296 src/filemanager/chattr.c if (w->rect.cols > fat->filename_width) rect 298 src/filemanager/chattr.c widget_gotoyx (w, 0, (w->rect.cols - fat->filename_width) / 2); rect 304 src/filemanager/chattr.c tty_print_string (str_trunc (fat->filename, w->rect.cols)); rect 308 src/filemanager/chattr.c widget_gotoyx (w, 1, (w->rect.cols - check_attr_num) / 2); rect 336 src/filemanager/chattr.c const WRect *wo = &CONST_WIDGET (w->owner)->rect; rect 342 src/filemanager/chattr.c w->rect.x = wo->x + wx; rect 343 src/filemanager/chattr.c w->rect.cols = wo->cols - wx * 2; rect 416 src/filemanager/chattr.c widget_gotoyx (w, 0, w->rect.cols); rect 422 src/filemanager/chattr.c max_line = w->rect.lines - 1; rect 425 src/filemanager/chattr.c widget_gotoyx (w, max_line, w->rect.cols); rect 426 src/filemanager/chattr.c if (cb->top + w->rect.lines == check_attr_mod_num || w->rect.lines >= check_attr_mod_num) rect 432 src/filemanager/chattr.c line = 1 + (cb->pos * (w->rect.lines - 2)) / check_attr_mod_num; rect 436 src/filemanager/chattr.c widget_gotoyx (w, i, w->rect.cols); rect 456 src/filemanager/chattr.c tty_fill_region (w->rect.y, w->rect.x - 1, w->rect.lines, w->rect.cols + 1, ' '); rect 463 src/filemanager/chattr.c if (!mc_global.tty.slow_terminal && check_attr_mod_num > w->rect.lines) rect 526 src/filemanager/chattr.c if (cb->pos == cb->top + WIDGET (cb)->rect.lines - 1) rect 571 src/filemanager/chattr.c int i = WIDGET (cb)->rect.lines; rect 609 src/filemanager/chattr.c cb->top = cb->pos - WIDGET (cb)->rect.lines + 1; rect 667 src/filemanager/chattr.c int i = WIDGET (cb)->rect.lines; rect 985 src/filemanager/chattr.c if (lines >= mw->rect.lines - 2) rect 989 src/filemanager/chattr.c dl = lines - (mw->rect.lines - 2); rect 1003 src/filemanager/chattr.c y += WIDGET (file_attr)->rect.lines; rect 1006 src/filemanager/chattr.c if (cols < WIDGET (file_attr)->rect.cols) rect 1008 src/filemanager/chattr.c r = dw->rect; rect 1009 src/filemanager/chattr.c cols = WIDGET (file_attr)->rect.cols; rect 1010 src/filemanager/chattr.c cols = MIN (cols, mw->rect.cols - wx * 2); rect 1029 src/filemanager/chattr.c chattr_but[i].button = WIDGET (button_new (y, dw->rect.cols / 2 + 1 - chattr_but[i].width, rect 1036 src/filemanager/chattr.c WIDGET (button_new (y++, dw->rect.cols / 2 + 2, chattr_but[i].ret_cmd, rect 1042 src/filemanager/chattr.c MAX (cols, chattr_but[i - 1].button->rect.cols + 1 + chattr_but[i].button->rect.cols); rect 1047 src/filemanager/chattr.c if (cols > dw->rect.cols) rect 1049 src/filemanager/chattr.c r = dw->rect; rect 1055 src/filemanager/chattr.c cols = dw->rect.x + dw->rect.cols / 2 + 1; rect 1062 src/filemanager/chattr.c r = b->rect; rect 1067 src/filemanager/chattr.c r = b->rect; rect 212 src/filemanager/chmod.c y = WIDGET (file_gb)->rect.y + 1; rect 213 src/filemanager/chmod.c x = WIDGET (file_gb)->rect.x + 2; rect 375 src/filemanager/chmod.c group_add_widget (g, button_new (y, WIDGET (ch_dlg)->rect.cols / 2 - chmod_but[i].len, rect 379 src/filemanager/chmod.c group_add_widget (g, button_new (y, WIDGET (ch_dlg)->rect.cols / 2 + 1, rect 388 src/filemanager/chmod.c group_add_widget (g, button_new (y, WIDGET (ch_dlg)->rect.cols / 2 - chmod_but[i].len, rect 392 src/filemanager/chmod.c group_add_widget (g, button_new (y, WIDGET (ch_dlg)->rect.cols / 2 + 1, chmod_but[i].ret_cmd, rect 260 src/filemanager/chown.c group_add_widget (g, button_new (y, WIDGET (ch_dlg)->rect.cols / 2 - chown_but[i].len, rect 264 src/filemanager/chown.c group_add_widget (g, button_new (y, WIDGET (ch_dlg)->rect.cols / 2 + 1, chown_but[i].ret_cmd, rect 207 src/filemanager/file.c y = wd->rect.y + 5; rect 208 src/filemanager/file.c x = wd->rect.x; rect 213 src/filemanager/file.c x += (wd->rect.cols - dsm->abort_button->rect.cols) / 2; rect 214 src/filemanager/file.c r = dsm->abort_button->rect; rect 224 src/filemanager/file.c cols = dsm->abort_button->rect.cols + dsm->skip_button->rect.cols + 1; rect 225 src/filemanager/file.c x += (wd->rect.cols - cols) / 2; rect 226 src/filemanager/file.c r = dsm->abort_button->rect; rect 230 src/filemanager/file.c x += dsm->abort_button->rect.cols + 1; rect 231 src/filemanager/file.c r = dsm->skip_button->rect; rect 3372 src/filemanager/file.c WRect r = wd->rect; rect 3416 src/filemanager/file.c WRect r = wd->rect; rect 3423 src/filemanager/file.c if (WIDGET (dsm->count_size)->rect.cols + 6 > r.cols) rect 3425 src/filemanager/file.c r.cols = WIDGET (dsm->count_size)->rect.cols + 6; rect 3434 src/filemanager/file.c str_trunc (vfs_path_as_str (dsm->dirname_vpath), wd->rect.cols - 6)); rect 170 src/filemanager/filegui.c #define truncFileStringSecure(dlg, s) path_trunc (s, WIDGET (dlg)->rect.cols - 10) rect 436 src/filemanager/filegui.c #define WX(i) W(i)->rect.x rect 437 src/filemanager/filegui.c #define WY(i) W(i)->rect.y rect 438 src/filemanager/filegui.c #define WCOLS(i) W(i)->rect.cols rect 678 src/filemanager/filegui.c group_add_widget (g, hline_new (WY (7) - wd->rect.y + 1, -1, -1)); rect 688 src/filemanager/filegui.c group_add_widget (g, hline_new (WY (10) - wd->rect.y + 1, -1, -1)); rect 695 src/filemanager/filegui.c group_add_widget (g, hline_new (WY (19) - wd->rect.y + 1, -1, -1)); rect 759 src/filemanager/filegui.c progress_buttons[0].w->rect.x = w->rect.x + (w->rect.cols - buttons_width) / 2; rect 760 src/filemanager/filegui.c progress_buttons[i].w->rect.x = progress_buttons[0].w->rect.x + progress_buttons[0].len + 1; rect 761 src/filemanager/filegui.c progress_buttons[3].w->rect.x = progress_buttons[i].w->rect.x + progress_buttons[i].len + 1; rect 1014 src/filemanager/filegui.c r = w->rect; rect 923 src/filemanager/filemanager.c WIDGET (the_hint)->rect.cols = COLS; rect 1507 src/filemanager/filemanager.c widget_adjust_position (w->pos_flags, &w->rect); rect 1042 src/filemanager/find.c status_update (str_trunc (buffer, WIDGET (h)->rect.cols - 8)); rect 1137 src/filemanager/find.c status_update (str_trunc (result, WIDGET (h)->rect.cols - 8)); rect 1265 src/filemanager/find.c widget_gotoyx (h, w->rect.lines - 7, w->rect.cols - 4); rect 1363 src/filemanager/find.c status_update (str_trunc (directory, WIDGET (h)->rect.cols - 8)); rect 1502 src/filemanager/find.c const int cols = CONST_WIDGET (h)->rect.cols; rect 1538 src/filemanager/find.c if (title_len > WIDGET (h)->rect.cols - 6) rect 1541 src/filemanager/find.c title_len = WIDGET (h)->rect.cols - 6; rect 1562 src/filemanager/find.c fbuts[i].button->rect.x = CONST_WIDGET (h)->rect.x + fbuts[i].x; rect 1571 src/filemanager/find.c WRect r = w->rect; rect 1708 src/filemanager/find.c y += WIDGET (find_list)->rect.lines; rect 258 src/filemanager/hotlist.c groupbox_set_title (movelist_group, str_trunc (p, w->rect.cols - 2)); rect 261 src/filemanager/hotlist.c groupbox_set_title (hotlist_group, str_trunc (p, w->rect.cols - 2)); rect 262 src/filemanager/hotlist.c label_set_text (pname, str_trunc (text, w->rect.cols)); rect 607 src/filemanager/hotlist.c WRect r = w->rect; rect 788 src/filemanager/hotlist.c listbox_new (y + 1, UX + 1, hotlist_widget->rect.lines - 2, hotlist_widget->rect.cols - 2, rect 806 src/filemanager/hotlist.c y += hotlist_widget->rect.lines; rect 808 src/filemanager/hotlist.c path_box = groupbox_new (y, UX, 3, hotlist_widget->rect.cols, _("Directory path")); rect 813 src/filemanager/hotlist.c y += WIDGET (path_box)->rect.lines; rect 860 src/filemanager/hotlist.c listbox_new (y + 1, UX + 1, movelist_widget->rect.lines - 2, movelist_widget->rect.cols - 2, rect 866 src/filemanager/hotlist.c y += movelist_widget->rect.lines; rect 92 src/filemanager/info.c tty_draw_box (w->rect.y, w->rect.x, w->rect.lines, w->rect.cols, FALSE); rect 94 src/filemanager/info.c widget_gotoyx (w, 0, (w->rect.cols - len - 2) / 2); rect 99 src/filemanager/info.c widget_gotoyx (w, 2, w->rect.cols - 1); rect 101 src/filemanager/info.c tty_draw_hline (w->rect.y + 2, w->rect.x + 1, ACS_HLINE, w->rect.cols - 2); rect 109 src/filemanager/info.c const WRect *w = &CONST_WIDGET (info)->rect; rect 217 src/filemanager/layout.c int md_cols = CONST_WIDGET (filemanager)->rect.cols; rect 255 src/filemanager/layout.c tty_printf ("%03d", CONST_WIDGET (filemanager)->rect.cols - panels_layout.left_panel_size); rect 366 src/filemanager/layout.c mw->rect.lines - (_keybar_visible ? 1 : 0) - (_command_prompt ? 1 : 0) - rect 375 src/filemanager/layout.c mw->rect.lines - (_keybar_visible ? 1 : 0) - (_command_prompt ? 1 : 0) - rect 416 src/filemanager/layout.c panels_layout.left_panel_size = CONST_WIDGET (filemanager)->rect.cols / 2; rect 765 src/filemanager/layout.c widget->rect.cols = mw->rect.cols; rect 771 src/filemanager/layout.c cols = mw->rect.cols; rect 772 src/filemanager/layout.c x = mw->rect.x; rect 777 src/filemanager/layout.c x = mw->rect.x; rect 781 src/filemanager/layout.c cols = mw->rect.cols - panels_layout.left_panel_size; rect 782 src/filemanager/layout.c x = mw->rect.x + panels_layout.left_panel_size; rect 785 src/filemanager/layout.c widget->rect.cols = cols; rect 786 src/filemanager/layout.c widget->rect.x = x; rect 821 src/filemanager/layout.c const WRect *r = &CONST_WIDGET (mw)->rect; rect 869 src/filemanager/layout.c panels[0].widget->rect.cols); rect 871 src/filemanager/layout.c height - panels_layout.top_panel_size, panels[1].widget->rect.cols); rect 875 src/filemanager/layout.c widget_set_size (panels[0].widget, start_y, r->x, height, panels[0].widget->rect.cols); rect 876 src/filemanager/layout.c widget_set_size (panels[1].widget, start_y, panels[1].widget->rect.x, height, rect 877 src/filemanager/layout.c panels[1].widget->rect.cols); rect 982 src/filemanager/layout.c const WRect *r = &mw->rect; rect 1070 src/filemanager/layout.c widget_gotoyx (w, menubar_visible ? 1 : 0, w->rect.cols - 1); rect 1147 src/filemanager/layout.c r = w->rect; rect 1153 src/filemanager/layout.c int md_cols = CONST_WIDGET (filemanager)->rect.cols; rect 1360 src/filemanager/layout.c r = panels[0].widget->rect; rect 1361 src/filemanager/layout.c panels[0].widget->rect = panels[1].widget->rect; rect 1362 src/filemanager/layout.c panels[1].widget->rect = r; rect 444 src/filemanager/panel.c return (CONST_WIDGET (p)->rect.lines - 3 - (panels_options.show_mini_info ? 2 : 0)); rect 955 src/filemanager/panel.c width = w->rect.cols - 2; rect 965 src/filemanager/panel.c width = w->rect.cols - offset - 2; rect 1025 src/filemanager/panel.c width = WIDGET (panel)->rect.cols - 2; rect 1052 src/filemanager/panel.c (panel->quick_search.buffer->str, w->rect.cols - 3, J_LEFT)); rect 1077 src/filemanager/panel.c tty_print_string (str_fit_to_term (link_target, w->rect.cols - 5, J_LEFT_FIT)); rect 1080 src/filemanager/panel.c tty_print_string (str_fit_to_term (_("<readlink failed>"), w->rect.cols - 2, J_LEFT)); rect 1088 src/filemanager/panel.c tty_print_string (str_fit_to_term (_("UP--DIR"), w->rect.cols - 2, J_LEFT)); rect 1145 src/filemanager/panel.c cols = w->rect.cols - 2; rect 1160 src/filemanager/panel.c x = (w->rect.cols - str_term_width1 (buf)) / 2 - 1; rect 1184 src/filemanager/panel.c tty_draw_hline (w->rect.y + y, w->rect.x + 1, ACS_HLINE, w->rect.cols - 2); rect 1231 src/filemanager/panel.c widget_gotoyx (w, w->rect.lines - 1, w->rect.cols - 2 - (int) strlen (tmp)); rect 1323 src/filemanager/panel.c tty_draw_box (w->rect.y, w->rect.x, w->rect.lines, w->rect.cols, FALSE); rect 1333 src/filemanager/panel.c widget_gotoyx (w, y, w->rect.cols - 1); rect 1344 src/filemanager/panel.c widget_gotoyx (w, 0, w->rect.cols - 6); rect 1370 src/filemanager/panel.c tty_printf (" %s ", str_term_trim (tmp, MIN (MAX (w->rect.cols - 12, 0), w->rect.cols))); rect 1389 src/filemanager/panel.c widget_gotoyx (w, w->rect.lines - 1, 4); rect 1397 src/filemanager/panel.c display_total_marked_size (panel, w->rect.lines - 1, 2, TRUE); rect 1630 src/filemanager/panel.c tty_draw_hline (y, x, ' ', w->rect.cols - 2); rect 1906 src/filemanager/panel.c usable_columns = WIDGET (panel)->rect.cols - 2; rect 2168 src/filemanager/panel.c panel->top = panel->current - (WIDGET (panel)->rect.lines - 2) / 2; rect 3581 src/filemanager/panel.c history_descriptor_init (&hd, WIDGET (panel)->rect.y, WIDGET (panel)->rect.x, rect 4068 src/filemanager/panel.c col_width = (CONST_WIDGET (panel)->rect.cols - 2) / panel->list_cols; rect 4101 src/filemanager/panel.c else if (event->x == w->rect.cols - 2) rect 4104 src/filemanager/panel.c else if (event->x >= w->rect.cols - 5 && event->x <= w->rect.cols - 3) rect 4107 src/filemanager/panel.c else if (event->x == w->rect.cols - 6) rect 215 src/filemanager/panelize.c y += WIDGET (l_panelize)->rect.lines + 1; rect 86 src/filemanager/tree.c #define tlines(t) (t->is_panel ? WIDGET (t)->rect.lines - 2 - \ rect 87 src/filemanager/tree.c (panels_options.show_mini_info ? 2 : 0) : WIDGET (t)->rect.lines) rect 241 src/filemanager/tree.c tty_draw_hline (w->rect.y + line, w->rect.x + 1, ' ', tree_cols); rect 255 src/filemanager/tree.c tty_draw_hline (w->rect.y + line, w->rect.x + 1, ' ', tree_cols); rect 276 src/filemanager/tree.c tree_cols = w->rect.cols; rect 343 src/filemanager/tree.c tty_draw_hline (w->rect.y + y + i, w->rect.x + x, ' ', tree_cols); rect 1124 src/filemanager/tree.c tty_draw_box (w->rect.y, w->rect.x, w->rect.lines, w->rect.cols, FALSE); rect 1126 src/filemanager/tree.c widget_gotoyx (w, 0, (w->rect.cols - len - 2) / 2); rect 1133 src/filemanager/tree.c y = w->rect.lines - 3; rect 1136 src/filemanager/tree.c widget_gotoyx (w, y, w->rect.cols - 1); rect 1138 src/filemanager/tree.c tty_draw_hline (w->rect.y + y, w->rect.x + 1, ACS_HLINE, w->rect.cols - 2); rect 1222 src/filemanager/tree.c if (tree->is_panel && event->y == WIDGET (w->owner)->rect.y) rect 1294 src/filemanager/tree.c tree->topdiff = w->rect.lines / 2; rect 575 src/help.c SLsmg_draw_object (WIDGET (h)->rect.y + line + 2, rect 576 src/help.c WIDGET (h)->rect.x + col + 2, c); rect 893 src/help.c WRect r = w->rect; rect 979 src/help.c w->rect.lines = help_lines; rect 1160 src/help.c WIDGET (help_bar)->rect.y -= wh->rect.y; rect 1161 src/help.c WIDGET (help_bar)->rect.x -= wh->rect.x; rect 161 src/viewer/display.c tty_draw_hline (WIDGET (view)->rect.y + r->y, WIDGET (view)->rect.x + r->x, ' ', r->cols); rect 272 src/viewer/display.c view_area.lines = DOZ (WIDGET (view)->rect.lines, 2 * view->dpy_frame_size); rect 273 src/viewer/display.c view_area.cols = DOZ (WIDGET (view)->rect.cols, 2 * view->dpy_frame_size); rect 360 src/viewer/display.c tty_draw_box (w->rect.y, w->rect.x, w->rect.lines, w->rect.cols, FALSE); rect 102 src/viewer/mcviewer.c if (event->y == WIDGET (w->owner)->rect.y) rect 255 src/viewer/mcviewer.c r = vw->rect; rect 105 src/viewer/search.c r = wd->rect; rect 106 src/viewer/search.c r.cols = MAX (r.cols, lw->rect.cols + 6); rect 108 src/viewer/search.c r = lw->rect; rect 109 src/viewer/search.c r.x = wd->rect.x + (wd->rect.cols - r.cols) / 2; rect 85 tests/lib/widget/widget_make_global_local.c ck_assert_int_eq (w0->rect.y, 21); rect 86 tests/lib/widget/widget_make_global_local.c ck_assert_int_eq (w0->rect.x, 21); rect 88 tests/lib/widget/widget_make_global_local.c ck_assert_int_eq (WIDGET (g1)->rect.y, 25); rect 89 tests/lib/widget/widget_make_global_local.c ck_assert_int_eq (WIDGET (g1)->rect.x, 25); rect 91 tests/lib/widget/widget_make_global_local.c ck_assert_int_eq (w1->rect.y, 30); rect 92 tests/lib/widget/widget_make_global_local.c ck_assert_int_eq (w1->rect.x, 30); rect 94 tests/lib/widget/widget_make_global_local.c ck_assert_int_eq (WIDGET (g2)->rect.y, 40); rect 95 tests/lib/widget/widget_make_global_local.c ck_assert_int_eq (WIDGET (g2)->rect.x, 40); rect 97 tests/lib/widget/widget_make_global_local.c ck_assert_int_eq (w2->rect.y, 55); rect 98 tests/lib/widget/widget_make_global_local.c ck_assert_int_eq (w2->rect.x, 55); rect 105 tests/lib/widget/widget_make_global_local.c ck_assert_int_eq (w0->rect.y, 1); rect 106 tests/lib/widget/widget_make_global_local.c ck_assert_int_eq (w0->rect.x, 1); rect 109 tests/lib/widget/widget_make_global_local.c ck_assert_int_eq (WIDGET (g1)->rect.y, 5); rect 110 tests/lib/widget/widget_make_global_local.c ck_assert_int_eq (WIDGET (g1)->rect.x, 5); rect 112 tests/lib/widget/widget_make_global_local.c ck_assert_int_eq (w1->rect.y, 10); rect 113 tests/lib/widget/widget_make_global_local.c ck_assert_int_eq (w1->rect.x, 10); rect 115 tests/lib/widget/widget_make_global_local.c ck_assert_int_eq (WIDGET (g2)->rect.y, 20); rect 116 tests/lib/widget/widget_make_global_local.c ck_assert_int_eq (WIDGET (g2)->rect.x, 20); rect 118 tests/lib/widget/widget_make_global_local.c ck_assert_int_eq (w2->rect.y, 35); rect 119 tests/lib/widget/widget_make_global_local.c ck_assert_int_eq (w2->rect.x, 35);