3 * - By John Hodge (thePowersGang)
9 #include <CCompositor.hpp>
15 CWindow::CWindow(CCompositor& compositor, CClient& client, const ::std::string& name):
17 m_compositor(compositor),
21 _SysDebug("CWindow::CWindow()");
28 void CWindow::Repaint(const CRect& rect)
31 for( auto rgn : m_regions )
33 if( rect.Contains(rgn->m_rect) )
35 CRect rel_rect(rect, rgn->m_rect);
36 rgn->Repaint(m_surface, rel_rect);
42 void CWindow::Show(bool bShow)
44 assert(!"TODO: CWindow::Show");
47 void CWindow::Move(int X, int Y)
49 m_surface.m_rect.Move(X, Y);
51 void CWindow::Resize(unsigned int W, unsigned int H)
53 m_surface.Resize(W, H);
54 IPC::SendNotify_Dims(m_client, W, H);
56 uint64_t CWindow::ShareSurface()
58 assert(!"TODO: CWindow::ShareSurface");
62 void CWindow::MouseButton(int ButtonID, int X, int Y, bool Down)
66 void CWindow::MouseMove(int NewX, int NewY)
70 void CWindow::KeyEvent(::uint32_t Scancode, const ::std::string &Translated, bool Down)