13 SINT Left, Top, Right, Bottom;
15 inline void Set(SINT l, SINT t, SINT r, SINT b)
26 Left = Top = Right = Bottom = 0;
30 TbRect(SINT l, SINT t, SINT r, SINT b)
36 TbRect(
const Pop3Point& Point,
const Pop3Size& Size)
40 Right = Point.X + Size.Width;
41 Bottom = Point.Y + Size.Height;
45 TbRect(
const Pop3Size& size)
53 TbRect(
const Pop3Point& topLeft,
const Pop3Point& botRight)
63 TbRect operator=(
const Pop3Point& rhs)
72 TbRect operator=(
const Pop3Size& rhs)
84 return ((Left == a.Left) && (Right == a.Right) && (Top == a.Top) && (Bottom == a.Bottom));
89 return ((Left != a.Left) || (Right != a.Right) || (Top != a.Top) || (Bottom != a.Bottom));
93 Pop3Point GetPosition()
const 95 return Pop3Point(Left, Top);
98 Pop3Size GetSize()
const 100 return Pop3Size(UINT(Right - Left), UINT(Bottom - Top));
103 Pop3Point GetBottomRight()
const 105 return Pop3Point(Right, Bottom);
108 Pop3Point GetTopRight()
const 110 return Pop3Point(Right, Top);
113 Pop3Point GetBottomLeft()
const 115 return Pop3Point(Left, Bottom);
119 void Grow(SINT dx, SINT dy)
127 void Shrink(SINT dx, SINT dy)
136 TbRect Intersection(
const TbRect& a)
const;
137 BOOL Intersects(
const TbRect& a)
const;
140 BOOL Contains(
const Pop3Point& a)
const 142 return ((a.X >= Left) && (a.X < Right) && (a.Y >= Top) && (a.Y < Bottom));
145 BOOL Contains(
const TbRect& a)
const 147 return ((Left <= a.Left) && (Top <= a.Top) && (Right >= a.Right) && (Bottom >= a.Bottom));
151 TbRect operator+(
const Pop3Point& a)
const 153 return TbRect(Left + a.X, Top + a.Y, Right + a.X, Bottom + a.Y);
156 TbRect operator-(
const Pop3Point& a)
const 158 return TbRect(Left - a.X, Top - a.Y, Right - a.X, Bottom - a.Y);
161 TbRect operator+=(
const Pop3Point& a)
170 TbRect operator-=(
const Pop3Point& a)
185 void Offset(Pop3Point& a)
190 void Offset(TbPoint& a);
192 void SetPosition(
const Pop3Point& a);
193 void SetPosition(SINT x, SINT y);
194 void SetBottomRight(
const Pop3Point& a);
195 void SetBottomRight(SINT x, SINT y);
197 void SetSize(
const TbSize& a);
199 void SetSize(
const Pop3Size& a)
204 void Set(
const Pop3Point& topleft,
const Pop3Size& size)
206 SetPosition(topleft);
210 void Set(
const Pop3Point& topleft,
const Pop3Point& botright)
212 SetPosition(topleft);
213 SetBottomRight(botright);
219 return ((Left == Right) || (Top == Bottom));
224 return ((Left == Right) || (Top == Bottom));
228 BOOL IsNormal()
const;
243 TbRect Bounding(
const TbRect& a)
const;
bool operator!=(const ThingNum &lhs, const ObjectProxy &rhs)
bool operator==(const ThingNum &lhs, const ObjectProxy &rhs)