X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FApplications%2Faxwin4_src%2FServer%2Finclude%2FCCompositor.hpp;h=7c1272a6711d5029294cb5c9d23750c04615f9f3;hb=4d0188930e7d0e571db78d1d2e3c4d9b3f0fe8fb;hp=48b17c68ba2b6f78f095e1bfd87ea0aaecde6463;hpb=f0ca31bc3f9c66a7fced9afcab9a6cacc8d1d647;p=tpg%2Facess2.git diff --git a/Usermode/Applications/axwin4_src/Server/include/CCompositor.hpp b/Usermode/Applications/axwin4_src/Server/include/CCompositor.hpp index 48b17c68..7c1272a6 100644 --- a/Usermode/Applications/axwin4_src/Server/include/CCompositor.hpp +++ b/Usermode/Applications/axwin4_src/Server/include/CCompositor.hpp @@ -8,6 +8,7 @@ #ifndef _CCOMPOSITOR_H_ #define _CCOMPOSITOR_H_ +#include #include #include #include "CRect.hpp" @@ -40,19 +41,23 @@ class CCompositor ::std::list m_windows; ::std::vector m_windowIDBuffer; // One 32-bit value per pixel - //::std::vector 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); };