X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fviews%2Ftrace%2Ftrace.hpp;h=bc97736c03de58f1ccc4d9d2e09571c110c6d909;hp=d6d53045e4bbf69ce68aff934a94195280a40d38;hb=d9b55cc8ab01e83b392762ed1fa400fdafafb60b;hpb=68e0a53ee49c6a58fe1fadd8b9dc12572cc0dbd0 diff --git a/pv/views/trace/trace.hpp b/pv/views/trace/trace.hpp index d6d5304..bc97736 100644 --- a/pv/views/trace/trace.hpp +++ b/pv/views/trace/trace.hpp @@ -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;