Sha256: ba9a96d7eccc6f7052d32e4a2cd1b98c0e8e36b7169135a4f1956572f2803d94

Contents?: true

Size: 542 Bytes

Versions: 7

Compression:

Stored size: 542 Bytes

Contents

# frozen_string_literal: true
# Drop
b=box({id: :droper})
b.drop(true) do |drop_ob_id|
  puts "id received : #{drop_ob_id[:id]}"
  drop_obj=grab(drop_ob_id[:id])
  if drop_obj.type == :image
    grab(:view).image({ path: drop_obj.path , drag: true,  width: 120, left: 222, top: 222})
  end

end

image({path: "./medias/images/green_planet.png", left: 333, top: 33, drag: true})

#
b.over(:enter) do |event|
  b.color(:red)
end

b.over(:leave) do |event|
  b.color(:blue)
end


c=circle({ color: :orange, top: 333, id: :the_c_2 })
c.drag(true)

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
atome-0.5.4.1.9 vendor/assets/src/medias/rubies/examples/drop.rb
atome-0.5.4.1.7 vendor/assets/src/medias/rubies/examples/drop.rb
atome-0.5.4.1.3 vendor/assets/src/medias/rubies/examples/drop.rb
atome-0.5.4.1.2 vendor/assets/src/medias/rubies/examples/drop.rb
atome-0.5.4.1.1 vendor/assets/src/medias/rubies/examples/drop.rb
atome-0.5.4.1.0 vendor/assets/src/medias/rubies/examples/drop.rb
atome-0.5.4.0.9 vendor/assets/src/medias/rubies/examples/drop.rb