18#ifndef QGSLEGENDSTYLE_H 
   19#define QGSLEGENDSTYLE_H 
   25#include <QDomDocument> 
   65    Q_DECL_DEPRECATED 
void setFont( 
const QFont &font ) 
SIP_DEPRECATED;
 
   95    double margin( 
Side side )
 const { 
return mMarginMap.value( side ); }
 
  110    void setMargin( 
double margin );
 
  126    void setAlignment( Qt::Alignment alignment ) { mAlignment = alignment; }
 
  134    double indent()
 const { 
return mIndent; }
 
  188    QMap<Side, double> mMarginMap;
 
  189    Qt::Alignment mAlignment = Qt::AlignLeft;
 
 
LegendComponent
Component of legends which can be styled.
 
Contains detailed styling information relating to how a layout legend should be rendered.
 
Q_DECL_DEPRECATED QFont font() const
Returns the font used for rendering this legend component.
 
void setIndent(double indent)
Sets the indent (in mm) of a group or subgroup.
 
Qt::Alignment alignment() const
Returns the alignment for the legend component.
 
void setAlignment(Qt::Alignment alignment)
Sets the alignment for the legend component.
 
QgsTextFormat & textFormat()
Returns the text format used for rendering this legend component.
 
void setMargin(Side side, double margin)
Sets the margin (in mm) for the specified side of the component.
 
QgsTextFormat textFormat() const
Returns the text format used for rendering this legend component.
 
double margin(Side side) const
Returns the margin (in mm) for the specified side of the component.
 
double indent() const
Returns the indent (in mm) of a group or subgroup.
 
void setTextFormat(const QgsTextFormat &format)
Sets the text format used for rendering this legend component.
 
A container for the context for various read/write operations on objects.
 
Contains information about the context of a rendering operation.
 
Container for all settings relating to text rendering.