Lines Matching defs:cell

198 static void ExtendExtend(XtermWidget xw, const CELL *cell);
199 static void PointToCELL(TScreen *screen, int y, int x, CELL *cell);
201 static void SaltTextAway(XtermWidget xw, int which, const CELL *cellc, const CELL *cell);
204 static void StartSelect(XtermWidget xw, const CELL *cell);
1202 CELL cell;
1205 PointToCELL(screen, event->y, event->x, &cell);
1206 if (isSameCELL(&cell, &lastButton3)) {
1240 CELL cell;
1242 PointToCELL(screen, event->xbutton.y, event->xbutton.x, &cell);
1243 if (isSameCELL(&cell, &lastButton3)) {
1300 /* Correct by half a width - we are acting on a boundary, not on a cell. */
1438 /* Correct by half a width - we are acting on a boundary, not on a cell. */
1510 CELL cell;
1519 PointToCELL(screen, event->xmotion.y, event->xmotion.x, &cell);
1520 ExtendExtend(xw, &cell);
2940 CELL *cell)
2956 StartSelect(xw, cell);
2970 CELL cell;
2975 PointToCELL(screen, event->xbutton.y, event->xbutton.x, &cell);
2986 do_select_start(xw, event, &cell);
3011 CELL cell;
3018 PointToCELL(screen, event->y, event->x, &cell);
3020 StartSelect(xw, &cell);
3059 StartSelect(XtermWidget xw, const CELL *cell)
3063 TRACE(("StartSelect row=%d, col=%d\n", cell->row, cell->col));
3068 screen->rawPos = *cell;
3073 if (Coordinate(screen, cell) < Coordinate(screen, &(screen->rawPos))) {
3075 screen->startExt = *cell;
3078 screen->endExt = *cell;
3090 CELL cell;
3095 cell = screen->cursorp;
3097 PointToCELL(screen, event->xbutton.y, event->xbutton.x, &cell);
3099 ExtendExtend(xw, &cell);
3119 && isSameCELL(&cell, &(screen->endSel))) {
3166 count = EmitMousePosition(screen, line, count, cell.col);
3168 count = EmitMousePosition(screen, line, count, cell.row);
3236 CELL cell;
3271 cell = screen->cursorp;
3273 PointToCELL(screen, event->xbutton.y, event->xbutton.x, &cell);
3275 coord = Coordinate(screen, &cell);
3282 screen->startExt = cell;
3286 screen->endExt = cell;
3297 ExtendExtend(XtermWidget xw, const CELL *cell)
3300 int coord = Coordinate(screen, cell);
3302 TRACE(("ExtendExtend row=%d, col=%d\n", cell->row, cell->col));
3316 screen->startExt = *cell;
3318 screen->endExt = *cell;
3363 #define scroll_update_one(cell) \
3364 (cell)->row += amount; \
3365 if ((cell)->row < minrow) { \
3366 (cell)->row = minrow; \
3367 (cell)->col = 0; \
3369 if ((cell)->row > maxrow) { \
3370 (cell)->row = maxrow; \
3371 (cell)->col = maxcol; \
3447 CELL *cell)
3453 cell->row = (y - screen->border) / FontHeight(screen);
3454 if (cell->row < screen->firstValidRow)
3455 cell->row = screen->firstValidRow;
3456 else if (cell->row > screen->lastValidRow)
3457 cell->row = screen->lastValidRow;
3458 cell->col = (x - OriginX(screen)) / FontWidth(screen);
3459 if (cell->col < 0)
3460 cell->col = 0;
3461 else if (cell->col > MaxCols(screen)) {
3462 cell->col = MaxCols(screen);
3469 if (cell->col > 0
3470 && isWideCell(cell->row, cell->col - 1)
3471 && (XTERM_CELL(cell->row, cell->col) == HIDDEN_CHAR)) {
3472 cell->col -= 1;
3601 class_of(LineData *ld, const CELL *cell)
3603 CELL temp = *cell;
3754 CELL *cell)
3764 } else if (cell->row > screen->max_row) {
3766 TRACE(("okPosition cell row %d > screen max %d\n", cell->row, screen->max_row));
3767 } else if (cell->col > (LastTextCol(screen, *ld, cell->row) + 1)) {
3768 TRACE(("okPosition cell col %d > screen max %d\n", cell->col,
3769 (LastTextCol(screen, *ld, cell->row) + 1)));
3770 if (cell->row < screen->max_row) {
3771 TRACE(("okPosition cell row %d < screen max %d\n", cell->row, screen->max_row));
3772 cell->col = 0;
3773 *ld = GET_LINEDATA(screen, ++cell->row);
3934 * set the cell to the actual row/column values.
3937 columnToCell(TScreen *screen, int row, int col, CELL *cell)
3960 cell->row = row;
3961 cell->col = col;
3965 * Given a cell, find the corresponding column offset.
3968 cellToColumn(TScreen *screen, CELL *cell)
3971 int col = cell->col;
3972 int row = firstRowOfLine(screen, cell->row, False);
3973 while (row < cell->row) {
4446 * Guaranteed that (cellc->row, cellc->col) <= (cell->row, cell->col),
4448 * (may have cell->row = screen->max_row+1, cell->col = 0).
4454 const CELL *cell)
4465 CELL last = *cell;
5538 * events only if character cell has changed.
5745 CELL cell;
5748 PointToCELL(screen, btn_event->y, btn_event->x, &cell);
5749 start->row = cell.row;
5750 start->col = cell.col;
5751 finish->row = cell.row;
5894 formatVideoAttrs(XtermWidget xw, char *buffer, CELL *cell)
5897 LineData *ld = GET_LINEDATA(screen, cell->row);
5900 if (ld != NULL && cell->col < (int) ld->lineSize) {
5901 IAttr attribs = ld->attribs[cell->col];
5922 Pixel fg = extract_fg(xw, ld->color[cell->col], attribs);
5935 Pixel bg = extract_bg(xw, ld->color[cell->col], attribs);