usermode/axwin4 - Blit to screen planned
[tpg/acess2.git] / Usermode / Applications / axwin4_src / Server / include / CWindow.hpp
1 /*
2  * Acess2 GUI v4
3  * - By John Hodge (thePowersGang)
4  *
5  * CWindow.hpp
6  * - Window class
7  */
8 #ifndef _CWINDOW_HPP_
9 #define _CWINDOW_HPP_
10
11 #include <string>
12 #include <vector>
13 #include <cstdint>
14 #include "CRect.hpp"
15 #include "CSurface.hpp"
16
17 namespace AxWin {
18
19 class CClient;
20
21 class CWindow
22 {
23 public:
24         CWindow(CClient& client, const ::std::string &name);
25         ~CWindow();
26         
27         void Repaint(const CRect& rect);
28         
29         void MouseButton(int ButtonID, int X, int Y, bool Down);
30         void MouseMove(int NewX, int NewY);
31         void KeyEvent(::uint32_t Scancode, const ::std::string &Translated, bool Down);
32
33         CSurface        m_surface;
34 private:
35         const ::std::string     m_name;
36         CClient&        m_client;
37         //::std::list<CRegion*> m_regions;
38 };
39
40 };      // namespace AxWin
41
42 #endif
43
44

UCC git Repository :: git.ucc.asn.au