]> sigrok.org Git - pulseview.git/blobdiff - pv/view/analogsignal.hpp
RowItemPaintParams: Bundled scale and offset
[pulseview.git] / pv / view / analogsignal.hpp
index 91a8e5c2810665ea6a4f445b187426d0d66d5343..c048371eeadd1973149017bd7f21f06abf79a1a7 100644 (file)
@@ -43,7 +43,7 @@ private:
        static const float EnvelopeThreshold;
 
 public:
-       AnalogSignal(pv::SigSession &session,
+       AnalogSignal(pv::Session &session,
                std::shared_ptr<sigrok::Channel> channel,
                std::shared_ptr<pv::data::Analog> data);
 
@@ -64,18 +64,16 @@ public:
        /**
         * Paints the background layer of the signal with a QPainter
         * @param p the QPainter to paint into.
-        * @param left the x-coordinate of the left edge of the signal.
-        * @param right the x-coordinate of the right edge of the signal.
+        * @param pp the painting parameters object to paint with..
         **/
-       void paint_back(QPainter &p, int left, int right);
+       void paint_back(QPainter &p, const RowItemPaintParams &pp);
 
        /**
         * Paints the mid-layer of the signal with a QPainter
         * @param p the QPainter to paint into.
-        * @param left the x-coordinate of the left edge of the signal.
-        * @param right the x-coordinate of the right edge of the signal.
+        * @param pp the painting parameters object to paint with..
         **/
-       void paint_mid(QPainter &p, int left, int right);
+       void paint_mid(QPainter &p, const RowItemPaintParams &pp);
 
 private:
        void paint_trace(QPainter &p,