summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/efl/elementary_all.rb2
-rw-r--r--lib/efl/elm/elm_conform.rb26
-rw-r--r--lib/efl/native/elm/elm_conform.rb37
-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 5de5480..60eaec1 100644
--- a/lib/efl/elementary_all.rb
+++ b/lib/efl/elementary_all.rb
@@ -19,7 +19,7 @@ require 'efl/elm/elm_check'
require 'efl/elm/elm_clock'
#require 'efl/elm/elm_cnp'
require 'efl/elm/elm_colorselector'
-#require 'efl/elm/elm_conform'
+require 'efl/elm/elm_conform'
require 'efl/elm/elm_ctxpopup'
require 'efl/elm/elm_cursor'
require 'efl/elm/elm_debug'
diff --git a/lib/efl/elm/elm_conform.rb b/lib/efl/elm/elm_conform.rb
new file mode 100644
index 0000000..564ba3f
--- /dev/null
+++ b/lib/efl/elm/elm_conform.rb
@@ -0,0 +1,26 @@
+#! /usr/bin/env ruby
+# -*- coding: UTF-8 -*-
+#
+require 'efl/elm/elm_object'
+require 'efl/native/elm/elm_conform'
+#
+module Efl
+ #
+ module Elm
+ #
+ class ElmConform < ElmObject
+ #
+ include Helper
+ constructor :elm_conformant_add
+ search_prefixes 'elm_conformant_'
+ #
+ def content_area_get
+ Evas::REvasObject.new Native.elm_conformant_content_area_get @ptr
+ end
+ #
+ end
+ #
+ end
+end
+#
+# EOF
diff --git a/lib/efl/native/elm/elm_conform.rb b/lib/efl/native/elm/elm_conform.rb
new file mode 100644
index 0000000..abf4ecb
--- /dev/null
+++ b/lib/efl/native/elm/elm_conform.rb
@@ -0,0 +1,37 @@
+#! /usr/bin/env ruby
+# -*- coding: UTF-8 -*-
+#
+require 'efl/native'
+require 'efl/native/elementary'
+#
+module Efl
+ #
+ module ElmConform
+ #
+ FCT_PREFIX = 'elm_conform_' 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_conformant_add(Evas_Object *parent);
+ [ :elm_conformant_add, [ :evas_object ], :evas_object ],
+ # EAPI Evas_Object *elm_conformant_content_area_get(const Evas_Object *obj);
+ [ :elm_conformant_content_area_get, [ :evas_object ], :evas_object ],
+ ]
+ #
+ attach_fcts fcts
+ #
+ end
+end
+#
+# EOF
diff --git a/tools/genruby.rb b/tools/genruby.rb
index 5031d15..9b4598b 100755
--- a/tools/genruby.rb
+++ b/tools/genruby.rb
@@ -387,7 +387,7 @@ libs << elm_h('elm_clock.h', 'ElmClock')
#libs << elm_h('elm_cnp.h', 'ElmCnp')
libs << elm_h('elm_colorselector.h', 'ElmColorSelector')
libs << elm_h('elm_config.h', 'ElmConfig')
-#libs << elm_h('elm_conform.h', 'ElmConform')
+libs << elm_h('elm_conform.h', 'ElmConform')
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"])