34 #include <Pt/Gfx/Api.h>
35 #include <Pt/Gfx/Color.h>
36 #include <Pt/SmartPtr.h>
102 Pen(
const Color& color);
106 Pen(
const Color& color, std::size_t width,
107 Style style = Solid, CapStyle cap = FlatCap,
108 JoinStyle join = BevelJoin);
112 Pen(
const Color& color, std::size_t width,
114 JoinStyle join = BevelJoin);
118 void setSize(std::size_t size);
122 std::size_t size()
const;
126 void setColor(
const Color& color);
130 const Color& color()
const;
134 void setStyle(Style style = Solid);
150 void setCapStyle(CapStyle cap = FlatCap);
154 CapStyle capStyle()
const;
158 void setJoinStyle(JoinStyle join = BevelJoin);
162 JoinStyle joinStyle()
const;
173 class PT_GFX_API PenData
176 PenData(
const Color& color, std::size_t size,
181 , _userPattern(userPattern)
186 void setColor(
const Color& color)
189 const Color& color()
const
192 void setSize(std::size_t size)
195 std::size_t size()
const
201 _userPattern = userPattern;
208 {
return _userPattern; }
217 { _joinStyle = join; }
220 {
return _joinStyle; }
JoinStyle
Pen join style.
Definition: Pen.h:84
Attributs for the drawing of outlines.
Definition: Pen.h:52
CapStyle
Pen cap style.
Definition: Pen.h:68
uint_type uint64_t
Unsigned 64-bit integer type.
Definition: Types.h:54
Style
Pen line style.
Definition: Pen.h:57