diff options
Diffstat (limited to 'lib/efl')
-rw-r--r-- | lib/efl/elementary_all.rb | 2 | ||||
-rw-r--r-- | lib/efl/elm/elm_progressbar.rb | 22 | ||||
-rw-r--r-- | lib/efl/native/elm/elm_progressbar.rb | 61 |
3 files changed, 84 insertions, 1 deletions
diff --git a/lib/efl/elementary_all.rb b/lib/efl/elementary_all.rb index e864d03..49a74ac 100644 --- a/lib/efl/elementary_all.rb +++ b/lib/efl/elementary_all.rb @@ -70,7 +70,7 @@ require 'efl/elm/elm_panes' #require 'efl/elm/elm_photocam' #require 'efl/elm/elm_photo' #require 'efl/elm/elm_plug' -#require 'efl/elm/elm_progressbar' +require 'efl/elm/elm_progressbar' require 'efl/elm/elm_radio' #require 'efl/elm/elm_route' #require 'efl/elm/elm_scale' diff --git a/lib/efl/elm/elm_progressbar.rb b/lib/efl/elm/elm_progressbar.rb new file mode 100644 index 0000000..13b0605 --- /dev/null +++ b/lib/efl/elm/elm_progressbar.rb @@ -0,0 +1,22 @@ +#! /usr/bin/env ruby +# -*- coding: UTF-8 -*- +# +require 'efl/elm/elm_object' +require 'efl/native/elm/elm_progressbar' +# +module Efl + # + module Elm + # + class ElmProgressBar < ElmObject + # + include Helper + constructor :elm_progressbar_add + search_prefixes 'elm_progressbar_' + # + end + # + end +end +# +# EOF diff --git a/lib/efl/native/elm/elm_progressbar.rb b/lib/efl/native/elm/elm_progressbar.rb new file mode 100644 index 0000000..019dbfa --- /dev/null +++ b/lib/efl/native/elm/elm_progressbar.rb @@ -0,0 +1,61 @@ +#! /usr/bin/env ruby +# -*- coding: UTF-8 -*- +# +require 'efl/native' +require 'efl/native/elementary' +# +module Efl + # + module ElmProgressBar + # + FCT_PREFIX = 'elm_progressbar_' 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_progressbar_add(Evas_Object *parent); + [ :elm_progressbar_add, [ :evas_object ], :evas_object ], + # EAPI void elm_progressbar_pulse_set(Evas_Object *obj, Eina_Bool pulse); + [ :elm_progressbar_pulse_set, [ :evas_object, :bool ], :void ], + # EAPI Eina_Bool elm_progressbar_pulse_get(const Evas_Object *obj); + [ :elm_progressbar_pulse_get, [ :evas_object ], :bool ], + # EAPI void elm_progressbar_pulse(Evas_Object *obj, Eina_Bool state); + [ :elm_progressbar_pulse, [ :evas_object, :bool ], :void ], + # EAPI void elm_progressbar_value_set(Evas_Object *obj, double val); + [ :elm_progressbar_value_set, [ :evas_object, :double ], :void ], + # EAPI double elm_progressbar_value_get(const Evas_Object *obj); + [ :elm_progressbar_value_get, [ :evas_object ], :double ], + # EAPI void elm_progressbar_span_size_set(Evas_Object *obj, Evas_Coord size); + [ :elm_progressbar_span_size_set, [ :evas_object, :int ], :void ], + # EAPI Evas_Coord elm_progressbar_span_size_get(const Evas_Object *obj); + [ :elm_progressbar_span_size_get, [ :evas_object ], :int ], + # EAPI void elm_progressbar_unit_format_set(Evas_Object *obj, const char *format); + [ :elm_progressbar_unit_format_set, [ :evas_object, :string ], :void ], + # EAPI const char *elm_progressbar_unit_format_get(const Evas_Object *obj); + [ :elm_progressbar_unit_format_get, [ :evas_object ], :string ], + # EAPI void elm_progressbar_horizontal_set(Evas_Object *obj, Eina_Bool horizontal); + [ :elm_progressbar_horizontal_set, [ :evas_object, :bool ], :void ], + # EAPI Eina_Bool elm_progressbar_horizontal_get(const Evas_Object *obj); + [ :elm_progressbar_horizontal_get, [ :evas_object ], :bool ], + # EAPI void elm_progressbar_inverted_set(Evas_Object *obj, Eina_Bool inverted); + [ :elm_progressbar_inverted_set, [ :evas_object, :bool ], :void ], + # EAPI Eina_Bool elm_progressbar_inverted_get(const Evas_Object *obj); + [ :elm_progressbar_inverted_get, [ :evas_object ], :bool ], + ] + # + attach_fcts fcts + # + end +end +# +# EOF |