|
| QgsLegendSettings () |
|
double | boxSpace () const |
| Returns the legend box space (in millimeters), which is the empty margin around the inside of the legend's rectangle. More...
|
|
int | columnCount () const |
| Returns the desired minimum number of columns to show in the legend. More...
|
|
double | columnSpace () const |
| Returns the margin space between adjacent columns (in millimeters). More...
|
|
Q_DECL_DEPRECATED int | dpi () const |
|
bool | drawRasterStroke () const |
| Returns whether a stroke will be drawn around raster symbol items. More...
|
|
void | drawText (QPainter *p, const QRectF &rect, const QString &text, const QFont &font, Qt::AlignmentFlag halignment=Qt::AlignLeft, Qt::AlignmentFlag valignment=Qt::AlignTop, int flags=Qt::TextWordWrap) const |
| Like the above, but with a rectangle for multiline text. More...
|
|
void | drawText (QPainter *p, double x, double y, const QString &text, const QFont &font) const |
| Draws Text. More...
|
|
bool | equalColumnWidth () const |
| Returns true if all columns should have equal widths. More...
|
|
QStringList | evaluateItemText (const QString &text, const QgsExpressionContext &context) const |
| Splits a string using the wrap char taking into account handling empty wrap char which means no wrapping. More...
|
|
double | fontAscentMillimeters (const QFont &font) const |
| Returns the font ascent in Millimeters (considers upscaling and downscaling with FONT_WORKAROUND_SCALE. More...
|
|
QColor | fontColor () const |
| Returns the font color used for legend items. More...
|
|
double | fontDescentMillimeters (const QFont &font) const |
| Returns the font descent in Millimeters (considers upscaling and downscaling with FONT_WORKAROUND_SCALE. More...
|
|
double | fontHeightCharacterMM (const QFont &font, QChar c) const |
| Returns the font height of a character in millimeters. More...
|
|
QColor | layerFontColor () const |
| Returns layer font color, defaults to fontColor() More...
|
|
double | lineSpacing () const |
| Returns the line spacing to use between lines of legend text. More...
|
|
Q_DECL_DEPRECATED double | mapScale () const |
| Returns the legend map scale. More...
|
|
Q_DECL_DEPRECATED double | mapUnitsPerPixel () const |
| Returns the factor of map units per pixel for symbols with size given in map units calculated by dpi and mmPerMapUnit. More...
|
|
double | maximumSymbolSize () const |
| Returns the maximum symbol size (in mm). More...
|
|
double | minimumSymbolSize () const |
| Returns the minimum symbol size (in mm). More...
|
|
Q_DECL_DEPRECATED double | mmPerMapUnit () const |
|
double | pixelFontSize (double pointSize) const |
| Calculates font to from point size to pixel size. More...
|
|
QColor | rasterStrokeColor () const |
| Returns the stroke color for the stroke drawn around raster symbol items. More...
|
|
double | rasterStrokeWidth () const |
| Returns the stroke width (in millimeters) for the stroke drawn around raster symbol items. More...
|
|
QgsLegendStyle & | rstyle (QgsLegendStyle::Style s) |
| Returns modifiable reference to the style for a legend component. More...
|
|
QFont | scaledFontPixelSize (const QFont &font) const |
| Returns a font where size is in pixel and font size is upscaled with FONT_WORKAROUND_SCALE. More...
|
|
void | setBoxSpace (double s) |
| Sets the legend box space (in millimeters), which is the empty margin around the inside of the legend's rectangle. More...
|
|
void | setColumnCount (int c) |
| Sets the desired minimum number of columns to show in the legend. More...
|
|
void | setColumnSpace (double s) |
| Sets the margin space between adjacent columns (in millimeters). More...
|
|
Q_DECL_DEPRECATED void | setDpi (int dpi) |
|
void | setDrawRasterStroke (bool enabled) |
| Sets whether a stroke will be drawn around raster symbol items. More...
|
|
void | setEqualColumnWidth (bool s) |
| Sets whether all columns should have equal widths. More...
|
|
void | setFontColor (const QColor &c) |
| Sets the font color used for legend items. More...
|
|
void | setLayerFontColor (const QColor &fontColor) |
| Sets layer font color to fontColor Overrides fontColor() More...
|
|
void | setLineSpacing (double s) |
| Sets the line spacing to use between lines of legend text. More...
|
|
Q_DECL_DEPRECATED void | setMapScale (double scale) |
| Sets the legend map scale. More...
|
|
Q_DECL_DEPRECATED void | setMapUnitsPerPixel (double mapUnitsPerPixel) |
| Sets the mmPerMapUnit calculated by mapUnitsPerPixel mostly taken from the map settings. More...
|
|
void | setMaximumSymbolSize (double size) |
| Set the maximum symbol size for symbol (in millimeters). More...
|
|
void | setMinimumSymbolSize (double size) |
| Set the minimum symbol size for symbol (in millimeters). More...
|
|
Q_DECL_DEPRECATED void | setMmPerMapUnit (double mmPerMapUnit) |
|
void | setRasterStrokeColor (const QColor &color) |
| Sets the stroke color for the stroke drawn around raster symbol items. More...
|
|
void | setRasterStrokeWidth (double width) |
| Sets the stroke width for the stroke drawn around raster symbol items. More...
|
|
void | setSplitLayer (bool s) |
| Sets whether layer components can be split over multiple columns. More...
|
|
void | setStyle (QgsLegendStyle::Style s, const QgsLegendStyle &style) |
| Sets the style for a legend component. More...
|
|
void | setSymbolAlignment (Qt::AlignmentFlag alignment) |
| Sets the alignment for placement of legend symbols. More...
|
|
void | setSymbolSize (QSizeF s) |
| Sets the default symbol size (in millimeters) used for legend items. More...
|
|
void | setTitle (const QString &t) |
| Sets the title for the legend, which will be rendered above all legend items. More...
|
|
void | setTitleAlignment (Qt::AlignmentFlag alignment) |
| Sets the alignment of the legend title. More...
|
|
Q_DECL_DEPRECATED void | setUseAdvancedEffects (bool use) |
|
void | setWmsLegendSize (QSizeF s) |
| Sets the desired size (in millimeters) of WMS legend graphics shown in the legend. More...
|
|
void | setWrapChar (const QString &t) |
| Sets a string to use as a wrapping character. More...
|
|
bool | splitLayer () const |
| Returns true if layer components can be split over multiple columns. More...
|
|
QStringList | splitStringForWrapping (const QString &stringToSplt) const |
| Splits a string using the wrap char taking into account handling empty wrap char which means no wrapping. More...
|
|
QgsLegendStyle | style (QgsLegendStyle::Style s) const |
| Returns the style for a legend component. More...
|
|
Qt::AlignmentFlag | symbolAlignment () const |
| Returns the alignment for placement of legend symbols. More...
|
|
QSizeF | symbolSize () const |
| Returns the default symbol size (in millimeters) used for legend items. More...
|
|
double | textWidthMillimeters (const QFont &font, const QString &text) const |
| Returns the font width in millimeters (considers upscaling and downscaling with FONT_WORKAROUND_SCALE. More...
|
|
QString | title () const |
| Returns the title for the legend, which will be rendered above all legend items. More...
|
|
Qt::AlignmentFlag | titleAlignment () const |
| Returns the alignment of the legend title. More...
|
|
Q_DECL_DEPRECATED bool | useAdvancedEffects () const |
|
QSizeF | wmsLegendSize () const |
| Returns the size (in millimeters) of WMS legend graphics shown in the legend. More...
|
|
QString | wrapChar () const |
| Returns the string used as a wrapping character. More...
|
|