X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fview%2Fdecode%2Fannotation.h;h=baa96657b9d863836b63a6ce95da28e63db28958;hb=1ae79b11b6b409aae986e379f9280115395c8cf5;hp=4e24121c50622923e5b0284cc8bd475a777d9261;hpb=3195aeb6a867b6ab54b4a410182467f63f9b79f2;p=pulseview.git diff --git a/pv/view/decode/annotation.h b/pv/view/decode/annotation.h index 4e24121c..baa96657 100644 --- a/pv/view/decode/annotation.h +++ b/pv/view/decode/annotation.h @@ -33,9 +33,16 @@ namespace decode { class Annotation { +private: + static const double EndCapWidth; + public: Annotation(const srd_proto_data *const pdata); + void paint(QPainter &p, QColor fill, QColor outline, + QColor text_colour, int text_height, int left, int right, + double samples_per_pixel, double pixels_offset, int y); + private: uint64_t _start_sample; uint64_t _end_sample;