Allow for a context menu in the view area
[pulseview.git] / pv / views / trace / trace.hpp
index d6d53045e4bbf69ce68aff934a94195280a40d38..bc97736c03de58f1ccc4d9d2e09571c110c6d909 100644 (file)
@@ -128,6 +128,14 @@ public:
         */
        QRectF label_rect(const QRectF &rect) const;
 
+       /**
+        * 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.
+        * @remarks The default implementation returns an empty hit-box.
+        */
+       virtual QRectF hit_box_rect(const ViewItemPaintParams &pp) const;
+
        void set_current_segment(const int segment);
 
        int get_current_segment() const;