X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Fcursor.hpp;h=03b97a17789e948e4062dc44f484274d238fdcc7;hp=9f0adeddbd8eb0bdd20e16ded2fd16d6036533cc;hb=1f1edc092680e9182be07a760ad03d00b8c5ca06;hpb=4fabd61a2676246265c12d614cde496bf0a79075 diff --git a/pv/view/cursor.hpp b/pv/view/cursor.hpp index 9f0adedd..03b97a17 100644 --- a/pv/view/cursor.hpp +++ b/pv/view/cursor.hpp @@ -48,12 +48,22 @@ public: Cursor(View &view, double time); public: + /** + * Returns true if the item is visible and enabled. + */ + bool enabled() const; + + /** + * Gets the text to show in the marker. + */ + QString get_text() const; + /** * Gets the marker label rectangle. * @param rect The rectangle of the ruler client area. * @return Returns the label rectangle. */ - QRectF get_label_rect(const QRect &rect) const; + QRectF label_rect(const QRectF &rect) const; private: std::shared_ptr get_other_cursor() const;