X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f33cef9fec16abad12ef95f293776d3926960ad3..d240dea1999ee1465e53db8279130612df692d77:/include/wx/renderer.h diff --git a/include/wx/renderer.h b/include/wx/renderer.h index f8c8c14d8a..8a8076c484 100644 --- a/include/wx/renderer.h +++ b/include/wx/renderer.h @@ -156,13 +156,29 @@ public: // draw a combobox dropdown button // - // flags may only use wxCONTROL_PRESSED + // flags may use wxCONTROL_PRESSED and wxCONTROL_CURRENT virtual void DrawComboBoxDropButton(wxWindow *win, wxDC& dc, const wxRect& rect, int flags = 0) = 0; + // draw a dropdown arrow + // + // flags may use wxCONTROL_PRESSED and wxCONTROL_CURRENT + virtual void DrawDropArrow(wxWindow *win, + wxDC& dc, + const wxRect& rect, + int flags = 0) = 0; + + // draw check button + // + // flags may use wxCONTROL_CHECKED, wxCONTROL_UNDETERMINED and wxCONTROL_CURRENT + virtual void DrawCheckButton(wxWindow *win, + wxDC& dc, + const wxRect& rect, + int flags = 0) = 0; + // geometry functions // ------------------ @@ -259,7 +275,18 @@ public: int flags = 0) { m_rendererNative.DrawComboBoxDropButton(win, dc, rect, flags); } - + virtual void DrawDropArrow(wxWindow *win, + wxDC& dc, + const wxRect& rect, + int flags = 0) + { m_rendererNative.DrawDropArrow(win, dc, rect, flags); } + + virtual void DrawCheckButton(wxWindow *win, + wxDC& dc, + const wxRect& rect, + int flags = 0 ) + { m_rendererNative.DrawCheckButton( win, dc, rect, flags ); } + virtual wxSplitterRenderParams GetSplitterParams(const wxWindow *win) { return m_rendererNative.GetSplitterParams(win); }