projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improved annotation painting
[pulseview.git]
/
pv
/
view
/
decode
/
annotation.h
diff --git
a/pv/view/decode/annotation.h
b/pv/view/decode/annotation.h
index 4e24121c50622923e5b0284cc8bd475a777d9261..baa96657b9d863836b63a6ce95da28e63db28958 100644
(file)
--- a/
pv/view/decode/annotation.h
+++ b/
pv/view/decode/annotation.h
@@
-33,9
+33,16
@@
namespace decode {
class Annotation
{
class Annotation
{
+private:
+ static const double EndCapWidth;
+
public:
Annotation(const srd_proto_data *const pdata);
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;
private:
uint64_t _start_sample;
uint64_t _end_sample;