X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fview%2Fviewitem.hpp;h=7579b555cdc460b36207c1f64fcab7f260eca2a9;hb=08d9c3caec0a3ad1c624af685f948e17b91d278a;hp=eb0823e47e8f1b55b897597a0c8bf14a0b960742;hpb=23e75650eba0491b2636de3cef87f893e38ae6f3;p=pulseview.git diff --git a/pv/view/viewitem.hpp b/pv/view/viewitem.hpp index eb0823e4..7579b555 100644 --- a/pv/view/viewitem.hpp +++ b/pv/view/viewitem.hpp @@ -100,6 +100,14 @@ public: */ virtual QRectF label_rect(const QRectF &rect) const = 0; + /** + * 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 QRectF &rect) const; + /** * Paints the signal label. * @param p the QPainter to paint into.