X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a290fa5a7deebe9d96c0c0089d18e27d4bd9b624..c4ec0ce8205de4659f1e52d16480b5c025ebc41e:/include/wx/univ/scrarrow.h diff --git a/include/wx/univ/scrarrow.h b/include/wx/univ/scrarrow.h index cd0b6c2475..3ccda643d2 100644 --- a/include/wx/univ/scrarrow.h +++ b/include/wx/univ/scrarrow.h @@ -12,10 +12,6 @@ #ifndef _WX_UNIV_SCRARROW_H_ #define _WX_UNIV_SCRARROW_H_ -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) - #pragma interface "univscrarrow.h" -#endif - // ---------------------------------------------------------------------------- // wxScrollArrows is not a control but just a class containing the common // functionality of scroll arrows, whether part of scrollbars, spin ctrls or @@ -57,8 +53,9 @@ public: bool scrollbarLike = false) const; // process a mouse move, enter or leave event, possibly calling - // wxControlWithArrows::SetArrowState() if wxControlWithArrows::HitTest() - // says that the mosue has left/entered an arrow + // wxControlWithArrows::SetArrowState() if + // wxControlWithArrows::HitTestArrow() says that the mouse has left/entered + // an arrow bool HandleMouseMove(const wxMouseEvent& event) const; // process a mouse click event @@ -85,6 +82,8 @@ private: class WXDLLEXPORT wxControlWithArrows { public: + virtual ~wxControlWithArrows() {} + // get the renderer to use for drawing the arrows virtual wxRenderer *GetRenderer() const = 0; @@ -103,7 +102,7 @@ public: int flag, bool set = true) = 0; // hit testing: return on which arrow the point is (or Arrow_None) - virtual wxScrollArrows::Arrow HitTest(const wxPoint& pt) const = 0; + virtual wxScrollArrows::Arrow HitTestArrow(const wxPoint& pt) const = 0; // called when the arrow is pressed, return true to continue scrolling and // false to stop it