X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2e8c12bcb028f4b3a77e71e7bcc91fc8f156feaa..85ad2fa7d2aeaa5f01ce1e1c34c3a04527671852:/interface/wx/scrolwin.h diff --git a/interface/wx/scrolwin.h b/interface/wx/scrolwin.h index 5c027861ab..8a9b909309 100644 --- a/interface/wx/scrolwin.h +++ b/interface/wx/scrolwin.h @@ -535,8 +535,28 @@ public: double GetScaleY() const; virtual void AdjustScrollbars(); + + /** + Are we generating the autoscroll events? + */ bool IsAutoScrolling() const; + + /** + Stop generating the scroll events when mouse is held outside the + window. + */ void StopAutoScrolling(); + + /** + This method can be overridden in a derived class to forbid sending the + auto scroll events - note that unlike StopAutoScrolling() it doesn't + stop the timer, so it will be called repeatedly and will typically + return different values depending on the current mouse position + + The base class version just returns true. + */ + virtual bool SendAutoScrollEvents(wxScrollWinEvent& event) const; + protected: /** @@ -558,7 +578,7 @@ protected: /** Scrolled window derived from wxPanel. - See wxScrolled for detailed description. + See wxScrolled for a detailed description. @note Note that because this class derives from wxPanel, it shares its behaviour with regard to TAB traversal and focus handling (in