#include <KoShapeBorderModel.h>
Inheritance diagram for KoShapeBorderModel:

Public Member Functions | |
| virtual void | fillStyle (KoGenStyle &style, KoShapeSavingContext &context)=0 |
| Fill the style object. | |
| KoInsets | borderInsets (const KoShape *shape) |
| Return a borderInsets object filled with the size around the shape that this border takes. | |
| virtual void | borderInsets (const KoShape *shape, KoInsets &insets)=0 |
| Return a borderInsets object filled with the size inside the shape that this border takes. | |
| virtual bool | hasTransparency ()=0 |
| Returns true if there is some transparency, false if the border is fully opaque. | |
| virtual void | paintBorder (KoShape *shape, QPainter &painter, const KoViewConverter &converter)=0 |
| Paint the border. | |
| void | addUser () |
| refcounting | |
| bool | removeUser () |
| refcounting | |
| int | useCount () const |
| refcounting | |
Classes that implement this model will be allowed to draw a border on 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 border that is reused on several objects.
| virtual void KoShapeBorderModel::borderInsets | ( | const KoShape * | shape, | |
| KoInsets & | insets | |||
| ) | [pure virtual] |
Return a borderInsets object filled with the size inside the shape that this border takes.
| shape | the shape the insets will be calculated for | |
| insets | the insets object that will be filled and returned. |
Implemented in KoLineBorder.
Return a borderInsets object filled with the size around the shape that this border takes.
| shape | the shape the insets will be calculated for |
| virtual void KoShapeBorderModel::fillStyle | ( | KoGenStyle & | style, | |
| KoShapeSavingContext & | context | |||
| ) | [pure virtual] |
Fill the style object.
| style | object | |
| context | used for saving |
Implemented in KoLineBorder.
| virtual bool KoShapeBorderModel::hasTransparency | ( | ) | [pure virtual] |
Returns true if there is some transparency, false if the border is fully opaque.
Implemented in KoLineBorder.
| virtual void KoShapeBorderModel::paintBorder | ( | KoShape * | shape, | |
| QPainter & | painter, | |||
| const KoViewConverter & | converter | |||
| ) | [pure virtual] |
Paint the border.
This method should paint the border 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. | |
| converter | to convert between internal and view coordinates. |
Implemented in KoLineBorder.
1.4.7