|
Krita Source Code Documentation
|
#include <KoShapeFillWrapper.h>
Classes | |
| struct | Private |
Public Member Functions | |
| KUndo2Command * | applyGradient (const QGradient *gradient) |
| KUndo2Command * | applyGradientStopsOnly (const QGradient *gradient) |
| QColor | color () const |
| const QGradient * | gradient () const |
| QTransform | gradientTransform () const |
| bool | hasZeroLineWidth () const |
| bool | isMixedFill () const |
| KoShapeFillWrapper (KoShape *shape, KoFlake::FillVariant fillVariant) | |
| KoShapeFillWrapper (QList< KoShape * > shapes, KoFlake::FillVariant fillVariant) | |
| const SvgMeshGradient * | meshgradient () const |
| KUndo2Command * | setColor (const QColor &color) |
| KUndo2Command * | setGradient (const QGradient *gradient, const QTransform &transform) |
| KUndo2Command * | setLineWidth (const float &lineWidth) |
| KUndo2Command * | setMeshGradient (const SvgMeshGradient *gradient, const QTransform &transform) |
| KoFlake::FillType | type () const |
| ~KoShapeFillWrapper () | |
Private Attributes | |
| const QScopedPointer< Private > | m_d |
Definition at line 22 of file KoShapeFillWrapper.h.
| KoShapeFillWrapper::KoShapeFillWrapper | ( | KoShape * | shape, |
| KoFlake::FillVariant | fillVariant ) |
Definition at line 229 of file KoShapeFillWrapper.cpp.
References KIS_SAFE_ASSERT_RECOVER_RETURN, and m_d.
| KoShapeFillWrapper::KoShapeFillWrapper | ( | QList< KoShape * > | shapes, |
| KoFlake::FillVariant | fillVariant ) |
Definition at line 238 of file KoShapeFillWrapper.cpp.
References KIS_SAFE_ASSERT_RECOVER_RETURN, and m_d.
| KoShapeFillWrapper::~KoShapeFillWrapper | ( | ) |
Definition at line 246 of file KoShapeFillWrapper.cpp.
| KUndo2Command * KoShapeFillWrapper::applyGradient | ( | const QGradient * | gradient | ) |
Definition at line 420 of file KoShapeFillWrapper.cpp.
References gradient(), gradientTransform(), and setGradient().
| KUndo2Command * KoShapeFillWrapper::applyGradientStopsOnly | ( | const QGradient * | gradient | ) |
Definition at line 425 of file KoShapeFillWrapper.cpp.
References KoFlake::Fill, gradient(), m_d, and KoFlake::modifyShapesStrokes().
| QColor KoShapeFillWrapper::color | ( | ) | const |
Definition at line 278 of file KoShapeFillWrapper.cpp.
References ShapeBackgroundFetchPolicy::color(), ShapeStrokeFillFetchPolicy::color(), KoFlake::Fill, KIS_SAFE_ASSERT_RECOVER_RETURN_VALUE, m_d, KoFlake::Solid, and type().
| const QGradient * KoShapeFillWrapper::gradient | ( | ) | const |
Definition at line 292 of file KoShapeFillWrapper.cpp.
References KoFlake::Fill, KoFlake::Gradient, ShapeBackgroundFetchPolicy::gradient(), ShapeStrokeFillFetchPolicy::gradient(), KIS_SAFE_ASSERT_RECOVER_RETURN_VALUE, m_d, and type().
| QTransform KoShapeFillWrapper::gradientTransform | ( | ) | const |
Definition at line 306 of file KoShapeFillWrapper.cpp.
References KoFlake::Fill, KoFlake::Gradient, ShapeBackgroundFetchPolicy::gradientTransform(), ShapeStrokeFillFetchPolicy::gradientTransform(), KIS_SAFE_ASSERT_RECOVER_RETURN_VALUE, m_d, and type().
| bool KoShapeFillWrapper::hasZeroLineWidth | ( | ) | const |
Definition at line 371 of file KoShapeFillWrapper.cpp.
References KoFlake::Fill, m_d, and KoShape::stroke().
| bool KoShapeFillWrapper::isMixedFill | ( | ) | const |
Definition at line 250 of file KoShapeFillWrapper.cpp.
References KoFlake::Fill, and m_d.
| const SvgMeshGradient * KoShapeFillWrapper::meshgradient | ( | ) | const |
Definition at line 320 of file KoShapeFillWrapper.cpp.
References KoFlake::Fill, KIS_SAFE_ASSERT_RECOVER_RETURN_VALUE, m_d, KoFlake::MeshGradient, ShapeBackgroundFetchPolicy::meshgradient(), and type().
| KUndo2Command * KoShapeFillWrapper::setColor | ( | const QColor & | color | ) |
Definition at line 332 of file KoShapeFillWrapper.cpp.
References color(), KoFlake::Fill, m_d, KoFlake::modifyShapesStrokes(), and toQShared().
| KUndo2Command * KoShapeFillWrapper::setGradient | ( | const QGradient * | gradient, |
| const QTransform & | transform ) |
Definition at line 389 of file KoShapeFillWrapper.cpp.
References KoFlake::cloneGradient(), KoFlake::Fill, gradient(), m_d, KoFlake::modifyShapesStrokes(), KoGradientBackground::setTransform(), and toQShared().
| KUndo2Command * KoShapeFillWrapper::setLineWidth | ( | const float & | lineWidth | ) |
Definition at line 357 of file KoShapeFillWrapper.cpp.
References m_d, and KoFlake::modifyShapesStrokes().
| KUndo2Command * KoShapeFillWrapper::setMeshGradient | ( | const SvgMeshGradient * | gradient, |
| const QTransform & | transform ) |
Definition at line 448 of file KoShapeFillWrapper.cpp.
References KoFlake::Fill, gradient(), m_d, and toQShared().
| KoFlake::FillType KoShapeFillWrapper::type | ( | ) | const |
Definition at line 259 of file KoShapeFillWrapper.cpp.
References KoFlake::Fill, isMixedFill(), KIS_SAFE_ASSERT_RECOVER_RETURN_VALUE, m_d, KoFlake::None, ShapeBackgroundFetchPolicy::type(), and ShapeStrokeFillFetchPolicy::type().
|
private |
Definition at line 50 of file KoShapeFillWrapper.h.