Esempio n. 1
0
bool Path::contains(const FloatPoint& point, const WindRule rule) const
{
#if USE(WXGC)
    if (m_path) {
#if wxCHECK_VERSION(2,9,0)
        return m_path->Contains(point.x(), point.y(), static_cast<wxPolygonFillMode>(getWxWindRuleForWindRule(rule)));
#else
        return m_path->Contains(point.x(), point.y(), getWxWindRuleForWindRule(rule));
#endif
    }
#endif
    return false; 
}
Esempio n. 2
0
bool Path::contains(const FloatPoint& point, const WindRule rule) const
{
#if USE(WXGC)
    if (m_path) {
        return m_path->Contains(point.x(), point.y(), getWxWindRuleForWindRule(rule));
    }
#endif
    return false; 
}