/************************************************************************ * This file has been generated automatically from * * * * src/core/qgslegendstyle.h * * * * Do not edit manually ! Edit header and run scripts/sipify.pl again * ************************************************************************/ class QgsLegendStyle { %Docstring Composer legend components style %End %TypeHeaderCode #include "qgslegendstyle.h" %End public: enum Style { Undefined, Hidden, Title, Group, Subgroup, Symbol, SymbolLabel }; enum Side //! margin side { Top, Bottom, Left, Right }; QgsLegendStyle(); QFont font() const; %Docstring :rtype: QFont %End void setFont( const QFont &font ); double margin( Side side ); %Docstring :rtype: float %End void setMargin( Side side, double margin ); void setMargin( double margin ); %Docstring set all margins %End void writeXml( const QString &name, QDomElement &elem, QDomDocument &doc ) const; void readXml( const QDomElement &elem, const QDomDocument &doc ); static QString styleName( Style s ); %Docstring Get name for style, used in project file :rtype: str %End static Style styleFromName( const QString &styleName ); %Docstring Get style from name, used in project file :rtype: Style %End static QString styleLabel( Style s ); %Docstring Get style label, translated, used in UI :rtype: str %End }; /************************************************************************ * This file has been generated automatically from * * * * src/core/qgslegendstyle.h * * * * Do not edit manually ! Edit header and run scripts/sipify.pl again * ************************************************************************/