QGIS API Documentation 3.30.0-'s-Hertogenbosch (f186b8efe0)
QgsTextRenderer Member List

This is the complete list of members for QgsTextRenderer, including all inherited members.

convertQtHAlignment(Qt::Alignment alignment)QgsTextRendererstatic
convertQtVAlignment(Qt::Alignment alignment)QgsTextRendererstatic
drawDocument(const QRectF &rect, const QgsTextFormat &format, const QgsTextDocument &document, const QgsTextDocumentMetrics &metrics, QgsRenderContext &context, Qgis::TextHorizontalAlignment horizontalAlignment=Qgis::TextHorizontalAlignment::Left, Qgis::TextVerticalAlignment verticalAlignment=Qgis::TextVerticalAlignment::Top, double rotation=0, Qgis::TextLayoutMode mode=Qgis::TextLayoutMode::Rectangle, Qgis::TextRendererFlags flags=Qgis::TextRendererFlags())QgsTextRendererstatic
drawPart(const QRectF &rect, double rotation, Qgis::TextHorizontalAlignment alignment, const QStringList &textLines, QgsRenderContext &context, const QgsTextFormat &format, Qgis::TextComponent part, bool drawAsOutlines=true)QgsTextRendererstatic
drawPart(QPointF origin, double rotation, Qgis::TextHorizontalAlignment alignment, const QStringList &textLines, QgsRenderContext &context, const QgsTextFormat &format, Qgis::TextComponent part, bool drawAsOutlines=true)QgsTextRendererstatic
drawText(const QRectF &rect, double rotation, Qgis::TextHorizontalAlignment alignment, const QStringList &textLines, QgsRenderContext &context, const QgsTextFormat &format, bool drawAsOutlines=true, Qgis::TextVerticalAlignment vAlignment=Qgis::TextVerticalAlignment::Top, Qgis::TextRendererFlags flags=Qgis::TextRendererFlags(), Qgis::TextLayoutMode mode=Qgis::TextLayoutMode::Rectangle)QgsTextRendererstatic
drawText(QPointF point, double rotation, Qgis::TextHorizontalAlignment alignment, const QStringList &textLines, QgsRenderContext &context, const QgsTextFormat &format, bool drawAsOutlines=true)QgsTextRendererstatic
FONT_WORKAROUND_SCALEQgsTextRendererstatic
fontMetrics(QgsRenderContext &context, const QgsTextFormat &format, double scaleFactor=1.0)QgsTextRendererstatic
QgsLabelPreviewQgsTextRendererfriend
QgsVectorLayerLabelProviderQgsTextRendererfriend
sizeToPixel(double size, const QgsRenderContext &c, Qgis::RenderUnit unit, const QgsMapUnitScale &mapUnitScale=QgsMapUnitScale())QgsTextRendererstatic
textHeight(const QgsRenderContext &context, const QgsTextFormat &format, const QStringList &textLines, Qgis::TextLayoutMode mode=Qgis::TextLayoutMode::Point, QFontMetricsF *fontMetrics=nullptr, Qgis::TextRendererFlags flags=Qgis::TextRendererFlags(), double maxLineWidth=0)QgsTextRendererstatic
textHeight(const QgsRenderContext &context, const QgsTextFormat &format, QChar character, bool includeEffects=false)QgsTextRendererstatic
textRequiresWrapping(const QgsRenderContext &context, const QString &text, double width, const QgsTextFormat &format)QgsTextRendererstatic
textWidth(const QgsRenderContext &context, const QgsTextFormat &format, const QStringList &textLines, QFontMetricsF *fontMetrics=nullptr)QgsTextRendererstatic
wrappedText(const QgsRenderContext &context, const QString &text, double width, const QgsTextFormat &format)QgsTextRendererstatic