]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/include/wx/canvas/canvas.h
Added wxCanvasControl before anyone else would do
[wxWidgets.git] / contrib / include / wx / canvas / canvas.h
index 4c2e43bf801ec7bede479d72121a1bddc509104b..b4a9b46dc88d0973d15a1a191c6e8d8c3a1b6e1f 100644 (file)
@@ -74,6 +74,23 @@ private:
     wxImage     m_image;
 };
 
+//----------------------------------------------------------------------------
+// wxCanvasControl
+//----------------------------------------------------------------------------
+
+class wxCanvasControl: public wxCanvasObject
+{
+public:
+    wxCanvasControl( wxWindow *control );
+    ~wxCanvasControl();
+    
+    virtual void Move( int x, int y );
+    void UpdateSize();
+    
+private:
+    wxWindow     *m_control;
+};
+
 //----------------------------------------------------------------------------
 // wxCanvas
 //----------------------------------------------------------------------------
@@ -100,6 +117,8 @@ public:
     wxImage *GetBuffer()         { return &m_buffer; }
     bool NeedUpdate()            { return m_needUpdate; }
     
+    void BlitBuffer( wxDC &dc );
+    
 private:
     wxImage     m_buffer;
     bool        m_needUpdate;