@objects = [@img, @label]
@objects.each { |o| add_member(o) }
+ set_color(255, 255, 255, 0)
@img.set_color(255, 255, 255, 0)
@label.set_color(255, 0, 0, 0)
def smart_show
@objects.each { |o| o.show }
- @alpha_anim ||= AlphaAnimator.new(2, @img, @label)
+ @alpha_anim ||= AlphaAnimator.new(2, self)
@alpha_anim.on_finished { @alpha_anim = nil }
end
def smart_resize(w, h)
@img.resize(w, h)
end
+
+ def smart_color_set(r, g, b, a)
+ @objects.each { |o| o.alpha = a }
+ end
end
class Container < Evas::Smart