Пример #1
0
 public void Paint(CssBox box, PaintVisitor p)
 {
     p.FillRectangle(this.Color,
                     box.LocalX + this.HBoxShadowOffset,
                     box.LocalY + this.VBoxShadowOffset,
                     box.VisualWidth,
                     box.VisualHeight);
 }
Пример #2
0
 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);
     }
 }