16 #ifndef QGSLEGENDRENDERER_H 17 #define QGSLEGENDRENDERER_H 60 void drawLegend(
QPainter* painter );
103 Atom(): size(
QSizeF( 0, 0 ) ), column( 0 ) {}
121 QSizeF drawTitle(
QPainter* painter =
nullptr,
QPointF point =
QPointF(), Qt::AlignmentFlag halignment = Qt::AlignLeft,
double legendWidth = 0 );
123 double spaceAboveAtom(
const Atom& atom );
151 #endif // QGSLEGENDRENDERER_H Layer tree group node serves as a container for layers and further groups.
void setLegendSize(QSizeF s)
Set the preferred resulting legend size.
The QgsLayerTreeModel class is model implementation for Qt item views framework.
QSizeF legendSize() const
Find out preferred legend size set by the client.
The QgsLegendSettings class stores the appearance and layout settings for legend drawing with QgsLege...
This class is a base class for nodes in a layer tree.
The QgsLegendRendererItem class is abstract interface for legend items returned from QgsMapLayerLegen...
Layer tree node points to a map layer.
The QgsLegendRenderer class handles automatic layout and rendering of legend.