diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/efl/elementary_all.rb | 2 | ||||
-rw-r--r-- | lib/efl/elm/elm_separator.rb | 22 | ||||
-rw-r--r-- | lib/efl/native/elm/elm_separator.rb | 39 |
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 |