X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fview%2Fcursorpair.hpp;h=fc9f0d1ba6f4a4edc718e869bfe61dd381588641;hb=415341a11f0023cc9cec7b62cf8058c84c8b7ea6;hp=47ca694bc07b622fdad6dcdcef17a7222651496d;hpb=2fae5107535c39adde322393d2f6d18098c0154e;p=pulseview.git diff --git a/pv/view/cursorpair.hpp b/pv/view/cursorpair.hpp index 47ca694..fc9f0d1 100644 --- a/pv/view/cursorpair.hpp +++ b/pv/view/cursorpair.hpp @@ -74,11 +74,20 @@ public: public: QRectF label_rect(const QRectF &rect) const; - void paint_label(QPainter &p, const QRect &rect); - - void draw_viewport_background(QPainter &p, const QRect &rect); + /** + * Paints the marker's label to the ruler. + * @param p The painter to draw with. + * @param rect The rectangle of the ruler client area. + * @param hover true if the label is being hovered over by the mouse. + */ + void paint_label(QPainter &p, const QRect &rect, bool hover); - void draw_viewport_foreground(QPainter &p, const QRect &rect); + /** + * Paints the background layer of the item with a QPainter + * @param p the QPainter to paint into. + * @param pp the painting parameters object to paint with. + **/ + void paint_back(QPainter &p, const ViewItemPaintParams &pp); void compute_text_size(QPainter &p, unsigned int prefix);