X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fview%2Fviewitem.hpp;h=7579b555cdc460b36207c1f64fcab7f260eca2a9;hb=7708eb92ca87836f5d4987899e0fbb7a4e2335b4;hp=eb0823e47e8f1b55b897597a0c8bf14a0b960742;hpb=1dffa582704bb6acb144a3e89bd6eb0e2ccf4f25;p=pulseview.git diff --git a/pv/view/viewitem.hpp b/pv/view/viewitem.hpp index eb0823e..7579b55 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.