summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/efl/elementary_all.rb2
-rw-r--r--lib/efl/elm/elm_factory.rb22
-rw-r--r--lib/efl/native/elm/elm_factory.rb41
-rwxr-xr-xtools/genruby.rb2
4 files changed, 65 insertions, 2 deletions
diff --git a/lib/efl/elementary_all.rb b/lib/efl/elementary_all.rb
index 1785e41..b90db6a 100644
--- a/lib/efl/elementary_all.rb
+++ b/lib/efl/elementary_all.rb
@@ -25,7 +25,7 @@ require 'efl/elm/elm_cursor'
require 'efl/elm/elm_debug'
require 'efl/elm/elm_diskselector'
require 'efl/elm/elm_entry'
-#require 'efl/elm/elm_factory'
+require 'efl/elm/elm_factory'
require 'efl/elm/elm_fileselector_button'
require 'efl/elm/elm_fileselector_entry'
require 'efl/elm/elm_fileselector'
diff --git a/lib/efl/elm/elm_factory.rb b/lib/efl/elm/elm_factory.rb
new file mode 100644
index 0000000..b8d60f6
--- /dev/null
+++ b/lib/efl/elm/elm_factory.rb
@@ -0,0 +1,22 @@
+#! /usr/bin/env ruby
+# -*- coding: UTF-8 -*-
+#
+require 'efl/elm/elm_object'
+require 'efl/native/elm/elm_factory'
+#
+module Efl
+ #
+ module Elm
+ #
+ class ElmFactory < ElmObject
+ #
+ include Helper
+ constructor :elm_factory_add
+ search_prefixes 'elm_factory_'
+ #
+ end
+ #
+ end
+end
+#
+# EOF
diff --git a/lib/efl/native/elm/elm_factory.rb b/lib/efl/native/elm/elm_factory.rb
new file mode 100644
index 0000000..efa4ef6
--- /dev/null
+++ b/lib/efl/native/elm/elm_factory.rb
@@ -0,0 +1,41 @@
+#! /usr/bin/env ruby
+# -*- coding: UTF-8 -*-
+#
+require 'efl/native'
+require 'efl/native/elementary'
+#
+module Efl
+ #
+ module ElmFactory
+ #
+ FCT_PREFIX = 'elm_factory_' unless const_defined? :FCT_PREFIX
+ #
+ def self.method_missing meth, *args, &block
+ sym = Efl::MethodResolver.resolve self, meth, FCT_PREFIX
+ self.send sym, *args, &block
+ end
+ #
+ end
+ #
+ module Native
+ #
+ ffi_lib 'elementary-ver-pre-svn-09.so.0'
+ #
+ # FUNCTIONS
+ fcts = [
+ # EAPI Evas_Object *elm_factory_add(Evas_Object *parent);
+ [ :elm_factory_add, [ :evas_object ], :evas_object ],
+ # EAPI void elm_factory_maxmin_mode_set(Evas_Object *obj, Eina_Bool enabled);
+ [ :elm_factory_maxmin_mode_set, [ :evas_object, :bool ], :void ],
+ # EAPI Eina_Bool elm_factory_maxmin_mode_get(const Evas_Object *obj);
+ [ :elm_factory_maxmin_mode_get, [ :evas_object ], :bool ],
+ # EAPI void elm_factory_maxmin_reset_set(Evas_Object *obj);
+ [ :elm_factory_maxmin_reset_set, [ :evas_object ], :void ],
+ ]
+ #
+ attach_fcts fcts
+ #
+ end
+end
+#
+# EOF
diff --git a/tools/genruby.rb b/tools/genruby.rb
index 446fc4b..1013c92 100755
--- a/tools/genruby.rb
+++ b/tools/genruby.rb
@@ -392,7 +392,7 @@ libs << elm_h('elm_cursor.h', 'ElmCursor')
libs << elm_h('elm_debug.h', 'ElmDebug')
libs << elm_h('elm_diskselector.h', 'ElmDiskSelector', ["#{NATIVE}/elementary","#{NATIVE}/elm/elm_scroller"])
libs << elm_h('elm_engine.h', 'ElmEngine')
-#libs << elm_h('elm_factory.h', 'ElmFactory')
+libs << elm_h('elm_factory.h', 'ElmFactory')
libs << elm_h('elm_finger.h', 'ElmFinger')
libs << elm_h('elm_flip.h', 'ElmFlip')
libs << elm_h('elm_flipselector.h', 'ElmFlipSelector')