Usermode/AxWin4 - Add very basic start on a UI program
[tpg/acess2.git] / Usermode / Applications / axwin4_src / Server / CWindow.cpp
index bd952aa..db43bac 100644 (file)
@@ -8,6 +8,7 @@
 #include <CWindow.hpp>
 #include <CCompositor.hpp>
 #include <assert.h>
+#include <ipc.hpp>
 
 namespace AxWin {
 
@@ -17,7 +18,7 @@ CWindow::CWindow(CCompositor& compositor, CClient& client, const ::std::string&
        m_client(client),
        m_name(name)
 {
-       
+       _SysDebug("CWindow::CWindow()");
 }
 
 CWindow::~CWindow()
@@ -45,11 +46,12 @@ void CWindow::Show(bool bShow)
 
 void CWindow::Move(int X, int Y)
 {
-       assert(!"TODO: CWindow::Move");
+       m_surface.m_rect.Move(X, Y);
 }
 void CWindow::Resize(unsigned int W, unsigned int H)
 {
-       assert(!"TODO: CWindow::Resize");
+       m_surface.Resize(W, H);
+       IPC::SendNotify_Dims(m_client, W, H);
 }
 uint64_t CWindow::ShareSurface()
 {

UCC git Repository :: git.ucc.asn.au