X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/415a0ff16d5d50015e3d43c1c6f32f48f995cbab..05c3f0fc73d9124061c08e3d707b4e3d6bab4ff4:/include/wx/renderer.h diff --git a/include/wx/renderer.h b/include/wx/renderer.h index 271f19dcad..f8c8c14d8a 100644 --- a/include/wx/renderer.h +++ b/include/wx/renderer.h @@ -31,7 +31,7 @@ class WXDLLEXPORT wxWindow; #include "wx/gdicmn.h" // for wxPoint // some platforms have their own renderers, others use the generic one -#if (defined(__WXMSW__) || defined(__WXMAC__) || defined(__WXGTK__)) && !defined(__PALMOS__) +#if defined(__WXMSW__) || defined(__WXMAC__) || defined(__WXGTK__) #define wxHAS_NATIVE_RENDERER #else #undef wxHAS_NATIVE_RENDERER @@ -154,6 +154,14 @@ public: wxOrientation orient, int flags = 0) = 0; + // draw a combobox dropdown button + // + // flags may only use wxCONTROL_PRESSED + virtual void DrawComboBoxDropButton(wxWindow *win, + wxDC& dc, + const wxRect& rect, + int flags = 0) = 0; + // geometry functions // ------------------ @@ -245,6 +253,12 @@ public: { m_rendererNative.DrawSplitterSash(win, dc, size, position, orient, flags); } + virtual void DrawComboBoxDropButton(wxWindow *win, + wxDC& dc, + const wxRect& rect, + int flags = 0) + { m_rendererNative.DrawComboBoxDropButton(win, dc, rect, flags); } + virtual wxSplitterRenderParams GetSplitterParams(const wxWindow *win) { return m_rendererNative.GetSplitterParams(win); }