Logo Search packages:      
Sourcecode: qt4-x11 version File versions

bool QPainterPath::contains ( const QPainterPath p  )  const

Since:
4.3
Returns true if the given path p is contained within the current path. Returns false if any edges of the current path and p intersect.

See also:
intersects()

Definition at line 3084 of file qpainterpath.cpp.

References contains(), elementAt(), elementCount(), and isEmpty().

{
    if (p.elementCount() == 1)
        return contains(p.elementAt(0));
    if (isEmpty() || p.isEmpty())
        return false;
    QPathClipper clipper(*this, p);
    return clipper.contains();
}


Generated by  Doxygen 1.6.0   Back to index