QGIS API Documentation 3.36.0-Maidenhead (09951dc0acf)
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
QgsLayerTreeModelLegendNode::ItemContext Struct Reference

#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 QgsRenderContextcontext = 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 QgsTextDocumenttextDocument = nullptr
 Optional text document.
 
const QgsTextDocumentMetricstextDocumentMetrics = nullptr
 Optional text document metrics.
 
double top = 0.0
 Top y-position of legend item.
 

Detailed Description

Definition at line 179 of file qgslayertreemodellegendnode.h.

Constructor & Destructor Documentation

◆ ItemContext()

Q_NOWARN_DEPRECATED_PUSH QgsLayerTreeModelLegendNode::ItemContext::ItemContext ( )
default

Member Data Documentation

◆ columnLeft

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.

Since
QGIS 3.10

Definition at line 214 of file qgslayertreemodellegendnode.h.

◆ columnRight

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.

Since
QGIS 3.10

Definition at line 222 of file qgslayertreemodellegendnode.h.

◆ context

Q_NOWARN_DEPRECATED_POP QgsRenderContext* QgsLayerTreeModelLegendNode::ItemContext::context = nullptr

Render context, if available.

Definition at line 186 of file qgslayertreemodellegendnode.h.

◆ labelXOffset

Q_DECL_DEPRECATED double QgsLayerTreeModelLegendNode::ItemContext::labelXOffset = 0.0

Offset from the left side where label should start.

Deprecated:
use columnLeft, columnRight instead.

Definition at line 200 of file qgslayertreemodellegendnode.h.

◆ maxSiblingSymbolWidth

double QgsLayerTreeModelLegendNode::ItemContext::maxSiblingSymbolWidth = 0.0

Largest symbol width, considering all other sibling legend components associated with the current component.

Since
QGIS 3.10

Definition at line 229 of file qgslayertreemodellegendnode.h.

◆ painter

QPainter* QgsLayerTreeModelLegendNode::ItemContext::painter = nullptr

Painter.

Definition at line 188 of file qgslayertreemodellegendnode.h.

◆ patchShape

QgsLegendPatchShape QgsLayerTreeModelLegendNode::ItemContext::patchShape

The patch shape to render for the node.

Since
QGIS 3.14

Definition at line 236 of file qgslayertreemodellegendnode.h.

◆ patchSize

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.

Since
QGIS 3.14

Definition at line 245 of file qgslayertreemodellegendnode.h.

◆ point

Q_DECL_DEPRECATED QPointF QgsLayerTreeModelLegendNode::ItemContext::point

Top-left corner of the legend item.

Deprecated:
Use top, columnLeft, columnRight instead.

Definition at line 194 of file qgslayertreemodellegendnode.h.

◆ screenProperties

QgsScreenProperties QgsLayerTreeModelLegendNode::ItemContext::screenProperties

Destination screen properties.

Since
QGIS 3.32

Definition at line 266 of file qgslayertreemodellegendnode.h.

◆ textDocument

const QgsTextDocument* QgsLayerTreeModelLegendNode::ItemContext::textDocument = nullptr

Optional text document.

Since
QGIS 3.30

Definition at line 252 of file qgslayertreemodellegendnode.h.

◆ textDocumentMetrics

const QgsTextDocumentMetrics* QgsLayerTreeModelLegendNode::ItemContext::textDocumentMetrics = nullptr

Optional text document metrics.

Since
QGIS 3.30

Definition at line 259 of file qgslayertreemodellegendnode.h.

◆ top

double QgsLayerTreeModelLegendNode::ItemContext::top = 0.0

Top y-position of legend item.

Since
QGIS 3.10

Definition at line 206 of file qgslayertreemodellegendnode.h.


The documentation for this struct was generated from the following file: