]> sigrok.org Git - pulseview.git/commitdiff
View: Added viewport() accessor method
authorSoeren Apel <redacted>
Tue, 18 Nov 2014 19:02:10 +0000 (19:02 +0000)
committerJoel Holdsworth <redacted>
Tue, 18 Nov 2014 22:56:40 +0000 (22:56 +0000)
pv/view/view.cpp
pv/view/view.h

index 11026883bab1a7842dba1483c1c58c8b0650cb72..1f1bd9acea32cd54c2873f5f1f8259d6f852ce0f 100644 (file)
@@ -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;
index 021767dba6a197ea551effd1f6068da2c3c0e20c..2fb9e7ff9ac646a7e7c012ae3dd9ae6ddf6dd25f 100644 (file)
@@ -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.
         */