This old name function conflicted with the one in wxRenderer in wxUniv and
also was misleading as this function draws only a bitmap and not the entire
wxRadioButton control.
The old workaround for the warnings about the function names conflict was ugly
and unmaintainable, as proven by the fact that wxRenderer method signature
already became different from the wxRendererNative one.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61715
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
const wxRect& rect,
int flags = 0) = 0;
const wxRect& rect,
int flags = 0) = 0;
- // Draw a native wxRadioButton (just the graphical portion)
- virtual void DrawRadioButton(wxWindow* win,
- wxDC& dc,
- const wxRect& rect,
- int flags = 0) = 0;
+ // Draw a native wxRadioButton bitmap
+ virtual void DrawRadioBitmap(wxWindow* win,
+ wxDC& dc,
+ const wxRect& rect,
+ int flags = 0) = 0;
// geometry functions
// ------------------
// geometry functions
// ------------------
int flags = 0)
{ m_rendererNative.DrawTextCtrl( win, dc, rect, flags); }
int flags = 0)
{ m_rendererNative.DrawTextCtrl( win, dc, rect, flags); }
- virtual void DrawRadioButton(wxWindow* win,
- wxDC& dc,
- const wxRect& rect,
- int flags = 0)
- { m_rendererNative.DrawRadioButton( win, dc, rect, flags); }
+ virtual void DrawRadioBitmap(wxWindow* win,
+ wxDC& dc,
+ const wxRect& rect,
+ int flags = 0)
+ { m_rendererNative.DrawRadioBitmap(win, dc, rect, flags); }
virtual wxSplitterRenderParams GetSplitterParams(const wxWindow *win)
{ return m_rendererNative.GetSplitterParams(win); }
virtual wxSplitterRenderParams GetSplitterParams(const wxWindow *win)
{ return m_rendererNative.GetSplitterParams(win); }
wxAlignment align = wxALIGN_LEFT,
int indexAccel = -1) = 0;
wxAlignment align = wxALIGN_LEFT,
int indexAccel = -1) = 0;
- // draw a radio button sans label or bitmap, for wxRenderer API compat.
- virtual void DrawRadioButton(wxDC& dc,
- const wxRect& rect,
- int flags = 0,
- wxAlignment align = wxALIGN_LEFT)
- { DrawRadioButton(dc, wxEmptyString, wxNullBitmap, rect, flags, align); }
-
#if wxUSE_TOOLBAR
// draw a toolbar button (label may be empty, bitmap may be invalid, if
// both conditions are true this function draws a separator)
#if wxUSE_TOOLBAR
// draw a toolbar button (label may be empty, bitmap may be invalid, if
// both conditions are true this function draws a separator)
/**
Draw a native wxChoice
*/
/**
Draw a native wxChoice
*/
- virtual void DrawChoice(wxWindow* win, wxDC& dc, const wxRect& rect, int flags=0) = 0;
+ virtual void DrawChoice(wxWindow* win, wxDC& dc, const wxRect& rect, int flags = 0) = 0;
/**
Draw a native wxComboBox
*/
/**
Draw a native wxComboBox
*/
- virtual void DrawComboBox(wxWindow* win, wxDC& dc, const wxRect& rect, int flags=0) = 0;
+ virtual void DrawComboBox(wxWindow* win, wxDC& dc, const wxRect& rect, int flags = 0) = 0;
/**
Draw a native wxTextCtrl frame
*/
/**
Draw a native wxTextCtrl frame
*/
- virtual void DrawTextCtrl(wxWindow* win, wxDC& dc, const wxRect& rect, int flags=0) = 0;
+ virtual void DrawTextCtrl(wxWindow* win, wxDC& dc, const wxRect& rect, int flags = 0) = 0;
- Draw a native wxRadioButton (just the button image, not the text)
+ Draw a native wxRadioButton bitmap.
- virtual void DrawRadioButton(wxWindow* win, wxDC& dc, const wxRect& rect, int flags=0) = 0;
+ virtual void DrawRadioBitmap(wxWindow* win, wxDC& dc, const wxRect& rect, int flags = 0) = 0;
/**
Return the currently used renderer.
/**
Return the currently used renderer.
virtual void DrawTextCtrl(wxWindow* win, wxDC& dc, const wxRect& rect, int flags=0);
virtual void DrawTextCtrl(wxWindow* win, wxDC& dc, const wxRect& rect, int flags=0);
- virtual void DrawRadioButton(wxWindow* win, wxDC& dc, const wxRect& rect, int flags=0);
+ virtual void DrawRadioBitmap(wxWindow* win, wxDC& dc, const wxRect& rect, int flags=0);
virtual wxSplitterRenderParams GetSplitterParams(const wxWindow *win);
virtual wxSplitterRenderParams GetSplitterParams(const wxWindow *win);
wxFAIL_MSG("UNIMPLEMENTED: wxRendererGeneric::DrawComboBox");
}
wxFAIL_MSG("UNIMPLEMENTED: wxRendererGeneric::DrawComboBox");
}
-void wxRendererGeneric::DrawRadioButton(wxWindow* WXUNUSED(win), wxDC& WXUNUSED(dc),
+void wxRendererGeneric::DrawRadioBitmap(wxWindow* WXUNUSED(win), wxDC& WXUNUSED(dc),
const wxRect& WXUNUSED(rect), int WXUNUSED(flags))
{
const wxRect& WXUNUSED(rect), int WXUNUSED(flags))
{
- wxFAIL_MSG("UNIMPLEMENTED: wxRendererGeneric::DrawRadioButton");
+ wxFAIL_MSG("UNIMPLEMENTED: wxRendererGeneric::DrawRadioBitmap");
}
void wxRendererGeneric::DrawTextCtrl(wxWindow* WXUNUSED(win), wxDC& WXUNUSED(dc),
}
void wxRendererGeneric::DrawTextCtrl(wxWindow* WXUNUSED(win), wxDC& WXUNUSED(dc),
const wxRect& rect,
int flags=0);
const wxRect& rect,
int flags=0);
- virtual void DrawRadioButton(wxWindow* win,
+ virtual void DrawRadioBitmap(wxWindow* win,
wxDC& dc,
const wxRect& rect,
int flags=0);
wxDC& dc,
const wxRect& rect,
int flags=0);
// Draw a themed radio button
// Draw a themed radio button
-void wxRendererGTK::DrawRadioButton(wxWindow* win, wxDC& dc, const wxRect& rect, int flags)
+void wxRendererGTK::DrawRadioBitmap(wxWindow* win, wxDC& dc, const wxRect& rect, int flags)
{
GtkWidget *button = wxGTKPrivate::GetRadioButtonWidget();
{
GtkWidget *button = wxGTKPrivate::GetRadioButtonWidget();
const wxRect& rect,
int flags=0);
const wxRect& rect,
int flags=0);
- virtual void DrawRadioButton(wxWindow* win,
+ virtual void DrawRadioBitmap(wxWindow* win,
wxDC& dc,
const wxRect& rect,
int flags=0);
wxDC& dc,
const wxRect& rect,
int flags=0);
// Draw a themed radio button
// Draw a themed radio button
-void wxRendererMSW::DrawRadioButton(wxWindow* win, wxDC& dc, const wxRect& rect, int flags)
+void wxRendererMSW::DrawRadioBitmap(wxWindow* win, wxDC& dc, const wxRect& rect, int flags)
{
#if wxUSE_UXTHEME
wxUxThemeHandle hTheme(win, L"BUTTON");
{
#if wxUSE_UXTHEME
wxUxThemeHandle hTheme(win, L"BUTTON");
virtual void DrawTextCtrl(wxWindow* win, wxDC& dc, const wxRect& rect, int flags=0);
virtual void DrawTextCtrl(wxWindow* win, wxDC& dc, const wxRect& rect, int flags=0);
- virtual void DrawRadioButton(wxWindow* win, wxDC& dc, const wxRect& rect, int flags=0);
+ virtual void DrawRadioBitmap(wxWindow* win, wxDC& dc, const wxRect& rect, int flags=0);
private:
void DrawMacThemeButton(wxWindow *win,
private:
void DrawMacThemeButton(wxWindow *win,
DrawMacThemeButton(win, dc, rect, flags, kind, kThemeAdornmentNone);
}
DrawMacThemeButton(win, dc, rect, flags, kind, kThemeAdornmentNone);
}
-void wxRendererMac::DrawRadioButton(wxWindow* win, wxDC& dc,
+void wxRendererMac::DrawRadioBitmap(wxWindow* win, wxDC& dc,
const wxRect& rect, int flags)
{
int kind;
const wxRect& rect, int flags)
{
int kind;
wxCoord y1, wxCoord y2);
// draw the radio button bitmap for the given state
wxCoord y1, wxCoord y2);
// draw the radio button bitmap for the given state
- void DrawRadioBitmap(wxDC& dc, const wxRect& rect, int flags);
+ void DrawRadioButtonBitmap(wxDC& dc, const wxRect& rect, int flags);
// common part of DrawMenuItem() and DrawMenuBarItem()
void DoDrawMenuItem(wxDC& dc,
// common part of DrawMenuItem() and DrawMenuBarItem()
void DoDrawMenuItem(wxDC& dc,
dc.DrawRectangle(rect);
}
dc.DrawRectangle(rect);
}
-void wxGTKRenderer::DrawRadioBitmap(wxDC& dc,
- const wxRect& rect,
- int flags)
+void wxGTKRenderer::DrawRadioButtonBitmap(wxDC& dc,
+ const wxRect& rect,
+ int flags)
{
wxCoord x = rect.x,
y = rect.y,
{
wxCoord x = rect.x,
y = rect.y,
bmp.Create(size.x, size.y);
dc.SelectObject(bmp);
bmp.Create(size.x, size.y);
dc.SelectObject(bmp);
- DrawRadioBitmap(dc, size, flags);
+ DrawRadioButtonBitmap(dc, size, flags);