Lines Matching defs:gce

61 grid_store_cell(struct grid_cell_entry *gce, const struct grid_cell *gc,
64 gce->flags = (gc->flags & ~GRID_FLAG_CLEARED);
66 gce->data.fg = gc->fg & 0xff;
68 gce->flags |= GRID_FLAG_FG256;
70 gce->data.bg = gc->bg & 0xff;
72 gce->flags |= GRID_FLAG_BG256;
74 gce->data.attr = gc->attr;
75 gce->data.data = c;
80 grid_need_extended_cell(const struct grid_cell_entry *gce,
83 if (gce->flags & GRID_FLAG_EXTENDED)
100 grid_get_extended_cell(struct grid_line *gl, struct grid_cell_entry *gce,
108 gce->offset = at - 1;
109 gce->flags = (flags | GRID_FLAG_EXTENDED);
114 grid_extended_cell(struct grid_line *gl, struct grid_cell_entry *gce,
121 if (~gce->flags & GRID_FLAG_EXTENDED)
122 grid_get_extended_cell(gl, gce, flags);
123 else if (gce->offset >= gl->extdsize)
129 gee = &gl->extddata[gce->offset];
146 struct grid_cell_entry *gce;
154 gce = &gl->celldata[px];
155 if (gce->flags & GRID_FLAG_EXTENDED)
169 gce = &gl->celldata[px];
170 if (gce->flags & GRID_FLAG_EXTENDED) {
171 gee = &gl->extddata[gce->offset];
173 gce->offset = idx++;
201 struct grid_cell_entry *gce = &gl->celldata[px];
204 memcpy(gce, &grid_cleared_entry, sizeof *gce);
207 grid_get_extended_cell(gl, gce, gce->flags);
208 gee = grid_extended_cell(gl, gce, &grid_cleared_cell);
212 gce->flags |= GRID_FLAG_BG256;
213 gce->data.bg = bg;
504 struct grid_cell_entry *gce = &gl->celldata[px];
507 if (gce->flags & GRID_FLAG_EXTENDED) {
508 if (gce->offset >= gl->extdsize)
511 gee = &gl->extddata[gce->offset];
523 gc->flags = gce->flags & ~(GRID_FLAG_FG256|GRID_FLAG_BG256);
524 gc->attr = gce->data.attr;
525 gc->fg = gce->data.fg;
526 if (gce->flags & GRID_FLAG_FG256)
528 gc->bg = gce->data.bg;
529 if (gce->flags & GRID_FLAG_BG256)
532 utf8_set(&gc->data, gce->data.data);
552 struct grid_cell_entry *gce;
563 gce = &gl->celldata[px];
564 if (grid_need_extended_cell(gce, gc))
565 grid_extended_cell(gl, gce, gc);
567 grid_store_cell(gce, gc, gc->data.data[0]);
583 struct grid_cell_entry *gce;
597 gce = &gl->celldata[px + i];
598 if (grid_need_extended_cell(gce, gc)) {
599 gee = grid_extended_cell(gl, gce, gc);
602 grid_store_cell(gce, gc, s[i]);