cols 45 lib/tty/tty-internal.h void tty_colorize_area (int y, int x, int rows, int cols, int color); cols 133 lib/tty/tty-ncurses.c tty_clip (int *y, int *x, int *rows, int *cols) cols 147 lib/tty/tty-ncurses.c *cols += *x; cols 149 lib/tty/tty-ncurses.c if (*cols <= 0) cols 161 lib/tty/tty-ncurses.c if (*x + *cols > COLS) cols 162 lib/tty/tty-ncurses.c *cols = COLS - *x; cols 164 lib/tty/tty-ncurses.c if (*cols <= 0) cols 541 lib/tty/tty-ncurses.c tty_fill_region (int y, int x, int rows, int cols, unsigned char ch) cols 545 lib/tty/tty-ncurses.c if (!tty_clip (&y, &x, &rows, &cols)) cols 551 lib/tty/tty-ncurses.c hline (ch, cols); cols 563 lib/tty/tty-ncurses.c tty_colorize_area (int y, int x, int rows, int cols, int color) cols 571 lib/tty/tty-ncurses.c if (!use_colors || !tty_clip (&y, &x, &rows, &cols)) cols 575 lib/tty/tty-ncurses.c ctext = g_malloc (sizeof (cchar_t) * (cols + 1)); cols 579 lib/tty/tty-ncurses.c mvin_wchnstr (y + row, x, ctext, cols); cols 581 lib/tty/tty-ncurses.c for (int col = 0; col < cols; col++) cols 587 lib/tty/tty-ncurses.c mvadd_wchnstr (y + row, x, ctext, cols); cols 595 lib/tty/tty-ncurses.c (void) cols; cols 619 lib/tty/tty-slang.c tty_fill_region (int y, int x, int rows, int cols, unsigned char ch) cols 621 lib/tty/tty-slang.c SLsmg_fill_region (y, x, rows, cols, ch); cols 627 lib/tty/tty-slang.c tty_colorize_area (int y, int x, int rows, int cols, int color) cols 630 lib/tty/tty-slang.c SLsmg_set_color_in_region (color, y, x, rows, cols); cols 284 lib/tty/tty.c tty_draw_box_shadow (int y, int x, int rows, int cols, int shadow_color) cols 287 lib/tty/tty.c tty_colorize_area (y + 1, x + cols, rows - 1, 2, shadow_color); cols 289 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 2215 src/diffviewer/ydiff.c dview->half1 = w->rect.cols / 2; cols 2216 src/diffviewer/ydiff.c dview->half2 = w->rect.cols - dview->half1; cols 141 src/editor/edit-impl.h off_t edit_move_forward3 (const WEdit * edit, off_t current, long cols, off_t upto); cols 176 src/editor/edit.c r.cols = MAX (r.cols, lw->rect.cols + 6); cols 179 src/editor/edit.c r.x = wd->rect.x + (wd->rect.cols - r.cols) / 2; cols 2819 src/editor/edit.c edit_move_forward3 (const WEdit *edit, off_t current, long cols, off_t upto) cols 2827 src/editor/edit.c cols = -10; cols 2836 src/editor/edit.c if (cols != -10) cols 2838 src/editor/edit.c if (col == cols) cols 2840 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 853 src/editor/editdraw.c last_column = wh->rect.x + wh->rect.cols - 1; cols 863 src/editor/editdraw.c x2 = w->x + w->cols - 1; cols 880 src/editor/editdraw.c end_column = w->cols - 1; cols 882 src/editor/editdraw.c end_column = wh->rect.cols - 1 - x1; cols 884 src/editor/editdraw.c end_column = start_column + wh->rect.cols - 1; cols 1048 src/editor/editdraw.c if (w->lines <= 0 || w->cols <= 0) cols 1076 src/editor/editdraw.c if (l_extreme + r_extreme + 1 > w->cols) cols 1083 src/editor/editdraw.c l_extreme = (l_extreme * (w->cols - 1)) / n; cols 1084 src/editor/editdraw.c r_extreme = (r_extreme * (w->cols - 1)) / n; cols 1088 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 736 src/editor/editsearch.c r.cols = MAX (r.cols, lw->rect.cols + 6); cols 739 src/editor/editsearch.c r.x = wd->rect.x + (wd->rect.cols - r.cols) / 2; cols 236 src/editor/editwidget.c if (w->x + wh->cols > wh->x) cols 240 src/editor/editwidget.c if (w->x < wh->x + wh->cols) cols 278 src/editor/editwidget.c if (w->cols > WINDOW_MIN_COLS) cols 279 src/editor/editwidget.c w->cols--; cols 282 src/editor/editwidget.c if (w->x + w->cols < wh->x + wh->cols) cols 283 src/editor/editwidget.c w->cols++; cols 315 src/editor/editwidget.c int lines, cols; cols 322 src/editor/editwidget.c cols = COLS * 2 / 3; cols 324 src/editor/editwidget.c listbox = listbox_window_new (lines, cols, _("Open files"), "[Open files]"); cols 340 src/editor/editwidget.c str_term_trim (fname, WIDGET (listbox->list)->rect.cols - 2), e, cols 890 src/editor/editwidget.c x = w->rect.cols - 6; cols 1045 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 1055 src/editor/editwidget.c r->cols = MAX (WINDOW_MIN_COLS, global_x - r->x + 1); cols 1082 src/editor/editwidget.c close_x = (w->rect.cols - 1) - dx - 1; cols 1127 src/editor/editwidget.c if (event->y == w->rect.lines - 1 && event->x == w->rect.cols - 1) cols 1257 src/editor/editwidget.c (1, 0, wd->rect.lines - 2, wd->rect.cols, EDITOR_BACKGROUND, ' ', cols 1421 src/editor/editwidget.c edit->drag_state_start = w->rect.cols / 2; cols 560 src/filemanager/achown.c listbox_new (1, 1, WIDGET (chl_dlg)->rect.lines - 2, WIDGET (chl_dlg)->rect.cols - 2, cols 737 src/filemanager/achown.c int cols = 74; cols 750 src/filemanager/achown.c dlg_create (TRUE, 0, 0, lines, cols, WPOS_CENTER, FALSE, dialog_colors, cols 786 src/filemanager/achown.c WIDGET (ch_dlg)->rect.cols / 2 - cols 794 src/filemanager/achown.c WIDGET (ch_dlg)->rect.cols / 2 + 1, cols 805 src/filemanager/achown.c WIDGET (ch_dlg)->rect.cols / 2 - cols 812 src/filemanager/achown.c button_new (y, WIDGET (ch_dlg)->rect.cols / 2 + 1, cols 1027 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 836 src/filemanager/boxes.c int cols; cols 843 src/filemanager/boxes.c cols = strtol (panel_brief_cols_out, &error, 10); cols 845 src/filemanager/boxes.c *brief_cols = cols; cols 1094 src/filemanager/boxes.c rect_init (&r, 2, 2, wd->rect.lines - 6, wd->rect.cols - 5); cols 1229 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 296 src/filemanager/chattr.c if (w->rect.cols > fat->filename_width) cols 298 src/filemanager/chattr.c widget_gotoyx (w, 0, (w->rect.cols - fat->filename_width) / 2); cols 304 src/filemanager/chattr.c tty_print_string (str_trunc (fat->filename, w->rect.cols)); cols 308 src/filemanager/chattr.c widget_gotoyx (w, 1, (w->rect.cols - check_attr_num) / 2); cols 340 src/filemanager/chattr.c if (fat->filename_width > wo->cols - wx * 2) cols 343 src/filemanager/chattr.c w->rect.cols = wo->cols - wx * 2; cols 367 src/filemanager/chattr.c r.cols = MAX (width, (int) check_attr_num); cols 416 src/filemanager/chattr.c widget_gotoyx (w, 0, w->rect.cols); cols 425 src/filemanager/chattr.c widget_gotoyx (w, max_line, w->rect.cols); cols 436 src/filemanager/chattr.c widget_gotoyx (w, i, w->rect.cols); cols 456 src/filemanager/chattr.c tty_fill_region (w->rect.y, w->rect.x - 1, w->rect.lines, w->rect.cols + 1, ' '); cols 963 src/filemanager/chattr.c int lines, cols; cols 977 src/filemanager/chattr.c cols = check_attr_width + cb_scrollbar_width; cols 995 src/filemanager/chattr.c dlg_create (TRUE, 0, 0, lines, cols + wx * 2, WPOS_CENTER, FALSE, dialog_colors, cols 1006 src/filemanager/chattr.c if (cols < WIDGET (file_attr)->rect.cols) cols 1009 src/filemanager/chattr.c cols = WIDGET (file_attr)->rect.cols; cols 1010 src/filemanager/chattr.c cols = MIN (cols, mw->rect.cols - wx * 2); cols 1011 src/filemanager/chattr.c r.cols = cols + wx * 2; cols 1017 src/filemanager/chattr.c rect_init (&r, y++, wx, checkboxes_lines > 0 ? checkboxes_lines : 1, cols); cols 1022 src/filemanager/chattr.c cols = 0; cols 1029 src/filemanager/chattr.c chattr_but[i].button = WIDGET (button_new (y, dw->rect.cols / 2 + 1 - chattr_but[i].width, cols 1036 src/filemanager/chattr.c WIDGET (button_new (y++, dw->rect.cols / 2 + 2, chattr_but[i].ret_cmd, cols 1041 src/filemanager/chattr.c cols = cols 1042 src/filemanager/chattr.c MAX (cols, chattr_but[i - 1].button->rect.cols + 1 + chattr_but[i].button->rect.cols); cols 1046 src/filemanager/chattr.c cols += 6; cols 1047 src/filemanager/chattr.c if (cols > dw->rect.cols) cols 1051 src/filemanager/chattr.c r.cols = cols; cols 1055 src/filemanager/chattr.c cols = dw->rect.x + dw->rect.cols / 2 + 1; cols 1063 src/filemanager/chattr.c r.x = cols - r.cols; cols 1068 src/filemanager/chattr.c r.x = cols + 1; cols 308 src/filemanager/chmod.c int lines, cols; cols 320 src/filemanager/chmod.c cols = str_term_width1 (fname) + 2 + 1; cols 321 src/filemanager/chmod.c file_gb_len = MAX (file_gb_len, cols); cols 324 src/filemanager/chmod.c cols = perm_gb_len + file_gb_len + 1 + 6; cols 326 src/filemanager/chmod.c if (cols > COLS) cols 329 src/filemanager/chmod.c cols = COLS; cols 330 src/filemanager/chmod.c file_gb_len = cols - (perm_gb_len + 1 + 6); cols 334 src/filemanager/chmod.c dlg_create (TRUE, 0, 0, lines, cols, WPOS_CENTER, FALSE, dialog_colors, cols 355 src/filemanager/chmod.c cols = PX + perm_gb_len + 3; cols 357 src/filemanager/chmod.c group_add_widget (g, label_new (y, cols, c_fname)); cols 359 src/filemanager/chmod.c statl = label_new (y + 2, cols, buffer); cols 362 src/filemanager/chmod.c group_add_widget (g, label_new (y + 4, cols, c_fown)); cols 364 src/filemanager/chmod.c group_add_widget (g, label_new (y + 6, cols, c_fgrp)); cols 375 src/filemanager/chmod.c group_add_widget (g, button_new (y, WIDGET (ch_dlg)->rect.cols / 2 - chmod_but[i].len, cols 379 src/filemanager/chmod.c group_add_widget (g, button_new (y, WIDGET (ch_dlg)->rect.cols / 2 + 1, cols 388 src/filemanager/chmod.c group_add_widget (g, button_new (y, WIDGET (ch_dlg)->rect.cols / 2 - chmod_but[i].len, cols 392 src/filemanager/chmod.c group_add_widget (g, button_new (y, WIDGET (ch_dlg)->rect.cols / 2 + 1, chmod_but[i].ret_cmd, cols 193 src/filemanager/chown.c int lines, cols; cols 200 src/filemanager/chown.c cols = GW * 3 + 2 + 6; cols 203 src/filemanager/chown.c dlg_create (TRUE, 0, 0, lines, cols, WPOS_CENTER, FALSE, dialog_colors, NULL, NULL, cols 247 src/filemanager/chown.c x = (cols - blen) / 2; cols 260 src/filemanager/chown.c group_add_widget (g, button_new (y, WIDGET (ch_dlg)->rect.cols / 2 - chown_but[i].len, cols 264 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 213 src/filemanager/file.c x += (wd->rect.cols - dsm->abort_button->rect.cols) / 2; cols 222 src/filemanager/file.c int cols; cols 224 src/filemanager/file.c cols = dsm->abort_button->rect.cols + dsm->skip_button->rect.cols + 1; cols 225 src/filemanager/file.c x += (wd->rect.cols - cols) / 2; cols 230 src/filemanager/file.c x += dsm->abort_button->rect.cols + 1; cols 3404 src/filemanager/file.c r.cols = ui_width; cols 3423 src/filemanager/file.c if (WIDGET (dsm->count_size)->rect.cols + 6 > r.cols) cols 3425 src/filemanager/file.c r.cols = WIDGET (dsm->count_size)->rect.cols + 6; cols 3434 src/filemanager/file.c str_trunc (vfs_path_as_str (dsm->dirname_vpath), wd->rect.cols - 6)); cols 170 src/filemanager/filegui.c #define truncFileStringSecure(dlg, s) path_trunc (s, WIDGET (dlg)->rect.cols - 10) cols 438 src/filemanager/filegui.c #define WCOLS(i) W(i)->rect.cols cols 759 src/filemanager/filegui.c progress_buttons[0].w->rect.x = w->rect.x + (w->rect.cols - buttons_width) / 2; cols 1016 src/filemanager/filegui.c r.cols = MAX (COLS * 2 / 3, buttons_width + 6); cols 923 src/filemanager/filemanager.c WIDGET (the_hint)->rect.cols = COLS; cols 587 src/filemanager/find.c int cols = 68; cols 680 src/filemanager/find.c cols = max (cols, max (b12, cw * 2 + 1) + 6); cols 688 src/filemanager/find.c dlg_create (TRUE, 0, 0, lines, cols, WPOS_CENTER, FALSE, dialog_colors, find_parm_callback, cols 693 src/filemanager/find.c x2 = cols / 2 + 1; cols 694 src/filemanager/find.c cw = (cols - 7) / 2; cols 699 src/filemanager/find.c input_new (y1, x1, input_colors, cols - b0 - 7, in_start_dir, "start", cols 703 src/filemanager/find.c group_add_widget (g, button_new (y1++, cols - b0 - 3, B_TREE, NORMAL_BUTTON, buts[0], NULL)); cols 710 src/filemanager/find.c input_new (y1++, x1, input_colors, cols - 6, cols 780 src/filemanager/find.c x1 = (cols - b12) / 2; cols 1042 src/filemanager/find.c status_update (str_trunc (buffer, WIDGET (h)->rect.cols - 8)); cols 1137 src/filemanager/find.c status_update (str_trunc (result, WIDGET (h)->rect.cols - 8)); cols 1265 src/filemanager/find.c widget_gotoyx (h, w->rect.lines - 7, w->rect.cols - 4); cols 1363 src/filemanager/find.c status_update (str_trunc (directory, WIDGET (h)->rect.cols - 8)); cols 1502 src/filemanager/find.c const int cols = CONST_WIDGET (h)->rect.cols; cols 1509 src/filemanager/find.c fbuts[0].x = (cols - l1) / 2; cols 1517 src/filemanager/find.c fbuts[5].x = (cols - l2) / 2; cols 1538 src/filemanager/find.c if (title_len > WIDGET (h)->rect.cols - 6) cols 1541 src/filemanager/find.c title_len = WIDGET (h)->rect.cols - 6; cols 1574 src/filemanager/find.c r.cols = COLS - 16; cols 1675 src/filemanager/find.c int lines, cols; cols 1696 src/filemanager/find.c cols = COLS - 16; cols 1699 src/filemanager/find.c dlg_create (TRUE, 0, 0, lines, cols, WPOS_CENTER, FALSE, dialog_colors, find_callback, NULL, cols 1706 src/filemanager/find.c find_list = listbox_new (y, 2, lines - 10, cols - 4, FALSE, NULL); cols 258 src/filemanager/hotlist.c groupbox_set_title (movelist_group, str_trunc (p, w->rect.cols - 2)); cols 261 src/filemanager/hotlist.c groupbox_set_title (hotlist_group, str_trunc (p, w->rect.cols - 2)); cols 262 src/filemanager/hotlist.c label_set_text (pname, str_trunc (text, w->rect.cols)); cols 610 src/filemanager/hotlist.c r.cols = COLS - 6; cols 674 src/filemanager/hotlist.c init_i18n_stuff (int list_type, int cols) cols 718 src/filemanager/hotlist.c cols = MAX (cols, MAX (len[0], len[1])); cols 732 src/filemanager/hotlist.c hotlist_but[i].x = cols - hotlist_but[i].len - 6; cols 741 src/filemanager/hotlist.c return cols; cols 751 src/filemanager/hotlist.c int lines, cols; cols 761 src/filemanager/hotlist.c cols = init_i18n_stuff (list_type, COLS - 6); cols 778 src/filemanager/hotlist.c dlg_create (TRUE, 0, 0, lines, cols, WPOS_CENTER, FALSE, dialog_colors, hotlist_callback, cols 783 src/filemanager/hotlist.c hotlist_group = groupbox_new (y, UX, lines - 10 + dh, cols - 2 * UX, _("Top level group")); cols 788 src/filemanager/hotlist.c listbox_new (y + 1, UX + 1, hotlist_widget->rect.lines - 2, hotlist_widget->rect.cols - 2, cols 808 src/filemanager/hotlist.c path_box = groupbox_new (y, UX, 3, hotlist_widget->rect.cols, _("Directory path")); cols 835 src/filemanager/hotlist.c int lines, cols; cols 843 src/filemanager/hotlist.c cols = init_i18n_stuff (LIST_MOVELIST, COLS - 6); cols 848 src/filemanager/hotlist.c dlg_create (TRUE, 0, 0, lines, cols, WPOS_CENTER, FALSE, dialog_colors, hotlist_callback, cols 855 src/filemanager/hotlist.c movelist_group = groupbox_new (y, UX, lines - 7, cols - 2 * UX, _("Directory label")); cols 860 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 206 src/filemanager/info.c str_trunc (myfs_stats.device, w->cols - i18n_adjust)); cols 213 src/filemanager/info.c str_trunc (myfs_stats.mpoint, w->cols - i18n_adjust)); cols 300 src/filemanager/info.c str_printf (buff, file_label, str_trunc (fname, w->cols - i18n_adjust)); cols 217 src/filemanager/layout.c int md_cols = CONST_WIDGET (filemanager)->rect.cols; cols 255 src/filemanager/layout.c tty_printf ("%03d", CONST_WIDGET (filemanager)->rect.cols - panels_layout.left_panel_size); cols 416 src/filemanager/layout.c panels_layout.left_panel_size = CONST_WIDGET (filemanager)->rect.cols / 2; cols 755 src/filemanager/layout.c int cols, x; cols 765 src/filemanager/layout.c widget->rect.cols = mw->rect.cols; cols 771 src/filemanager/layout.c cols = mw->rect.cols; cols 776 src/filemanager/layout.c cols = panels_layout.left_panel_size; cols 781 src/filemanager/layout.c cols = mw->rect.cols - panels_layout.left_panel_size; cols 785 src/filemanager/layout.c widget->rect.cols = cols; cols 869 src/filemanager/layout.c panels[0].widget->rect.cols); cols 871 src/filemanager/layout.c height - panels_layout.top_panel_size, panels[1].widget->rect.cols); cols 875 src/filemanager/layout.c widget_set_size (panels[0].widget, start_y, r->x, height, panels[0].widget->rect.cols); cols 877 src/filemanager/layout.c panels[1].widget->rect.cols); cols 880 src/filemanager/layout.c widget_set_size (WIDGET (the_hint), height + start_y, r->x, 1, r->cols); cols 1005 src/filemanager/layout.c if (r->cols > 8 && prompt_width > r->cols - 8) cols 1009 src/filemanager/layout.c prompt_width = r->cols - 8; cols 1026 src/filemanager/layout.c widget_set_size (WIDGET (cmdline), y, r->x + prompt_width, 1, r->cols - prompt_width); cols 1070 src/filemanager/layout.c widget_gotoyx (w, menubar_visible ? 1 : 0, w->rect.cols - 1); cols 1153 src/filemanager/layout.c int md_cols = CONST_WIDGET (filemanager)->rect.cols; cols 1157 src/filemanager/layout.c r.cols = md_cols; cols 1162 src/filemanager/layout.c r.cols = md_cols - panels_layout.left_panel_size; cols 955 src/filemanager/panel.c width = w->rect.cols - 2; cols 965 src/filemanager/panel.c width = w->rect.cols - offset - 2; cols 1025 src/filemanager/panel.c width = WIDGET (panel)->rect.cols - 2; cols 1052 src/filemanager/panel.c (panel->quick_search.buffer->str, w->rect.cols - 3, J_LEFT)); cols 1077 src/filemanager/panel.c tty_print_string (str_fit_to_term (link_target, w->rect.cols - 5, J_LEFT_FIT)); cols 1080 src/filemanager/panel.c tty_print_string (str_fit_to_term (_("<readlink failed>"), w->rect.cols - 2, J_LEFT)); cols 1088 src/filemanager/panel.c tty_print_string (str_fit_to_term (_("UP--DIR"), w->rect.cols - 2, J_LEFT)); cols 1139 src/filemanager/panel.c int cols; cols 1145 src/filemanager/panel.c cols = w->rect.cols - 2; cols 1156 src/filemanager/panel.c buf = str_trunc (buf, cols - 4); cols 1160 src/filemanager/panel.c x = (w->rect.cols - str_term_width1 (buf)) / 2 - 1; cols 1184 src/filemanager/panel.c tty_draw_hline (w->rect.y + y, w->rect.x + 1, ACS_HLINE, w->rect.cols - 2); cols 1231 src/filemanager/panel.c widget_gotoyx (w, w->rect.lines - 1, w->rect.cols - 2 - (int) strlen (tmp)); cols 1323 src/filemanager/panel.c tty_draw_box (w->rect.y, w->rect.x, w->rect.lines, w->rect.cols, FALSE); cols 1333 src/filemanager/panel.c widget_gotoyx (w, y, w->rect.cols - 1); cols 1344 src/filemanager/panel.c widget_gotoyx (w, 0, w->rect.cols - 6); cols 1370 src/filemanager/panel.c tty_printf (" %s ", str_term_trim (tmp, MIN (MAX (w->rect.cols - 12, 0), w->rect.cols))); cols 1630 src/filemanager/panel.c tty_draw_hline (y, x, ' ', w->rect.cols - 2); cols 1906 src/filemanager/panel.c usable_columns = WIDGET (panel)->rect.cols - 2; cols 4068 src/filemanager/panel.c col_width = (CONST_WIDGET (panel)->rect.cols - 2) / panel->list_cols; cols 4101 src/filemanager/panel.c else if (event->x == w->rect.cols - 2) cols 4104 src/filemanager/panel.c else if (event->x >= w->rect.cols - 5 && event->x <= w->rect.cols - 3) cols 4107 src/filemanager/panel.c else if (event->x == w->rect.cols - 6) cols 276 src/filemanager/tree.c tree_cols = w->rect.cols; cols 1124 src/filemanager/tree.c tty_draw_box (w->rect.y, w->rect.x, w->rect.lines, w->rect.cols, FALSE); cols 1126 src/filemanager/tree.c widget_gotoyx (w, 0, (w->rect.cols - len - 2) / 2); cols 1136 src/filemanager/tree.c widget_gotoyx (w, y, w->rect.cols - 1); cols 1138 src/filemanager/tree.c tty_draw_hline (w->rect.y + y, w->rect.x + 1, ACS_HLINE, w->rect.cols - 2); 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 360 src/viewer/display.c tty_draw_box (w->rect.y, w->rect.x, w->rect.lines, w->rect.cols, FALSE); cols 381 src/viewer/display.c for (c = 0; c < r->cols; c++) cols 124 src/viewer/hex.c if (r->cols == 80) cols 126 src/viewer/hex.c else if (r->cols > 80) cols 165 src/viewer/hex.c for (i = 0; col < r->cols && hex_buff[i] != '\0'; col++, i++) cols 278 src/viewer/hex.c if (col < r->cols) cols 283 src/viewer/hex.c if (col < r->cols) cols 293 src/viewer/hex.c if (col < r->cols) cols 302 src/viewer/hex.c if (view->data_area.cols >= 80 && col < r->cols) cols 307 src/viewer/hex.c if (col < r->cols) cols 346 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 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;