]> sigrok.org Git - pulseview.git/blobdiff - pv/view/logicsignal.hpp
Signal: Added scale_handle_offset, scale_handle_dragged and scale_handle_released
[pulseview.git] / pv / view / logicsignal.hpp
index 0705613eb3b9252de57eb566d59505cba297ff1c..71dcc0361404648091532a767209b9d88e9170bc 100644 (file)
@@ -86,6 +86,17 @@ public:
         */
        std::pair<int, int> v_extents() const;
 
+       /**
+        * Returns the offset to show the drag handle.
+        */
+       int scale_handle_offset() const;
+
+       /**
+        * Handles the scale handle being dragged to an offset.
+        * @param offset the offset the scale handle was dragged to.
+        */
+       void scale_handle_dragged(int offset);
+
        /**
         * Paints the background layer of the signal with a QPainter
         * @param p the QPainter to paint into.