Renamed DrawCheckButton due to conflict with existing and public api of wxUniversal port.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38969 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -92,9 +92,9 @@ No base class
|
||||
Virtual destructor as for any base class.
|
||||
|
||||
|
||||
\membersection{wxRendererNative::DrawCheckButton}\label{wxrenderernativedrawcheckbutton}
|
||||
\membersection{wxRendererNative::DrawCheckBox}\label{wxrenderernativedrawcheckbox}
|
||||
|
||||
\func{void}{DrawCheckButton}{\param{wxWindow *}{win}, \param{wxDC\& }{dc}, \param{const wxRect\& }{rect}, \param{int }{flags}}
|
||||
\func{void}{DrawCheckBox}{\param{wxWindow *}{win}, \param{wxDC\& }{dc}, \param{const wxRect\& }{rect}, \param{int }{flags}}
|
||||
|
||||
Draw a check box (used by wxDataViewCtrl).
|
||||
|
||||
@@ -236,4 +236,3 @@ Set the renderer to use, passing {\tt NULL} reverts to using the default
|
||||
renderer (the global renderer must always exist).
|
||||
|
||||
Return the previous renderer used with Set() or {\tt NULL} if none.
|
||||
|
||||
|
@@ -173,7 +173,7 @@ public:
|
||||
// draw check button
|
||||
//
|
||||
// flags may use wxCONTROL_CHECKED, wxCONTROL_UNDETERMINED and wxCONTROL_CURRENT
|
||||
virtual void DrawCheckButton(wxWindow *win,
|
||||
virtual void DrawCheckBox(wxWindow *win,
|
||||
wxDC& dc,
|
||||
const wxRect& rect,
|
||||
int flags = 0) = 0;
|
||||
@@ -300,11 +300,11 @@ public:
|
||||
int flags = 0)
|
||||
{ m_rendererNative.DrawDropArrow(win, dc, rect, flags); }
|
||||
|
||||
virtual void DrawCheckButton(wxWindow *win,
|
||||
virtual void DrawCheckBox(wxWindow *win,
|
||||
wxDC& dc,
|
||||
const wxRect& rect,
|
||||
int flags = 0 )
|
||||
{ m_rendererNative.DrawCheckButton( win, dc, rect, flags ); }
|
||||
{ m_rendererNative.DrawCheckBox( win, dc, rect, flags ); }
|
||||
|
||||
virtual void DrawPushButton(wxWindow *win,
|
||||
wxDC& dc,
|
||||
@@ -346,4 +346,3 @@ wxRendererNative& wxRendererNative::GetDefault()
|
||||
#endif // !wxHAS_NATIVE_RENDERER
|
||||
|
||||
#endif // _WX_RENDERER_H_
|
||||
|
||||
|
@@ -367,7 +367,7 @@ bool wxDataViewToggleCell::Render( wxRect cell, wxDC *dc, int WXUNUSED(state) )
|
||||
if (GetMode() != wxDATAVIEW_CELL_ACTIVATABLE)
|
||||
flags |= wxCONTROL_DISABLED;
|
||||
|
||||
wxRendererNative::Get().DrawCheckButton(
|
||||
wxRendererNative::Get().DrawCheckBox(
|
||||
GetOwner()->GetOwner(),
|
||||
*dc,
|
||||
rect,
|
||||
|
@@ -78,7 +78,7 @@ public:
|
||||
const wxRect& rect,
|
||||
int flags = 0);
|
||||
|
||||
virtual void DrawCheckButton(wxWindow *win,
|
||||
virtual void DrawCheckBox(wxWindow *win,
|
||||
wxDC& dc,
|
||||
const wxRect& rect,
|
||||
int flags = 0);
|
||||
@@ -402,7 +402,7 @@ wxRendererGeneric::DrawDropArrow(wxWindow *win,
|
||||
}
|
||||
|
||||
void
|
||||
wxRendererGeneric::DrawCheckButton(wxWindow *WXUNUSED(win),
|
||||
wxRendererGeneric::DrawCheckBox(wxWindow *WXUNUSED(win),
|
||||
wxDC& dc,
|
||||
const wxRect& rect,
|
||||
int flags)
|
||||
|
@@ -1,5 +1,5 @@
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// Name: gtk/renderer.cpp
|
||||
// Name: src/gtk/renderer.cpp
|
||||
// Purpose: implementation of wxRendererNative for wxGTK
|
||||
// Author: Vadim Zeitlin
|
||||
// Modified by:
|
||||
@@ -78,7 +78,7 @@ public:
|
||||
const wxRect& rect,
|
||||
int flags = 0);
|
||||
|
||||
virtual void DrawCheckButton(wxWindow *win,
|
||||
virtual void DrawCheckBox(wxWindow *win,
|
||||
wxDC& dc,
|
||||
const wxRect& rect,
|
||||
int flags = 0);
|
||||
@@ -104,7 +104,7 @@ private:
|
||||
// used by DrawTreeItemButton()
|
||||
static GtkWidget *GetTreeWidget();
|
||||
|
||||
// used by DrawCheckButton()
|
||||
// used by DrawCheckBox()
|
||||
static GtkWidget *GetCheckButtonWidget();
|
||||
};
|
||||
|
||||
@@ -437,7 +437,7 @@ wxRendererGTK::DrawComboBoxDropButton(wxWindow *win,
|
||||
}
|
||||
|
||||
void
|
||||
wxRendererGTK::DrawCheckButton(wxWindow *win,
|
||||
wxRendererGTK::DrawCheckBox(wxWindow *win,
|
||||
wxDC& dc,
|
||||
const wxRect& rect,
|
||||
int flags )
|
||||
@@ -549,4 +549,3 @@ wxRendererGTK::DrawItemSelectionRect(wxWindow *win,
|
||||
dc.DrawRectangle( rect );
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// Name: msw/renderer.cpp
|
||||
// Name: src/msw/renderer.cpp
|
||||
// Purpose: implementation of wxRendererNative for Windows
|
||||
// Author: Vadim Zeitlin
|
||||
// Modified by:
|
||||
@@ -134,7 +134,7 @@ public:
|
||||
wxDC& dc,
|
||||
const wxRect& rect,
|
||||
int flags = 0);
|
||||
virtual void DrawCheckButton(wxWindow *win,
|
||||
virtual void DrawCheckBox(wxWindow *win,
|
||||
wxDC& dc,
|
||||
const wxRect& rect,
|
||||
int flags = 0);
|
||||
@@ -335,7 +335,7 @@ wxRendererXP::DrawTreeItemButton(wxWindow *win,
|
||||
}
|
||||
|
||||
void
|
||||
wxRendererXP::DrawCheckButton(wxWindow *win,
|
||||
wxRendererXP::DrawCheckBox(wxWindow *win,
|
||||
wxDC& dc,
|
||||
const wxRect& rect,
|
||||
int flags)
|
||||
@@ -343,7 +343,7 @@ wxRendererXP::DrawCheckButton(wxWindow *win,
|
||||
wxUxThemeHandle hTheme(win, L"BUTTON");
|
||||
if ( !hTheme )
|
||||
{
|
||||
m_rendererNative.DrawCheckButton(win, dc, rect, flags);
|
||||
m_rendererNative.DrawCheckBox(win, dc, rect, flags);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -473,4 +473,3 @@ wxRendererXP::DrawSplitterSash(wxWindow *win,
|
||||
}
|
||||
|
||||
#endif // wxUSE_UXTHEME
|
||||
|
||||
|
Reference in New Issue
Block a user