QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
#include <qgslayertreemodellegendnode.h>
Public Member Functions | |
Q_NOWARN_DEPRECATED_PUSH | ItemContext ()=default |
Public Attributes | |
double | columnLeft = 0.0 |
Left side of current legend column. More... | |
double | columnRight = 0.0 |
Right side of current legend column. More... | |
Q_NOWARN_DEPRECATED_POP QgsRenderContext * | context = nullptr |
Render context, if available. More... | |
Q_DECL_DEPRECATED double | labelXOffset = 0.0 |
Offset from the left side where label should start. More... | |
double | maxSiblingSymbolWidth = 0.0 |
Largest symbol width, considering all other sibling legend components associated with the current component. More... | |
QPainter * | painter = nullptr |
Painter. More... | |
QgsLegendPatchShape | patchShape |
The patch shape to render for the node. More... | |
QSizeF | patchSize |
Symbol patch size to render for the node. More... | |
Q_DECL_DEPRECATED QPointF | point |
Top-left corner of the legend item. More... | |
double | top = 0.0 |
Top y-position of legend item. More... | |
Definition at line 136 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 171 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 179 of file qgslayertreemodellegendnode.h.
Q_NOWARN_DEPRECATED_POP QgsRenderContext* QgsLayerTreeModelLegendNode::ItemContext::context = nullptr |
Render context, if available.
Definition at line 143 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 157 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 186 of file qgslayertreemodellegendnode.h.
QPainter* QgsLayerTreeModelLegendNode::ItemContext::painter = nullptr |
Painter.
Definition at line 145 of file qgslayertreemodellegendnode.h.
QgsLegendPatchShape QgsLayerTreeModelLegendNode::ItemContext::patchShape |
The patch shape to render for the node.
Definition at line 193 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 202 of file qgslayertreemodellegendnode.h.
Q_DECL_DEPRECATED QPointF QgsLayerTreeModelLegendNode::ItemContext::point |
Top-left corner of the legend item.
Definition at line 151 of file qgslayertreemodellegendnode.h.
double QgsLayerTreeModelLegendNode::ItemContext::top = 0.0 |
Top y-position of legend item.
Definition at line 163 of file qgslayertreemodellegendnode.h.