X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/77ffb5937e89927b621128789401db8921fe580f..49a63afbad7646668df343d29edd88458bc7e0a9:/include/wx/univ/scrarrow.h diff --git a/include/wx/univ/scrarrow.h b/include/wx/univ/scrarrow.h index 44e477f289..2621c16de5 100644 --- a/include/wx/univ/scrarrow.h +++ b/include/wx/univ/scrarrow.h @@ -6,16 +6,12 @@ // Created: 22.01.01 // RCS-ID: $Id$ // Copyright: (c) 2001 SciTech Software, Inc. (www.scitechsoft.com) -// Licence: wxWidgets licence +// Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// #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 @@ -27,17 +23,17 @@ // to derive from the wxControlWithArrows interface and implement its methods. // ---------------------------------------------------------------------------- -class WXDLLEXPORT wxControlWithArrows; -class WXDLLEXPORT wxDC; -class WXDLLEXPORT wxMouseEvent; -class WXDLLEXPORT wxRect; -class WXDLLEXPORT wxRenderer; +class WXDLLIMPEXP_FWD_CORE wxControlWithArrows; +class WXDLLIMPEXP_FWD_CORE wxDC; +class WXDLLIMPEXP_FWD_CORE wxMouseEvent; +class WXDLLIMPEXP_FWD_CORE wxRect; +class WXDLLIMPEXP_FWD_CORE wxRenderer; // ---------------------------------------------------------------------------- // wxScrollArrows: an abstraction of scrollbar arrow // ---------------------------------------------------------------------------- -class WXDLLEXPORT wxScrollArrows +class WXDLLIMPEXP_CORE wxScrollArrows { public: enum Arrow @@ -54,11 +50,12 @@ 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() - // 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 @@ -82,9 +79,11 @@ private: // wxControlWithArrows: interface implemented by controls using wxScrollArrows // ---------------------------------------------------------------------------- -class WXDLLEXPORT wxControlWithArrows +class WXDLLIMPEXP_CORE wxControlWithArrows { public: + virtual ~wxControlWithArrows() {} + // get the renderer to use for drawing the arrows virtual wxRenderer *GetRenderer() const = 0; @@ -100,13 +99,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; + 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 + // called when the arrow is pressed, return true to continue scrolling and + // false to stop it virtual bool OnArrow(wxScrollArrows::Arrow arrow) = 0; };