Add some additional renderer functions for Mac and MSW (so far) but do it as standalone functions in order to not disrupt the ABI. These are primarily needed for wxWebKit which is why they are going in to 2.8 instead of straight into 2.9 the proper way (as new methods of the wxRenderer* classes.)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@53524 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2008-05-10 00:05:20 +00:00
parent aae5ec8bbe
commit 95704802eb
4 changed files with 397 additions and 13 deletions

View File

@@ -406,4 +406,31 @@ wxRendererNative& wxRendererNative::GetDefault()
#endif // !wxHAS_NATIVE_RENDERER
// ----------------------------------------------------------------------------
// Other renderer functions to be merged in to wxRenderer class in 2.9, but
// they are standalone functions here to protect the ABI.
// ----------------------------------------------------------------------------
#if defined(__WXMSW__) || defined(__WXMAC__)
#if wxABI_VERSION >= 20804
// Draw a native wxChoice
void WXDLLEXPORT wxRenderer_DrawChoice(wxWindow* win, wxDC& dc,
const wxRect& rect, int flags=0);
// Draw a native wxComboBox
void WXDLLEXPORT wxRenderer_DrawComboBox(wxWindow* win, wxDC& dc,
const wxRect& rect, int flags=0);
// Draw a native wxTextCtrl frame
void WXDLLEXPORT wxRenderer_DrawTextCtrl(wxWindow* win, wxDC& dc,
const wxRect& rect, int flags=0);
// Draw a native wxRadioButton (just the graphical portion)
void WXDLLEXPORT wxRenderer_DrawRadioButton(wxWindow* win, wxDC& dc,
const wxRect& rect, int flags=0);
#endif // wxABI_VERSION
#endif // (platforms)
#endif // _WX_RENDERER_H_