示例#1
0
文件: Canvas.hpp 项目: LK8000/LK8000
  void DrawFilledRectangle(int left, int top, int right, int bottom,
                           const Brush &brush) {
    if (brush.IsHollow())
      return;

    DrawFilledRectangle(left, top, right, bottom, brush.GetColor());
  }
示例#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);
   }
示例#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());
  }
示例#4
0
文件: Canvas.cpp 项目: Exadios/YCSoar
//------------------------------------------------------------------------------
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());
  }
示例#5
0
文件: Canvas.hpp 项目: LK8000/LK8000
 /**
  * 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());
 }
示例#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());
 }