public void Paint(CssBox box, PaintVisitor p) { p.FillRectangle(this.Color, box.LocalX + this.HBoxShadowOffset, box.LocalY + this.VBoxShadowOffset, box.VisualWidth, box.VisualHeight); }
public void PaintSelection(PaintVisitor p, CssLineBox line) { if (this.Kind == SelectionSegmentKind.FullLine) { p.FillRectangle(p.CssBoxSelectionColor, //should be configurable 0, 0, line.CachedLineContentWidth, line.CacheLineHeight); } else { p.FillRectangle( p.CssBoxSelectionColor, this.BeginAtPx, 0, this.WidthPx, (int)line.CacheLineHeight); } }