Example #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());
  }
Example #2
0
 /**
  * Basic ctor.
  */
 void testBasicCtor()
   {
   TS_TRACE("Brush basic ctor");
   Brush b;
   TS_ASSERT_EQUALS(b.IsDefined(), false);
   TS_ASSERT_EQUALS(b.IsHollow(), true);
   }
Example #3
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());
  }
Example #4
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());
  }
Example #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 IsPenOverBrush() const {
   return pen.IsDefined() &&
     (brush.IsHollow() || brush.GetColor() != pen.GetColor());
 }
Example #6
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());
 }