add wxRenderer::GetCheckBoxSize(); refactor wxGTK code to avoid duplication (#9642)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54934 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -211,6 +211,8 @@ public:
|
||||
virtual void DrawCheckBox(wxWindow *win, wxDC& dc,
|
||||
const wxRect& rect, int flags = 0 );
|
||||
|
||||
virtual wxSize GetCheckBoxSize(wxWindow *win);
|
||||
|
||||
virtual void DrawPushButton(wxWindow *win, wxDC& dc,
|
||||
const wxRect& rect, int flags = 0 );
|
||||
|
||||
@@ -286,7 +288,7 @@ public:
|
||||
~wxRendererNative();
|
||||
|
||||
/**
|
||||
Draw a check box (used by wxDataViewCtrl).
|
||||
Draw a check box.
|
||||
|
||||
@a flags may have the @c wxCONTROL_CHECKED, @c wxCONTROL_CURRENT or
|
||||
@c wxCONTROL_UNDETERMINED bit set, see @ref wxCONTROL_FLAGS.
|
||||
@@ -427,6 +429,11 @@ public:
|
||||
*/
|
||||
static wxRendererNative GetGeneric();
|
||||
|
||||
/**
|
||||
Returns the size of a check box.
|
||||
*/
|
||||
virtual wxSize GetCheckBoxSize(wxWindow *win);
|
||||
|
||||
/**
|
||||
Returns the height of a header button, either a fixed platform height if
|
||||
available, or a
|
||||
|
Reference in New Issue
Block a user