#include <pen.h>
Public Member Functions | |
Pen () | |
Pen (const QString &color, const qreal &weight, const QString &type) | |
virtual | ~Pen () |
QString | getLineType () const |
void | setLineType (const QString &type) |
qreal | getLineWeight () const |
void | setLineWeight (const qreal &weight) |
QString | getColor () const |
void | setColor (const QString &color) |
bool | operator== (const Pen &pen) const |
bool | operator!= (const Pen &pen) const |
Public Attributes | |
QString | color {QString("black")} |
qreal | lineWeight {1.20} |
QString | lineType {QString("solidline")} |
Protected Attributes | |
QString | m_color |
qreal | m_lineWeight |
QString | m_lineType |
Friends | |
std::ostream & | operator<< (std::ostream &stream, const Pen &pen) |
A pen stores attributes for painting such as line weight, linetype, color, ...
|
inline |
Creates a default pen (black, solid, weight 0).
Definition at line 43 of file pen.h.
References setColor(), setLineType(), and setLineWeight().
|
inline |
Creates a pen with the given attributes.
Definition at line 53 of file pen.h.
References color, setColor(), setLineType(), and setLineWeight().
|
inline |
Definition at line 62 of file pen.h.
References m_lineType.
|
inline |
Definition at line 72 of file pen.h.
References m_lineWeight.
|
inline |
Definition at line 92 of file pen.h.
References m_color, m_lineType, and m_lineWeight.
|
inline |
|
inline |
|
inline |
|
friend |
QString Pen::color {QString("black")} |
Definition at line 51 of file pen_toolbar.h.
Referenced by PenToolBar::colorChanged(), Pen(), PenToolBar::penReset(), PenToolBar::savePreset(), setColor(), and VAbstractPattern::setDefaultPen().
QString Pen::lineType {QString("solidline")} |
Definition at line 53 of file pen_toolbar.h.
Referenced by PenToolBar::lineTypeChanged(), PenToolBar::penReset(), PenToolBar::savePreset(), and VAbstractPattern::setDefaultPen().
qreal Pen::lineWeight {1.20} |
Definition at line 52 of file pen_toolbar.h.
Referenced by PenToolBar::lineWeightChanged(), PenToolBar::penReset(), PenToolBar::savePreset(), and VAbstractPattern::setDefaultPen().
|
protected |
Definition at line 105 of file pen.h.
Referenced by getColor(), operator==(), and setColor().
|
protected |
Definition at line 107 of file pen.h.
Referenced by getLineType(), operator==(), and setLineType().
|
protected |
Definition at line 106 of file pen.h.
Referenced by getLineWeight(), operator==(), and setLineWeight().