]> sigrok.org Git - pulseview.git/blobdiff - pv/view/viewwidget.hpp
ViewWidget: Added mouse_down
[pulseview.git] / pv / view / viewwidget.hpp
index 1d50832b030c7856a9d71ec47a7c48db42fbc579..65434f65e1720913ab2589f3cfd932fe1c873b46 100644 (file)
@@ -52,6 +52,11 @@ protected:
         */
        bool accept_drag() const;
 
+       /**
+        * Returns true if the mouse button is down.
+        */
+       bool mouse_down() const;
+
        /**
         * Drag the dragging items by the delta offset.
         * @param delta the drag offset in pixels.