summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-02-28 11:48:25 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2012-02-28 11:48:25 +0100
commit0269c54ebb2ac1f75799c935d8ba6173a426d0c5 (patch)
treeb22fc12e5251b22ec08ee4d77681993b4833f541 /lib
parente0929df4e94fb8d4b3216f52694b558b3f04739f (diff)
downloadffi-efl-0269c54ebb2ac1f75799c935d8ba6173a426d0c5.zip
ffi-efl-0269c54ebb2ac1f75799c935d8ba6173a426d0c5.tar.gz
parse elm_separator.h, generate elm_separator.rb
Diffstat (limited to 'lib')
-rw-r--r--lib/efl/elementary_all.rb2
-rw-r--r--lib/efl/elm/elm_separator.rb22
-rw-r--r--lib/efl/native/elm/elm_separator.rb39
3 files changed, 62 insertions, 1 deletions
diff --git a/lib/efl/elementary_all.rb b/lib/efl/elementary_all.rb
index 84ef74a..4b81bcc 100644
--- a/lib/efl/elementary_all.rb
+++ b/lib/efl/elementary_all.rb
@@ -77,7 +77,7 @@ require 'efl/elm/elm_radio'
require 'efl/elm/elm_scroll'
require 'efl/elm/elm_scroller'
#require 'efl/elm/elm_segment_control'
-#require 'efl/elm/elm_separator'
+require 'efl/elm/elm_separator'
#require 'efl/elm/elm_slider'
#require 'efl/elm/elm_slideshow'
require 'efl/elm/elm_spinner'
diff --git a/lib/efl/elm/elm_separator.rb b/lib/efl/elm/elm_separator.rb
new file mode 100644
index 0000000..da98390
--- /dev/null
+++ b/lib/efl/elm/elm_separator.rb
@@ -0,0 +1,22 @@
+#! /usr/bin/env ruby
+# -*- coding: UTF-8 -*-
+#
+require 'efl/elm/elm_object'
+require 'efl/native/elm/elm_separator'
+#
+module Efl
+ #
+ module Elm
+ #
+ class ElmSeparator < ElmObject
+ #
+ include Helper
+ constructor :elm_separator_add
+ search_prefixes 'elm_separator_'
+ #
+ end
+ #
+ end
+end
+#
+# EOF
diff --git a/lib/efl/native/elm/elm_separator.rb b/lib/efl/native/elm/elm_separator.rb
new file mode 100644
index 0000000..f6e1b24
--- /dev/null
+++ b/lib/efl/native/elm/elm_separator.rb
@@ -0,0 +1,39 @@
+#! /usr/bin/env ruby
+# -*- coding: UTF-8 -*-
+#
+require 'efl/native'
+require 'efl/native/elementary'
+#
+module Efl
+ #
+ module ElmSeparator
+ #
+ FCT_PREFIX = 'elm_separator_' 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_separator_add(Evas_Object *parent);
+ [ :elm_separator_add, [ :evas_object ], :evas_object ],
+ # EAPI void elm_separator_horizontal_set(Evas_Object *obj, Eina_Bool horizontal);
+ [ :elm_separator_horizontal_set, [ :evas_object, :bool ], :void ],
+ # EAPI Eina_Bool elm_separator_horizontal_get(const Evas_Object *obj);
+ [ :elm_separator_horizontal_get, [ :evas_object ], :bool ],
+ ]
+ #
+ attach_fcts fcts
+ #
+ end
+end
+#
+# EOF