Référence de la classe KoLineBorder

#include <KoLineBorder.h>

Graphe d'héritage de KoLineBorder:

[légende]
Graphe de collaboration de KoLineBorder:
[légende]
Liste de tous les membres

Fonctions membres publiques

 KoLineBorder ()
 Constructor for a thin line in black.
 KoLineBorder (double lineSize, QColor color=Qt::black)
virtual ~KoLineBorder ()
virtual KoInsetsborderInsets (const KoShape *shape, KoInsets &insets)
virtual bool hasTransparency ()
virtual void paintBorder (KoShape *shape, QPainter &painter, const KoViewConverter &converter)

Attributs privés

double m_lineSize
QColor m_color

Description détaillée

A border for shapes that draws a single line around the object.

Définition à la ligne 36 du fichier KoLineBorder.h.


Documentation des contructeurs et destructeur

KoLineBorder::KoLineBorder (  ) 

Constructor for a thin line in black.

Définition à la ligne 26 du fichier KoLineBorder.cpp.

KoLineBorder::KoLineBorder ( double  lineSize,
QColor  color = Qt::black 
)

Constructor for a lineBorder

Paramètres:
lineSize the width, in pt
color the color we draw the outline in.

Définition à la ligne 32 du fichier KoLineBorder.cpp.

virtual KoLineBorder::~KoLineBorder (  )  [inline, virtual]

Définition à la ligne 46 du fichier KoLineBorder.h.


Documentation des fonctions membres

KoInsets * KoLineBorder::borderInsets ( const KoShape shape,
KoInsets insets 
) [virtual]

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

Paramètres:
shape the shape the insets will be calculated for
insets the insets object that will be filled and returned.

Implémente KoShapeBorderModel.

Définition à la ligne 38 du fichier KoLineBorder.cpp.

Références KoInsets::bottom, KoInsets::left, m_lineSize, KoInsets::right, et KoInsets::top.

bool KoLineBorder::hasTransparency (  )  [virtual]

Returns true if there is some transparency, false if the border is fully opaque.

Renvoie:
if the border is transparent.

Implémente KoShapeBorderModel.

Définition à la ligne 51 du fichier KoLineBorder.cpp.

Références m_color.

void KoLineBorder::paintBorder ( KoShape shape,
QPainter &  painter,
const KoViewConverter converter 
) [virtual]

Paint the border. This method should paint the border around shape.

Paramètres:
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.

Implémente KoShapeBorderModel.

Définition à la ligne 55 du fichier KoLineBorder.cpp.

Références KoShape::applyConversion(), m_color, m_lineSize, et KoShape::outline().

Voici le graphe d'appel pour cette fonction :


Documentation des données membres

double KoLineBorder::m_lineSize [private]

Définition à la ligne 53 du fichier KoLineBorder.h.

Référencé par borderInsets(), et paintBorder().

QColor KoLineBorder::m_color [private]

Définition à la ligne 54 du fichier KoLineBorder.h.

Référencé par hasTransparency(), et paintBorder().


La documentation de cette classe a été générée à partir des fichiers suivants :
Généré le Wed Nov 22 23:46:25 2006 pour KPlato par  doxygen 1.5.1-p1