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
46 CCompositor(CVideo& video);
48 CWindow* CreateWindow(CClient& client, const ::std::string& name);
50 void ShowWindow(CWindow* window);
51 void HideWindow(CWindow* window);
53 bool GetScreenDims(unsigned int ScrenID, unsigned int *Width, unsigned int *Height);
56 void DamageArea(const CRect& rect);
57 void BlitFromSurface(const CSurface& dest, const CRect& src_rect);
59 void MouseMove(unsigned int Cursor, unsigned int X, unsigned int Y, int dX, int dY);
60 void MouseButton(unsigned int Cursor, unsigned int X, unsigned int Y, eMouseButton Button, bool Press);
62 void KeyState(unsigned int KeyboardID, uint32_t KeySym, bool Press, uint32_t Codepoint);