summaryrefslogtreecommitdiffstats
path: root/test/test_elm_win_class.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-04-27 06:00:58 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-04-27 06:00:58 +0200
commit7c63402a0087554395b97f6edc6c4cb7f10f6320 (patch)
tree738685f8a7f3df1c1286c723bad5a962646abf72 /test/test_elm_win_class.rb
parent44abb93bd6ad3f44d8b8a139e2b0ac0da7953631 (diff)
downloadffi-efl-7c63402a0087554395b97f6edc6c4cb7f10f6320.zip
ffi-efl-7c63402a0087554395b97f6edc6c4cb7f10f6320.tar.gz
ffi Helper: method_missing nicely handles /^(.)=$/ setters
Diffstat (limited to 'test/test_elm_win_class.rb')
-rw-r--r--test/test_elm_win_class.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test_elm_win_class.rb b/test/test_elm_win_class.rb
index 7934551..fee0265 100644
--- a/test/test_elm_win_class.rb
+++ b/test/test_elm_win_class.rb
@@ -18,6 +18,7 @@ class MyWin < Elm::ElmWin
# using block
@bg = add 'bg' do |bg|
bg.size_hint_weight_set 1.0, 1.0
+ bg.color = 200,255,100,200 # same as bg.color_set 200,255,100,200
bg.show
end
resize_object_add @bg.ptr
@@ -37,6 +38,7 @@ end
Elm.init
#
win = MyWin.new "App name", "Window Title" do |w,eo|
+ w.alpha_set true
eo.move 300, 300
eo.resize 200, 100
eo.show