]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/renderer.h
Fix for wxTextCtrl::GetSelection for singel line controls in GTK2 mode
[wxWidgets.git] / include / wx / renderer.h
index 366583dbded7780737690fb74e69a686f1e8890b..ba5cb2611a17b2c0dc68cbe79a0048c4d6980d9b 100644 (file)
@@ -144,6 +144,22 @@ public:
 
     // return the default (native) implementation for this platform
     static wxRendererNative& GetDefault();
+
+
+    // changing the global renderer
+    // ----------------------------
+
+#if wxUSE_DYNLIB_CLASS
+    // load the renderer from the specified DLL, the returned pointer must be
+    // deleted by caller if not NULL when it is not used any more
+    static wxRendererNative *Load(const wxString& name);
+#endif // wxUSE_DYNLIB_CLASS
+
+    // set the renderer to use, passing NULL reverts to using the default
+    // renderer
+    //
+    // return the previous renderer used with Set() or NULL if none
+    static wxRendererNative *Set(wxRendererNative *renderer);
 };
 
 // ----------------------------------------------------------------------------
@@ -176,7 +192,7 @@ public:
                                     wxDC& dc,
                                     const wxRect& rect,
                                     int flags = 0)
-        { m_rendererNative.DrawSplitterBorder(win, dc, rect); }
+        { m_rendererNative.DrawSplitterBorder(win, dc, rect, flags); }
 
     virtual void DrawSplitterSash(wxWindow *win,
                                   wxDC& dc,
@@ -184,7 +200,8 @@ public:
                                   wxCoord position,
                                   wxOrientation orient,
                                   int flags = 0)
-        { m_rendererNative.DrawSplitterSash(win, dc, size, position, orient); }
+        { m_rendererNative.DrawSplitterSash(win, dc, size,
+                                            position, orient, flags); }
 
 
     virtual wxSplitterRenderParams GetSplitterParams(const wxWindow *win)