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.
- data/Changelog +10 -0
- data/Rakefile +1 -1
- data/lib/efl/ecore.rb +4 -0
- data/lib/efl/ecore_getopt.rb +8 -4
- data/lib/efl/edje.rb +4 -0
- data/lib/efl/eet.rb +4 -0
- data/lib/efl/eina.rb +4 -0
- data/lib/efl/eina_list.rb +2 -1
- data/lib/efl/eina_log.rb +68 -0
- data/lib/efl/elementary.rb +146 -14
- data/lib/efl/evas.rb +20 -7
- data/lib/efl/ffi.rb +18 -2
- data/lib/efl/native/ecore.rb +14 -8
- data/lib/efl/native/ecore_evas.rb +13 -12
- data/lib/efl/native/ecore_getopt.rb +7 -5
- data/lib/efl/native/ecore_input.rb +12 -10
- data/lib/efl/native/edje.rb +28 -29
- data/lib/efl/native/eet.rb +12 -13
- data/lib/efl/native/eina.rb +5 -2
- data/lib/efl/native/eina_hash.rb +2 -0
- data/lib/efl/native/eina_list.rb +2 -0
- data/lib/efl/native/eina_log.rb +102 -0
- data/lib/efl/native/eina_types.rb +2 -2
- data/lib/efl/native/elementary.rb +55 -58
- data/lib/efl/native/evas.rb +34 -39
- data/lib/efl.rb +3 -2
- data/spec/ecore_evas_spec.rb +64 -111
- data/spec/ecore_getopt_spec.rb +31 -13
- data/spec/ecore_spec.rb +3 -3
- data/spec/edje_spec.rb +21 -47
- data/spec/eet_spec.rb +3 -3
- data/spec/eina_hash_spec.rb +1 -1
- data/spec/eina_list_spec.rb +1 -1
- data/spec/eina_log_spec.rb +83 -0
- data/spec/eina_spec.rb +13 -7
- data/spec/elm_spec.rb +409 -0
- data/spec/evas_spec.rb +61 -93
- data/spec/helper.rb +72 -0
- data/test/test_edje.rb +4 -3
- data/test/{test_elm_win_class.rb → test_elm_win.rb} +13 -12
- metadata +10 -5
@@ -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
|
-
|
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
|
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
|
23
|
-
@lb =
|
24
|
-
lb.
|
25
|
-
lb.size_hint_weight_set 1.0, 1.0
|
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
|
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
|
39
|
+
win = MyWin.new "App name", "Window Title" do |w|
|
39
40
|
w.alpha_set true
|
40
|
-
|
41
|
-
|
42
|
-
|
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
|
+
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-
|
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.
|
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/
|
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/
|
155
|
+
- test/test_elm_win.rb
|