class Fox::Canvas::CircleShape
Attributes
Public Class Methods
Source
# File lib/fox16/canvas.rb, line 280 def initialize(x, y, radius) super(x, y) @radius = radius end
Calls superclass method
Fox::Canvas::Shape::new
Public Instance Methods
Source
# File lib/fox16/canvas.rb, line 293 def draw(dc) apply_dc(dc) do oldLineWidth = dc.lineWidth dc.lineWidth = 5 if selected? dc.drawArc(x, y, width, height, 0, 64*180) dc.drawArc(x, y, width, height, 64*180, 64*360) dc.lineWidth = oldLineWidth end end