X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b13862ee62355f46a021b4e6d6d6a6bba47f5435..438959cca892a7651634cc3a7aad4819ac49b23c:/include/wx/univ/stdrend.h diff --git a/include/wx/univ/stdrend.h b/include/wx/univ/stdrend.h index f46b25792c..62aa0753b1 100644 --- a/include/wx/univ/stdrend.h +++ b/include/wx/univ/stdrend.h @@ -14,7 +14,7 @@ #include "wx/univ/renderer.h" #include "wx/pen.h" -class WXDLLEXPORT wxColourScheme; +class WXDLLIMPEXP_FWD_CORE wxColourScheme; // ---------------------------------------------------------------------------- // wxStdRenderer: implements as much of wxRenderer API as possible generically @@ -38,7 +38,8 @@ public: int flags); - virtual void DrawFocusRect(wxDC& dc, const wxRect& rect); + virtual void DrawFocusRect(wxWindow* win, wxDC& dc, const wxRect& rect, int flags = 0); + virtual void DrawLabel(wxDC& dc, const wxString& label, const wxRect& rect, @@ -136,28 +137,17 @@ public: virtual wxCoord GetListboxItemHeight(wxCoord fontHeight); -#if wxUSE_SCROLLBAR - virtual wxRect GetScrollbarRect(const wxScrollBar *scrollbar, - wxScrollBar::Element elem, - int thumbPos = -1) const; - - virtual wxCoord GetScrollbarSize(const wxScrollBar *scrollbar); - - virtual wxHitTest HitTestScrollbar(const wxScrollBar *scrollbar, - const wxPoint& pt) const; - - virtual wxCoord ScrollbarToPixel(const wxScrollBar *scrollbar, - int thumbPos = -1); - virtual int PixelToScrollbar(const wxScrollBar *scrollbar, wxCoord coord); -#endif // wxUSE_SCROLLBAR - #if wxUSE_STATUSBAR virtual void DrawStatusField(wxDC& dc, const wxRect& rect, const wxString& label, int flags = 0, int style = 0); - virtual wxSize GetStatusBarBorders(wxCoord *borderBetweenFields) const; + virtual wxSize GetStatusBarBorders() const; + + virtual wxCoord GetStatusBarBorderBetweenFields() const; + + virtual wxSize GetStatusBarFieldMargins() const; #endif // wxUSE_STATUSBAR virtual wxCoord GetCheckItemMargin() const { return 0; } @@ -332,7 +322,7 @@ protected: // return the frame icon bitmap virtual wxBitmap GetFrameButtonBitmap(FrameButtonType type) = 0; - // get the width of either normal or resizeable frame border depending on + // get the width of either normal or resizable frame border depending on // whether flags contains wxTOPLEVEL_RESIZEABLE bit // // notice that these methods only make sense with standard border drawing @@ -345,16 +335,6 @@ protected: virtual int GetTextBorderWidth(const wxTextCtrl *text) const; #endif // wxUSE_TEXTCTRL - // return the starting and ending positions, in pixels, of the thumb of a - // scrollbar with the given logical position, thumb size and range and the - // given physical length - static void GetScrollBarThumbSize(wxCoord length, - int thumbPos, - int thumbSize, - int range, - wxCoord *thumbStart, - wxCoord *thumbEnd); - // GDI objects we often use wxPen m_penBlack, m_penDarkGrey, @@ -367,7 +347,7 @@ protected: // update m_penXXX objects above const wxColourScheme * const m_scheme; - DECLARE_NO_COPY_CLASS(wxStdRenderer) + wxDECLARE_NO_COPY_CLASS(wxStdRenderer); }; #endif // _WX_UNIV_STDREND_H_