1 # $Id: crossfade.rb 24 2005-04-09 13:53:14Z tilman $
5 EDJE.collection("crossfade") do |c|
6 c.part("background", :rect).description do |d|
10 c.part("rect_red", :rect) do |p|
13 d.rel[1].set_rel(1.0, 0.0)
16 p.description("default", 1.0) do |d|
18 d.rel[1].set_rel(1.0, 0.4)
22 c.part("rect_green", :rect) do |p|
25 d.rel[0].set_rel(0.0, 1.0)
28 p.description("default", 1.0) do |d|
30 d.rel[0].set_rel(0.0, 0.6)
34 c.part("text", :text) do |p|
41 d.set_fit(true, false)
45 c.program("animate", :set_state) do |p|
46 p.signal = "mouse,clicked,1"
47 p.source = "background"
51 p.targets << ProgramTarget.new(c.part("rect_red"))
52 p.targets << ProgramTarget.new(c.part("rect_green"))