X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=logicsignal.h;h=28c8247a90c7cb3d43ed358e4c388c2f43116ab2;hp=91c70ab21a9d644bb0814d3601a44a2b0c9c6d4b;hb=3b18c57d8f224791481e0b768065bd4d11a3d79e;hpb=e3f65ace22c6bcd371967302f8d01d0769e3a23f diff --git a/logicsignal.h b/logicsignal.h index 91c70ab2..28c8247a 100644 --- a/logicsignal.h +++ b/logicsignal.h @@ -30,7 +30,16 @@ public: LogicSignal(QString name, boost::shared_ptr data, int probe_index); - void paint(QGLWidget &widget, const QRect &rect); + /** + * Paints the signal into a QGLWidget. + * @param widget the QGLWidget to paint into. + * @param rect the rectangular area to draw the trace into. + * @param scale the scale in femtoseconds per pixel. + * @param offset the time to show at the left hand edge of + * the view in femtoseconds. + **/ + void paint(QGLWidget &widget, const QRect &rect, uint64_t scale, + int64_t offset); private: int _probe_index;