void FullGraphic::SetBrush (PSBrush* br) { if (_br != br) { Ref(br); Unref(_br); _br = br; invalidateCaches(); } }
void FullGraphic::SetFont (PSFont* font) { if (_font != font) { Ref(font); Unref(_font); _font = font; invalidateCaches(); } }
void ULabel::SetFont (PSFont* font) { if (_font != font) { Ref(font); Unref(_font); _font = font; invalidateCaches(); } }
void SF_ClosedBSpline::SetBrush (PSBrush* br) { if (_br != br) { Ref(br); Unref(_br); _br = br; invalidateCaches(); } }
void Point::SetBrush (PSBrush* br) { if (_br != br) { Ref(br); Unref(_br); _br = br; invalidateCaches(); } }
void SF_MultiLine::SetBrush (PSBrush* br) { if (_br != br) { Ref(br); Unref(_br); _br = br; invalidateCaches(); } }
Graphic& Graphic::operator = (Graphic& g) { SetColors(g.GetFgColor(), g.GetBgColor()); FillBg(g.BgFilled()); SetPattern(g.GetPattern()); SetBrush(g.GetBrush()); SetFont(g.GetFont()); if (g._t == nil) { Unref(_t); _t = nil; } else { if (_t == nil) { _t = new Transformer(g._t); } else { *_t = *g._t; } } invalidateCaches(); return *this; }