]> sigrok.org Git - pulseview.git/blobdiff - pv/view/cursor.hpp
SelectableItem: Moved in enabled(), and added to TriggerMarkers
[pulseview.git] / pv / view / cursor.hpp
index 9f0adeddbd8eb0bdd20e16ded2fd16d6036533cc..b23bd642b47130446a21b8fcf7b67c812acb7dc5 100644 (file)
@@ -48,6 +48,16 @@ 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.