19 using CoordVector = std::vector<CCoord>;
36 explicit CLineStyle (LineCap cap, LineJoin join = kLineJoinMiter, CCoord dashPhase = 0., uint32_t dashCount = 0,
const CCoord* dashLengths =
nullptr);
37 CLineStyle (LineCap cap, LineJoin join, CCoord dashPhase,
const CoordVector& dashLengths);
41 CLineStyle (LineCap cap, LineJoin join, CCoord dashPhase, CoordVector&& dashLengths) noexcept;
45 LineCap getLineCap ()
const {
return cap; }
46 LineJoin getLineJoin ()
const {
return join; }
47 CCoord getDashPhase ()
const {
return dashPhase; }
48 uint32_t getDashCount ()
const {
return static_cast<uint32_t
> (dashLengths.size ()); }
49 CoordVector& getDashLengths () {
return dashLengths; }
50 const CoordVector& getDashLengths()
const {
return dashLengths; }
52 void setLineCap (LineCap newCap) { cap = newCap; }
53 void setLineJoin (LineJoin newJoin) { join = newJoin; }
54 void setDashPhase (CCoord phase) { dashPhase = phase; }
57 bool operator!= (
const CLineStyle& cls)
const {
return !(*
this == cls); }
61 LineCap cap {kLineCapButt};
62 LineJoin join {kLineJoinMiter};
63 CCoord dashPhase {0.};
64 CoordVector dashLengths;
72 #endif // __clinestyle__ Definition: clinestyle.h:16
Definition: customcontrols.cpp:8