]> sigrok.org Git - pulseview.git/blobdiff - pv/view/trace.hpp
ViewItem: Added hit_box_rect
[pulseview.git] / pv / view / trace.hpp
index 294946155cc2f20f2737c2452428e293a44e5b17..e6e053dac26c114828843b508a13c4bdb4819067 100644 (file)
@@ -73,6 +73,13 @@ public:
         */
        void set_colour(QColor colour);
 
         */
        void set_colour(QColor colour);
 
+       /**
+        * Computes the outline rectangle of the viewport hit-box.
+        * @param rect the rectangle of the viewport area.
+        * @return Returns the rectangle of the hit-box.
+        */
+       QRectF hit_box_rect(const QRectF &rect) const;
+
        /**
         * Paints the signal label.
         * @param p the QPainter to paint into.
        /**
         * Paints the signal label.
         * @param p the QPainter to paint into.