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