X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fdata%2Fdecode%2Fannotation.hpp;h=edc27bee4dfa52947477980622e137863aaa14f2;hp=df99ecb980676247cf62ae6c891505af273ada16;hb=86d4b8e3e52a422fe3a6956d6bbef27f1859717b;hpb=1dcd9b18186741d3ce3164f7e8d6cb13abb578d3 diff --git a/pv/data/decode/annotation.hpp b/pv/data/decode/annotation.hpp index df99ecb9..edc27bee 100644 --- a/pv/data/decode/annotation.hpp +++ b/pv/data/decode/annotation.hpp @@ -23,6 +23,7 @@ #include #include +#include #include using std::vector; @@ -46,17 +47,26 @@ public: const vector* texts, Class ann_class_id, const RowData *data); Annotation(Annotation&& a); Annotation& operator=(Annotation&& a); - ~Annotation(); + + const RowData* row_data() const; + const Row* row() const; uint64_t start_sample() const; uint64_t end_sample() const; + uint64_t length() const; Class ann_class_id() const; const QString ann_class_name() const; + const QString ann_class_description() const; const vector* annotations() const; const QString longest_annotation() const; - const Row* row() const; + + bool visible() const; + + const QColor color() const; + const QColor bright_color() const; + const QColor dark_color() const; bool operator<(const Annotation &other) const;