diff options
Diffstat (limited to 'lib/efl')
-rw-r--r-- | lib/efl/ecore_evas.rb | 11 | ||||
-rw-r--r-- | lib/efl/evas.rb | 13 |
2 files changed, 20 insertions, 4 deletions
diff --git a/lib/efl/ecore_evas.rb b/lib/efl/ecore_evas.rb index 215bb3f..9bc1981 100644 --- a/lib/efl/ecore_evas.rb +++ b/lib/efl/ecore_evas.rb @@ -117,10 +117,13 @@ module Efl # EAPI Ecore_Evas *ecore_evas_object_ecore_evas_get(Evas_Object *obj); Efl::EcoreEvas::REcoreEvas.new Efl::EcoreEvas.ecore_evas_object_ecore_evas_get @ptr end - def evas_get - # EAPI Evas *ecore_evas_object_evas_get(Evas_Object *obj); - Efl::Evas::REvas.new Efl::EcoreEvas.ecore_evas_object_evas_get @ptr - end + alias :ecore_evas :ecore_evas_get + # FIXME override REvas#evas_get => evas_object_evas_get +# def evas_get +# # EAPI Evas *ecore_evas_object_evas_get(Evas_Object *obj); +# Efl::Evas::REvas.new Efl::EcoreEvas.ecore_evas_object_evas_get @ptr +# end +# alias :evas :evas_get end end # diff --git a/lib/efl/evas.rb b/lib/efl/evas.rb index aada313..a99f652 100644 --- a/lib/efl/evas.rb +++ b/lib/efl/evas.rb @@ -78,6 +78,7 @@ module Efl Efl::Evas.evas_output_size_get @ptr, x, y [ x.read_int, y.read_int ] end + alias :size :output_size_get def output_viewport_get x = FFI::MemoryPointer.new :int y = FFI::MemoryPointer.new :int @@ -150,6 +151,18 @@ module Efl [ r.read_int, g.read_int, b.read_int, a.read_int ] end alias :color :color_get + def evas_get + REvas.new Efl::Evas.evas_object_evas_get @ptr + end + alias :evas :evas_get + def above_get + REvasObject.new Efl::Evas.evas_object_above_get @ptr + end + alias :above :above_get + def below_get + REvasObject.new Efl::Evas.evas_object_below_get @ptr + end + alias :below :below_get end end end |