ffi-efl 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,6 +6,7 @@ require 'efl/elementary'
6
6
  include Efl
7
7
  #
8
8
  class MyWin < Elm::ElmWin
9
+ #
9
10
  def initialize name, title
10
11
  super FFI::MemoryPointer::NULL, name
11
12
  title_set title
@@ -13,19 +14,19 @@ class MyWin < Elm::ElmWin
13
14
  smart_callback_add "delete,request", method(:exit), FFI::MemoryPointer.from_string("my data")
14
15
  end
15
16
  def feed
16
- # using block
17
- @bg = add 'bg' do |bg|
17
+ @bg = Elm::ElmBg.new(self) do |bg|
18
18
  bg.size_hint_weight_set 1.0, 1.0
19
- bg.color = 200,255,100,200 # same as bg.color_set 200,255,100,200
19
+ # bg.color = 200,255,100
20
+ bg.evas_object_color_set 200,255,100,150
20
21
  bg.show
21
22
  end
22
- resize_object_add @bg.to_ptr
23
- @lb = add 'label'do |lb|
24
- lb.label_label_set "Hello World!" # complete function name
25
- lb.size_hint_weight_set 1.0, 1.0 # implicit evas_object function name prefix
23
+ resize_object_add @bg
24
+ @lb = Elm::ElmLabel.new(self) do |lb|
25
+ lb.label_set "Hello World!"
26
+ lb.size_hint_weight_set 1.0, 1.0
26
27
  end
27
28
  @lb.show
28
- resize_object_add @lb.to_ptr
29
+ resize_object_add @lb
29
30
  end
30
31
  def exit data, evas_object, event_info
31
32
  puts "EXIT #{data.read_string}"
@@ -35,11 +36,11 @@ end
35
36
  #
36
37
  Elm.init
37
38
  #
38
- win = MyWin.new "App name", "Window Title" do |w,eo|
39
+ win = MyWin.new "App name", "Window Title" do |w|
39
40
  w.alpha_set true
40
- eo.move 300, 300
41
- eo.resize 200, 100
42
- eo.show
41
+ w.move 300, 300
42
+ w.resize 200, 100
43
+ w.show
43
44
  end
44
45
  #
45
46
  Elm.run
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: ffi-efl
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.5
5
+ version: 0.0.6
6
6
  platform: ruby
7
7
  authors:
8
8
  - "J\xC3\xA9r\xC3\xA9my Zurcher"
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-05-06 00:00:00 Z
13
+ date: 2011-05-11 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: ffi
@@ -20,7 +20,7 @@ dependencies:
20
20
  requirements:
21
21
  - - ">="
22
22
  - !ruby/object:Gem::Version
23
- version: 1.0.7
23
+ version: 1.0.2
24
24
  type: :runtime
25
25
  version_requirements: *id001
26
26
  - !ruby/object:Gem::Dependency
@@ -68,6 +68,7 @@ files:
68
68
  - lib/efl/eina.rb
69
69
  - lib/efl/eina_hash.rb
70
70
  - lib/efl/eina_list.rb
71
+ - lib/efl/eina_log.rb
71
72
  - lib/efl/eina_rectangle.rb
72
73
  - lib/efl/elementary.rb
73
74
  - lib/efl/evas.rb
@@ -82,6 +83,7 @@ files:
82
83
  - lib/efl/native/eina.rb
83
84
  - lib/efl/native/eina_hash.rb
84
85
  - lib/efl/native/eina_list.rb
86
+ - lib/efl/native/eina_log.rb
85
87
  - lib/efl/native/eina_types.rb
86
88
  - lib/efl/native/elementary.rb
87
89
  - lib/efl/native/evas.rb
@@ -93,8 +95,11 @@ files:
93
95
  - spec/eet_spec.rb
94
96
  - spec/eina_hash_spec.rb
95
97
  - spec/eina_list_spec.rb
98
+ - spec/eina_log_spec.rb
96
99
  - spec/eina_spec.rb
100
+ - spec/elm_spec.rb
97
101
  - spec/evas_spec.rb
102
+ - spec/helper.rb
98
103
  - tasks/ann.rake
99
104
  - tasks/constants.rb
100
105
  - tasks/ffi.rake
@@ -111,7 +116,7 @@ files:
111
116
  - tasks/test.rake
112
117
  - test/test_edje.rb
113
118
  - test/test_elm_win-native.rb
114
- - test/test_elm_win_class.rb
119
+ - test/test_elm_win.rb
115
120
  - test/test_evas.rb
116
121
  homepage: https://github.com/jeremyz/ffi-efl
117
122
  licenses: []
@@ -147,4 +152,4 @@ test_files:
147
152
  - test/test_evas.rb
148
153
  - test/test_elm_win-native.rb
149
154
  - test/test_edje.rb
150
- - test/test_elm_win_class.rb
155
+ - test/test_elm_win.rb