Sha256: 1b1a7d871999e41c24699d957f21ad91e8badb4c3f9a61eb6d5c6005bb5bfa6e
Contents?: true
Size: 635 Bytes
Versions: 1
Compression:
Stored size: 635 Bytes
Contents
Shoes.app do @elements = [] @elements << arc(0, 0, 100, 100, 0, Shoes::TWO_PI - Shoes::HALF_PI) @elements << rect(100, 100, 100, 100) @elements << para("text", left: 200) @elements << para(link("link") { |*args| alert(args.inspect) }) @elements << button("Ok") @elements << check @elements << image(File.expand_path("~/source/shoes4/static/shoes-icon.png")) @elements << stack(width: 100, height: 100) do background green para "text" end @elements.each do |e| e.style(:click => Proc.new do |*args| alert args.inspect end) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shoes-4.0.0.pre2 | samples/clicky.rb |