|
Krita Source Code Documentation
|
#include "KoSvgTextShape.h"#include "KoSvgTextShape_p.h"#include "KoSvgTextProperties.h"#include <KoClipMaskPainter.h>#include <KoColorBackground.h>#include <KoGradientBackground.h>#include <KoPathShape.h>#include <KoShapeStroke.h>#include <KoShapeRegistry.h>#include <KoShapeFactoryBase.h>#include <KoProperties.h>#include <KoClipMask.h>#include <KoInsets.h>#include <KoShapeGroup.h>#include <KoShapeGroupCommand.h>#include <kis_algebra_2d.h>#include <QPainter>#include <QtMath>#include <variant>Go to the source code of this file.
Functions | |
| QGradient * | cloneAndTransformGradient (const QGradient *grad, const QTransform &tf) |
| static void | inheritPaintProperties (const KisForest< KoSvgTextContentElement >::composition_iterator it, KoShapeStrokeModelSP &stroke, QSharedPointer< KoShapeBackground > &background, QVector< KoShape::PaintOrder > &paintOrder) |
| void | setRenderHints (QPainter &painter, const KoSvgText::TextRendering textRendering, const bool testAntialiasing) |
| QSharedPointer< KoShapeBackground > | transformBackgroundToBounds (QSharedPointer< KoShapeBackground > bg, const QRectF &oldBounds, const QRectF &newBounds) |
| KoShapeStrokeModelSP | transformStrokeBgToNewBounds (KoShapeStrokeModelSP stroke, const QRectF &oldBounds, const QRectF &newBounds, bool calcInsets=true) |
| QGradient * cloneAndTransformGradient | ( | const QGradient * | grad, |
| const QTransform & | tf ) |
Definition at line 310 of file KoSvgTextShape_p_output.cpp.
References KoFlake::cloneGradient().
|
static |
Definition at line 33 of file KoSvgTextShape_p_output.cpp.
References KoSvgTextProperties::FillId, KisForestDetail::hierarchyBegin(), KisForestDetail::hierarchyEnd(), KoSvgTextProperties::PaintOrder, and KoSvgTextProperties::StrokeId.
| void setRenderHints | ( | QPainter & | painter, |
| const KoSvgText::TextRendering | textRendering, | ||
| const bool | testAntialiasing ) |
Definition at line 57 of file KoSvgTextShape_p_output.cpp.
References KoSvgText::RenderingOptimizeSpeed.
| QSharedPointer< KoShapeBackground > transformBackgroundToBounds | ( | QSharedPointer< KoShapeBackground > | bg, |
| const QRectF & | oldBounds, | ||
| const QRectF & | newBounds ) |
Definition at line 325 of file KoSvgTextShape_p_output.cpp.
References KisAlgebra2D::absoluteToRelative(), cloneAndTransformGradient(), KoGradientBackground::gradient(), and KoGradientBackground::transform().
| KoShapeStrokeModelSP transformStrokeBgToNewBounds | ( | KoShapeStrokeModelSP | stroke, |
| const QRectF & | oldBounds, | ||
| const QRectF & | newBounds, | ||
| bool | calcInsets = true ) |
Definition at line 340 of file KoSvgTextShape_p_output.cpp.
References KisAlgebra2D::absoluteToRelative(), KoInsets::bottom, cloneAndTransformGradient(), KoInsets::left, KoInsets::right, KoShape::s, KoShape::stroke(), and KoInsets::top.