X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ae3c17b4013e80b99976c750c19fca47729517f6..8b385bf892c1f831965313eaf3ee59b10b435afd:/interface/wx/renderer.h diff --git a/interface/wx/renderer.h b/interface/wx/renderer.h index 6c33c39d59..59e578b78b 100644 --- a/interface/wx/renderer.h +++ b/interface/wx/renderer.h @@ -58,7 +58,6 @@ enum /** @struct wxSplitterRenderParams - @wxheader{renderer.h} This is just a simple @c struct used as a return value of wxRendererNative::GetSplitterParams(). @@ -95,7 +94,6 @@ struct wxSplitterRenderParams /** @struct wxHeaderButtonParams - @wxheader{renderer.h} This @c struct can optionally be used with wxRendererNative::DrawHeaderButton() to specify custom values used to draw @@ -132,7 +130,6 @@ enum wxHeaderSortIconType /** @class wxDelegateRendererNative - @wxheader{renderer.h} wxDelegateRendererNative allows reuse of renderers code by forwarding all the wxRendererNative methods to the given object and @@ -214,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 ); @@ -232,7 +231,6 @@ public: /** @class wxRendererNative - @wxheader{renderer.h} First, a brief introduction to wxRendererNative and why it is needed. @@ -290,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. @@ -431,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 @@ -481,7 +484,6 @@ public: /** @struct wxRendererVersion - @wxheader{renderer.h} This simple struct represents the wxRendererNative interface version and is only used as the return value of