9 #ifndef MsiChart_Rect2D_h 10 #define MsiChart_Rect2D_h 132 width += (iXOffset*2);
144 width += 2 * iOffset;
156 if (iXOffset * 2 >
width)
158 iXOffset =
width / 2;
160 if (iYOffset * 2 >
height)
215 return ((irPoint.
x >=
x) && (irPoint.
x <=
x +
width)
216 && (irPoint.
y >=
y) && (irPoint.
y <=
y +
height));
229 if (
x != irRect.
x ||
y != irRect.
y)
Point2D GetRightMiddle() const
Definition: Rect2D.h:198
Point< Int32 > Point2D
Definition: Point2D.h:402
Point2D GetTopRight() const
Definition: Rect2D.h:175
bool PointInRectangle(const Point2D &irPoint) const
Definition: Rect2D.h:213
Rect2D()
Constructs without parameters. All data members will be initialized as 0.
Definition: Rect2D.h:39
Point2D GetTopMiddle() const
Definition: Rect2D.h:193
T y
Y-coordinate of current point.
Definition: Point2D.h:175
Int32 width
Width of current rectangle.
Definition: Rect2D.h:124
#define Int32
Definition: BasicTypes.h:20
T x
X-coordinate of current point.
Definition: Point2D.h:174
Point2D GetTopLeft() const
Definition: Rect2D.h:167
void Implode(Int32 iXOffset, Int32 iYOffset)
Definition: Rect2D.h:154
int x
X-coordinate of left edge.
Definition: Rect2D.h:122
REC_EXP_DIRECTION
Definition: Rect2D.h:16
void Explode(Int32 iXOffset, Int32 iYOffset)
Definition: Rect2D.h:128
void Reset(int iX, int iY, Int32 iWidth, Int32 iHeight)
Definition: Rect2D.h:219
bool IsEqualTo(Rect2D &irRect) const
Definition: Rect2D.h:227
Int32 height
Height of current rectangle.
Definition: Rect2D.h:125
Rect2D(int iX, int iY, Int32 iWidth, Int32 iHeight)
Definition: Rect2D.h:35
Point2D GetBottomRight() const
Definition: Rect2D.h:179
Point2D GetBottomLeft() const
Definition: Rect2D.h:171
Point2D GetLeftMiddle() const
Definition: Rect2D.h:188
Point2D GetBottomMiddle() const
Definition: Rect2D.h:203
bool HasIntersection(const Rect2D &irRect) const
Definition: Rect2D.h:207
int y
Y-coordinate of left edge.
Definition: Rect2D.h:123
Point2D GetCenter() const
Definition: Rect2D.h:183
void Expand(Int32 iOffset, REC_EXP_DIRECTION iExpDirection)
Definition: Rect2D.h:136
Use four Int32 values to represent a 2D rectangle.
Definition: Rect2D.h:25