]> sigrok.org Git - pulseview.git/blobdiff - pv/view/decode/annotation.h
Store annotations as objects emplaced in the vector
[pulseview.git] / pv / view / decode / annotation.h
index 078c12a19190d47ed7baeedb4c28fe79b84e7b25..94b7dc90c9fabfdb330c9d14f5105018f56612a4 100644 (file)
@@ -42,17 +42,20 @@ private:
 public:
        Annotation(const srd_proto_data *const pdata);
 
+       uint64_t start_sample() const;
+       uint64_t end_sample() const;
+
        void paint(QPainter &p, QColor text_colour, int text_height, int left,
                int right, double samples_per_pixel, double pixels_offset,
-               int y);
+               int y) const;
 
 private:
        void draw_instant(QPainter &p, QColor fill, QColor outline,
-               QColor text_color, int h, double x, int y);
+               QColor text_color, int h, double x, int y) const;
 
        void draw_range(QPainter &p, QColor fill, QColor outline,
                QColor text_color, int h, double start,
-               double end, int y);
+               double end, int y) const;
 
 private:
        uint64_t _start_sample;