]> sigrok.org Git - pulseview.git/blobdiff - pv/view/cursor.hpp
ViewWidget: Added mouse_down
[pulseview.git] / pv / view / cursor.hpp
index fab7497e18830c53128277be14a801742105afb4..03b97a17789e948e4062dc44f484274d238fdcc7 100644 (file)
@@ -48,6 +48,11 @@ 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.
         */
@@ -58,7 +63,7 @@ public:
         * @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<Cursor> get_other_cursor() const;