// 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);
};
// ----------------------------------------------------------------------------
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,
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)