libs/flake
KoShapeBackground Class Reference
This is the base class for shape backgrounds. More...
#include <KoShapeBackground.h>

Public Member Functions | |
| KoShapeBackground () | |
| virtual | ~KoShapeBackground () |
| void | addUser () |
| virtual void | fillStyle (KoGenStyle &style, KoShapeSavingContext &context)=0 |
| virtual bool | hasTransparency () |
| virtual bool | loadStyle (KoOdfLoadingContext &context, const QSizeF &shapeSize)=0 |
| virtual void | paint (QPainter &painter, const QPainterPath &fillPath) const =0 |
| bool | removeUser () |
| int | useCount () const |
Detailed Description
This is the base class for shape backgrounds.
Derived classes are used to paint the background of a shape within a given painter path.
Definition at line 37 of file KoShapeBackground.h.
Constructor & Destructor Documentation
| KoShapeBackground::KoShapeBackground | ( | ) |
Definition at line 31 of file KoShapeBackground.cpp.
| KoShapeBackground::~KoShapeBackground | ( | ) | [virtual] |
Definition at line 36 of file KoShapeBackground.cpp.
Member Function Documentation
| void KoShapeBackground::addUser | ( | ) |
refcounting
Definition at line 46 of file KoShapeBackground.cpp.
| virtual void KoShapeBackground::fillStyle | ( | KoGenStyle & | style, | |
| KoShapeSavingContext & | context | |||
| ) | [pure virtual] |
Fills the style object.
- Parameters:
-
style object context used for saving
Implemented in KoColorBackground, KoGradientBackground, and KoPatternBackground.
| bool KoShapeBackground::hasTransparency | ( | ) | [virtual] |
Returns if the background has some transparency.
Definition at line 41 of file KoShapeBackground.cpp.
| virtual bool KoShapeBackground::loadStyle | ( | KoOdfLoadingContext & | context, | |
| const QSizeF & | shapeSize | |||
| ) | [pure virtual] |
load background from odf styles
Implemented in KoColorBackground, KoGradientBackground, and KoPatternBackground.
| virtual void KoShapeBackground::paint | ( | QPainter & | painter, | |
| const QPainterPath & | fillPath | |||
| ) | const [pure virtual] |
Paints the background using the given fill path.
Implemented in KoColorBackground, KoGradientBackground, and KoPatternBackground.
| bool KoShapeBackground::removeUser | ( | ) |
decrements the usecount. Returns true if the new value is non-zero, false otherwise.
Definition at line 51 of file KoShapeBackground.cpp.
| int KoShapeBackground::useCount | ( | ) | const |
refcounting
Definition at line 56 of file KoShapeBackground.cpp.
The documentation for this class was generated from the following files:
