QGIS API Documentation  3.10.0-A Coruña (6c816b4204)
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. More...
 
double columnRight = 0.0
 Right side of current legend column. More...
 
Q_NOWARN_DEPRECATED_POP QgsRenderContextcontext = 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...
 
Q_DECL_DEPRECATED QPointF point
 Top-left corner of the legend item. More...
 
double top = 0.0
 Top y-position of legend item. More...
 

Detailed Description

Definition at line 96 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 131 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 139 of file qgslayertreemodellegendnode.h.

◆ context

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

Render context, if available.

Definition at line 103 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 117 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 146 of file qgslayertreemodellegendnode.h.

◆ painter

QPainter* QgsLayerTreeModelLegendNode::ItemContext::painter = nullptr

Painter.

Definition at line 105 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 111 of file qgslayertreemodellegendnode.h.

◆ top

double QgsLayerTreeModelLegendNode::ItemContext::top = 0.0

Top y-position of legend item.

Since
QGIS 3.10

Definition at line 123 of file qgslayertreemodellegendnode.h.


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