Sha256: 3fbe43b94c39ed387a81925d398501ec31ee82830cdd93d0ac8fdd30e3c20d5d

Contents?: true

Size: 1.25 KB

Versions: 29

Compression:

Stored size: 1.25 KB

Contents

# frozen_string_literal: true
# holder is a particle that contain an atome so we use my_objet.holder.left(33)
# and it will move the atome contain in the holder particle to be manipulated
# it facilitate the access of some atome without being worried about their id
# this is mainly used int context of input , slider , etc...


# simple example
b=box({color: :black})

c=b.circle({width: 10, height: 10, color: :red})

b.holder(c)
wait 1 do
  b.holder.center(true)
end






# second example ( holder is build in the input molecule)
text({ left: 33, top: 33, data: 'data collected', id: :infos })

inp = A.input({ width: 166,
                trigger: :up,
                back: :orange,
                shadow: {
                  id: :s2,
                  left: 3, top: 3, blur: 3,
                  invert: true,
                  red: 0, green: 0, blue: 0, alpha: 0.9
                },
                text: :black,
                smooth: 3,
                left: 66,
                top: 33,
                default: 'type here'
              }) do |val|

  grab(:infos).data(val)
end

wait 2 do
  inp.top(12)
  wait 1 do
    inp.width(666)
    inp.holder.blur(6)
    wait 1 do
      inp.holder.blur(0)
      inp.holder.data('injected data')
    end
  end

end






Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
atome-0.5.7.6.0 vendor/assets/application/examples/holder.rb
atome-0.5.7.5.9 vendor/assets/application/examples/holder.rb
atome-0.5.7.5.4 vendor/assets/application/examples/holder.rb
atome-0.5.7.5.3 vendor/assets/application/examples/holder.rb
atome-0.5.7.5.1 vendor/assets/application/examples/holder.rb
atome-0.5.7.4.8 vendor/assets/application/examples/holder.rb
atome-0.5.7.4.7 vendor/assets/application/examples/holder.rb
atome-0.5.7.4.6 vendor/assets/application/examples/holder.rb
atome-0.5.7.4.3 vendor/assets/application/examples/holder.rb
atome-0.5.7.4.2 vendor/assets/application/examples/holder.rb
atome-0.5.7.3.9 vendor/assets/application/examples/holder.rb
atome-0.5.7.3.6 vendor/assets/application/examples/holder.rb
atome-0.5.7.3.5 vendor/assets/application/examples/holder.rb
atome-0.5.7.3.3 vendor/assets/application/examples/holder.rb
atome-0.5.7.3.2 vendor/assets/application/examples/holder.rb
atome-0.5.7.3.1 vendor/assets/application/examples/holder.rb
atome-0.5.7.3.0 vendor/assets/application/examples/holder.rb
atome-0.5.7.1.8 vendor/assets/application/examples/holder.rb
atome-0.5.7.1.7 vendor/assets/application/examples/holder.rb
atome-0.5.7.1.0 vendor/assets/application/examples/holder.rb