class Fox::Canvas::SingleSelectionPolicy

Single shape selected at one time

Public Class Methods

new(canvas) click to toggle source
Calls superclass method Fox::Canvas::SelectionPolicy::new
# File lib/fox16/canvas.rb, line 333
def initialize(canvas)
  super
end

Public Instance Methods

selectShape(shape, notify) click to toggle source
# File lib/fox16/canvas.rb, line 337
def selectShape(shape, notify)
  unless shape.selected?
    @canvas.killSelection(notify)
  end
  super
end