class CWindow
{
public:
- CWindow(CCompositor& compositor, CClient& client, const ::std::string &name);
+ CWindow(CCompositor& compositor, CClient& client, const ::std::string &name, unsigned int id);
~CWindow();
+ const CClient& client() const { return m_client; }
+ const unsigned int id() const { return m_id; }
+
void Repaint(const CRect& rect);
void Show(bool bShow);
void KeyEvent(::uint32_t Scancode, const ::std::string &Translated, bool Down);
void DrawScanline(unsigned int row, unsigned int x, unsigned int w, const uint8_t *data);
+ void FillScanline(unsigned int row, unsigned int x, unsigned int w, const uint32_t colour);
bool m_is_shown;
CSurface m_surface;
private:
CCompositor& m_compositor;
CClient& m_client;
+ unsigned int m_id;
const ::std::string m_name;
::std::vector<CRegion*> m_regions;
};