From: Soeren Apel Date: Tue, 18 Nov 2014 19:02:10 +0000 (+0000) Subject: View: Added viewport() accessor method X-Git-Tag: pulseview-0.3.0~497 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=2ae445ba4e7dc7924dae64cc62b75a9673e6fbdc;p=pulseview.git View: Added viewport() accessor method --- diff --git a/pv/view/view.cpp b/pv/view/view.cpp index 11026883..1f1bd9ac 100644 --- a/pv/view/view.cpp +++ b/pv/view/view.cpp @@ -145,6 +145,16 @@ const SigSession& View::session() const return _session; } +Viewport* View::viewport() +{ + return _viewport; +} + +const Viewport* View::viewport() const +{ + return _viewport; +} + double View::scale() const { return _scale; diff --git a/pv/view/view.h b/pv/view/view.h index 021767db..2fb9e7ff 100644 --- a/pv/view/view.h +++ b/pv/view/view.h @@ -70,6 +70,10 @@ public: SigSession& session(); const SigSession& session() const; + Viewport* viewport(); + + const Viewport* viewport() const; + /** * Returns the view time scale in seconds per pixel. */