Logo Search packages:      
Sourcecode: djvulibre version File versions

int GRect::contains ( int  x,
int  y 
) const [inline]

Returns true if the rectangle contains pixel (x#,y#). A rectangle contains all pixels with horizontal pixel coordinates in range xmin# (inclusive) to xmax# (exclusive) and vertical coordinates ymin# (inclusive) to ymax# (exclusive).

Definition at line 333 of file GRect.h.

References xmin, ymax, and ymin.

Referenced by DjVuTXT::Zone::get_text_with_rect().

  return (x>=xmin && x<xmax && y>=ymin && y<ymax);

Generated by  Doxygen 1.6.0   Back to index