cols 45 lib/tty/tty-internal.h void tty_colorize_area (int y, int x, int rows, int cols, int color); cols 132 lib/tty/tty-ncurses.c tty_clip (int *y, int *x, int *rows, int *cols) cols 146 lib/tty/tty-ncurses.c *cols += *x; cols 148 lib/tty/tty-ncurses.c if (*cols <= 0) cols 160 lib/tty/tty-ncurses.c if (*x + *cols > COLS) cols 161 lib/tty/tty-ncurses.c *cols = COLS - *x; cols 163 lib/tty/tty-ncurses.c if (*cols <= 0) cols 540 lib/tty/tty-ncurses.c tty_fill_region (int y, int x, int rows, int cols, unsigned char ch) cols 544 lib/tty/tty-ncurses.c if (!tty_clip (&y, &x, &rows, &cols)) cols 550 lib/tty/tty-ncurses.c hline (ch, cols); cols 562 lib/tty/tty-ncurses.c tty_colorize_area (int y, int x, int rows, int cols, int color) cols 570 lib/tty/tty-ncurses.c if (!use_colors || !tty_clip (&y, &x, &rows, &cols)) cols 574 lib/tty/tty-ncurses.c ctext = g_malloc (sizeof (cchar_t) * (cols + 1)); cols 578 lib/tty/tty-ncurses.c mvin_wchnstr (y + row, x, ctext, cols); cols 580 lib/tty/tty-ncurses.c for (int col = 0; col < cols; col++) cols 586 lib/tty/tty-ncurses.c mvadd_wchnstr (y + row, x, ctext, cols); cols 594 lib/tty/tty-ncurses.c (void) cols; cols 620 lib/tty/tty-slang.c tty_fill_region (int y, int x, int rows, int cols, unsigned char ch) cols 622 lib/tty/tty-slang.c SLsmg_fill_region (y, x, rows, cols, ch); cols 628 lib/tty/tty-slang.c tty_colorize_area (int y, int x, int rows, int cols, int color) cols 631 lib/tty/tty-slang.c SLsmg_set_color_in_region (color, y, x, rows, cols); cols 283 lib/tty/tty.c tty_draw_box_shadow (int y, int x, int rows, int cols, int shadow_color) cols 286 lib/tty/tty.c tty_colorize_area (y + 1, x + cols, rows - 1, 2, shadow_color); cols 288 lib/tty/tty.c tty_colorize_area (y + rows, x + 2, 1, cols, shadow_color); cols 128 lib/tty/tty.h extern void tty_draw_box (int y, int x, int rows, int cols, gboolean single); cols 129 lib/tty/tty.h extern void tty_draw_box_shadow (int y, int x, int rows, int cols, int shadow_color); cols 130 lib/tty/tty.h extern void tty_fill_region (int y, int x, int rows, int cols, unsigned char ch); cols 107 lib/tty/win.c int bytes, i, j, cols = 0; cols 130 lib/tty/win.c for (cols = 1;; cols++) cols 141 lib/tty/win.c if ((i % cols) == 0) cols 142 lib/tty/win.c tty_gotoyx (starty + (i / cols), 0); cols 78 lib/widget/background.c tty_fill_region (w->rect.y, w->rect.x, w->rect.lines, w->rect.cols, b->pattern); cols 108 lib/widget/background.c background_new (int y, int x, int lines, int cols, int color, unsigned char pattern, cols 111 lib/widget/background.c WRect r = { y, x, lines, cols }; cols 30 lib/widget/background.h WBackground *background_new (int y, int x, int lines, int cols, int color, unsigned char pattern, cols 219 lib/widget/button.c r.cols = button_get_len (b); cols 254 lib/widget/button.c w->rect.cols = button_get_len (b); cols 184 lib/widget/buttonbar.c tty_printf ("%-*s", w->rect.cols, ""); cols 148 lib/widget/check.c r.cols = 4 + hotkey_width (c->text); cols 175 lib/widget/check.c w->rect.cols = 3; /* "[ ]" */ cols 177 lib/widget/check.c w->rect.cols = 4 + hotkey_width (check->text); /* "[ ] text" */ cols 232 lib/widget/dialog-switch.c int lines, cols; cols 241 lib/widget/dialog-switch.c cols = COLS * 2 / 3; cols 243 lib/widget/dialog-switch.c listbox = listbox_window_new (lines, cols, _("Screens"), "[Screen selector]"); cols 251 lib/widget/dialog-switch.c title = dlg->get_title (dlg, WIDGET (listbox->list)->rect.cols - 2); cols 382 lib/widget/dialog.c if (event->y < 0 || event->y >= w->rect.lines || event->x < 0 || event->x >= w->rect.cols) cols 399 lib/widget/dialog.c dlg_create (gboolean modal, int y1, int x1, int lines, int cols, widget_pos_flags_t pos_flags, cols 403 lib/widget/dialog.c WRect r = { y1, x1, lines, cols }; cols 439 lib/widget/dialog.c WIDGET (frame_new (0, 0, w->rect.lines, w->rect.cols, title, FALSE, new_d->compact)); cols 103 lib/widget/dialog.h WDialog *dlg_create (gboolean modal, int y1, int x1, int lines, int cols, cols 78 lib/widget/frame.c tty_draw_box_shadow (w->y, w->x, w->lines, w->cols, SHADOW_COLOR); cols 81 lib/widget/frame.c tty_fill_region (w->y, w->x, w->lines, w->cols, ' '); cols 82 lib/widget/frame.c tty_draw_box (w->y + d, w->x + d, w->lines - 2 * d, w->cols - 2 * d, f->single); cols 88 lib/widget/frame.c widget_gotoyx (f, d, (w->cols - str_term_width1 (f->title)) / 2); cols 98 lib/widget/frame.c frame_new (int y, int x, int lines, int cols, const char *title, gboolean single, gboolean compact) cols 100 lib/widget/frame.c WRect r = { y, x, lines, cols }; cols 36 lib/widget/frame.h WFrame *frame_new (int y, int x, int lines, int cols, const char *title, gboolean single, cols 75 lib/widget/gauge.c tty_printf ("%*s", w->rect.cols, ""); cols 97 lib/widget/gauge.c gauge_len = w->rect.cols - 7; /* 7 positions for percentage */ cols 131 lib/widget/gauge.c gauge_new (int y, int x, int cols, gboolean shown, int max, int current) cols 133 lib/widget/gauge.c WRect r = { y, x, 1, cols }; cols 30 lib/widget/gauge.h WGauge *gauge_new (int y, int x, int cols, gboolean shown, int max, int current); cols 206 lib/widget/group.c r.cols = 0; cols 242 lib/widget/group.c r.cols = 0; cols 396 lib/widget/group.c r.x = g->x + (g->cols - c->rect.cols) / 2; cols 400 lib/widget/group.c r.cols += wss->scale_x; cols 443 lib/widget/group.c wss.scale_x = w->cols - or.cols; cols 774 lib/widget/group.c ww->rect.x = (wg->rect.cols - ww->rect.cols) / 2; cols 75 lib/widget/groupbox.c tty_draw_box (w->rect.y, w->rect.x, w->rect.lines, w->rect.cols, TRUE); cols 74 lib/widget/hline.c w->cols = wo->cols; cols 79 lib/widget/hline.c w->cols = wo->cols - 2; cols 113 lib/widget/hline.c tty_draw_hline (w->rect.y, w->rect.x + 1, ACS_HLINE, w->rect.cols - 2); cols 119 lib/widget/hline.c widget_gotoyx (w, 0, w->rect.cols - 1); cols 128 lib/widget/hline.c widget_gotoyx (w, 0, (w->rect.cols - text_width) / 2); cols 155 lib/widget/hline.c r.cols = width < 0 ? 1 : width; cols 73 lib/widget/input.c (in->history.list != NULL && WIDGET (in)->rect.cols > HISTORY_BUTTON_WIDTH * 2 + 1 \ cols 116 lib/widget/input.c widget_gotoyx (in, 0, WIDGET (in)->rect.cols - HISTORY_BUTTON_WIDTH); cols 122 lib/widget/input.c widget_gotoyx (in, 0, WIDGET (in)->rect.cols - HISTORY_BUTTON_WIDTH + 1); cols 909 lib/widget/input.c if (event->x >= w->rect.cols - HISTORY_BUTTON_WIDTH && should_show_history_button (in)) cols 1213 lib/widget/input.c if ((pw < in->term_first_shown) || (pw >= in->term_first_shown + w->cols - has_history)) cols 1215 lib/widget/input.c in->term_first_shown = pw - (w->cols / 3); cols 1236 lib/widget/input.c w->cols - has_history)); cols 1245 lib/widget/input.c w->cols - has_history); cols 1261 lib/widget/input.c (w->cols - has_history) - (buf_width - in->term_first_shown)); cols 1272 lib/widget/input.c cp = str_term_substring (in->buffer->str, in->term_first_shown, w->cols - has_history); cols 1274 lib/widget/input.c for (i = 0; i < w->cols - has_history; i++) cols 108 lib/widget/label.c tty_print_string (str_fit_to_term (p, w->rect.cols, align)); cols 141 lib/widget/label.c str_msg_term_size (text, &r.lines, &r.cols); cols 160 lib/widget/label.c int newcols = w->rect.cols; cols 176 lib/widget/label.c w->rect.cols = MAX (newcols, w->rect.cols); cols 183 lib/widget/label.c w->rect.cols = MIN (newcols, w->rect.cols); cols 59 lib/widget/listbox-window.c listbox_window_centered_new (int center_y, int center_x, int lines, int cols, cols 76 lib/widget/listbox-window.c cols = MAX (cols, len); cols 79 lib/widget/listbox-window.c cols = MIN (cols, COLS - 6); cols 92 lib/widget/listbox-window.c xpos -= cols / 2; cols 99 lib/widget/listbox-window.c if (xpos + cols >= COLS) cols 100 lib/widget/listbox-window.c xpos = COLS - cols - space; cols 108 lib/widget/listbox-window.c dlg_create (TRUE, ypos, xpos, lines + space, cols + space, pos_flags, FALSE, listbox_colors, cols 111 lib/widget/listbox-window.c listbox->list = listbox_new (2, 2, lines, cols, FALSE, NULL); cols 120 lib/widget/listbox-window.c listbox_window_new (int lines, int cols, const char *title, const char *help) cols 122 lib/widget/listbox-window.c return listbox_window_centered_new (-1, -1, lines, cols, title, help); cols 28 lib/widget/listbox-window.h Listbox *listbox_window_centered_new (int center_y, int center_x, int lines, int cols, cols 30 lib/widget/listbox-window.h Listbox *listbox_window_new (int lines, int cols, const char *title, const char *help); cols 102 lib/widget/listbox.c widget_gotoyx (l, 0, w->cols); cols 111 lib/widget/listbox.c widget_gotoyx (w, max_line, w->cols); cols 123 lib/widget/listbox.c widget_gotoyx (l, i, w->cols); cols 186 lib/widget/listbox.c tty_print_string (str_fit_to_term (text, w->cols - 2, J_LEFT_FIT)); cols 132 lib/widget/menu.c if (x + menu->max_entry_len + 4 > (gsize) w->cols) cols 133 lib/widget/menu.c x = w->cols - menu->max_entry_len - 4; cols 190 lib/widget/menu.c if (column + menu->max_entry_len + 5 > (gsize) w->cols) cols 191 lib/widget/menu.c column = w->cols - menu->max_entry_len - 5; cols 228 lib/widget/menu.c tty_draw_hline (w->y, w->x, ' ', w->cols); cols 742 lib/widget/menu.c if (right_x > w->cols) cols 744 lib/widget/menu.c left_x = w->cols - (menu->max_entry_len + 3); cols 745 lib/widget/menu.c right_x = w->cols; cols 1022 lib/widget/menu.c gap = WIDGET (menubar)->rect.cols - 2; cols 110 lib/widget/quick.c *width = MAX (label.widget->rect.cols, in.widget->rect.cols); cols 117 lib/widget/quick.c in.widget = WIDGET (quick_create_input (*y, x + label.widget->rect.cols + 1, quick_widget)); cols 121 lib/widget/quick.c *width = label.widget->rect.cols + in.widget->rect.cols + 1; cols 131 lib/widget/quick.c (*y, x + in.widget->rect.cols + 1, I18N (quick_widget->u.input.label_text))); cols 134 lib/widget/quick.c *width = label.widget->rect.cols + in.widget->rect.cols + 1; cols 146 lib/widget/quick.c *width = MAX (label.widget->rect.cols, in.widget->rect.cols); cols 191 lib/widget/quick.c quick_dlg->rect.cols = MAX (quick_dlg->rect.cols, len); cols 212 lib/widget/quick.c width = item.widget->rect.cols; cols 229 lib/widget/quick.c width = item.widget->rect.cols; cols 250 lib/widget/quick.c width = item.widget->rect.cols; cols 264 lib/widget/quick.c width = item.widget->rect.cols; cols 290 lib/widget/quick.c width = item.widget->rect.cols; cols 374 lib/widget/quick.c blen += item.widget->rect.cols + 1; cols 389 lib/widget/quick.c quick_dlg->rect.cols = MAX (quick_dlg->rect.cols, blen + 6); cols 406 lib/widget/quick.c quick_dlg->rect.cols = MAX (quick_dlg->rect.cols, len); cols 407 lib/widget/quick.c width1 = quick_dlg->rect.cols - 6; cols 408 lib/widget/quick.c width2 = (quick_dlg->rect.cols - 7) / 2; cols 411 lib/widget/quick.c dd = dlg_create (TRUE, 0, 0, y + 3, quick_dlg->rect.cols, WPOS_CENTER | WPOS_TRYUP, FALSE, cols 415 lib/widget/quick.c dd = dlg_create (TRUE, quick_dlg->rect.y, quick_dlg->rect.x, y + 3, quick_dlg->rect.cols, cols 423 lib/widget/quick.c x = (WIDGET (dd)->rect.cols - blen) / 2; cols 468 lib/widget/quick.c x += r->cols + 1; cols 484 lib/widget/quick.c r->x = label->rect.x + label->rect.cols + 1 - WIDGET (label->owner)->rect.x; cols 485 lib/widget/quick.c r->cols = width - label->rect.cols - 1; cols 493 lib/widget/quick.c r->cols = width - label->rect.cols - 1; cols 494 lib/widget/quick.c label->rect.x = r->x + r->cols + 1; cols 502 lib/widget/quick.c r->cols = width; cols 516 lib/widget/quick.c r->cols = column_width; cols 532 lib/widget/quick.c r->cols = wg->rect.cols; cols 540 lib/widget/quick.c r->cols = column_width + 2; cols 169 lib/widget/radio.c tty_draw_hline (w->rect.y + i, w->rect.x, ' ', w->rect.cols); cols 239 lib/widget/radio.c r0.cols = 4 + wmax; cols 62 lib/widget/rect.c rect_new (int y, int x, int lines, int cols) cols 69 lib/widget/rect.c rect_init (r, y, x, lines, cols); cols 86 lib/widget/rect.c rect_init (WRect * r, int y, int x, int lines, int cols) cols 91 lib/widget/rect.c r->cols = cols; cols 123 lib/widget/rect.c r->cols += dc; cols 145 lib/widget/rect.c r->cols += dc * 2; cols 167 lib/widget/rect.c x = r->x + r->cols; cols 169 lib/widget/rect.c x1 = r1->x + r1->cols; cols 181 lib/widget/rect.c r->cols = x - r->x; cols 203 lib/widget/rect.c x = r->x + r->cols; cols 205 lib/widget/rect.c x1 = r1->x + r1->cols; cols 217 lib/widget/rect.c r->cols = x - r->x; cols 233 lib/widget/rect.c return !((r2->x >= r1->x + r1->cols) || (r1->x >= r2->x + r2->cols) cols 250 lib/widget/rect.c return (r1->y == r2->y && r1->x == r2->x && r1->lines == r2->lines && r1->cols == r2->cols); cols 26 lib/widget/rect.h int cols; cols 33 lib/widget/rect.h WRect *rect_new (int y, int x, int lines, int cols); cols 34 lib/widget/rect.h void rect_init (WRect * r, int y, int x, int lines, int cols); cols 402 lib/widget/widget-common.c r->cols = COLS; cols 407 lib/widget/widget-common.c r->x = (COLS - r->cols) / 2; cols 434 lib/widget/widget-common.c widget_set_size (Widget * w, int y, int x, int lines, int cols) cols 436 lib/widget/widget-common.c WRect r = { y, x, lines, cols }; cols 483 lib/widget/widget-common.c tty_fill_region (w->rect.y, w->rect.x, w->rect.lines, w->rect.cols, ' '); cols 901 lib/widget/widget-common.c return (event->x > r->x) && (event->y > r->y) && (event->x <= r->x + r->cols) cols 213 lib/widget/widget-common.h void widget_set_size (Widget * w, int y, int x, int lines, int cols); cols 108 lib/widget/wtools.c xpos = COLS / 2 - w->rect.cols / 2; cols 111 lib/widget/wtools.c rect_init (&r, ypos, xpos, w->rect.lines, w->rect.cols); cols 289 lib/widget/wtools.c int cols, lines; cols 312 lib/widget/wtools.c str_msg_term_size (text, &lines, &cols); cols 313 lib/widget/wtools.c cols = 6 + MAX (win_len, MAX (str_term_width1 (header), cols)); cols 318 lib/widget/wtools.c dlg_create (TRUE, 0, 0, lines, cols, pos_flags, FALSE, query_colors, query_default_callback, cols 330 lib/widget/wtools.c cols = (cols - win_len - 2) / 2 + 2; cols 342 lib/widget/wtools.c button = button_new (lines - 3, cols, B_USER + i, NORMAL_BUTTON, cur_name, NULL); cols 344 lib/widget/wtools.c cols += xpos; cols 714 lib/widget/wtools.c wd_width = MAX (wd->rect.cols, b_width + 6); cols 725 lib/widget/wtools.c r.cols = wd_width; cols 2213 src/diffviewer/ydiff.c dview->half1 = w->rect.cols / 2; cols 2214 src/diffviewer/ydiff.c dview->half2 = w->rect.cols - dview->half1; cols 147 src/editor/edit-impl.h off_t edit_move_forward3 (const WEdit * edit, off_t current, long cols, off_t upto); cols 177 src/editor/edit.c r.cols = MAX (r.cols, lw->rect.cols + 6); cols 180 src/editor/edit.c r.x = wd->rect.x + (wd->rect.cols - r.cols) / 2; cols 2805 src/editor/edit.c edit_move_forward3 (const WEdit * edit, off_t current, long cols, off_t upto) cols 2813 src/editor/edit.c cols = -10; cols 2822 src/editor/edit.c if (cols != -10) cols 2824 src/editor/edit.c if (col == cols) cols 2826 src/editor/edit.c if (col > cols) cols 185 src/editor/editdraw.c const int w = h->rect.cols; cols 250 src/editor/editdraw.c int cols = w->rect.cols; cols 254 src/editor/editdraw.c if (cols > 5) cols 271 src/editor/editdraw.c tty_printf ("[%s]", str_term_trim (fname, w->rect.cols - 8 - 6)); cols 277 src/editor/editdraw.c if (x + 6 <= cols - 2 - 6) cols 286 src/editor/editdraw.c if (cols > 30) cols 300 src/editor/editdraw.c if (cols > 46) cols 344 src/editor/editdraw.c tty_draw_box (w->rect.y, w->rect.x, w->rect.lines, w->rect.cols, !active); cols 349 src/editor/editdraw.c widget_gotoyx (w, w->rect.lines - 1, w->rect.cols - 1); cols 370 src/editor/editdraw.c widget_gotoyx (w->owner, 0, WIDGET (w->owner)->rect.cols - 6); cols 372 src/editor/editdraw.c widget_gotoyx (w, 0, w->rect.cols - 8); cols 523 src/editor/editdraw.c if (w->rect.x + w->rect.cols <= WIDGET (w->owner)->rect.cols) cols 856 src/editor/editdraw.c last_column = wh->rect.x + wh->rect.cols - 1; cols 866 src/editor/editdraw.c x2 = w->x + w->cols - 1; cols 883 src/editor/editdraw.c end_column = w->cols - 1; cols 885 src/editor/editdraw.c end_column = wh->rect.cols - 1 - x1; cols 887 src/editor/editdraw.c end_column = start_column + wh->rect.cols - 1; cols 1051 src/editor/editdraw.c if (w->lines <= 0 || w->cols <= 0) cols 1079 src/editor/editdraw.c if (l_extreme + r_extreme + 1 > w->cols) cols 1086 src/editor/editdraw.c l_extreme = (l_extreme * (w->cols - 1)) / n; cols 1087 src/editor/editdraw.c r_extreme = (r_extreme * (w->cols - 1)) / n; cols 1091 src/editor/editdraw.c outby = p + edit->start_col - w->cols + 1 + (r_extreme + edit->found_len); cols 234 src/editor/editsearch.c dlg_width = WIDGET (w->owner)->rect.cols - xpos - 1; cols 760 src/editor/editsearch.c r.cols = MAX (r.cols, lw->rect.cols + 6); cols 763 src/editor/editsearch.c r.x = wd->rect.x + (wd->rect.cols - r.cols) / 2; cols 237 src/editor/editwidget.c if (w->x + wh->cols > wh->x) cols 241 src/editor/editwidget.c if (w->x < wh->x + wh->cols) cols 279 src/editor/editwidget.c if (w->cols > WINDOW_MIN_COLS) cols 280 src/editor/editwidget.c w->cols--; cols 283 src/editor/editwidget.c if (w->x + w->cols < wh->x + wh->cols) cols 284 src/editor/editwidget.c w->cols++; cols 316 src/editor/editwidget.c int lines, cols; cols 323 src/editor/editwidget.c cols = COLS * 2 / 3; cols 325 src/editor/editwidget.c listbox = listbox_window_new (lines, cols, _("Open files"), "[Open files]"); cols 341 src/editor/editwidget.c str_term_trim (fname, WIDGET (listbox->list)->rect.cols - 2), e, cols 891 src/editor/editwidget.c x = w->rect.cols - 6; cols 1046 src/editor/editwidget.c global_x = CLAMP (global_x, h->x, h->x + h->cols - 1); /* Currently a no-op, as the dialog has no left/right margins. */ cols 1056 src/editor/editwidget.c r->cols = MAX (WINDOW_MIN_COLS, global_x - r->x + 1); cols 1083 src/editor/editwidget.c close_x = (w->rect.cols - 1) - dx - 1; cols 1128 src/editor/editwidget.c if (event->y == w->rect.lines - 1 && event->x == w->rect.cols - 1) cols 1259 src/editor/editwidget.c (1, 0, wd->rect.lines - 2, wd->rect.cols, EDITOR_BACKGROUND, ' ', cols 1432 src/editor/editwidget.c edit->drag_state_start = w->rect.cols / 2; cols 561 src/filemanager/achown.c listbox_new (1, 1, WIDGET (chl_dlg)->rect.lines - 2, WIDGET (chl_dlg)->rect.cols - 2, cols 738 src/filemanager/achown.c int cols = 74; cols 751 src/filemanager/achown.c dlg_create (TRUE, 0, 0, lines, cols, WPOS_CENTER, FALSE, dialog_colors, cols 787 src/filemanager/achown.c WIDGET (ch_dlg)->rect.cols / 2 - cols 795 src/filemanager/achown.c WIDGET (ch_dlg)->rect.cols / 2 + 1, cols 806 src/filemanager/achown.c WIDGET (ch_dlg)->rect.cols / 2 - cols 813 src/filemanager/achown.c button_new (y, WIDGET (ch_dlg)->rect.cols / 2 + 1, cols 1040 src/filemanager/achown.c str_fit_to_term (fname->str, WIDGET (ch_dlg)->rect.cols - 20, J_LEFT_FIT), cols 198 src/filemanager/boxes.c r.x = wd->x + wd->cols / 2; cols 412 src/filemanager/boxes.c r.cols = COLS - 20; cols 837 src/filemanager/boxes.c int cols; cols 844 src/filemanager/boxes.c cols = strtol (panel_brief_cols_out, &error, 10); cols 846 src/filemanager/boxes.c *brief_cols = cols; cols 1094 src/filemanager/boxes.c mytree = tree_new (2, 2, wd->rect.lines - 6, wd->rect.cols - 5, FALSE); cols 1228 src/filemanager/boxes.c WRect r = { w->rect.y + w->rect.lines - 6, w->rect.x, 0, w->rect.cols }; cols 1301 src/filemanager/boxes.c int cols = 60; cols 1318 src/filemanager/boxes.c cols = MAX (cols, x + 6); cols 1320 src/filemanager/boxes.c jobs_dlg = dlg_create (TRUE, 0, 0, lines, cols, WPOS_CENTER, FALSE, dialog_colors, NULL, NULL, cols 1324 src/filemanager/boxes.c bg_list = listbox_new (2, 2, lines - 6, cols - 6, FALSE, NULL); cols 1330 src/filemanager/boxes.c x = (cols - x) / 2; cols 299 src/filemanager/chattr.c if (w->rect.cols > fat->filename_width) cols 301 src/filemanager/chattr.c widget_gotoyx (w, 0, (w->rect.cols - fat->filename_width) / 2); cols 307 src/filemanager/chattr.c tty_print_string (str_trunc (fat->filename, w->rect.cols)); cols 311 src/filemanager/chattr.c widget_gotoyx (w, 1, (w->rect.cols - check_attr_num) / 2); cols 343 src/filemanager/chattr.c if (fat->filename_width > wo->cols - wx * 2) cols 346 src/filemanager/chattr.c w->rect.cols = wo->cols - wx * 2; cols 370 src/filemanager/chattr.c r.cols = MAX (width, (int) check_attr_num); cols 419 src/filemanager/chattr.c widget_gotoyx (w, 0, w->rect.cols); cols 428 src/filemanager/chattr.c widget_gotoyx (w, max_line, w->rect.cols); cols 439 src/filemanager/chattr.c widget_gotoyx (w, i, w->rect.cols); cols 459 src/filemanager/chattr.c tty_fill_region (w->rect.y, w->rect.x - 1, w->rect.lines, w->rect.cols + 1, ' '); cols 970 src/filemanager/chattr.c int lines, cols; cols 984 src/filemanager/chattr.c cols = check_attr_width + cb_scrollbar_width; cols 1002 src/filemanager/chattr.c dlg_create (TRUE, 0, 0, lines, cols + wx * 2, WPOS_CENTER, FALSE, dialog_colors, cols 1013 src/filemanager/chattr.c if (cols < WIDGET (file_attr)->rect.cols) cols 1016 src/filemanager/chattr.c cols = WIDGET (file_attr)->rect.cols; cols 1017 src/filemanager/chattr.c cols = MIN (cols, mw->rect.cols - wx * 2); cols 1018 src/filemanager/chattr.c r.cols = cols + wx * 2; cols 1024 src/filemanager/chattr.c rect_init (&r, y++, wx, checkboxes_lines > 0 ? checkboxes_lines : 1, cols); cols 1029 src/filemanager/chattr.c cols = 0; cols 1036 src/filemanager/chattr.c chattr_but[i].button = WIDGET (button_new (y, dw->rect.cols / 2 + 1 - chattr_but[i].width, cols 1043 src/filemanager/chattr.c WIDGET (button_new (y++, dw->rect.cols / 2 + 2, chattr_but[i].ret_cmd, cols 1048 src/filemanager/chattr.c cols = cols 1049 src/filemanager/chattr.c MAX (cols, chattr_but[i - 1].button->rect.cols + 1 + chattr_but[i].button->rect.cols); cols 1053 src/filemanager/chattr.c cols += 6; cols 1054 src/filemanager/chattr.c if (cols > dw->rect.cols) cols 1058 src/filemanager/chattr.c r.cols = cols; cols 1062 src/filemanager/chattr.c cols = dw->rect.x + dw->rect.cols / 2 + 1; cols 1070 src/filemanager/chattr.c r.x = cols - r.cols; cols 1075 src/filemanager/chattr.c r.x = cols + 1; cols 310 src/filemanager/chmod.c int lines, cols; cols 322 src/filemanager/chmod.c cols = str_term_width1 (fname) + 2 + 1; cols 323 src/filemanager/chmod.c file_gb_len = MAX (file_gb_len, cols); cols 326 src/filemanager/chmod.c cols = perm_gb_len + file_gb_len + 1 + 6; cols 328 src/filemanager/chmod.c if (cols > COLS) cols 331 src/filemanager/chmod.c cols = COLS; cols 332 src/filemanager/chmod.c file_gb_len = cols - (perm_gb_len + 1 + 6); cols 336 src/filemanager/chmod.c dlg_create (TRUE, 0, 0, lines, cols, WPOS_CENTER, FALSE, dialog_colors, cols 357 src/filemanager/chmod.c cols = PX + perm_gb_len + 3; cols 359 src/filemanager/chmod.c group_add_widget (g, label_new (y, cols, c_fname)); cols 361 src/filemanager/chmod.c statl = label_new (y + 2, cols, buffer); cols 364 src/filemanager/chmod.c group_add_widget (g, label_new (y + 4, cols, c_fown)); cols 366 src/filemanager/chmod.c group_add_widget (g, label_new (y + 6, cols, c_fgrp)); cols 377 src/filemanager/chmod.c group_add_widget (g, button_new (y, WIDGET (ch_dlg)->rect.cols / 2 - chmod_but[i].len, cols 381 src/filemanager/chmod.c group_add_widget (g, button_new (y, WIDGET (ch_dlg)->rect.cols / 2 + 1, cols 390 src/filemanager/chmod.c group_add_widget (g, button_new (y, WIDGET (ch_dlg)->rect.cols / 2 - chmod_but[i].len, cols 394 src/filemanager/chmod.c group_add_widget (g, button_new (y, WIDGET (ch_dlg)->rect.cols / 2 + 1, chmod_but[i].ret_cmd, cols 195 src/filemanager/chown.c int lines, cols; cols 202 src/filemanager/chown.c cols = GW * 3 + 2 + 6; cols 205 src/filemanager/chown.c dlg_create (TRUE, 0, 0, lines, cols, WPOS_CENTER, FALSE, dialog_colors, NULL, NULL, cols 249 src/filemanager/chown.c x = (cols - blen) / 2; cols 262 src/filemanager/chown.c group_add_widget (g, button_new (y, WIDGET (ch_dlg)->rect.cols / 2 - chown_but[i].len, cols 266 src/filemanager/chown.c group_add_widget (g, button_new (y, WIDGET (ch_dlg)->rect.cols / 2 + 1, chown_but[i].ret_cmd, cols 206 src/filemanager/command.c command_new (int y, int x, int cols) cols 211 src/filemanager/command.c cmd = input_new (y, x, command_colors, cols, "", "cmdline", cols 221 src/filemanager/file.c x += (wd->rect.cols - dsm->abort_button->rect.cols) / 2; cols 230 src/filemanager/file.c int cols; cols 232 src/filemanager/file.c cols = dsm->abort_button->rect.cols + dsm->skip_button->rect.cols + 1; cols 233 src/filemanager/file.c x += (wd->rect.cols - cols) / 2; cols 238 src/filemanager/file.c x += dsm->abort_button->rect.cols + 1; cols 3209 src/filemanager/file.c r.cols = ui_width; cols 3228 src/filemanager/file.c if (WIDGET (dsm->count_size)->rect.cols + 6 > r.cols) cols 3230 src/filemanager/file.c r.cols = WIDGET (dsm->count_size)->rect.cols + 6; cols 3239 src/filemanager/file.c str_trunc (vfs_path_as_str (dsm->dirname_vpath), wd->rect.cols - 6)); cols 171 src/filemanager/filegui.c #define truncFileString(dlg, s) str_trunc (s, WIDGET (dlg)->rect.cols - 10) cols 172 src/filemanager/filegui.c #define truncFileStringSecure(dlg, s) path_trunc (s, WIDGET (dlg)->rect.cols - 10) cols 431 src/filemanager/filegui.c #define WCOLS(i) W(i)->rect.cols cols 749 src/filemanager/filegui.c progress_buttons[0].w->rect.x = w->rect.x + (w->rect.cols - buttons_width) / 2; cols 958 src/filemanager/filegui.c r.cols = MAX (COLS * 2 / 3, buttons_width + 6); cols 918 src/filemanager/filemanager.c WIDGET (the_hint)->rect.cols = COLS; cols 579 src/filemanager/find.c int cols = 68; cols 672 src/filemanager/find.c cols = max (cols, max (b12, cw * 2 + 1) + 6); cols 680 src/filemanager/find.c dlg_create (TRUE, 0, 0, lines, cols, WPOS_CENTER, FALSE, dialog_colors, find_parm_callback, cols 685 src/filemanager/find.c x2 = cols / 2 + 1; cols 686 src/filemanager/find.c cw = (cols - 7) / 2; cols 691 src/filemanager/find.c input_new (y1, x1, input_colors, cols - b0 - 7, in_start_dir, "start", cols 695 src/filemanager/find.c group_add_widget (g, button_new (y1++, cols - b0 - 3, B_TREE, NORMAL_BUTTON, buts[0], NULL)); cols 702 src/filemanager/find.c input_new (y1++, x1, input_colors, cols - 6, cols 772 src/filemanager/find.c x1 = (cols - b12) / 2; cols 1039 src/filemanager/find.c status_update (str_trunc (buffer, WIDGET (h)->rect.cols - 8)); cols 1133 src/filemanager/find.c status_update (str_trunc (result, WIDGET (h)->rect.cols - 8)); cols 1261 src/filemanager/find.c widget_gotoyx (h, w->rect.lines - 7, w->rect.cols - 4); cols 1359 src/filemanager/find.c status_update (str_trunc (directory, WIDGET (h)->rect.cols - 8)); cols 1499 src/filemanager/find.c const int cols = CONST_WIDGET (h)->rect.cols; cols 1506 src/filemanager/find.c fbuts[0].x = (cols - l1) / 2; cols 1514 src/filemanager/find.c fbuts[5].x = (cols - l2) / 2; cols 1535 src/filemanager/find.c if (title_len > WIDGET (h)->rect.cols - 6) cols 1538 src/filemanager/find.c title_len = WIDGET (h)->rect.cols - 6; cols 1571 src/filemanager/find.c r.cols = COLS - 16; cols 1672 src/filemanager/find.c int lines, cols; cols 1693 src/filemanager/find.c cols = COLS - 16; cols 1696 src/filemanager/find.c dlg_create (TRUE, 0, 0, lines, cols, WPOS_CENTER, FALSE, dialog_colors, find_callback, NULL, cols 1703 src/filemanager/find.c find_list = listbox_new (y, 2, lines - 10, cols - 4, FALSE, NULL); cols 259 src/filemanager/hotlist.c groupbox_set_title (movelist_group, str_trunc (p, w->rect.cols - 2)); cols 262 src/filemanager/hotlist.c groupbox_set_title (hotlist_group, str_trunc (p, w->rect.cols - 2)); cols 263 src/filemanager/hotlist.c label_set_text (pname, str_trunc (text, w->rect.cols)); cols 617 src/filemanager/hotlist.c r.cols = COLS - 6; cols 681 src/filemanager/hotlist.c init_i18n_stuff (int list_type, int cols) cols 725 src/filemanager/hotlist.c cols = MAX (cols, MAX (len[0], len[1])); cols 739 src/filemanager/hotlist.c hotlist_but[i].x = cols - hotlist_but[i].len - 6; cols 748 src/filemanager/hotlist.c return cols; cols 758 src/filemanager/hotlist.c int lines, cols; cols 768 src/filemanager/hotlist.c cols = init_i18n_stuff (list_type, COLS - 6); cols 785 src/filemanager/hotlist.c dlg_create (TRUE, 0, 0, lines, cols, WPOS_CENTER, FALSE, dialog_colors, hotlist_callback, cols 790 src/filemanager/hotlist.c hotlist_group = groupbox_new (y, UX, lines - 10 + dh, cols - 2 * UX, _("Top level group")); cols 795 src/filemanager/hotlist.c listbox_new (y + 1, UX + 1, hotlist_widget->rect.lines - 2, hotlist_widget->rect.cols - 2, cols 815 src/filemanager/hotlist.c path_box = groupbox_new (y, UX, 3, hotlist_widget->rect.cols, _("Directory path")); cols 842 src/filemanager/hotlist.c int lines, cols; cols 850 src/filemanager/hotlist.c cols = init_i18n_stuff (LIST_MOVELIST, COLS - 6); cols 855 src/filemanager/hotlist.c dlg_create (TRUE, 0, 0, lines, cols, WPOS_CENTER, FALSE, dialog_colors, hotlist_callback, cols 862 src/filemanager/hotlist.c movelist_group = groupbox_new (y, UX, lines - 7, cols - 2 * UX, _("Directory label")); cols 867 src/filemanager/hotlist.c listbox_new (y + 1, UX + 1, movelist_widget->rect.lines - 2, movelist_widget->rect.cols - 2, cols 92 src/filemanager/info.c tty_draw_box (w->rect.y, w->rect.x, w->rect.lines, w->rect.cols, FALSE); cols 94 src/filemanager/info.c widget_gotoyx (w, 0, (w->rect.cols - len - 2) / 2); cols 99 src/filemanager/info.c widget_gotoyx (w, 2, w->rect.cols - 1); cols 101 src/filemanager/info.c tty_draw_hline (w->rect.y + 2, w->rect.x + 1, ACS_HLINE, w->rect.cols - 2); cols 204 src/filemanager/info.c str_trunc (myfs_stats.device, w->cols - i18n_adjust)); cols 211 src/filemanager/info.c str_trunc (myfs_stats.mpoint, w->cols - i18n_adjust)); cols 298 src/filemanager/info.c str_printf (buff, file_label, str_trunc (fname, w->cols - i18n_adjust)); cols 364 src/filemanager/info.c info_new (int y, int x, int lines, int cols) cols 366 src/filemanager/info.c WRect r = { y, x, lines, cols }; cols 21 src/filemanager/info.h WInfo *info_new (int y, int x, int lines, int cols); cols 219 src/filemanager/layout.c int md_cols = CONST_WIDGET (filemanager)->rect.cols; cols 257 src/filemanager/layout.c tty_printf ("%03d", CONST_WIDGET (filemanager)->rect.cols - panels_layout.left_panel_size); cols 418 src/filemanager/layout.c panels_layout.left_panel_size = CONST_WIDGET (filemanager)->rect.cols / 2; cols 652 src/filemanager/layout.c restore_into_right_dir_panel (int idx, gboolean last_was_panel, int y, int x, int lines, int cols) cols 664 src/filemanager/layout.c new_widget = panel_sized_with_dir_new (p_name, y, x, lines, cols, saved_dir_vpath); cols 668 src/filemanager/layout.c new_widget = panel_sized_new (p_name, y, x, lines, cols); cols 757 src/filemanager/layout.c int cols, x; cols 767 src/filemanager/layout.c widget->rect.cols = mw->rect.cols; cols 773 src/filemanager/layout.c cols = mw->rect.cols; cols 778 src/filemanager/layout.c cols = panels_layout.left_panel_size; cols 783 src/filemanager/layout.c cols = mw->rect.cols - panels_layout.left_panel_size; cols 787 src/filemanager/layout.c widget->rect.cols = cols; cols 871 src/filemanager/layout.c panels[0].widget->rect.cols); cols 873 src/filemanager/layout.c height - panels_layout.top_panel_size, panels[1].widget->rect.cols); cols 877 src/filemanager/layout.c widget_set_size (panels[0].widget, start_y, r->x, height, panels[0].widget->rect.cols); cols 879 src/filemanager/layout.c panels[1].widget->rect.cols); cols 882 src/filemanager/layout.c widget_set_size (WIDGET (the_hint), height + start_y, r->x, 1, r->cols); cols 1007 src/filemanager/layout.c if (r->cols > 8 && prompt_width > r->cols - 8) cols 1011 src/filemanager/layout.c prompt_width = r->cols - 8; cols 1028 src/filemanager/layout.c widget_set_size (WIDGET (cmdline), y, r->x + prompt_width, 1, r->cols - prompt_width); cols 1072 src/filemanager/layout.c widget_gotoyx (w, menubar_visible ? 1 : 0, w->rect.cols - 1); cols 1157 src/filemanager/layout.c int md_cols = CONST_WIDGET (filemanager)->rect.cols; cols 1161 src/filemanager/layout.c r.cols = md_cols; cols 1166 src/filemanager/layout.c r.cols = md_cols - panels_layout.left_panel_size; cols 1187 src/filemanager/layout.c restore_into_right_dir_panel (num, last_was_panel, r.y, r.x, r.lines, r.cols); cols 1192 src/filemanager/layout.c new_widget = WIDGET (info_new (r.y, r.x, r.lines, r.cols)); cols 1196 src/filemanager/layout.c new_widget = WIDGET (tree_new (r.y, r.x, r.lines, r.cols, TRUE)); cols 1200 src/filemanager/layout.c new_widget = WIDGET (mcview_new (r.y, r.x, r.lines, r.cols, TRUE)); cols 953 src/filemanager/panel.c width = w->rect.cols - 2; cols 963 src/filemanager/panel.c width = w->rect.cols - offset - 2; cols 1023 src/filemanager/panel.c width = WIDGET (panel)->rect.cols - 2; cols 1050 src/filemanager/panel.c (panel->quick_search.buffer->str, w->rect.cols - 3, J_LEFT)); cols 1072 src/filemanager/panel.c tty_print_string (str_fit_to_term (link_target, w->rect.cols - 5, J_LEFT_FIT)); cols 1075 src/filemanager/panel.c tty_print_string (str_fit_to_term (_("<readlink failed>"), w->rect.cols - 2, J_LEFT)); cols 1083 src/filemanager/panel.c tty_print_string (str_fit_to_term (_("UP--DIR"), w->rect.cols - 2, J_LEFT)); cols 1134 src/filemanager/panel.c int cols; cols 1140 src/filemanager/panel.c cols = w->rect.cols - 2; cols 1151 src/filemanager/panel.c buf = str_trunc (buf, cols - 4); cols 1155 src/filemanager/panel.c x = (w->rect.cols - str_term_width1 (buf)) / 2 - 1; cols 1179 src/filemanager/panel.c tty_draw_hline (w->rect.y + y, w->rect.x + 1, ACS_HLINE, w->rect.cols - 2); cols 1226 src/filemanager/panel.c widget_gotoyx (w, w->rect.lines - 1, w->rect.cols - 2 - (int) strlen (tmp)); cols 1318 src/filemanager/panel.c tty_draw_box (w->rect.y, w->rect.x, w->rect.lines, w->rect.cols, FALSE); cols 1328 src/filemanager/panel.c widget_gotoyx (w, y, w->rect.cols - 1); cols 1339 src/filemanager/panel.c widget_gotoyx (w, 0, w->rect.cols - 6); cols 1365 src/filemanager/panel.c tty_printf (" %s ", str_term_trim (tmp, MIN (MAX (w->rect.cols - 12, 0), w->rect.cols))); cols 1629 src/filemanager/panel.c tty_draw_hline (y, x, ' ', w->rect.cols - 2); cols 1905 src/filemanager/panel.c usable_columns = WIDGET (panel)->rect.cols - 2; cols 3991 src/filemanager/panel.c col_width = (CONST_WIDGET (panel)->rect.cols - 2) / panel->list_cols; cols 4024 src/filemanager/panel.c else if (event->x == w->rect.cols - 2) cols 4027 src/filemanager/panel.c else if (event->x >= w->rect.cols - 5 && event->x <= w->rect.cols - 3) cols 4030 src/filemanager/panel.c else if (event->x == w->rect.cols - 6) cols 4475 src/filemanager/panel.c panel_sized_empty_new (const char *panel_name, int y, int x, int lines, int cols) cols 4477 src/filemanager/panel.c WRect r = { y, x, lines, cols }; cols 4568 src/filemanager/panel.c panel_sized_with_dir_new (const char *panel_name, int y, int x, int lines, int cols, cols 4577 src/filemanager/panel.c panel = panel_sized_empty_new (panel_name, y, x, lines, cols); cols 155 src/filemanager/panel.h WPanel *panel_sized_empty_new (const char *panel_name, int y, int x, int lines, int cols); cols 156 src/filemanager/panel.h WPanel *panel_sized_with_dir_new (const char *panel_name, int y, int x, int lines, int cols, cols 270 src/filemanager/panel.h panel_sized_new (const char *panel_name, int y, int x, int lines, int cols) cols 272 src/filemanager/panel.h return panel_sized_with_dir_new (panel_name, y, x, lines, cols, NULL); cols 276 src/filemanager/tree.c tree_cols = w->rect.cols; cols 1134 src/filemanager/tree.c tty_draw_box (w->rect.y, w->rect.x, w->rect.lines, w->rect.cols, FALSE); cols 1136 src/filemanager/tree.c widget_gotoyx (w, 0, (w->rect.cols - len - 2) / 2); cols 1146 src/filemanager/tree.c widget_gotoyx (w, y, w->rect.cols - 1); cols 1148 src/filemanager/tree.c tty_draw_hline (w->rect.y + y, w->rect.x + 1, ACS_HLINE, w->rect.cols - 2); cols 1285 src/filemanager/tree.c tree_new (int y, int x, int lines, int cols, gboolean is_panel) cols 1287 src/filemanager/tree.c WRect r = { y, x, lines, cols }; cols 25 src/filemanager/tree.h WTree *tree_new (int y, int x, int lines, int cols, gboolean is_panel); cols 897 src/help.c r.cols = HELP_WINDOW_WIDTH + 4; cols 1164 src/help.c r.cols = HELP_WINDOW_WIDTH - 2; cols 657 src/viewer/ascii.c if (view->mode_flags.wrap && (off_t) col + charwidth > dpy_text_column + (off_t) r->cols cols 672 src/viewer/ascii.c (off_t) col + charwidth <= dpy_text_column + (off_t) r->cols) cols 702 src/viewer/ascii.c i < (off_t) col + charwidth && i < dpy_text_column + (off_t) r->cols; i++) cols 708 src/viewer/ascii.c else if ((off_t) col < dpy_text_column + (off_t) r->cols && cols 709 src/viewer/ascii.c (off_t) col + charwidth > dpy_text_column + (off_t) r->cols) cols 715 src/viewer/ascii.c for (i = col; i < dpy_text_column + (off_t) r->cols; i++) cols 726 src/viewer/ascii.c if (!view->mode_flags.wrap && (off_t) col >= dpy_text_column + (off_t) r->cols cols 1037 src/viewer/ascii.c view->dpy_text_column = DOZ (linewidth, (off_t) view->data_area.cols); cols 141 src/viewer/display.c right = view->status_area.x + view->status_area.cols; cols 161 src/viewer/display.c tty_draw_hline (WIDGET (view)->rect.y + r->y, WIDGET (view)->rect.x + r->x, ' ', r->cols); cols 168 src/viewer/display.c if (r->cols > 40) cols 170 src/viewer/display.c widget_gotoyx (view, r->y, r->cols - 32); cols 189 src/viewer/display.c if (r->cols > 40) cols 190 src/viewer/display.c tty_print_string (str_fit_to_term (file_label, r->cols - 34, J_LEFT_FIT)); cols 192 src/viewer/display.c tty_print_string (str_fit_to_term (file_label, r->cols - 5, J_LEFT_FIT)); cols 193 src/viewer/display.c if (r->cols > 26) cols 273 src/viewer/display.c view_area.cols = DOZ (WIDGET (view)->rect.cols, 2 * view->dpy_frame_size); cols 318 src/viewer/display.c int cols = view->data_area.cols; cols 321 src/viewer/display.c if (cols < 9 + 17) cols 324 src/viewer/display.c bytes = 4 * ((cols - 9) / ((cols <= 80) ? 17 : 18)); cols 361 src/viewer/display.c tty_draw_box (w->rect.y, w->rect.x, w->rect.lines, w->rect.cols, FALSE); cols 382 src/viewer/display.c for (c = 0; c < r->cols; c++) cols 124 src/viewer/hex.c ((r->cols < 80) ? 0 : (r->cols == 80) ? (ngroups - 1) : (ngroups - 1 + 1)); cols 164 src/viewer/hex.c for (i = 0; col < r->cols && hex_buff[i] != '\0'; col++, i++) cols 279 src/viewer/hex.c if (col < r->cols) cols 284 src/viewer/hex.c if (col < r->cols) cols 294 src/viewer/hex.c if (col < r->cols) cols 303 src/viewer/hex.c if (view->data_area.cols >= 80 && col < r->cols) cols 308 src/viewer/hex.c if (col < r->cols) cols 349 src/viewer/hex.c if (text_start + bytes < r->cols) cols 407 src/viewer/lib.c if (view->status_area.cols < 1 || (view->status_area.x + view->status_area.cols) < 4) cols 127 src/viewer/mcviewer.c if (x < r->cols * 1 / 4) cols 132 src/viewer/mcviewer.c else if (x < r->cols * 3 / 4) cols 198 src/viewer/mcviewer.c mcview_new (int y, int x, int lines, int cols, gboolean is_panel) cols 200 src/viewer/mcviewer.c WRect r = { y, x, lines, cols }; cols 255 src/viewer/mcviewer.c lc_mcview = mcview_new (vw->rect.y, vw->rect.x, vw->rect.lines - 1, vw->rect.cols, FALSE); cols 42 src/viewer/mcviewer.h extern WView *mcview_new (int y, int x, int lines, int cols, gboolean is_panel); cols 106 src/viewer/search.c r.cols = MAX (r.cols, lw->rect.cols + 6); cols 109 src/viewer/search.c r.x = wd->rect.x + (wd->rect.cols - r.cols) / 2;