c0c6c8b99172fec8dba40cb7f3b89adcc9a4a0cf
[tpg/acess2.git] / Usermode / Applications / axwin4_src / Server / include / CSurface.hpp
1 /*
2  */
3 #ifndef _CSURFACE_H_
4 #define _CSURFACE_H_
5
6 #include <cstdint>
7 #include "CRect.hpp"
8
9 namespace AxWin {
10
11 class CSurface
12 {
13 public:
14         CSurface(int x, int y, unsigned int w, unsigned int h);
15         ~CSurface();
16         
17         void Resize(unsigned int new_w, unsigned int new_h);
18         
19         const uint32_t* GetScanline(unsigned int row, unsigned int x_ofs) const;
20         
21         CRect   m_rect;
22         uint32_t*       m_data;
23 };
24
25 };      // namespace AxWin
26
27 #endif
28

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