50 inline void Chg(
const Point& rNP,
const Size &rNS );
51 inline void Pos(
const Point& rNew );
88 bool Contains(
const Point& rPOINT )
const;
89 bool Contains(
const SwRect& rRect )
const;
90 bool Overlaps(
const SwRect& rRect )
const;
92 inline bool HasArea()
const;
93 inline bool IsEmpty()
const;
98 inline bool operator == (
const SwRect& rRect )
const;
99 inline bool operator != (
const SwRect& rRect )
const;
137 void SetUpperLeftCorner(
const Point& rNew );
138 void SetUpperRightCorner(
const Point& rNew );
139 void SetLowerLeftCorner(
const Point& rNew );
145 Size SwappedSize()
const;
329 m_Size( rRB.
X() - rLT.
X() + 1, rRB.
Y() - rLT.
Y() + 1 )
350 return (
Left() <= rRect.
Left()) && (rRect.
Left()<= nRight) &&
351 (
Left() <= nrRight) && (nrRight <= nRight) &&
352 (
Top() <= rRect.
Top()) && (rRect.
Top() <= nBottom) &&
353 (
Top() <= nrBottom) && (nrBottom <= nBottom);
358 return (
Left() <= rPoint.
X()) &&
359 (
Top() <= rPoint.
Y()) &&
360 (
Right() >= rPoint.
X()) &&
367 bool bIsNearby = (((
Left() - nTolerance) <= rPoint.
X()) &&
368 ((
Top() - nTolerance) <= rPoint.
Y()) &&
369 ((
Right() + nTolerance) >= rPoint.
X()) &&
370 ((
Bottom() + nTolerance) >= rPoint.
Y()));
371 return Contains(rPoint) || bIsNearby;
396 std::max(
Top(), rRect.
Top())),
403template<
typename charT,
typename traits >
404inline std::basic_ostream<charT, traits> &
operator <<(
405 std::basic_ostream<charT, traits> & stream,
const SwRect& rectangle )
constexpr tools::Long Y() const
void setX(tools::Long nX)
void setY(tools::Long nY)
constexpr tools::Long X() const
constexpr tools::Long getX() const
constexpr tools::Long getY() const
constexpr tools::Long getHeight() const
constexpr tools::Long Height() const
tools::Long AdjustHeight(tools::Long n)
constexpr tools::Long getWidth() const
void setWidth(tools::Long nWidth)
tools::Long AdjustWidth(tools::Long n)
void setHeight(tools::Long nHeight)
constexpr tools::Long Width() const
Of course Writer needs its own rectangles.
tools::Long Bottom() const
SwRect & operator-=(const Point &rPt)
void Chg(const Point &rNP, const Size &rNS)
tools::Long Right() const
void Top(const tools::Long nTop)
bool operator==(const SwRect &rRect) const
void Right(const tools::Long nRight)
void Bottom(const tools::Long nBottom)
SwRect GetUnion(const SwRect &rRect) const
const Point & Pos() const
bool IsNear(const Point &rPoint, tools::Long nTolerance) const
SwRect GetIntersection(const SwRect &rRect) const
const Size & SSize() const
bool Contains(const Point &rPOINT) const
bool Overlaps(const SwRect &rRect) const
Point BottomRight() const
tools::Long Width() const
SwRect(const SwRect &rRect)=default
tools::Rectangle SVRect() const
void Left(const tools::Long nLeft)
tools::Long Height() const
SwRect & operator+=(const Point &rPt)
bool operator!=(const SwRect &rRect) const
struct _xmlTextWriter * xmlTextWriterPtr
Reference< XOutputStream > stream
#define SAL_INFO_IF(condition, area, stream)
SwNodeOffset min(const SwNodeOffset &a, const SwNodeOffset &b)
timeval & operator-=(timeval &t1, const timeval &t2)
TOOLS_DLLPUBLIC tools::Rectangle & operator+=(tools::Rectangle &rRect, const SvBorder &rBorder)
SvStream & WriteSwRect(SvStream &rStream, const SwRect &rRect)
tools::Long(SwRect::* SwRectDist)(tools::Long) const
tools::Long(SwRect::* SwRectGet)() const
struct _xmlTextWriter * xmlTextWriterPtr
bool(SwRect::* SwRectMax)(tools::Long) const
std::basic_ostream< charT, traits > & operator<<(std::basic_ostream< charT, traits > &stream, const SwRect &rectangle)
Point(SwRect::* SwRectPoint)() const
void(SwRect::* SwRectSetTwice)(tools::Long, tools::Long)
void(SwRect::* SwRectSetPos)(const Point &)
Size(SwRect::* SwRectSize)() const
void(SwRect::* SwRectSet)(const tools::Long nNew)