#ifndef _CCOMPOSITOR_H_
#define _CCOMPOSITOR_H_
+#include <string>
#include <list>
#include <vector>
#include "CRect.hpp"
::std::list<CWindow*> m_windows;
::std::vector<TWindowID> m_windowIDBuffer; // One 32-bit value per pixel
- //::std::vector<CPixel> m_frameBuffer; // Local copy of the framebuffer (needed?)
public:
CCompositor(CVideo& video);
- CWindow* CreateWindow(CClient& client);
+ CWindow* CreateWindow(CClient& client, const ::std::string& name);
+
+ void ShowWindow(CWindow* window);
+ void HideWindow(CWindow* window);
+
+ bool GetScreenDims(unsigned int ScrenID, unsigned int *Width, unsigned int *Height);
void Redraw();
void DamageArea(const CRect& rect);
void BlitFromSurface(const CSurface& dest, const CRect& src_rect);
- void MouseMove(unsigned int CursorID, unsigned int X, unsigned int Y, int dX, int dY);
- void MouseButton(unsigned int CursorID, unsigned int X, unsigned int Y, eMouseButton Button, bool Press);
+ void MouseMove(unsigned int Cursor, unsigned int X, unsigned int Y, int dX, int dY);
+ void MouseButton(unsigned int Cursor, unsigned int X, unsigned int Y, eMouseButton Button, bool Press);
void KeyState(unsigned int KeyboardID, uint32_t KeySym, bool Press, uint32_t Codepoint);
};