X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Fdecode%2Fannotation.h;h=091cd26004acee80fea8eb45baf86cb5a181983e;hp=baa96657b9d863836b63a6ce95da28e63db28958;hb=c51482b339fbb76e0de042ac3f136a6e5b752b9a;hpb=1ae79b11b6b409aae986e379f9280115395c8cf5 diff --git a/pv/view/decode/annotation.h b/pv/view/decode/annotation.h index baa96657..091cd260 100644 --- a/pv/view/decode/annotation.h +++ b/pv/view/decode/annotation.h @@ -35,6 +35,7 @@ class Annotation { private: static const double EndCapWidth; + static const int DrawPadding; public: Annotation(const srd_proto_data *const pdata); @@ -43,6 +44,14 @@ public: QColor text_colour, int text_height, int left, int right, double samples_per_pixel, double pixels_offset, int y); +private: + void draw_instant(QPainter &p, QColor fill, QColor outline, + QColor text_color, int h, double x, int y); + + void draw_range(QPainter &p, QColor fill, QColor outline, + QColor text_color, int h, double start, + double end, int y); + private: uint64_t _start_sample; uint64_t _end_sample;