diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2011-05-05 00:13:06 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2011-05-05 00:13:06 +0200 |
commit | f3d11962e77d25d19a312b4baa1a390539b2187b (patch) | |
tree | d7a3842583a0607cba272a85b210f5947ed9ec57 /test/test_elm_win.rb | |
parent | e4baccaefd209a25daa3ff8d5277fe86aca1d379 (diff) | |
download | ffi-efl-f3d11962e77d25d19a312b4baa1a390539b2187b.zip ffi-efl-f3d11962e77d25d19a312b4baa1a390539b2187b.tar.gz |
all FFI into one module Efl::Native
Diffstat (limited to 'test/test_elm_win.rb')
-rw-r--r-- | test/test_elm_win.rb | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/test/test_elm_win.rb b/test/test_elm_win.rb index 23164cf..2467ffc 100644 --- a/test/test_elm_win.rb +++ b/test/test_elm_win.rb @@ -1,36 +1,36 @@ #! /usr/bin/env ruby # -*- coding: UTF-8 -*- # -require 'efl/elementary' require 'efl/native' +require 'efl/elementary' # for Efl::Elm.init # Efl::Elm.init # win_del = Proc.new { |data,evas_object,event_info| - Efl::Elm::Native.elm_exit(); + Efl::Native.elm_exit(); } # -win = Efl::Elm::Native.elm_win_add FFI::MemoryPointer::NULL, "App name", :elm_win_basic -Efl::Elm::Native.elm_win_title_set win, "Window title" -Efl::Evas::Native.evas_object_smart_callback_add win, "delete,request", win_del, FFI::MemoryPointer::NULL +win = Efl::Native.elm_win_add FFI::MemoryPointer::NULL, "App name", :elm_win_basic +Efl::Elm.win_title_set win, "Window title" +Efl::Native.evas_object_smart_callback_add win, "delete,request", win_del, FFI::MemoryPointer::NULL # -bg = Efl::Elm::Native.elm_bg_add win -Efl::Evas::Native.evas_object_size_hint_weight_set bg, 1.0, 1.0 -Efl::Elm::Native.elm_win_resize_object_add win, bg -Efl::Evas::Native.evas_object_show bg +bg = Efl::Native.elm_bg_add win +Efl::Native.evas_object_size_hint_weight_set bg, 1.0, 1.0 +Efl::Native.elm_win_resize_object_add win, bg +Efl::Native.evas_object_show bg # -lb = Efl::Elm::Native.elm_label_add win -Efl::Elm::Native.elm_label_label_set lb, "Hello World!" -Efl::Evas::Native.evas_object_size_hint_weight_set lb, 1.0, 1.0 -Efl::Elm::Native.elm_win_resize_object_add win, lb -Efl::Evas::Native.evas_object_show lb +lb = Efl::Native.elm_label_add win +Efl::Native.elm_label_label_set lb, "Hello World!" +Efl::Native.evas_object_size_hint_weight_set lb, 1.0, 1.0 +Efl::Native.elm_win_resize_object_add win, lb +Efl::Native.evas_object_show lb # -Efl::Evas::Native.evas_object_move win, 300, 300 -Efl::Evas::Native.evas_object_resize win, 200, 100 +Efl::Native.evas_object_move win, 300, 300 +Efl::Native.evas_object_resize win, 200, 100 # -Efl::Evas::Native.evas_object_show win +Efl::Native.evas_object_show win # Efl::Elm.run -Efl::Elm::Native.elm_shutdown +Efl::Native.elm_shutdown # # EOF |