Sha256: 2a3dec90bd4e147aec978e426e382a5a3021bb7d1c08d38ec4769d54bd176ec6

Contents?: true

Size: 578 Bytes

Versions: 2

Compression:

Stored size: 578 Bytes

Contents

# extract example

c = circle({ atome_id: :the_circle })
c.text({ content: "children are restored too!!", visual: 22 })

b = box({ x: 666, drag: true, atome_id: :the_box })
t = b.text({ content: :ok, yy: 3, color: :black , atome_id: :the_text})
i = image({ content: :atome, size: 33, x: 96 })

i.transfer(b.atome_id)
t.content("logo parent is #{i.parent}")

c.touch do
  grab(:view).extract(c.atome_id)
  grab(:the_box).extract(i.atome_id)
  grab(:view).insert(i.atome_id)
  ATOME.wait 2 do
    grab(:intuition).insert(c.atome_id)
  end
  c.touch do
    c.delete(true)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
atome-0.4.7.0 vendor/assets/build/medias/rubies/examples/Old_examples/extract_detach.rb
atome-0.4.5.4 vendor/assets/build/medias/rubies/examples/Old_examples/extract_detach.rb