X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/862d8041abe9e79695eefe1a564657b305a912e8..d95c5149add596d0dec940599332a24edf96dc38:/include/wx/renderer.h diff --git a/include/wx/renderer.h b/include/wx/renderer.h index 8a8076c484..95538a4017 100644 --- a/include/wx/renderer.h +++ b/include/wx/renderer.h @@ -170,7 +170,6 @@ public: const wxRect& rect, int flags = 0) = 0; - // draw check button // // flags may use wxCONTROL_CHECKED, wxCONTROL_UNDETERMINED and wxCONTROL_CURRENT @@ -178,7 +177,27 @@ public: wxDC& dc, const wxRect& rect, int flags = 0) = 0; - + + // draw blank button + // + // flags may use wxCONTROL_PRESSED, wxCONTROL_CURRENT and wxCONTROL_ISDEFAULT + virtual void DrawPushButton(wxWindow *win, + wxDC& dc, + const wxRect& rect, + int flags = 0) = 0; + + // draw rectangle indicating that an item in e.g. a list control + // has been selected or focused + // + // flags may use + // wxCONTROL_SELECTED (item is selected, e.g. draw background) + // wxCONTROL_CURRENT (item is the current item, e.g. dotted border) + // wxCONTROL_FOCUSED (the whole control has focus, e.g. blue background vs. grey otherwise) + virtual void DrawItemSelectionRect(wxWindow *win, + wxDC& dc, + const wxRect& rect, + int flags = 0) = 0; + // geometry functions // ------------------ @@ -286,7 +305,19 @@ public: const wxRect& rect, int flags = 0 ) { m_rendererNative.DrawCheckButton( win, dc, rect, flags ); } - + + virtual void DrawPushButton(wxWindow *win, + wxDC& dc, + const wxRect& rect, + int flags = 0 ) + { m_rendererNative.DrawPushButton( win, dc, rect, flags ); } + + virtual void DrawItemSelectionRect(wxWindow *win, + wxDC& dc, + const wxRect& rect, + int flags = 0 ) + { m_rendererNative.DrawItemSelectionRect( win, dc, rect, flags ); } + virtual wxSplitterRenderParams GetSplitterParams(const wxWindow *win) { return m_rendererNative.GetSplitterParams(win); }