|
Krita Source Code Documentation
|
#include <KoShapeStrokeModel.h>
Inheritance diagram for KoShapeStrokeModel:Public Member Functions | |
| virtual bool | compareFillTo (const KoShapeStrokeModel *other)=0 |
| virtual bool | compareStyleTo (const KoShapeStrokeModel *other)=0 |
| virtual bool | hasTransparency () const =0 |
| virtual bool | isVisible () const =0 |
| virtual void | paint (const KoShape *shape, QPainter &painter) const =0 |
| virtual void | paintMarkers (const KoShape *shape, QPainter &painter) const =0 |
| paintMarkers Paints the markers if possible. | |
| virtual void | strokeInsets (const KoShape *shape, KoInsets &insets) const =0 |
| virtual qreal | strokeMaxMarkersInset (const KoShape *shape) const =0 |
| virtual | ~KoShapeStrokeModel () |
A model for strokes of KoShapes. Classes that implement this model will be allowed to draw the stroke of the outline of a shape. Note that since the important members take a KoShape as argument it is possible, and preferred behavior, to have one instance of a stroke that is reused on several objects.
Definition at line 32 of file KoShapeStrokeModel.h.
|
virtual |
Definition at line 13 of file KoShapeStrokeModel.cpp.
|
pure virtual |
Implemented in KoShapeStroke.
|
pure virtual |
Implemented in KoShapeStroke.
|
pure virtual |
Returns true if there is some transparency, false if the stroke is fully opaque.
Implemented in KoShapeStroke.
|
pure virtual |
Implemented in KoShapeStroke.
|
pure virtual |
Paint the stroke. This method should paint the stroke around shape.
| 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. |
Implemented in KoShapeStroke.
|
pure virtual |
Return a strokeInsets object filled with the size inside the shape that this stroke takes.
| shape | the shape the insets will be calculated for |
| insets | the insets object that will be filled and returned. |
Implemented in KoShapeStroke.
|
pure virtual |
Return a maximum distance that the markers of the shape can take outside the shape itself
Implemented in KoShapeStroke.