projects
/
embrace.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4a43cee
)
Updated to new Evas::Smart API.
author
Tilman Sauerbeck
<tilman@code-monkey.de>
Sat, 23 Sep 2006 19:56:07 +0000
(21:56 +0200)
committer
Tilman Sauerbeck
<tilman@code-monkey.de>
Sat, 23 Sep 2006 19:56:07 +0000
(21:56 +0200)
bin/embrace
patch
|
blob
|
history
diff --git
a/bin/embrace
b/bin/embrace
index bfd91c9187e631951842089f2910c4b569019d9a..4e5b64ebf3cbac0097ccb61b9c1af74a686c0007 100755
(executable)
--- a/
bin/embrace
+++ b/
bin/embrace
@@
-134,21
+134,21
@@
module Embrace
end
# smart callbacks
end
# smart callbacks
- def
on
_show
+ def
smart
_show
@objects.each { |o| o.show }
@alpha_anim ||= AlphaAnimator.new(2, @img, @label)
@alpha_anim.on_finished { @alpha_anim = nil }
end
@objects.each { |o| o.show }
@alpha_anim ||= AlphaAnimator.new(2, @img, @label)
@alpha_anim.on_finished { @alpha_anim = nil }
end
- def
on
_hide
+ def
smart
_hide
@objects.each { |o| o.hide }
@alpha_anim && @alpha_anim.delete
@alpha_anim = nil
end
@objects.each { |o| o.hide }
@alpha_anim && @alpha_anim.delete
@alpha_anim = nil
end
- def
on
_delete
+ def
smart
_delete
@objects.each { |o| o.delete }
@objects.clear
@objects.each { |o| o.delete }
@objects.clear
@@
-157,13
+157,13
@@
module Embrace
@img = @label = @alpha_anim = nil
end
@img = @label = @alpha_anim = nil
end
- def
on
_move(x, y)
+ def
smart
_move(x, y)
@objects.each { |o| o.move(x, y) }
@label.center(self)
end
@objects.each { |o| o.move(x, y) }
@label.center(self)
end
- def
on
_resize(w, h)
+ def
smart
_resize(w, h)
@img.resize(w, h)
end
end
@img.resize(w, h)
end
end
@@
-256,24
+256,24
@@
module Embrace
end
# smart callbacks
end
# smart callbacks
- def
on
_show
+ def
smart
_show
@bg.show
end
@bg.show
end
- def
on
_hide
+ def
smart
_hide
@bg.hide
end
@bg.hide
end
- def
on
_delete
+ def
smart
_delete
@bg.delete
@bg = nil
end
@bg.delete
@bg = nil
end
- def
on
_move(x, y)
+ def
smart
_move(x, y)
@bg.move(x, y)
end
@bg.move(x, y)
end
- def
on
_resize(w, h)
+ def
smart
_resize(w, h)
@bg.resize(w, h)
end
@bg.resize(w, h)
end