19 #ifndef INCLUDED_SW_INC_SWRECT_HXX
20 #define INCLUDED_SW_INC_SWRECT_HXX
43 inline SwRect(
const Point& rLT,
const Size& rSize );
44 inline SwRect(
const Point& rLT,
const Point& rRB );
51 inline void Chg(
const Point& rNP,
const Size &rNS );
52 inline void Pos(
const Point& rNew );
86 bool IsInside(
const Point& rPOINT )
const;
87 bool IsNear(
const Point& rPoint,
tools::Long nTolerance )
const;
88 bool IsInside(
const SwRect& rRect )
const;
89 bool IsOver(
const SwRect& rRect )
const;
90 inline bool HasArea()
const;
91 inline bool IsEmpty()
const;
96 inline bool operator == (
const SwRect& rRect )
const;
97 inline bool operator != (
const SwRect& rRect )
const;
135 void SetUpperLeftCorner(
const Point& rNew );
136 void SetUpperRightCorner(
const Point& rNew );
137 void SetLowerLeftCorner(
const Point& rNew );
143 Size SwappedSize()
const;
311 m_Point( rRect.m_Point ),
322 m_Size( rRB.
X() - rLT.
X() + 1, rRB.
Y() - rLT.
Y() + 1 )
331 template<
typename charT,
typename traits >
333 std::basic_ostream<charT, traits> & stream,
const SwRect& rectangle )
337 return stream << rectangle.
SSize()
338 <<
"@(" << rectangle.
Pos() <<
")";
341 #endif // INCLUDED_SW_INC_SWRECT_HXX
bool(SwRect::* SwRectMax)(tools::Long) const
struct _xmlTextWriter * xmlTextWriterPtr
void setWidth(tools::Long nWidth)
tools::Long Right() const
timeval & operator-=(timeval &t1, const timeval &t2)
tools::Long Height() const
void Pos(const Point &rNew)
Of course Writer needs its own rectangles.
constexpr tools::Long Width() const
tools::Long Bottom() const
tools::Long(SwRect::* SwRectDist)(tools::Long) const
constexpr tools::Long getHeight() const
void(SwRect::* SwRectSet)(const tools::Long nNew)
struct _xmlTextWriter * xmlTextWriterPtr
const Size & SSize() const
SwRect & operator=(const SwRect &rRect)
void SSize(const Size &rNew)
void(SwRect::* SwRectSetTwice)(tools::Long, tools::Long)
SwRect & operator+=(const Point &rPt)
tools::Rectangle SVRect() const
tools::Long(SwRect::* SwRectGet)() const
#define SAL_WARN_IF(condition, area, stream)
constexpr tools::Long Height() const
tools::Long AdjustWidth(tools::Long n)
geometry::RealSize2D m_Size
tools::Rectangle & operator+=(tools::Rectangle &rRect, const SvBorder &rBorder)
tools::Long AdjustHeight(tools::Long n)
std::basic_ostream< charT, traits > & operator<<(std::basic_ostream< charT, traits > &stream, const SwRect &rectangle)
Size(SwRect::* SwRectSize)() const
void setHeight(tools::Long nHeight)
constexpr tools::Long getWidth() const
bool operator!=(const SwRect &rRect) const
SwRect & operator-=(const Point &rPt)
Point(SwRect::* SwRectPoint)() const
void Chg(const Point &rNP, const Size &rNS)
tools::Long Width() const
const Point & Pos() const
void(SwRect::* SwRectSetPos)(const Point &)
bool operator==(const SwRect &rRect) const
SvStream & WriteSwRect(SvStream &rStream, const SwRect &rRect)