Logo Search packages:      
Sourcecode: djvulibre version File versions

int GRect::contains ( const GRect rect  )  const

Returns true if this rectangle contains the passed rectangle rect#. The function basically checks, that the intersection of this rectangle with rect# is rect#.

Definition at line 189 of file GRect.cpp.

References intersect().

   GRect tmp_rect;
   tmp_rect.intersect(*this, rect);
   return tmp_rect==rect;

Generated by  Doxygen 1.6.0   Back to index