#include <KoLineBorder.h>
Graphe d'héritage de KoLineBorder:
Fonctions membres publiques | |
KoLineBorder () | |
Constructor for a thin line in black. | |
KoLineBorder (double lineSize, QColor color=Qt::black) | |
virtual | ~KoLineBorder () |
virtual KoInsets * | borderInsets (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 |
Définition à la ligne 36 du fichier KoLineBorder.h.
KoLineBorder::KoLineBorder | ( | ) |
KoLineBorder::KoLineBorder | ( | double | lineSize, | |
QColor | color = Qt::black | |||
) |
Constructor for a lineBorder
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.
Return a borderInsets object filled with the size around 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. |
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.
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.
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 :
double KoLineBorder::m_lineSize [private] |
QColor KoLineBorder::m_color [private] |
Définition à la ligne 54 du fichier KoLineBorder.h.
Référencé par hasTransparency(), et paintBorder().