|
Krita Source Code Documentation
|
The SvgTextOnPathDecorationHelper class. More...
#include <SvgTextOnPathDecorationHelper.h>
Classes | |
| struct | Private |
Public Member Functions | |
| QRectF | decorationRect (const QTransform documentToView) const |
| decorationRect | |
| bool | hitTest (QPointF mouseInPts, const QTransform viewToDocument) |
| hitTest | |
| void | paint (QPainter *painter, const KoViewConverter &converter) |
| paint Paint the handles for the text path. | |
| void | setDecorationThickness (qreal thickness) |
| void | setHandleRadius (qreal radius) |
| void | setPos (int pos) |
| setPos the the position of the cursor, where the text path is sought. A single text shape can have multiple paths, and this is how they are distinguished. | |
| void | setShape (KoSvgTextShape *shape) |
| setShape Set the shape for which to draw the text path. | |
| void | setStrategyActive (bool isActive) |
| SvgTextOnPathDecorationHelper () | |
| ~SvgTextOnPathDecorationHelper () | |
Private Attributes | |
| QScopedPointer< Private > | d |
The SvgTextOnPathDecorationHelper class.
Definition at line 18 of file SvgTextOnPathDecorationHelper.h.
| SvgTextOnPathDecorationHelper::SvgTextOnPathDecorationHelper | ( | ) |
Definition at line 45 of file SvgTextOnPathDecorationHelper.cpp.
| SvgTextOnPathDecorationHelper::~SvgTextOnPathDecorationHelper | ( | ) |
Definition at line 50 of file SvgTextOnPathDecorationHelper.cpp.
| QRectF SvgTextOnPathDecorationHelper::decorationRect | ( | const QTransform | documentToView | ) | const |
decorationRect
| documentToView | – document to view transform. |
Definition at line 115 of file SvgTextOnPathDecorationHelper.cpp.
References d, KoSvgTextNodeIndex::textPath(), and KoSvgTextNodeIndex::textPathInfo().
| bool SvgTextOnPathDecorationHelper::hitTest | ( | QPointF | mouseInPts, |
| const QTransform | viewToDocument ) |
hitTest
Definition at line 75 of file SvgTextOnPathDecorationHelper.cpp.
References d, KoSvgTextNodeIndex::textPath(), and KoSvgTextNodeIndex::textPathInfo().
| void SvgTextOnPathDecorationHelper::paint | ( | QPainter * | painter, |
| const KoViewConverter & | converter ) |
paint Paint the handles for the text path.
Definition at line 89 of file SvgTextOnPathDecorationHelper.cpp.
References KoShape::createHandlePainterHelperView(), d, KisHandlePainterHelper::drawConnectionLine(), KisHandlePainterHelper::drawHandleCircle(), KisHandleStyle::highlightedPrimaryHandles(), p, KisHandleStyle::primarySelection(), KisHandleStyle::selectedPrimaryHandles(), KisHandlePainterHelper::setHandleStyle(), KoSvgTextNodeIndex::textPath(), KoSvgTextNodeIndex::textPathInfo(), and KoViewConverter::viewToDocument().
| void SvgTextOnPathDecorationHelper::setDecorationThickness | ( | qreal | thickness | ) |
Definition at line 70 of file SvgTextOnPathDecorationHelper.cpp.
References d.
| void SvgTextOnPathDecorationHelper::setHandleRadius | ( | qreal | radius | ) |
Definition at line 65 of file SvgTextOnPathDecorationHelper.cpp.
References d.
| void SvgTextOnPathDecorationHelper::setPos | ( | int | pos | ) |
setPos the the position of the cursor, where the text path is sought. A single text shape can have multiple paths, and this is how they are distinguished.
| pos | – a text cursor position. |
Definition at line 55 of file SvgTextOnPathDecorationHelper.cpp.
References d.
| void SvgTextOnPathDecorationHelper::setShape | ( | KoSvgTextShape * | shape | ) |
setShape Set the shape for which to draw the text path.
| shape | – text shape. |
Definition at line 60 of file SvgTextOnPathDecorationHelper.cpp.
References d.
| void SvgTextOnPathDecorationHelper::setStrategyActive | ( | bool | isActive | ) |
Definition at line 136 of file SvgTextOnPathDecorationHelper.cpp.
References d.
|
private |
Definition at line 67 of file SvgTextOnPathDecorationHelper.h.