Logo Search packages:      
Sourcecode: djvulibre version File versions

int operator== ( const GRect r1,
const GRect r2 
) [friend]

Returns true if rectangles r1# and r2# are equal.

Definition at line 110 of file GRect.cpp.

{
  bool isempty1 = r1.isempty();
  bool isempty2 = r2.isempty();
  if (isempty1 || isempty2)
    if (isempty1 && isempty2)
      return 1;
  if ( r1.xmin==r2.xmin && r1.xmax==r2.xmax 
       && r1.ymin==r2.ymin && r1.ymax==r2.ymax )
    return 1;
  return 0;
}


Generated by  Doxygen 1.6.0   Back to index