diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2011-05-01 08:22:00 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2011-05-01 08:22:00 +0200 |
commit | 51a6645abd257b37f3248ccf26b1007a7ac88208 (patch) | |
tree | 9e90ced4ab2b83af091ca5078d44cabbb7a43050 /lib/efl/edje.rb | |
parent | 314715fd3a8421571ffe77d1a497978011b976fb (diff) | |
download | ffi-efl-51a6645abd257b37f3248ccf26b1007a7ac88208.zip ffi-efl-51a6645abd257b37f3248ccf26b1007a7ac88208.tar.gz |
cleanup method_missing and [module,prefix] proxies usage and definition
Diffstat (limited to 'lib/efl/edje.rb')
-rw-r--r-- | lib/efl/edje.rb | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/lib/efl/edje.rb b/lib/efl/edje.rb index cd062ff..4a2c4d9 100644 --- a/lib/efl/edje.rb +++ b/lib/efl/edje.rb @@ -1,14 +1,58 @@ #! /usr/bin/env ruby # -*- coding: UTF-8 -*- # +require 'efl/evas' require 'efl/ffi/edje' # module Efl # module Edje # + class REdje < Efl::Evas::REvasObject + # + proxy_list [Efl::Edje,'edje_object_'].freeze + def part_object_get part + # EAPI const Evas_Object *edje_object_part_object_get (const Evas_Object *obj, const char *part); + Efl::Evas::RevasObject.new Efl::Edje.edje_object_part_object_get @ptr, part + end + def part_swallow_get part + # EAPI Evas_Object *edje_object_part_swallow_get (const Evas_Object *obj, const char *part); + Efl::Evas::RevasObject.new Efl::Edje.edje_object_part_swallow_get @ptr, part + end + def external_object_get part + # EAPI Evas_Object *edje_object_part_external_object_get (const Evas_Object *obj, const char *part); + Efl::Evas::RevasObject.new Efl::Edje.edje_object_part_external_object_get @ptr, part + end + def external_content_get part, content + # EAPI Evas_Object *edje_object_part_external_content_get (const Evas_Object *obj, const char *part, const char *content); + Efl::Evas::RevasObject.new Efl::Edje.edje_object_part_external_content_get @ptr, part, content + end + def part_box_remove part, child + # EAPI Evas_Object *edje_object_part_box_remove (Evas_Object *obj, const char *part, Evas_Object *child); + Efl::Evas::RevasObject.new Efl::Edje.edje_object_part_box_remove @ptr, part, child + end + def part_box_remove_at part, pos + # EAPI Evas_Object *edje_object_part_box_remove_at (Evas_Object *obj, const char *part, unsigned int pos); + Efl::Evas::RevasObject.new Efl::Edje.edje_object_part_box_remove_at @ptr, part, pos + end + def part_child_get part, col, row + # EAPI Evas_Object *edje_object_part_table_child_get (Evas_Object *obj, const char *part, unsigned int col, unsigned int row); + Efl::Evas::RevasObject.new Efl::Edje.edje_object_part_child_get @ptr, part, col, row + end + end + # end # + module Evas + # + class REvas + def edje_object_add + # EAPI Evas_Object *edje_object_add (Evas *evas); + Efl::Edje::REdje.new Efl::Edje.edje_object_add @ptr + end + end + # + end end # # EOF |