]> sigrok.org Git - pulseview.git/blobdiff - pv/view/timeitem.hpp
CursorHeader: Made drag position pixel perfect
[pulseview.git] / pv / view / timeitem.hpp
index eb313a7ec6825d379d011c1ec12a358cf8b86254..02d22d218c29b6e7dd953f764e3560afc623bdfc 100644 (file)
@@ -45,6 +45,15 @@ public:
         */
        virtual void set_time(double time) = 0;
 
+       virtual float get_x() const = 0;
+
+       /**
+        * Paints the marker's label to the ruler.
+        * @param p The painter to draw with.
+        * @param rect The rectangle of the ruler client area.
+        */
+       virtual void paint_label(QPainter &p, const QRect &rect) = 0;
+
 protected:
        View &view_;
 };