Beispiel #1
0
  void DrawFilledRectangle(int left, int top, int right, int bottom,
                           const Brush &brush) {
    if (brush.IsHollow())
      return;

    DrawFilledRectangle(left, top, right, bottom, brush.GetColor());
  }
Beispiel #2
0
  void DrawFilledRectangle(PixelScalar left, PixelScalar top,
                      PixelScalar right, PixelScalar bottom,
                      const Brush &brush) {
    if (brush.IsHollow())
      return;

    DrawFilledRectangle(left, top, right, bottom, brush.GetColor());
  }
Beispiel #3
0
//------------------------------------------------------------------------------
void
Canvas::DrawFilledRectangle(int left,  int top,
                            int right, int bottom,
                           const Brush &brush)
  {
  if (!brush.IsHollow())
    this->DrawFilledRectangle(left, top, right, bottom, brush.GetColor());
  }
Beispiel #4
0
 /**
  * Returns true if the outline should be drawn after the area has
  * been filled.  As an optimization, this function returns false if
  * brush and pen share the same color.
  */
 bool IsPenOverBrush() const {
   return pen.IsDefined() &&
     (brush.IsHollow() || brush.GetColor() != pen.GetColor());
 }
Beispiel #5
0
 /**
  * Returns true if the outline should be drawn after the area has
  * been filled.  As an optimization, this function returns false if
  * brush and pen share the same color.
  */
 bool pen_over_brush() const {
   return pen.IsDefined() &&
     (brush.IsHollow() || brush.GetColor() != pen.GetColor());
 }