| 
    QGIS API Documentation 3.99.0-Master (f78f5286a64)
    
   | 
 
Adds highlights (colored markers) to a scrollbar. More...
#include <qgsdecoratedscrollbar.h>
Public Member Functions | |
| QgsScrollBarHighlightController () | |
| ~QgsScrollBarHighlightController () | |
| void | addHighlight (const QgsScrollBarHighlight &highlight) | 
| Adds a highlight to the scrollbar.   | |
| QHash< int, QVector< QgsScrollBarHighlight > > | highlights () const | 
| Returns the hash of all highlights in the scrollbar, with highlight categories as hash keys.   | |
| double | lineHeight () const | 
| Returns the line height for text associated with the scroll area.   | |
| double | margin () const | 
| Returns the document margins for the associated viewport.   | |
| void | removeAllHighlights () | 
| Removes all highlights from the scroll bar.   | |
| void | removeHighlights (int category) | 
| Removes all highlights with matching category from the scrollbar.   | |
| QAbstractScrollArea * | scrollArea () const | 
| Returns the associated scroll area.   | |
| QScrollBar * | scrollBar () const | 
| Returns the associated scroll bar.   | |
| void | setLineHeight (double height) | 
| Sets the line height for text associated with the scroll area.   | |
| void | setMargin (double margin) | 
| Sets the document margin for the associated viewport.   | |
| void | setScrollArea (QAbstractScrollArea *scrollArea) | 
| Sets the associated scroll bar.   | |
| void | setVisibleRange (double visibleRange) | 
| Sets the visible range of the scroll area (i.e.   | |
| double | visibleRange () const | 
| Returns the visible range of the scroll area (i.e.   | |
Adds highlights (colored markers) to a scrollbar.
Definition at line 79 of file qgsdecoratedscrollbar.h.
      
  | 
  default | 
| QgsScrollBarHighlightController::~QgsScrollBarHighlightController | ( | ) | 
Definition at line 301 of file qgsdecoratedscrollbar.cpp.
| void QgsScrollBarHighlightController::addHighlight | ( | const QgsScrollBarHighlight & | highlight | ) | 
Adds a highlight to the scrollbar.
Definition at line 375 of file qgsdecoratedscrollbar.cpp.
| QHash< int, QVector< QgsScrollBarHighlight > > QgsScrollBarHighlightController::highlights | ( | ) | const | 
Returns the hash of all highlights in the scrollbar, with highlight categories as hash keys.
Definition at line 370 of file qgsdecoratedscrollbar.cpp.
| double QgsScrollBarHighlightController::lineHeight | ( | ) | const | 
Returns the line height for text associated with the scroll area.
Definition at line 340 of file qgsdecoratedscrollbar.cpp.
| double QgsScrollBarHighlightController::margin | ( | ) | const | 
Returns the document margins for the associated viewport.
Definition at line 360 of file qgsdecoratedscrollbar.cpp.
| void QgsScrollBarHighlightController::removeAllHighlights | ( | ) | 
Removes all highlights from the scroll bar.
Definition at line 393 of file qgsdecoratedscrollbar.cpp.
| void QgsScrollBarHighlightController::removeHighlights | ( | int | category | ) | 
Removes all highlights with matching category from the scrollbar.
Definition at line 384 of file qgsdecoratedscrollbar.cpp.
| QAbstractScrollArea * QgsScrollBarHighlightController::scrollArea | ( | ) | const | 
Returns the associated scroll area.
Definition at line 315 of file qgsdecoratedscrollbar.cpp.
| QScrollBar * QgsScrollBarHighlightController::scrollBar | ( | ) | const | 
Returns the associated scroll bar.
Definition at line 307 of file qgsdecoratedscrollbar.cpp.
| void QgsScrollBarHighlightController::setLineHeight | ( | double | height | ) | 
Sets the line height for text associated with the scroll area.
Definition at line 345 of file qgsdecoratedscrollbar.cpp.
| void QgsScrollBarHighlightController::setMargin | ( | double | margin | ) | 
Sets the document margin for the associated viewport.
Definition at line 365 of file qgsdecoratedscrollbar.cpp.
| void QgsScrollBarHighlightController::setScrollArea | ( | QAbstractScrollArea * | scrollArea | ) | 
Sets the associated scroll bar.
Definition at line 320 of file qgsdecoratedscrollbar.cpp.
| void QgsScrollBarHighlightController::setVisibleRange | ( | double | visibleRange | ) | 
Sets the visible range of the scroll area (i.e.
the viewport's height).
Definition at line 355 of file qgsdecoratedscrollbar.cpp.
| double QgsScrollBarHighlightController::visibleRange | ( | ) | const | 
Returns the visible range of the scroll area (i.e.
the viewport's height).
Definition at line 350 of file qgsdecoratedscrollbar.cpp.