Logo Search packages:      
Sourcecode: djvulibre version File versions

int GRect::inflate ( int  dx,
int  dy 
)

Fatten the rectangle. Both vertical sides of the rectangle are pushed apart by dx# units. Both horizontal sides of the rectangle are pushed apart by dy# units. Setting arguments dx# (resp. dy#) to a negative value reduces the rectangle horizontal (resp. vertical) size.

Definition at line 124 of file GRect.cpp.

References isempty(), xmax, xmin, ymax, and ymin.

{
  xmin -= dx;
  xmax += dx;
  ymin -= dy;
  ymax += dy;
  if (! isempty()) 
    return 1;
  xmin = ymin = xmax = ymax = 0;
  return 0;
}


Generated by  Doxygen 1.6.0   Back to index