26 #ifndef QCP_LINEENDING_H
27 #define QCP_LINEENDING_H
62 QCPLineEnding(EndingStyle style,
double width=8,
double length=10,
bool inverted=
false);
65 EndingStyle style()
const {
return mStyle; }
66 double width()
const {
return mWidth; }
67 double length()
const {
return mLength; }
68 bool inverted()
const {
return mInverted; }
71 void setStyle(EndingStyle style);
72 void setWidth(
double width);
73 void setLength(
double length);
74 void setInverted(
bool inverted);
77 double boundingDistance()
const;
78 double realLength()
const;
79 void draw(
QCPPainter *painter,
const QVector2D &pos,
const QVector2D &dir)
const;
80 void draw(
QCPPainter *painter,
const QVector2D &pos,
double angle)
const;
85 double mWidth, mLength;
90 #endif // QCP_LINEENDING_H
EndingStyle
Definition: lineending.h:49
Handles the different ending decorations for line-like items.
Definition: lineending.h:33
QPainter subclass used internally.
Definition: painter.h:111