Usermode/AxWin4 - Slowly implementing
[tpg/acess2.git] / Usermode / Applications / axwin4_src / Server / CRect.cpp
index 5d603e5..34013b1 100644 (file)
@@ -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