]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/panel.h
Simplify backend enum naming, we do not need separate values for gtk and osx webkit...
[wxWidgets.git] / include / wx / panel.h
index 396a2af9cf4ce4657a426cab1a0f3cdabeb0def5..74016c64f46e201f1d024520bccc34d0eed46050 100644 (file)
@@ -52,6 +52,18 @@ public:
                 const wxString& name = wxPanelNameStr);
 
 
+    // Use the given bitmap to tile the background of this panel. This bitmap
+    // will show through any transparent children.
+    //
+    // Notice that you must not prevent the base class EVT_ERASE_BACKGROUND
+    // handler from running (i.e. not to handle this event yourself) for this
+    // to work.
+    void SetBackgroundBitmap(const wxBitmap& bmp)
+    {
+        DoSetBackgroundBitmap(bmp);
+    }
+
+
     // implementation from now on
     // --------------------------
 
@@ -59,6 +71,9 @@ public:
 
     WX_DECLARE_CONTROL_CONTAINER();
 
+protected:
+    virtual void DoSetBackgroundBitmap(const wxBitmap& bmp) = 0;
+
 private:
     wxDECLARE_EVENT_TABLE();
 
@@ -70,6 +85,7 @@ private:
 #elif defined(__WXMSW__)
     #include "wx/msw/panel.h"
 #else
+    #define wxHAS_GENERIC_PANEL
     #include "wx/generic/panelg.h"
 #endif