16 #ifndef QGSLEGENDRENDERER_H 
   17 #define QGSLEGENDRENDERER_H 
   19 #include "qgis_core.h" 
   89     Q_DECL_DEPRECATED 
void drawLegend( QPainter *painter ) 
SIP_DEPRECATED;
 
  130     class LegendComponent
 
  134         LegendComponent() = 
default;
 
  136         QObject *item = 
nullptr;
 
  153         double labelXOffset = 0.0;
 
  159         double maxSiblingSymbolWidth = 0.0;
 
  176     class LegendComponentGroup
 
  181         QList<LegendComponent> components;
 
  184         QSizeF size = QSizeF( 0, 0 );
 
  192         bool placeColumnBreakBeforeGroup = 
false;
 
  225     int setColumns( QList<LegendComponentGroup> &groupList );
 
  230     double spaceAboveGroup( 
const LegendComponentGroup &group );
 
  254     QSizeF drawTitle( 
QgsRenderContext &context, 
double top, Qt::AlignmentFlag halignment = Qt::AlignLeft, 
double legendWidth = 0 );
 
  264     QSizeF drawGroup( 
const LegendComponentGroup &group, 
QgsRenderContext &context, ColumnContext columnContext, 
double top = 0 );
 
  300     void widthAndOffsetForTitleText( 
const Qt::AlignmentFlag halignment, 
double legendWidth, 
double &width, 
double &offset );
 
  303 #endif // QGSLEGENDRENDERER_H