#include "mfcpch.h"
#include "rect.h"
Go to the source code of this file.
Definition at line 221 of file rect.cpp.
223 if (op2.bot_left.
x () > op1.bot_left.
x ())
224 op1.bot_left.
set_x (op2.bot_left.
x ());
226 if (op2.top_right.
x () < op1.top_right.
x ())
227 op1.top_right.
set_x (op2.top_right.
x ());
229 if (op2.bot_left.
y () > op1.bot_left.
y ())
230 op1.bot_left.
set_y (op2.bot_left.
y ());
232 if (op2.top_right.
y () < op1.top_right.
y ())
233 op1.top_right.
set_y (op2.top_right.
y ());
inT16 x() const
access function
bool overlap(const TBOX &box) const
inT16 y() const
access_function
void set_y(inT16 yin)
rewrite function
void set_x(inT16 xin)
rewrite function
Definition at line 196 of file rect.cpp.
199 if (op2.bot_left.
x () < op1.bot_left.
x ())
200 op1.bot_left.
set_x (op2.bot_left.
x ());
202 if (op2.top_right.
x () > op1.top_right.
x ())
203 op1.top_right.
set_x (op2.top_right.
x ());
205 if (op2.bot_left.
y () < op1.bot_left.
y ())
206 op1.bot_left.
set_y (op2.bot_left.
y ());
208 if (op2.top_right.
y () > op1.top_right.
y ())
209 op1.top_right.
set_y (op2.top_right.
y ());
inT16 x() const
access function
inT16 y() const
access_function
void set_y(inT16 yin)
rewrite function
void set_x(inT16 xin)
rewrite function