3 * - By John Hodge (thePowersGang)
8 #ifndef _CCOMPOSITOR_H_
9 #define _CCOMPOSITOR_H_
14 #include "CWindow.hpp"
29 MOUSEBTN_MAIN, // Left
30 MOUSEBTN_SECONDARY, // Right
31 MOUSEBTN_MIDDLE, // Scroll wheel
39 ::std::list<CRect> m_damageRects;
40 ::std::list<CWindow*> m_windows;
42 ::std::vector<TWindowID> m_windowIDBuffer; // One 32-bit value per pixel
43 //::std::vector<CPixel> m_frameBuffer; // Local copy of the framebuffer (needed?)
46 CCompositor(CVideo& video);
48 CWindow* CreateWindow(CClient& client);
51 void DamageArea(const CRect& rect);
52 void BlitFromSurface(const CSurface& dest, const CRect& src_rect);
54 void MouseMove(unsigned int CursorID, unsigned int X, unsigned int Y, int dX, int dY);
55 void MouseButton(unsigned int CursorID, unsigned int X, unsigned int Y, eMouseButton Button, bool Press);
57 void KeyState(unsigned int KeyboardID, uint32_t KeySym, bool Press, uint32_t Codepoint);