lib/shoes/swt/shape.rb in shoes-swt-4.0.0.pre3 vs lib/shoes/swt/shape.rb in shoes-swt-4.0.0.pre4
- old
+ new
@@ -1,8 +1,10 @@
class Shoes
module Swt
class Shape
+ include Common::Clickable
+ include Common::Visibility
include Common::Remove
include Common::Fill
include Common::Stroke
include Common::PainterUpdatesPosition
@@ -39,10 +41,10 @@
def curve_to(cx1, cy1, cx2, cy2, x, y)
@element.cubic_to(cx1, cy1, cx2, cy2, x, y)
end
- def arc(x, y, width, height, start_angle, arc_angle)
+ def arc_to(x, y, width, height, start_angle, arc_angle)
@element.add_arc(x - (width / 2), y - (height / 2), width, height,
-start_angle * 180 / ::Shoes::PI,
(start_angle - arc_angle) * 180 / ::Shoes::PI)
end