16 #ifndef QGSTEXTRENDERER_H
17 #define QGSTEXTRENDERER_H
20 #include "qgis_core.h"
90 static void drawText(
const QRectF &rect,
double rotation, HAlignment alignment,
const QStringList &textLines,
92 bool drawAsOutlines =
true );
107 static void drawText( QPointF point,
double rotation, HAlignment alignment,
const QStringList &textLines,
109 bool drawAsOutlines =
true );
129 Q_DECL_DEPRECATED
static void drawPart(
const QRectF &rect,
double rotation, HAlignment alignment,
const QStringList &textLines,
151 Q_DECL_DEPRECATED static
void drawPart( QPointF origin,
double rotation, HAlignment alignment, const QStringList &textLines,
171 QFontMetricsF *fontMetrics =
nullptr );
182 QFontMetricsF *fontMetrics =
nullptr );
193 bool useOrigin =
false;
195 double rotation = 0.0;
197 double rotationOffset = 0.0;
211 double pictureBuffer = 0.0;
213 double dpiRatio = 1.0;
215 HAlignment hAlign = AlignLeft;
235 static void drawPart(
const QRectF &rect,
double rotation, HAlignment alignment,
const QgsTextDocument &document,
253 static void drawPart( QPointF origin,
double rotation, HAlignment alignment,
const QgsTextDocument &document,
258 const Component &component,
265 DrawMode mode = Rect );
268 const Component &component,
272 const Component &component,
276 const Component &component,
279 static void drawTextInternal( TextPart drawType,
282 const Component &component,
284 const QFontMetricsF *fontMetrics,
285 HAlignment alignment,
286 DrawMode mode = Rect );
289 friend class QgsLabelPreview;
297 #endif // QGSTEXTRENDERER_H