]> sigrok.org Git - pulseview.git/blobdiff - pv/views/trace/view.hpp
Trace View: Move ruler time conversion from View to Ruler
[pulseview.git] / pv / views / trace / view.hpp
index 8fdbc15d6a9d5e276ea87c4200c926bcc2143dbb..8f59b02927cd62c218d1d84c2603e124c326a69e 100644 (file)
@@ -177,6 +177,8 @@ public:
 
        void reset_zero_position();
 
+       pv::util::Timestamp zero_offset() const;
+
        /**
         * Returns the vertical scroll offset.
         */
@@ -278,10 +280,10 @@ public:
         */
        void show_cursors(bool show = true);
 
-    /**
-     * Sets the cursors to the given offsets. You will still have to call show_cursors separately.
-     */
-    void set_cursors(pv::util::Timestamp& first, pv::util::Timestamp& second);
+       /**
+        * Sets the cursors to the given offsets. You will still have to call show_cursors separately.
+        */
+       void set_cursors(pv::util::Timestamp& first, pv::util::Timestamp& second);
 
        /**
         * Moves the cursors to a convenient position in the view.