QGIS API Documentation
3.2.0-Bonn (bc43194)
|
Composer legend components style. More...
#include <qgslegendstyle.h>
Public Types | |
enum | Side { Top = 0, Bottom = 1, Left = 2, Right = 3 } |
Margin side. More... | |
enum | Style { Undefined, Hidden, Title, Group, Subgroup, Symbol, SymbolLabel } |
Public Member Functions | |
QgsLegendStyle () | |
QFont | font () const |
The font for this style. More... | |
double | margin (Side side) |
void | readXml (const QDomElement &elem, const QDomDocument &doc) |
QFont & | rfont () |
Modifiable reference to font. More... | |
void | setFont (const QFont &font) |
The font for this style. More... | |
void | setMargin (Side side, double margin) |
void | setMargin (double margin) |
Sets all margins. More... | |
void | writeXml (const QString &name, QDomElement &elem, QDomDocument &doc) const |
Static Public Member Functions | |
static Style | styleFromName (const QString &styleName) |
Gets style from name, used in project file. More... | |
static QString | styleLabel (Style s) |
Gets style label, translated, used in UI. More... | |
static QString | styleName (Style s) |
Gets name for style, used in project file. More... | |
Composer legend components style.
Definition at line 34 of file qgslegendstyle.h.
enum QgsLegendStyle::Side |
Definition at line 37 of file qgslegendstyle.h.
QgsLegendStyle::QgsLegendStyle | ( | ) |
Definition at line 29 of file qgslegendstyle.cpp.
|
inline |
The font for this style.
Definition at line 62 of file qgslegendstyle.h.
|
inline |
Definition at line 77 of file qgslegendstyle.h.
void QgsLegendStyle::readXml | ( | const QDomElement & | elem, |
const QDomDocument & | doc | ||
) |
Definition at line 66 of file qgslegendstyle.cpp.
|
inline |
Modifiable reference to font.
Definition at line 75 of file qgslegendstyle.h.
|
inline |
The font for this style.
Definition at line 67 of file qgslegendstyle.h.
|
inline |
Definition at line 78 of file qgslegendstyle.h.
void QgsLegendStyle::setMargin | ( | double | margin | ) |
Sets all margins.
Definition at line 40 of file qgslegendstyle.cpp.
|
static |
Gets style from name, used in project file.
Definition at line 104 of file qgslegendstyle.cpp.
|
static |
Gets style label, translated, used in UI.
Definition at line 115 of file qgslegendstyle.cpp.
|
static |
Gets name for style, used in project file.
Definition at line 82 of file qgslegendstyle.cpp.
void QgsLegendStyle::writeXml | ( | const QString & | name, |
QDomElement & | elem, | ||
QDomDocument & | doc | ||
) | const |
Definition at line 48 of file qgslegendstyle.cpp.