KoShapeBorderModel Class Reference

A model for borders around KoShapes. More...

#include <KoShapeBorderModel.h>

Inheritance diagram for KoShapeBorderModel:

KoLineBorder List of all members.

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

Detailed Description

A model for borders around KoShapes.

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.


Member Function Documentation

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.

Parameters:
shape the shape the insets will be calculated for
insets the insets object that will be filled and returned.

Implemented in KoLineBorder.

KoInsets KoShapeBorderModel::borderInsets ( const KoShape shape  ) 

Return a borderInsets object filled with the size around the shape that this border takes.

Parameters:
shape the shape the insets will be calculated for

virtual void KoShapeBorderModel::fillStyle ( KoGenStyle style,
KoShapeSavingContext context 
) [pure virtual]

Fill the style object.

Parameters:
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.

Returns:
if the border is transparent.

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.

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.

Implemented in KoLineBorder.


The documentation for this class was generated from the following files:
Generated on Sun Jul 20 22:37:16 2008 for libs/flake by  doxygen 1.4.7