Class: QgsScrollBarHighlight¶
- class qgis.gui.QgsScrollBarHighlight¶
Bases:
sip.wrapper
Encapsulates the details of a highlight in a scrollbar, used alongside
QgsScrollBarHighlightController
.Added in version 3.38.
QgsScrollBarHighlight(category: int, position: int, color: Union[QColor, Qt.GlobalColor], priority: QgsScrollBarHighlight.Priority = QgsScrollBarHighlight.Priority.NormalPriority) Constructor for QgsScrollBarHighlight.
QgsScrollBarHighlight() Default constructor for QgsScrollBarHighlight.
QgsScrollBarHighlight(a0:
QgsScrollBarHighlight
)- class Priority(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)¶
Bases:
enum.IntEnum
Priority, which dictates how overlapping highlights are rendered
Invalid
: InvalidLowPriority
: Low priority, rendered below all other highlightsNormalPriority
: Normal priorityHighPriority
: High priorityHighestPriority
: Highest priority, rendered above all other highlights
- HighPriority = 2¶
- HighestPriority = 3¶
- Invalid = -1¶
- LowPriority = 0¶
- NormalPriority = 1¶
- category¶
- color¶
- position¶
- priority¶