X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FApplications%2Faxwin4_src%2FServer%2FCWindow.cpp;h=bd952aa0eb5ae4b081e36b1aa0f0e364ef80adc4;hb=47296e890b2b09cbc46db30d7fe2aeeae11a6d4a;hp=4d1416ed912ee651fb86b729bc53ec6030ed9404;hpb=b471bc9adca2cf2126c2b579bf0b33cedd2839a4;p=tpg%2Facess2.git diff --git a/Usermode/Applications/axwin4_src/Server/CWindow.cpp b/Usermode/Applications/axwin4_src/Server/CWindow.cpp index 4d1416ed..bd952aa0 100644 --- a/Usermode/Applications/axwin4_src/Server/CWindow.cpp +++ b/Usermode/Applications/axwin4_src/Server/CWindow.cpp @@ -6,13 +6,16 @@ * - Window */ #include +#include +#include namespace AxWin { -CWindow::CWindow(CClient& client, const ::std::string& name): +CWindow::CWindow(CCompositor& compositor, CClient& client, const ::std::string& name): + m_surface(0,0,0,0), + m_compositor(compositor), m_client(client), - m_name(name), - m_surface(0,0,0,0) + m_name(name) { } @@ -29,11 +32,42 @@ void CWindow::Repaint(const CRect& rect) if( rect.Contains(rgn->m_rect) ) { CRect rel_rect(rect, rgn->m_rect); - rgn->Repaint(); + rgn->Repaint(m_surface, rel_rect); } } #endif } +void CWindow::Show(bool bShow) +{ + assert(!"TODO: CWindow::Show"); +} + +void CWindow::Move(int X, int Y) +{ + assert(!"TODO: CWindow::Move"); +} +void CWindow::Resize(unsigned int W, unsigned int H) +{ + assert(!"TODO: CWindow::Resize"); +} +uint64_t CWindow::ShareSurface() +{ + assert(!"TODO: CWindow::ShareSurface"); + return 0; +} + +void CWindow::MouseButton(int ButtonID, int X, int Y, bool Down) +{ +} + +void CWindow::MouseMove(int NewX, int NewY) +{ +} + +void CWindow::KeyEvent(::uint32_t Scancode, const ::std::string &Translated, bool Down) +{ +} + };