git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Usermode/AxWin4 - Slowly implementing
[tpg/acess2.git]
/
Usermode
/
Applications
/
axwin4_src
/
Server
/
CRect.cpp
diff --git
a/Usermode/Applications/axwin4_src/Server/CRect.cpp
b/Usermode/Applications/axwin4_src/Server/CRect.cpp
index
5d603e5
..
34013b1
100644
(file)
--- a/
Usermode/Applications/axwin4_src/Server/CRect.cpp
+++ b/
Usermode/Applications/axwin4_src/Server/CRect.cpp
@@
-17,6
+17,15
@@
CRect::CRect(int x, int y, unsigned int w, unsigned int h):
{
}
+void CRect::Move(int NewX, int NewY)
+{
+ // TODO: Add a parent rectangle, and prevent this from fully leaving its bounds
+ m_x = NewX;
+ m_y = NewY;
+ m_x2 = m_x + m_w;
+ m_y2 = m_y + m_h;
+}
+
bool CRect::HasIntersection(const CRect& other) const
{
// If other's origin is past our far corner
UCC
git Repository :: git.ucc.asn.au