X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/279ababf7baa0655a58074b868da222db7cc5a4b..695237bccd652c60deba347117ba5ab32067880c:/include/wx/generic/plot.h diff --git a/include/wx/generic/plot.h b/include/wx/generic/plot.h index 449d68fed1..f046a6e78d 100644 --- a/include/wx/generic/plot.h +++ b/include/wx/generic/plot.h @@ -195,6 +195,8 @@ public: void SetCurrent( wxPlotCurve* current ); wxPlotCurve *GetCurrent(); + void Delete( wxPlotCurve* curve ); + // vertical representation // ----------------------- @@ -211,7 +213,20 @@ public: void SetZoom( double zoom ); double GetZoom() { return m_xZoom; } - + + // options + // ------- + + void SetScrollOnThumbRelease( bool scrollOnThumbRelease = TRUE ) + { m_scrollOnThumbRelease = scrollOnThumbRelease; } + bool GetScrollOnThumbRelease() + { return m_scrollOnThumbRelease; } + + void SetEnlargeAroundWindowCentre( bool enlargeAroundWindowCentre = TRUE ) + { m_enlargeAroundWindowCentre = enlargeAroundWindowCentre; } + bool GetEnlargeAroundWindowCentre() + { return m_enlargeAroundWindowCentre; } + // events (may be overridden) // -------------------------- @@ -247,6 +262,9 @@ private: wxPlotXAxisArea *m_xaxis; wxPlotYAxisArea *m_yaxis; wxPlotCurve *m_current; + + bool m_scrollOnThumbRelease; + bool m_enlargeAroundWindowCentre; DECLARE_CLASS(wxPlotWindow) DECLARE_EVENT_TABLE()