Exemple #1
0
  void fill_rectangle(int left, int top, int right, int bottom,
                      const Brush &brush) {
    if (brush.is_hollow())
      return;

    fill_rectangle(left, top, right, bottom, brush.get_color());
  }
Exemple #2
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.defined() &&
     (brush.is_hollow() || brush.get_color() != pen.get_color());
 }