Usermode/AxWin4 - Fix deserialiser, ::std::map for client windows, debugging
[tpg/acess2.git] / Usermode / Applications / axwin4_src / Server / CWindow.cpp
1 /*
2  * Acess2 GUI v4
3  * - By John Hodge (thePowersGang)
4  *
5  * CWindow.cpp
6  * - Window
7  */
8 #include <CWindow.hpp>
9 #include <CCompositor.hpp>
10 #include <assert.h>
11
12 namespace AxWin {
13
14 CWindow::CWindow(CCompositor& compositor, CClient& client, const ::std::string& name):
15         m_surface(0,0,0,0),
16         m_compositor(compositor),
17         m_client(client),
18         m_name(name)
19 {
20         _SysDebug("CWindow::CWindow()");
21 }
22
23 CWindow::~CWindow()
24 {
25 }
26
27 void CWindow::Repaint(const CRect& rect)
28 {
29         #if 0
30         for( auto rgn : m_regions )
31         {
32                 if( rect.Contains(rgn->m_rect) )
33                 {
34                         CRect   rel_rect(rect, rgn->m_rect);
35                         rgn->Repaint(m_surface, rel_rect);
36                 } 
37         }
38         #endif
39 }
40
41 void CWindow::Show(bool bShow)
42 {
43         assert(!"TODO: CWindow::Show");
44 }
45
46 void CWindow::Move(int X, int Y)
47 {
48         assert(!"TODO: CWindow::Move");
49 }
50 void CWindow::Resize(unsigned int W, unsigned int H)
51 {
52         assert(!"TODO: CWindow::Resize");
53 }
54 uint64_t CWindow::ShareSurface()
55 {
56         assert(!"TODO: CWindow::ShareSurface");
57         return 0;
58 }
59
60 void CWindow::MouseButton(int ButtonID, int X, int Y, bool Down)
61 {
62 }
63
64 void CWindow::MouseMove(int NewX, int NewY)
65 {
66 }
67
68 void CWindow::KeyEvent(::uint32_t Scancode, const ::std::string &Translated, bool Down)
69 {
70 }
71
72 };
73

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