Lines Matching defs:gcp
1435 const struct grid_cell *gcp;
1511 gcp = tty_check_codeset(tty, &gc);
1514 (gcp->attr & GRID_ATTR_CHARSET) ||
1515 gcp->flags != last.flags ||
1516 gcp->attr != last.attr ||
1517 gcp->fg != last.fg ||
1518 gcp->bg != last.bg ||
1519 gcp->us != last.us ||
1520 gcp->link != last.link ||
1521 ux + width + gcp->data.width > nx ||
1522 (sizeof buf) - len < gcp->data.size)) {
1541 if (gcp->flags & GRID_FLAG_SELECTED)
1542 screen_select_cell(s, &last, gcp);
1544 memcpy(&last, gcp, sizeof last);
1546 tty_check_overlay_range(tty, atx + ux, aty, gcp->data.width,
1551 hidden = gcp->data.width - hidden;
1552 if (hidden != 0 && hidden == gcp->data.width) {
1553 if (~gcp->flags & GRID_FLAG_PADDING)
1554 ux += gcp->data.width;
1555 } else if (hidden != 0 || ux + gcp->data.width > nx) {
1556 if (~gcp->flags & GRID_FLAG_PADDING) {
1574 } else if (gcp->attr & GRID_ATTR_CHARSET) {
1578 for (j = 0; j < gcp->data.size; j++)
1579 tty_putc(tty, gcp->data.data[j]);
1580 ux += gcp->data.width;
1581 } else if (~gcp->flags & GRID_FLAG_PADDING) {
1582 memcpy(buf + len, gcp->data.data, gcp->data.size);
1583 len += gcp->data.size;
1584 width += gcp->data.width;
2071 const struct grid_cell *gcp = ctx->cell;
2079 (gcp->data.width == 1 && !tty_check_overlay(tty, px, py)))
2083 if (gcp->data.width > 1) {
2084 tty_check_overlay_range(tty, px, py, gcp->data.width, &r);
2087 if (vis < gcp->data.width) {
2088 tty_draw_line(tty, s, s->cx, s->cy, gcp->data.width,
2214 const struct grid_cell *gcp;
2227 gcp = tty_check_codeset(tty, gc);
2228 tty_attributes(tty, gcp, defaults, palette, hl);
2231 if (gcp->data.size == 1) {
2232 tty_attributes(tty, gcp, defaults, palette, hl);
2233 if (*gcp->data.data < 0x20 || *gcp->data.data == 0x7f)
2235 tty_putc(tty, *gcp->data.data);
2240 tty_putn(tty, gcp->data.data, gcp->data.size, gcp->data.width);