Contains detailed styling information relating to how a layout legend should be rendered.
More...
#include <qgslegendstyle.h>
Contains detailed styling information relating to how a layout legend should be rendered.
Definition at line 35 of file qgslegendstyle.h.
◆ Side
Margin sides.
Enumerator |
---|
Top | Top side.
|
Bottom | Bottom side.
|
Left | Left side.
|
Right | Right side.
|
Definition at line 54 of file qgslegendstyle.h.
◆ Style
Component of legends which can be styled.
Enumerator |
---|
Undefined | Should not happen, only if corrupted project file.
|
Hidden | Special style, item is hidden including margins around.
|
Title | Legend title.
|
Group | Legend group title.
|
Subgroup | Legend subgroup title.
|
Symbol | Symbol icon (excluding label)
|
SymbolLabel | Symbol label (excluding icon)
|
Definition at line 40 of file qgslegendstyle.h.
◆ QgsLegendStyle()
QgsLegendStyle::QgsLegendStyle |
( |
| ) |
|
◆ alignment()
Qt::Alignment QgsLegendStyle::alignment |
( |
| ) |
const |
|
inline |
◆ font()
QFont QgsLegendStyle::font |
( |
| ) |
const |
|
inline |
◆ indent()
double QgsLegendStyle::indent |
( |
| ) |
const |
|
inline |
◆ margin()
double QgsLegendStyle::margin |
( |
Side |
side | ) |
|
|
inline |
Returns the margin (in mm) for the specified side of the component.
- Note
- Not all legend components respect all margin side settings!
- See also
- setMargin()
Definition at line 91 of file qgslegendstyle.h.
◆ readXml()
◆ rfont()
QFont & QgsLegendStyle::rfont |
( |
| ) |
|
|
inline |
Returns a modifiable reference to the component's font.
- See also
- setFont()
- Note
- Not available in Python bindings
Definition at line 82 of file qgslegendstyle.h.
◆ setAlignment()
void QgsLegendStyle::setAlignment |
( |
Qt::Alignment |
alignment | ) |
|
|
inline |
◆ setFont()
void QgsLegendStyle::setFont |
( |
const QFont & |
font | ) |
|
|
inline |
◆ setIndent()
void QgsLegendStyle::setIndent |
( |
double |
indent | ) |
|
|
inline |
◆ setMargin() [1/2]
void QgsLegendStyle::setMargin |
( |
double |
margin | ) |
|
◆ setMargin() [2/2]
void QgsLegendStyle::setMargin |
( |
Side |
side, |
|
|
double |
margin |
|
) |
| |
|
inline |
Sets the margin (in mm) for the specified side of the component.
- Note
- Not all legend components respect all margin side settings!
- See also
- margin()
Definition at line 100 of file qgslegendstyle.h.
◆ styleFromName()
◆ styleLabel()
QString QgsLegendStyle::styleLabel |
( |
Style |
s | ) |
|
|
static |
◆ styleName()
QString QgsLegendStyle::styleName |
( |
Style |
s | ) |
|
|
static |
◆ writeXml()
The documentation for this class was generated from the following files: