Logo Search packages:      
Sourcecode: inkscape version File versions

void Geom::OptRect::unionWith ( OptRect const &  b  )  [inline]

If this is empty, copy argument b. Otherwise, union with it (and do nothing when b is empty)

Definition at line 223 of file rect.h.

                                            {
        if (b) {
            if (*this) { // check that we are not empty
                (**this)[X].unionWith((*b)[X]);
                (**this)[Y].unionWith((*b)[Y]);
            } else {
                *this = b;
            }
        }
    }


Generated by  Doxygen 1.6.0   Back to index