summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-11-28 23:20:05 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2012-11-28 23:20:05 +0100
commit695680a36cc9ed7e37e6c1b4bb276574071b4671 (patch)
tree26bcd543490a66daca9938d956a1d8516f36f8b3
parent7ad1aad37ba538a6ea59a3731716f8b9726cdccf (diff)
downloadffi-efl-695680a36cc9ed7e37e6c1b4bb276574071b4671.zip
ffi-efl-695680a36cc9ed7e37e6c1b4bb276574071b4671.tar.gz
generate native elm_win_inwin_, add ElmInwin class
-rw-r--r--lib/efl/elm/elm_inwin.rb22
-rw-r--r--lib/efl/native/elm/elm_inwin.rb43
-rwxr-xr-xtools/genruby.rb1
3 files changed, 66 insertions, 0 deletions
diff --git a/lib/efl/elm/elm_inwin.rb b/lib/efl/elm/elm_inwin.rb
new file mode 100644
index 0000000..fdee6bd
--- /dev/null
+++ b/lib/efl/elm/elm_inwin.rb
@@ -0,0 +1,22 @@
+#! /usr/bin/env ruby
+# -*- coding: UTF-8 -*-
+#
+require 'efl/elm/elm_object'
+#
+module Efl
+ #
+ module Elm
+ #
+ class ElmInwin < ElmObject
+ #
+ include Helper
+ constructor :elm_button_add
+ search_prefixes 'elm_button_'
+ search_prefixes 'elm_win_inwin_'
+ #
+ end
+ #
+ end
+end
+#
+# EOF
diff --git a/lib/efl/native/elm/elm_inwin.rb b/lib/efl/native/elm/elm_inwin.rb
new file mode 100644
index 0000000..d83163c
--- /dev/null
+++ b/lib/efl/native/elm/elm_inwin.rb
@@ -0,0 +1,43 @@
+#! /usr/bin/env ruby
+# -*- coding: UTF-8 -*-
+#
+require 'efl/native'
+require 'efl/native/elementary'
+#
+module Efl
+ #
+ module ElmInwin
+ #
+ FCT_PREFIX = 'elm_win_inwin_' 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'
+ #
+ # FUNCTIONS
+ fcts = [
+ # EAPI Evas_Object *elm_win_inwin_add(Evas_Object *parent);
+ [ :elm_win_inwin_add, [ :evas_object ], :evas_object ],
+ # EAPI void elm_win_inwin_activate(Evas_Object *obj);
+ [ :elm_win_inwin_activate, [ :evas_object ], :void ],
+ # EAPI void elm_win_inwin_content_set(Evas_Object *obj, Evas_Object *content);
+ [ :elm_win_inwin_content_set, [ :evas_object, :evas_object ], :void ],
+ # EAPI Evas_Object *elm_win_inwin_content_get(const Evas_Object *obj);
+ [ :elm_win_inwin_content_get, [ :evas_object ], :evas_object ],
+ # EAPI Evas_Object *elm_win_inwin_content_unset(Evas_Object *obj);
+ [ :elm_win_inwin_content_unset, [ :evas_object ], :evas_object ],
+ ]
+ #
+ attach_fcts fcts
+ #
+ end
+end
+#
+# EOF
diff --git a/tools/genruby.rb b/tools/genruby.rb
index 07114f0..1b27880 100755
--- a/tools/genruby.rb
+++ b/tools/genruby.rb
@@ -417,6 +417,7 @@ libs << elm_h('elm_hover.h', 'ElmHover')
libs << elm_h('elm_image.h', 'ElmImage')
libs << elm_h('elm_index.h', 'ElmIndex')
libs << elm_h('elm_inwin.h', 'ElmInwin')
+libs[-1][:prefix] = 'elm_win_inwin'
libs << elm_h('elm_label.h', 'ElmLabel', ["#{NATIVE}/elementary","#{NATIVE}/elm/elm_entry"])
libs << elm_h('elm_layout.h', 'ElmLayout', ["#{NATIVE}/edje","#{NATIVE}/elementary"])
libs << elm_h('elm_mapbuf.h', 'ElmMapBuf')