]> sigrok.org Git - pulseview.git/blobdiff - pv/view/timemarker.hpp
ViewItem: Added hit_box_rect
[pulseview.git] / pv / view / timemarker.hpp
index 4f7361bd13acb5a9e119e30183c8f82a5a0a92d0..113a6a10a6f04c097d2bc9d828e1f516f63fa2f0 100644 (file)
@@ -79,6 +79,13 @@ 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.
+        */
+       QRectF hit_box_rect(const QRectF &rect) const;
+
        /**
         * Gets the text to show in the marker.
         */