libs/flake
KoLineBorder Class Reference
A border for shapes that draws a single line around the object. More...
#include <KoLineBorder.h>

Public Member Functions | |
| KoLineBorder (qreal lineWidth, const QColor &color=Qt::black) | |
| KoLineBorder (const KoLineBorder &other) | |
| KoLineBorder () | |
| virtual | ~KoLineBorder () |
| virtual void | borderInsets (const KoShape *shape, KoInsets &insets) |
| Qt::PenCapStyle | capStyle () const |
| const QColor & | color () const |
| qreal | dashOffset () const |
| virtual void | fillStyle (KoGenStyle &style, KoShapeSavingContext &context) |
| virtual bool | hasTransparency () |
| Qt::PenJoinStyle | joinStyle () const |
| QBrush | lineBrush () const |
| QVector< qreal > | lineDashes () const |
| Qt::PenStyle | lineStyle () const |
| qreal | lineWidth () const |
| qreal | miterLimit () const |
| KoLineBorder & | operator= (const KoLineBorder &rhs) |
| virtual void | paintBorder (KoShape *shape, QPainter &painter, const KoViewConverter &converter, const QColor &color) |
| virtual void | paintBorder (KoShape *shape, QPainter &painter, const KoViewConverter &converter) |
| void | setCapStyle (Qt::PenCapStyle style) |
| void | setColor (const QColor &color) |
| void | setDashOffset (qreal dashOffset) |
| void | setJoinStyle (Qt::PenJoinStyle style) |
| void | setLineBrush (const QBrush &brush) |
| void | setLineStyle (Qt::PenStyle style, const QVector< qreal > &dashes) |
| void | setLineWidth (qreal lineWidth) |
| void | setMiterLimit (qreal miterLimit) |
Detailed Description
A border for shapes that draws a single line around the object.
Definition at line 38 of file KoLineBorder.h.
Constructor & Destructor Documentation
| KoLineBorder::KoLineBorder | ( | ) |
Constructor for a thin line in black.
Definition at line 43 of file KoLineBorder.cpp.
| KoLineBorder::KoLineBorder | ( | const KoLineBorder & | other | ) |
Copy constructor.
Definition at line 52 of file KoLineBorder.cpp.
| KoLineBorder::KoLineBorder | ( | qreal | lineWidth, | |
| const QColor & | color = Qt::black | |||
| ) | [explicit] |
Constructor for a lineBorder.
- Parameters:
-
lineWidth the width, in pt color the color we draw the outline in.
Definition at line 60 of file KoLineBorder.cpp.
| KoLineBorder::~KoLineBorder | ( | ) | [virtual] |
Definition at line 68 of file KoLineBorder.cpp.
Member Function Documentation
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.
Implements KoShapeBorderModel.
Definition at line 95 of file KoLineBorder.cpp.
| Qt::PenCapStyle KoLineBorder::capStyle | ( | ) | const |
Returns the lines cap style.
Definition at line 151 of file KoLineBorder.cpp.
| const QColor & KoLineBorder::color | ( | ) | const |
Returns the color.
Definition at line 186 of file KoLineBorder.cpp.
| qreal KoLineBorder::dashOffset | ( | ) | const |
Returns the dash offset.
Definition at line 219 of file KoLineBorder.cpp.
| void KoLineBorder::fillStyle | ( | KoGenStyle & | style, | |
| KoShapeSavingContext & | context | |||
| ) | [virtual] |
Fill the style object.
- Parameters:
-
style object context used for saving
Implements KoShapeBorderModel.
Definition at line 85 of file KoLineBorder.cpp.
| bool KoLineBorder::hasTransparency | ( | ) | [virtual] |
Returns true if there is some transparency, false if the border is fully opaque.
- Returns:
- if the border is transparent.
Implements KoShapeBorderModel.
Definition at line 114 of file KoLineBorder.cpp.
| Qt::PenJoinStyle KoLineBorder::joinStyle | ( | ) | const |
Returns the lines join style.
Definition at line 161 of file KoLineBorder.cpp.
| QBrush KoLineBorder::lineBrush | ( | ) | const |
Returns the strokes brush.
Definition at line 229 of file KoLineBorder.cpp.
| QVector< qreal > KoLineBorder::lineDashes | ( | ) | const |
Returns the line dashes.
Definition at line 209 of file KoLineBorder.cpp.
| Qt::PenStyle KoLineBorder::lineStyle | ( | ) | const |
Returns the line style.
Definition at line 204 of file KoLineBorder.cpp.
| qreal KoLineBorder::lineWidth | ( | ) | const |
Returns the line width.
Definition at line 171 of file KoLineBorder.cpp.
| qreal KoLineBorder::miterLimit | ( | ) | const |
Returns the miter limit.
Definition at line 181 of file KoLineBorder.cpp.
| KoLineBorder & KoLineBorder::operator= | ( | const KoLineBorder & | rhs | ) |
Assignment operator.
Definition at line 73 of file KoLineBorder.cpp.
| void KoLineBorder::paintBorder | ( | KoShape * | shape, | |
| QPainter & | painter, | |||
| const KoViewConverter & | converter, | |||
| const QColor & | color | |||
| ) | [virtual] |
Paint the border in the given color.
This method should paint the border around the shape in the given color.
- 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. color to use to paint the border.
Implements KoShapeBorderModel.
Definition at line 134 of file KoLineBorder.cpp.
| void KoLineBorder::paintBorder | ( | KoShape * | shape, | |
| QPainter & | painter, | |||
| const KoViewConverter & | converter | |||
| ) | [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.
Implements KoShapeBorderModel.
Definition at line 119 of file KoLineBorder.cpp.
| void KoLineBorder::setCapStyle | ( | Qt::PenCapStyle | style | ) |
Sets the lines cap style.
Definition at line 146 of file KoLineBorder.cpp.
| void KoLineBorder::setColor | ( | const QColor & | color | ) |
Sets the color.
Definition at line 191 of file KoLineBorder.cpp.
| void KoLineBorder::setDashOffset | ( | qreal | dashOffset | ) |
Sets the dash offset.
Definition at line 214 of file KoLineBorder.cpp.
| void KoLineBorder::setJoinStyle | ( | Qt::PenJoinStyle | style | ) |
Sets the lines join style.
Definition at line 156 of file KoLineBorder.cpp.
| void KoLineBorder::setLineBrush | ( | const QBrush & | brush | ) |
Sets the strokes brush used to fill strokes of this border.
Definition at line 224 of file KoLineBorder.cpp.
| void KoLineBorder::setLineStyle | ( | Qt::PenStyle | style, | |
| const QVector< qreal > & | dashes | |||
| ) |
Sets the line style.
Definition at line 196 of file KoLineBorder.cpp.
| void KoLineBorder::setLineWidth | ( | qreal | lineWidth | ) |
Sets the line width.
Definition at line 166 of file KoLineBorder.cpp.
| void KoLineBorder::setMiterLimit | ( | qreal | miterLimit | ) |
Sets the miter limit.
Definition at line 176 of file KoLineBorder.cpp.
The documentation for this class was generated from the following files:
