Lines Matching defs:gc
85 sy->gc.fg = base->fg;
86 sy->gc.bg = base->bg;
87 sy->gc.us = base->us;
88 sy->gc.attr = base->attr;
89 sy->gc.flags = base->flags;
198 sy->gc.fg = value;
200 sy->gc.fg = base->fg;
203 sy->gc.bg = value;
205 sy->gc.bg = base->bg;
212 sy->gc.us = value;
214 sy->gc.us = base->us;
216 sy->gc.attr = 0;
220 sy->gc.attr &= ~value;
224 sy->gc.attr |= value;
241 struct grid_cell *gc = &sy->gc;
311 if (gc->fg != 8) {
313 colour_tostring(gc->fg));
316 if (gc->bg != 8) {
318 colour_tostring(gc->bg));
321 if (gc->us != 8) {
323 colour_tostring(gc->us));
326 if (gc->attr != 0) {
328 attributes_tostring(gc->attr));
339 style_add(struct grid_cell *gc, struct options *oo, const char *name,
351 if (sy->gc.fg != 8)
352 gc->fg = sy->gc.fg;
353 if (sy->gc.bg != 8)
354 gc->bg = sy->gc.bg;
355 if (sy->gc.us != 8)
356 gc->us = sy->gc.us;
357 gc->attr |= sy->gc.attr;
365 style_apply(struct grid_cell *gc, struct options *oo, const char *name,
368 memcpy(gc, &grid_default_cell, sizeof *gc);
369 style_add(gc, oo, name, ft);
374 style_set(struct style *sy, const struct grid_cell *gc)
377 memcpy(&sy->gc, gc, sizeof sy->gc);