|
Krita Source Code Documentation
|
Inheritance diagram for KisTextBrushesPipe:Static Public Member Functions | |
| static QImage | renderChar (const QString &text, const QFont &font) |
Protected Member Functions | |
| int | chooseNextBrush (const KisPaintInformation &info) override |
| void | updateBrushIndexes (KisRandomSourceSP randomSource, int seqNo) override |
Protected Member Functions inherited from KisBrushesPipe< KisGbrBrush > | |
| void | addBrush (QSharedPointer< KisGbrBrush > brush) |
| int | sizeBrush () |
Private Member Functions | |
| void | updateBrushIndexesImpl () |
Private Attributes | |
| QMap< QChar, KisGbrBrushSP > | m_brushesMap |
| int | m_charIndex |
| int | m_currentBrushIndex |
| QString | m_text |
Additional Inherited Members | |
Protected Attributes inherited from KisBrushesPipe< KisGbrBrush > | |
| QVector< QSharedPointer< KisGbrBrush > > | m_brushes |
Definition at line 27 of file kis_text_brush.cpp.
|
inline |
Definition at line 30 of file kis_text_brush.cpp.
References m_charIndex, and m_currentBrushIndex.
|
inline |
Definition at line 35 of file kis_text_brush.cpp.
References KisBrushesPipe< BrushType >::addBrush(), and m_brushesMap.
|
inlineoverrideprotectedvirtual |
Returns the index of the next brush that corresponds to the current values of info. This method is called before the dab is actually painted.
Implements KisBrushesPipe< KisGbrBrush >.
Definition at line 131 of file kis_text_brush.cpp.
References m_currentBrushIndex.
|
inlineoverridevirtual |
Reimplemented from KisBrushesPipe< KisGbrBrush >.
Definition at line 109 of file kis_text_brush.cpp.
References KisBrushesPipe< BrushType >::clear(), and m_brushesMap.
|
inlineoverridevirtual |
Returns the current index of the brush This method is called before the dab is actually painted.
The method is const, so no internal counters of the brush should change during its execution
Implements KisBrushesPipe< KisGbrBrush >.
Definition at line 125 of file kis_text_brush.cpp.
References m_currentBrushIndex.
|
inline |
Definition at line 114 of file kis_text_brush.cpp.
References m_brushesMap, and m_text.
|
inlineoverridevirtual |
Is called by the paint op when a paintop starts a stroke. The brushes are shared among different strokes, so sometimes the brush should be reset.
Implements KisBrushesPipe< KisGbrBrush >.
Definition at line 120 of file kis_text_brush.cpp.
References m_charIndex, and updateBrushIndexesImpl().
|
inlinestatic |
Definition at line 76 of file kis_text_brush.cpp.
|
inline |
Definition at line 52 of file kis_text_brush.cpp.
References KisBrushesPipe< BrushType >::addBrush(), clear(), m_brushesMap, m_charIndex, m_text, and renderChar().
|
inlineoverrideprotectedvirtual |
Updates internal counters of the brush after a dab has been painted on the canvas. Some incremental switching of the brushes may me implemented in this method.
If seqNo is equal or greater than zero, then incremental iteration is overridden by this seqNo value
Implements KisBrushesPipe< KisGbrBrush >.
Definition at line 136 of file kis_text_brush.cpp.
References m_charIndex, m_text, and updateBrushIndexesImpl().
|
inlineprivate |
Definition at line 149 of file kis_text_brush.cpp.
References KisBrushesPipe< KisGbrBrush >::m_brushes, m_brushesMap, m_charIndex, m_currentBrushIndex, and m_text.
|
private |
Definition at line 163 of file kis_text_brush.cpp.
|
private |
Definition at line 165 of file kis_text_brush.cpp.
|
private |
Definition at line 166 of file kis_text_brush.cpp.
|
private |
Definition at line 164 of file kis_text_brush.cpp.