Lines Matching refs:this

14  * Public License Version 1.1 (the "MPL"). If you do not alter this
15 * notice, a recipient may use your version of this file under either
18 * You should have received a copy of the LGPL along with this library
21 * You should have received a copy of the MPL along with this library
24 * The contents of this file are subject to the Mozilla Public License
25 * Version 1.1 (the "License"); you may not use this file except in
142 * In 2Geom standard coordinate system, this means upper left. */
145 * In 2Geom standard coordinate system, this means lower right. */
150 * in 2Geom (+Y downwards), this means clockwise starting from
283 * Note that this is different from scaling. Negative values wil shrink the
291 * Note that this is different from scaling. Negative values wil shrink the
315 return *this;
321 return *this;
326 return *this;
330 return *this;
371 *this = CRect(*x_int, *y_int);
397 inline bool empty() const { return !*this; };
400 bool intersects(CRect const &r) const { return r.intersects(*this); }
403 bool contains(CRect const &r) const { return *this && (*this)->contains(r); }
408 bool intersects(OptCRect const &r) const { return *this && (*this)->intersects(r); }
412 bool contains(OptCRect const &r) const { return *this && (*this)->contains(r); }
416 bool contains(CPoint const &p) const { return *this && (*this)->contains(p); }
422 * If this rectangle is empty, after callng this method it will
425 if (*this) {
426 (*this)->unionWith(b);
428 *this = b;
433 * If this rectangle is empty, after calling this method it will
440 * this method the rectangle will be empty. */
442 if (!*this) return;
443 OptCInterval x = (**this)[X] & b[X], y = (**this)[Y] & b[Y];
445 *this = CRect(*x, *y);
447 *(static_cast<Base*>(this)) = boost::none;
452 * in common, after calling this method the rectangle will be empty. */
457 *(static_cast<Base*>(this)) = boost::none;
461 * If the rectangle is empty, after calling this method it will be non-empty
464 if (*this) {
465 (*this)->expandTo(p);
467 *this = CRect(p, p);
477 return *this;
482 return *this;
487 return *this;
492 if (!*this != !other) return false;
493 return *this ? (**this == *other) : true;
496 if (!*this) return false;
497 return **this == other;