QGIS API Documentation 3.40.0-Bratislava (b56115d8743)
|
Encapsulates the details of a highlight in a scrollbar, used alongside QgsScrollBarHighlightController. More...
#include <qgsdecoratedscrollbar.h>
Public Types | |
enum class | Priority : int { Invalid = -1 , LowPriority = 0 , NormalPriority = 1 , HighPriority = 2 , HighestPriority = 3 } |
Priority, which dictates how overlapping highlights are rendered. More... | |
Public Member Functions | |
QgsScrollBarHighlight ()=default | |
QgsScrollBarHighlight (int category, int position, const QColor &color, QgsScrollBarHighlight::Priority priority=QgsScrollBarHighlight::Priority::NormalPriority) | |
Constructor for QgsScrollBarHighlight. | |
Public Attributes | |
int | category = -1 |
Category ID. | |
QColor | color |
Highlight color. | |
int | position = -1 |
Position in scroll bar. | |
QgsScrollBarHighlight::Priority | priority = QgsScrollBarHighlight::Priority::Invalid |
Priority, which dictates how overlapping highlights are rendered. | |
Encapsulates the details of a highlight in a scrollbar, used alongside QgsScrollBarHighlightController.
Definition at line 39 of file qgsdecoratedscrollbar.h.
|
strong |
Priority, which dictates how overlapping highlights are rendered.
Definition at line 46 of file qgsdecoratedscrollbar.h.
PRIVATE QgsScrollBarHighlight::QgsScrollBarHighlight | ( | int | category, |
int | position, | ||
const QColor & | color, | ||
QgsScrollBarHighlight::Priority | priority = QgsScrollBarHighlight::Priority::NormalPriority |
||
) |
Constructor for QgsScrollBarHighlight.
Definition at line 312 of file qgsdecoratedscrollbar.cpp.
|
default |
int QgsScrollBarHighlight::category = -1 |
Category ID.
Definition at line 63 of file qgsdecoratedscrollbar.h.
QColor QgsScrollBarHighlight::color |
Highlight color.
Definition at line 69 of file qgsdecoratedscrollbar.h.
int QgsScrollBarHighlight::position = -1 |
Position in scroll bar.
Definition at line 66 of file qgsdecoratedscrollbar.h.
QgsScrollBarHighlight::Priority QgsScrollBarHighlight::priority = QgsScrollBarHighlight::Priority::Invalid |
Priority, which dictates how overlapping highlights are rendered.
Definition at line 72 of file qgsdecoratedscrollbar.h.