X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/24a23c35730c9dbf6006e45947792204b9417204..f5643147a49e21f3723cda823eb5c1bdc4bf023a:/include/wx/univ/renderer.h diff --git a/include/wx/univ/renderer.h b/include/wx/univ/renderer.h index e71426e6ee..cfcdccf9c8 100644 --- a/include/wx/univ/renderer.h +++ b/include/wx/univ/renderer.h @@ -251,7 +251,8 @@ public: const wxString& title, const wxIcon& icon, int flags, - int pressedButtons = 0) = 0; + int specialButton = 0, + int specialButtonFlags = 0) = 0; // draw frame borders virtual void DrawFrameBorder(wxDC& dc, @@ -392,6 +393,10 @@ public: virtual wxSize GetFrameTotalSize(const wxSize& clientSize, int flags) const = 0; // get titlebar icon size virtual wxSize GetFrameIconSize() const = 0; + // returns one of wxHT_TOPLEVEL_XXX constants + virtual int HitTestFrame(const wxRect& rect, + const wxPoint& pt, + int flags) const = 0; // virtual dtor for any base class virtual ~wxRenderer(); @@ -622,8 +627,10 @@ public: const wxString& title, const wxIcon& icon, int flags, - int pressedButtons = 0) - { m_renderer->DrawFrameTitleBar(dc, rect, title, icon, flags, pressedButtons); } + int specialButton = 0, + int specialButtonFlag = 0) + { m_renderer->DrawFrameTitleBar(dc, rect, title, icon, flags, + specialButton, specialButtonFlag); } virtual void DrawFrameBorder(wxDC& dc, const wxRect& rect, int flags) @@ -723,6 +730,10 @@ public: { return m_renderer->GetFrameTotalSize(clientSize, flags); } virtual wxSize GetFrameIconSize() const { return m_renderer->GetFrameIconSize(); } + virtual int HitTestFrame(const wxRect& rect, + const wxPoint& pt, + int flags) const + { return m_renderer->HitTestFrame(rect, pt, flags); } protected: wxRenderer *m_renderer;