X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2209baaee3a8578450e204593b79ed155f340f68..6a17b868de5fd4b78988b355b9e1efbb766cd6f2:/include/wx/renderer.h diff --git a/include/wx/renderer.h b/include/wx/renderer.h index 9d21e8db1d..0f603773e0 100644 --- a/include/wx/renderer.h +++ b/include/wx/renderer.h @@ -173,10 +173,10 @@ public: // 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; + virtual void DrawCheckBox(wxWindow *win, + wxDC& dc, + const wxRect& rect, + int flags = 0) = 0; // draw blank button // @@ -186,6 +186,18 @@ public: 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 // ------------------ @@ -288,11 +300,11 @@ public: 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 void DrawCheckBox(wxWindow *win, + wxDC& dc, + const wxRect& rect, + int flags = 0 ) + { m_rendererNative.DrawCheckBox( win, dc, rect, flags ); } virtual void DrawPushButton(wxWindow *win, wxDC& dc, @@ -300,6 +312,12 @@ public: 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); } @@ -328,4 +346,3 @@ wxRendererNative& wxRendererNative::GetDefault() #endif // !wxHAS_NATIVE_RENDERER #endif // _WX_RENDERER_H_ -