Usermode/AxWin4 - Added text rendering (very hacky using VGA font)
[tpg/acess2.git] / Usermode / Applications / axwin4_src / Server / include / CWindow.hpp
index 704f0c1..e902659 100644 (file)
@@ -23,14 +23,18 @@ class CRegion;
 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 Move(int X, int Y);
        void Resize(unsigned int W, unsigned int H);
+       void SetFlags(uint32_t Flags);
        
        uint64_t ShareSurface();
        
@@ -39,12 +43,14 @@ public:
        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;
 };

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