X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fsignal.h;h=1b2f5df92a7221813e0dbb6afbdb7de74eac172c;hp=2351a2f911256c0a591c953a6d7d9d63e1421848;hb=3b258424833cc681b7f3a0571a00dcc42df6192f;hpb=38935007e7feb384119af3a07f1ad5452e6de5ff diff --git a/pv/signal.h b/pv/signal.h index 2351a2f9..1b2f5df9 100644 --- a/pv/signal.h +++ b/pv/signal.h @@ -52,6 +52,14 @@ public: virtual void paint(QPainter &p, const QRect &rect, double scale, double offset) = 0; + /** + * Computes the outline rectangle of a label. + * @param p the QPainter to lay out text with. + * @param rect The rectangle of the signal header. + * @return Returns the rectangle of the signal label. + */ + virtual QRectF get_label_rect(QPainter &p, const QRect &rect); + /** * Paints the signal label into a QGLWidget. * @param p the QPainter to paint into.