X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/71908213057690d5452f72b2b9c8e62b53357170..4c44eb66f34f90787524797472d48f35d98a9e23:/include/wx/univ/scrarrow.h diff --git a/include/wx/univ/scrarrow.h b/include/wx/univ/scrarrow.h index 043dfad837..57cc4df70a 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_ -#ifdef __GNUG__ - #pragma interface "scrarrow.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 @@ -54,7 +50,7 @@ public: // draws the arrow on the given DC in the given rectangle, uses // wxControlWithArrows::GetArrowState() to get its current state void DrawArrow(Arrow arrow, wxDC& dc, const wxRect& rect, - bool scrollbarLike = FALSE) const; + bool scrollbarLike = false) const; // process a mouse move, enter or leave event, possibly calling // wxControlWithArrows::SetArrowState() if wxControlWithArrows::HitTest() @@ -85,6 +81,8 @@ private: class WXDLLEXPORT wxControlWithArrows { public: + virtual ~wxControlWithArrows() {} + // get the renderer to use for drawing the arrows virtual wxRenderer *GetRenderer() const = 0; @@ -100,13 +98,13 @@ public: // set or clear the specified flag in the arrow state: this function is // responsible for refreshing the control virtual void SetArrowFlag(wxScrollArrows::Arrow arrow, - int flag, bool set = TRUE) = 0; + 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; - // called when the arrow is pressed, return TRUE to continue scrolling and - // FALSE to stop it + // called when the arrow is pressed, return true to continue scrolling and + // false to stop it virtual bool OnArrow(wxScrollArrows::Arrow arrow) = 0; };