]> sigrok.org Git - pulseview.git/blobdiff - pv/view/analogsignal.hpp
Signal: Added scale_handle_offset, scale_handle_dragged and scale_handle_released
[pulseview.git] / pv / view / analogsignal.hpp
index 72ff23b366fa96ba44e795452cdad1acafae15f9..58c2d3cb7b622e419ce1fcb19d83ed5edf7480fb 100644 (file)
@@ -59,6 +59,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.