QGIS API Documentation 3.41.0-Master (3440c17df1d)
|
#include <qgslayertreemodellegendnode.h>
Public Member Functions | |
Q_NOWARN_DEPRECATED_PUSH | ItemContext ()=default |
Public Attributes | |
double | columnLeft = 0.0 |
Left side of current legend column. | |
double | columnRight = 0.0 |
Right side of current legend column. | |
Q_NOWARN_DEPRECATED_POP QgsRenderContext * | context = nullptr |
Render context, if available. | |
Q_DECL_DEPRECATED double | labelXOffset = 0.0 |
Offset from the left side where label should start. | |
double | maxSiblingSymbolWidth = 0.0 |
Largest symbol width, considering all other sibling legend components associated with the current component. | |
QPainter * | painter = nullptr |
Painter. | |
QgsLegendPatchShape | patchShape |
The patch shape to render for the node. | |
QSizeF | patchSize |
Symbol patch size to render for the node. | |
Q_DECL_DEPRECATED QPointF | point |
Top-left corner of the legend item. | |
QgsScreenProperties | screenProperties |
Destination screen properties. | |
const QgsTextDocument * | textDocument = nullptr |
Optional text document. | |
const QgsTextDocumentMetrics * | textDocumentMetrics = nullptr |
Optional text document metrics. | |
double | top = 0.0 |
Top y-position of legend item. | |
Definition at line 180 of file qgslayertreemodellegendnode.h.
|
default |
double QgsLayerTreeModelLegendNode::ItemContext::columnLeft = 0.0 |
Left side of current legend column.
This should be used when determining where to render legend item content, correctly respecting the symbol and text alignment from the legend settings.
Definition at line 215 of file qgslayertreemodellegendnode.h.
double QgsLayerTreeModelLegendNode::ItemContext::columnRight = 0.0 |
Right side of current legend column.
This should be used when determining where to render legend item content, correctly respecting the symbol and text alignment from the legend settings.
Definition at line 223 of file qgslayertreemodellegendnode.h.
Q_NOWARN_DEPRECATED_POP QgsRenderContext* QgsLayerTreeModelLegendNode::ItemContext::context = nullptr |
Render context, if available.
Definition at line 187 of file qgslayertreemodellegendnode.h.
Q_DECL_DEPRECATED double QgsLayerTreeModelLegendNode::ItemContext::labelXOffset = 0.0 |
Offset from the left side where label should start.
Definition at line 201 of file qgslayertreemodellegendnode.h.
double QgsLayerTreeModelLegendNode::ItemContext::maxSiblingSymbolWidth = 0.0 |
Largest symbol width, considering all other sibling legend components associated with the current component.
Definition at line 230 of file qgslayertreemodellegendnode.h.
QPainter* QgsLayerTreeModelLegendNode::ItemContext::painter = nullptr |
Painter.
Definition at line 189 of file qgslayertreemodellegendnode.h.
QgsLegendPatchShape QgsLayerTreeModelLegendNode::ItemContext::patchShape |
The patch shape to render for the node.
Definition at line 237 of file qgslayertreemodellegendnode.h.
QSizeF QgsLayerTreeModelLegendNode::ItemContext::patchSize |
Symbol patch size to render for the node.
If either the width or height are zero, then the default width/height from QgsLegendSettings::symbolSize() should be used instead.
Definition at line 246 of file qgslayertreemodellegendnode.h.
Q_DECL_DEPRECATED QPointF QgsLayerTreeModelLegendNode::ItemContext::point |
Top-left corner of the legend item.
Definition at line 195 of file qgslayertreemodellegendnode.h.
QgsScreenProperties QgsLayerTreeModelLegendNode::ItemContext::screenProperties |
Destination screen properties.
Definition at line 267 of file qgslayertreemodellegendnode.h.
const QgsTextDocument* QgsLayerTreeModelLegendNode::ItemContext::textDocument = nullptr |
Optional text document.
Definition at line 253 of file qgslayertreemodellegendnode.h.
const QgsTextDocumentMetrics* QgsLayerTreeModelLegendNode::ItemContext::textDocumentMetrics = nullptr |
Optional text document metrics.
Definition at line 260 of file qgslayertreemodellegendnode.h.
double QgsLayerTreeModelLegendNode::ItemContext::top = 0.0 |
Top y-position of legend item.
Definition at line 207 of file qgslayertreemodellegendnode.h.