lib/ctioga2/graphics/styles/drawable.rb in ctioga2-0.13.1 vs lib/ctioga2/graphics/styles/drawable.rb in ctioga2-0.14
- old
+ new
@@ -48,13 +48,17 @@
# This class represents all the stylistic information to stroke
# a Tioga path.
class StrokeStyle < LineStyle
# The color
typed_attribute :color, 'color-or-false'
+
+ # The line cap
+ typed_attribute :cap, 'line-cap'
# Sets the stroke style to a FigureMaker object, _t_.
def set_stroke_style(t)
t.stroke_color = @color if @color
+ t.line_cap = @cap if @cap
super
end
end