Lines Matching refs:attrs
748 cell->attrs.bold = intcell->pen.bold;
749 cell->attrs.underline = intcell->pen.underline;
750 cell->attrs.italic = intcell->pen.italic;
751 cell->attrs.blink = intcell->pen.blink;
752 cell->attrs.reverse = intcell->pen.reverse ^ screen->global_reverse;
753 cell->attrs.strike = intcell->pen.strike;
754 cell->attrs.font = intcell->pen.font;
756 cell->attrs.dwl = intcell->pen.dwl;
757 cell->attrs.dhl = intcell->pen.dhl;
785 intcell->pen.bold = cell->attrs.bold;
786 intcell->pen.underline = cell->attrs.underline;
787 intcell->pen.italic = cell->attrs.italic;
788 intcell->pen.blink = cell->attrs.blink;
789 intcell->pen.reverse = cell->attrs.reverse ^ screen->global_reverse;
790 intcell->pen.strike = cell->attrs.strike;
791 intcell->pen.font = cell->attrs.font;
865 static int attrs_differ(VTermAttrMask attrs, ScreenCell *a, ScreenCell *b)
867 if((attrs & VTERM_ATTR_BOLD_MASK) && (a->pen.bold != b->pen.bold))
869 if((attrs & VTERM_ATTR_UNDERLINE_MASK) && (a->pen.underline != b->pen.underline))
871 if((attrs & VTERM_ATTR_ITALIC_MASK) && (a->pen.italic != b->pen.italic))
873 if((attrs & VTERM_ATTR_BLINK_MASK) && (a->pen.blink != b->pen.blink))
875 if((attrs & VTERM_ATTR_REVERSE_MASK) && (a->pen.reverse != b->pen.reverse))
877 if((attrs & VTERM_ATTR_STRIKE_MASK) && (a->pen.strike != b->pen.strike))
879 if((attrs & VTERM_ATTR_FONT_MASK) && (a->pen.font != b->pen.font))
881 if((attrs & VTERM_ATTR_FOREGROUND_MASK) && !vterm_color_equal(a->pen.fg, b->pen.fg))
883 if((attrs & VTERM_ATTR_BACKGROUND_MASK) && !vterm_color_equal(a->pen.bg, b->pen.bg))
889 int vterm_screen_get_attrs_extent(const VTermScreen *screen, VTermRect *extent, VTermPos pos, VTermAttrMask attrs)
905 if(attrs_differ(attrs, target, getcell(screen, pos.row, col)))
910 if(attrs_differ(attrs, target, getcell(screen, pos.row, col)))