libs/flake
KoShapeShadow Class Reference
#include <KoShapeShadow.h>
Public Member Functions | |
| KoShapeShadow () | |
| ~KoShapeShadow () | |
| void | addUser () |
| QColor | color () const |
| void | fillStyle (KoGenStyle &style, KoShapeSavingContext &context) |
| void | insets (const KoShape *shape, KoInsets &insets) |
| bool | isVisible () const |
| QPointF | offset () const |
| void | paint (KoShape *shape, QPainter &painter, const KoViewConverter &converter) |
| bool | removeUser () |
| void | setColor (const QColor &color) |
| void | setOffset (const QPointF &offset) |
| void | setVisibility (bool visible) |
| int | useCount () const |
Detailed Description
Definition at line 34 of file KoShapeShadow.h.
Constructor & Destructor Documentation
| KoShapeShadow::KoShapeShadow | ( | ) |
Definition at line 43 of file KoShapeShadow.cpp.
| KoShapeShadow::~KoShapeShadow | ( | ) |
Definition at line 48 of file KoShapeShadow.cpp.
Member Function Documentation
| void KoShapeShadow::addUser | ( | ) |
Increase reference counter.
Definition at line 154 of file KoShapeShadow.cpp.
| QColor KoShapeShadow::color | ( | ) | const |
Returns the shadow color including opacity.
Definition at line 126 of file KoShapeShadow.cpp.
| void KoShapeShadow::fillStyle | ( | KoGenStyle & | style, | |
| KoShapeSavingContext & | context | |||
| ) |
Fills the style object.
- Parameters:
-
style object context used for saving
Definition at line 53 of file KoShapeShadow.cpp.
Returns the insets of the shadow.
Definition at line 141 of file KoShapeShadow.cpp.
| bool KoShapeShadow::isVisible | ( | ) | const |
Returns if shadow is visible.
Definition at line 136 of file KoShapeShadow.cpp.
| QPointF KoShapeShadow::offset | ( | ) | const |
Returns the shadow offset.
Definition at line 116 of file KoShapeShadow.cpp.
| void KoShapeShadow::paint | ( | KoShape * | shape, | |
| QPainter & | painter, | |||
| const KoViewConverter & | converter | |||
| ) |
Paints the shadow of the shape.
- Parameters:
-
shape the shape to paint around painter the painter to paint to, the painter will have the topleft of the shape as its start coordinate. converter to convert between internal and view coordinates.
Definition at line 65 of file KoShapeShadow.cpp.
| bool KoShapeShadow::removeUser | ( | ) |
Decrease reference counter.
Definition at line 159 of file KoShapeShadow.cpp.
| void KoShapeShadow::setColor | ( | const QColor & | color | ) |
Sets the shadow color, including the shadow opacity.
- Parameters:
-
color the shadow color and opacity
Definition at line 121 of file KoShapeShadow.cpp.
| void KoShapeShadow::setOffset | ( | const QPointF & | offset | ) |
Sets the shadow offset from the topleft corner of the shape.
- Parameters:
-
offset the shadow offset
Definition at line 111 of file KoShapeShadow.cpp.
| void KoShapeShadow::setVisibility | ( | bool | visible | ) |
Sets the shadow visibility.
Definition at line 131 of file KoShapeShadow.cpp.
| int KoShapeShadow::useCount | ( | ) | const |
Return reference counter.
Definition at line 164 of file KoShapeShadow.cpp.
The documentation for this class was generated from the following files:
