19 QPen(
const QBrush &brush,
float width, PenStyle s = SolidLine,
20 PenCapStyle c = SquareCap, PenJoinStyle j = BevelJoin);
23 PenStyle style()
const;
24 void setStyle(PenStyle);
26 std::vector<float> dashPattern()
const;
27 void setDashPattern(
const std::vector<float> &pattern);
29 float dashOffset()
const;
30 void setDashOffset(
float doffset);
32 float miterLimit()
const;
33 void setMiterLimit(
float limit);
36 void setWidthF(
float width);
39 void setWidth(
int width);
42 void setColor(
const Color &color);
45 void setBrush(
const QBrush &brush);
49 PenCapStyle capStyle()
const;
50 void setCapStyle(PenCapStyle pcs);
52 PenJoinStyle joinStyle()
const;
53 void setJoinStyle(PenJoinStyle pcs);
55 bool isCosmetic()
const {
return true; };
56 void setCosmetic(
bool cosmetic) {};
58 bool operator==(
const QPen &p)
const;
59 inline bool operator!=(
const QPen &p)
const {
return !(operator==(p)); }
65 PenCapStyle m_capStyle;
66 PenJoinStyle m_joinStyle;
67 mutable std::vector<float> m_dashPattern;
The QPen class defines how a CPainter should draw lines and outlines of shapes.
Definition: qpen.h:13
different physics engine has different winding order.
Definition: EventBinding.h:32
The QBrush class defines the fill pattern of shapes drawn by CPainter.
Definition: qbrush.h:11
Definition: ParaColor.h:275