|
Krita Source Code Documentation
|
#include <KoShapeShadow.h>
Inheritance diagram for KoShapeShadow:Public Member Functions | |
| qreal | blur () const |
| Returns the shadow blur radius. | |
| void | blurShadow (QImage &image, int radius, const QColor &shadowColor) |
| QColor | color () const |
| Returns the shadow color including opacity. | |
| bool | deref () |
| void | insets (KoInsets &insets) const |
| Fills the insets object with the space the shadow takes around a shape. | |
| bool | isVisible () const |
| Returns if shadow is visible. | |
| KoShapeShadow () | |
| KoShapeShadow (const KoShapeShadow &rhs) | |
| QPointF | offset () const |
| Returns the shadow offset. | |
| KoShapeShadow & | operator= (const KoShapeShadow &rhs) |
| void | paint (KoShape *shape, QPainter &painter) |
| void | paintGroupShadow (KoShapeGroup *group, QPainter &painter) |
| void | paintShadow (KoShape *shape, QPainter &painter) |
| Private () | |
| bool | ref () |
| void | setBlur (qreal blur) |
| void | setColor (const QColor &color) |
| void | setOffset (const QPointF &offset) |
| void | setVisible (bool visible) |
| Sets the shadow visibility. | |
| int | useCount () const |
| Return the usage count. | |
| ~KoShapeShadow () | |
Public Attributes | |
| qreal | blur |
| QColor | color |
| QPointF | offset |
| QAtomicInt | refCount |
| bool | visible |
Private Attributes | |
| Private *const | d |
Private Attributes inherited from Private | |
| KisCanvas2 * | canvas |
| int | displayedFrame |
| int | intendedFrame |
Additional Inherited Members | |
Private Member Functions inherited from Private | |
| Private (KisCanvas2 *c) | |
Definition at line 25 of file KoShapeShadow.cpp.
| KoShapeShadow::KoShapeShadow | ( | ) |
Definition at line 177 of file KoShapeShadow.cpp.
| KoShapeShadow::~KoShapeShadow | ( | ) |
| KoShapeShadow::KoShapeShadow | ( | const KoShapeShadow & | rhs | ) |
| qreal KoShapeShadow::blur | ( | ) | const |
Returns the shadow blur radius.
| void KoShapeShadow::blurShadow | ( | QImage & | image, |
| int | radius, | ||
| const QColor & | shadowColor ) |
| QColor KoShapeShadow::color | ( | ) | const |
Returns the shadow color including opacity.
| bool KoShapeShadow::deref | ( | ) |
Decrements the use-value. Returns true if the new value is non-zero, false otherwise.
Definition at line 321 of file KoShapeShadow.cpp.
References d.
Fills the insets object with the space the shadow takes around a shape.
Definition at line 293 of file KoShapeShadow.cpp.
| bool KoShapeShadow::isVisible | ( | ) | const |
| QPointF KoShapeShadow::offset | ( | ) | const |
Returns the shadow offset.
| KoShapeShadow & KoShapeShadow::operator= | ( | const KoShapeShadow & | rhs | ) |
Paints the shadow of the shape.
| shape | the shape to paint around |
| painter | the painter to paint shadows to canvas |
| converter | to convert between internal and view coordinates. |
Definition at line 200 of file KoShapeShadow.cpp.
References KoShape::absoluteTransformation(), KoShape::boundingRect(), d, and offset.
| void KoShapeShadow::paintGroupShadow | ( | KoShapeGroup * | group, |
| QPainter & | painter ) |
Paints the shadow of the shape group to the buffer image.
| group | the shape group to paint around |
| painter | the painter to paint on the image |
| converter | to convert between internal and view coordinates. |
Paints the shadow of the shape to the buffer image.
| shape | the shape to paint around |
| painter | the painter to paint on the image |
|
inline |
Definition at line 28 of file KoShapeShadow.cpp.
| bool KoShapeShadow::ref | ( | ) |
Increments the use-value. Returns true if the new value is non-zero, false otherwise.
Definition at line 316 of file KoShapeShadow.cpp.
References d.
| void KoShapeShadow::setBlur | ( | qreal | blur | ) |
| void KoShapeShadow::setColor | ( | const QColor & | color | ) |
| void KoShapeShadow::setOffset | ( | const QPointF & | offset | ) |
| void KoShapeShadow::setVisible | ( | bool | visible | ) |
| int KoShapeShadow::useCount | ( | ) | const |
| qreal KoShapeShadow::blur |
Definition at line 33 of file KoShapeShadow.cpp.
| QColor KoShapeShadow::color |
Definition at line 32 of file KoShapeShadow.cpp.
|
private |
Definition at line 90 of file KoShapeShadow.h.
| QPointF KoShapeShadow::offset |
Definition at line 31 of file KoShapeShadow.cpp.
| QAtomicInt KoShapeShadow::refCount |
Definition at line 35 of file KoShapeShadow.cpp.
| bool KoShapeShadow::visible |
Definition at line 34 of file KoShapeShadow.cpp.