Home | History | Annotate | Download | only in dist

Lines Matching refs:gc

46 	struct grid_cell		gc;
342 struct grid_cell gc;
344 memcpy(&gc, gcp, sizeof gc);
346 utf8_set(&gc.data, ch);
347 screen_write_cell(ctx, &gc);
400 struct grid_cell gc;
402 memcpy(&gc, gcp, sizeof gc);
447 utf8_copy(&gc.data, &text[i]);
448 screen_write_cell(ctx, &gc);
508 struct grid_cell gc;
509 struct utf8_data *ud = &gc.data;
515 memcpy(&gc, gcp, sizeof gc);
534 screen_write_putc(ctx, &gc, ' ');
540 screen_write_cell(ctx, &gc);
546 gc.attr ^= GRID_ATTR_CHARSET;
552 screen_write_putc(ctx, &gc, *ptr);
573 struct grid_cell gc;
589 grid_get_cell(gd, xx, yy, &gc);
590 if (xx + gc.data.width > px + nx)
592 grid_view_set_cell(ctx->s->grid, s->cx, s->cy, &gc);
594 ttyctx.cell = &gc;
610 struct grid_cell *gc)
616 gc->attr &= ~GRID_ATTR_CHARSET;
617 utf8_copy(&gc->data, tty_acs_double_borders(cell_type));
620 gc->attr &= ~GRID_ATTR_CHARSET;
621 utf8_copy(&gc->data, tty_acs_heavy_borders(cell_type));
624 gc->attr &= ~GRID_ATTR_CHARSET;
625 utf8_copy(&gc->data, tty_acs_rounded_borders(cell_type));
628 gc->attr &= ~GRID_ATTR_CHARSET;
629 utf8_set(&gc->data, SIMPLE_BORDERS[cell_type]);
632 gc->attr &= ~GRID_ATTR_CHARSET;
633 utf8_set(&gc->data, PADDED_BORDERS[cell_type]);
637 gc->attr |= GRID_ATTR_CHARSET;
638 utf8_set(&gc->data, CELL_BORDERS[cell_type]);
649 struct grid_cell gc;
656 memcpy(&gc, border_gc, sizeof gc);
658 memcpy(&gc, &grid_default_cell, sizeof gc);
659 gc.attr |= GRID_ATTR_CHARSET;
662 screen_write_box_border_set(lines, CELL_LEFTJOIN, &gc);
664 screen_write_box_border_set(lines, CELL_LEFTRIGHT, &gc);
665 screen_write_cell(ctx, &gc);
667 screen_write_box_border_set(lines, CELL_LEFTRIGHT, &gc);
669 screen_write_cell(ctx, &gc);
672 screen_write_box_border_set(lines, CELL_RIGHTJOIN, &gc);
674 screen_write_box_border_set(lines, CELL_LEFTRIGHT, &gc);
675 screen_write_cell(ctx, &gc);
685 struct grid_cell gc;
691 memcpy(&gc, &grid_default_cell, sizeof gc);
692 gc.attr |= GRID_ATTR_CHARSET;
694 screen_write_putc(ctx, &gc, top ? 'w' : 'x');
697 screen_write_putc(ctx, &gc, 'x');
700 screen_write_putc(ctx, &gc, bottom ? 'v' : 'x');
713 const struct grid_cell *gc = &default_gc;
735 gc = choice_gc;
739 screen_write_putc(ctx, gc, ' ');
744 format_draw(ctx, gc, width, name + 1, NULL, 0);
749 format_draw(ctx, gc, width, name, NULL, 0);
750 gc = &default_gc;
762 struct grid_cell gc;
769 memcpy(&gc, gcp, sizeof gc);
771 memcpy(&gc, &grid_default_cell, sizeof gc);
773 gc.attr |= GRID_ATTR_CHARSET;
774 gc.flags |= GRID_FLAG_NOPALETTE;
777 screen_write_box_border_set(lines, CELL_TOPLEFT, &gc);
778 screen_write_cell(ctx, &gc);
779 screen_write_box_border_set(lines, CELL_LEFTRIGHT, &gc);
781 screen_write_cell(ctx, &gc);
782 screen_write_box_border_set(lines, CELL_TOPRIGHT, &gc);
783 screen_write_cell(ctx, &gc);
787 screen_write_box_border_set(lines, CELL_BOTTOMLEFT, &gc);
788 screen_write_cell(ctx, &gc);
789 screen_write_box_border_set(lines, CELL_LEFTRIGHT, &gc);
791 screen_write_cell(ctx, &gc);
792 screen_write_box_border_set(lines, CELL_BOTTOMRIGHT, &gc);
793 screen_write_cell(ctx, &gc);
796 screen_write_box_border_set(lines, CELL_TOPBOTTOM, &gc);
800 screen_write_cell(ctx, &gc);
803 screen_write_cell(ctx, &gc);
807 gc.attr &= ~GRID_ATTR_CHARSET;
809 format_draw(ctx, &gc, nx - 4, title, NULL, 0);
824 struct grid_cell gc;
865 grid_view_get_cell(src->grid, src->cx, src->cy, &gc);
866 gc.attr |= GRID_ATTR_REVERSE;
869 screen_write_cell(ctx, &gc);
1021 struct grid_cell gc;
1024 memcpy(&gc, &grid_default_cell, sizeof gc);
1025 utf8_set(&gc.data, 'E');
1034 grid_view_set_cell(s->grid, xx, yy, &gc);
1715 memcpy(&ci2->gc, &ci->gc, sizeof ci2->gc);
1822 ttyctx.cell = &ci->gc;
1847 struct grid_cell gc;
1869 grid_view_get_cell(s->grid, xx, s->cy, &gc);
1870 if (~gc.flags & GRID_FLAG_PADDING)
1877 grid_view_get_cell(s->grid, 0, s->cy, &gc);
1878 if (gc.data.width > 1) {
1890 grid_view_set_cells(s->grid, s->cx, s->cy, &ci->gc, cl->data + ci->x,
1895 grid_view_get_cell(s->grid, xx, s->cy, &gc);
1896 if (~gc.flags & GRID_FLAG_PADDING)
1905 const struct grid_cell *gc)
1919 if (gc->data.width != 1 || gc->data.size != 1 || *gc->data.data >= 0x7f)
1921 else if (gc->flags & GRID_FLAG_TAB)
1923 else if (gc->attr & GRID_ATTR_CHARSET)
1934 screen_write_cell(ctx, gc);
1950 memcpy(&ci->gc, gc, sizeof ci->gc);
1953 ctx->s->write_list[s->cy].data[s->cx + ci->used++] = gc->data.data[0];
1958 screen_write_cell(struct screen_write_ctx *ctx, const struct grid_cell *gc)
1962 const struct utf8_data *ud = &gc->data;
1972 if (gc->flags & GRID_FLAG_PADDING)
1976 if (screen_write_combine(ctx, gc) != 0)
2028 skip = grid_cells_equal(gc, &grid_default_cell);
2033 else if (gc->flags != gce->flags)
2035 else if (gc->attr != gce->data.attr)
2037 else if (gc->fg != gce->data.fg)
2039 else if (gc->bg != gce->data.bg)
2041 else if (gc->data.width != 1)
2043 else if (gc->data.size != 1)
2045 gc->data.data[0])
2052 if (selected && (~gc->flags & GRID_FLAG_SELECTED)) {
2053 memcpy(&tmp_gc, gc, sizeof tmp_gc);
2056 } else if (!selected && (gc->flags & GRID_FLAG_SELECTED)) {
2057 memcpy(&tmp_gc, gc, sizeof tmp_gc);
2061 grid_view_set_cell(gd, s->cx, s->cy, gc);
2085 screen_select_cell(s, &tmp_gc, gc);
2088 ttyctx.cell = gc;
2095 screen_write_combine(struct screen_write_ctx *ctx, const struct grid_cell *gc)
2099 const struct utf8_data *ud = &gc->data;
2217 screen_write_overwrite(struct screen_write_ctx *ctx, struct grid_cell *gc,
2226 if (gc->flags & GRID_FLAG_PADDING) {
2252 gc->data.width != 1 ||
2253 gc->flags & GRID_FLAG_PADDING) {
2261 if (gc->flags & GRID_FLAG_TAB) {
2262 memcpy(&tmp_gc, gc, sizeof tmp_gc);
2370 screen_write_alternateon(struct screen_write_ctx *ctx, struct grid_cell *gc,
2380 screen_alternate_on(ctx->s, gc, cursor);
2392 screen_write_alternateoff(struct screen_write_ctx *ctx, struct grid_cell *gc,
2402 screen_alternate_off(ctx->s, gc, cursor);