Method: Fox::Canvas::ShapeCanvas#disableShape
- Defined in:
- lib/fox16/canvas.rb
#disableShape(shape) ⇒ Object
Disable one shape
428 429 430 431 432 433 434 435 436 437 |
# File 'lib/fox16/canvas.rb', line 428 def disableShape(shape) if @scene.include?(shape) if shape.enabled? shape.disable updateShape(shape) end else raise CanvasError end end |