Method: Fox::Canvas::ShapeCanvas#killSelection

Defined in:
lib/fox16/canvas.rb

#killSelection(notify) ⇒ Object

Kill selection



458
459
460
461
462
463
464
465
466
467
468
469
470
471
# File 'lib/fox16/canvas.rb', line 458

def killSelection(notify)
  changes = false
  @scene.each do |shape|
    if shape.selected?
      shape.deselect
      updateShape(shape)
      changes = true
      if notify && (target != nil)
        target.handle(self, MKUINT(message, SEL_DESELECTED), shape)
      end
    end
  end
  changes
end