X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Ftrace.hpp;h=e6e053dac26c114828843b508a13c4bdb4819067;hp=294946155cc2f20f2737c2452428e293a44e5b17;hb=7708eb92ca87836f5d4987899e0fbb7a4e2335b4;hpb=1dffa582704bb6acb144a3e89bd6eb0e2ccf4f25 diff --git a/pv/view/trace.hpp b/pv/view/trace.hpp index 29494615..e6e053da 100644 --- a/pv/view/trace.hpp +++ b/pv/view/trace.hpp @@ -73,6 +73,13 @@ public: */ 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.