void DrawFilledRectangle(int left, int top, int right, int bottom, const Brush &brush) { if (brush.IsHollow()) return; DrawFilledRectangle(left, top, right, bottom, brush.GetColor()); }
/** * Basic ctor. */ void testBasicCtor() { TS_TRACE("Brush basic ctor"); Brush b; TS_ASSERT_EQUALS(b.IsDefined(), false); TS_ASSERT_EQUALS(b.IsHollow(), true); }
void DrawFilledRectangle(PixelScalar left, PixelScalar top, PixelScalar right, PixelScalar bottom, const Brush &brush) { if (brush.IsHollow()) return; DrawFilledRectangle(left, top, right, bottom, brush.GetColor()); }
//------------------------------------------------------------------------------ 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()); }
/** * 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()); }
/** * 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()); }