summaryrefslogtreecommitdiffstats
path: root/lib/efl/native/elm/elm_factory.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-02-29 17:29:56 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2012-02-29 17:29:56 +0100
commitb306e3f4a2352246eb8baf7d17a54a89bfd02893 (patch)
tree9c86249f31e915651f5f9ae5fec868c634195085 /lib/efl/native/elm/elm_factory.rb
parentc589f79f167df20273f0b66f3614328f995e1352 (diff)
downloadffi-efl-b306e3f4a2352246eb8baf7d17a54a89bfd02893.zip
ffi-efl-b306e3f4a2352246eb8baf7d17a54a89bfd02893.tar.gz
parse elm_factory.h, generate elm_factory.rb
Diffstat (limited to 'lib/efl/native/elm/elm_factory.rb')
-rw-r--r--lib/efl/native/elm/elm_factory.rb41
1 files changed, 41 insertions, 0 deletions
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