diff options
Diffstat (limited to 'lib/efl/native/elm')
-rw-r--r-- | lib/efl/native/elm/elm_layout.rb | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/lib/efl/native/elm/elm_layout.rb b/lib/efl/native/elm/elm_layout.rb new file mode 100644 index 0000000..c9d76b9 --- /dev/null +++ b/lib/efl/native/elm/elm_layout.rb @@ -0,0 +1,77 @@ +#! /usr/bin/env ruby +# -*- coding: UTF-8 -*- +# +require 'efl/native' +require 'efl/native/elementary' +# +module Efl + # + module ElmLayout + # + FCT_PREFIX = 'elm_layout_' 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_layout_add(Evas_Object *parent); + [ :elm_layout_add, [ :evas_object ], :evas_object ], + # EAPI Eina_Bool elm_layout_file_set(Evas_Object *obj, const char *file, const char *group); + [ :elm_layout_file_set, [ :evas_object, :string, :string ], :bool ], + # EAPI Eina_Bool elm_layout_theme_set(Evas_Object *obj, const char *clas, const char *group, const char *style); + [ :elm_layout_theme_set, [ :evas_object, :string, :string, :string ], :bool ], + # EAPI void elm_layout_box_append(Evas_Object *obj, const char *part, Evas_Object *child); + [ :elm_layout_box_append, [ :evas_object, :string, :evas_object ], :void ], + # EAPI void elm_layout_box_prepend(Evas_Object *obj, const char *part, Evas_Object *child); + [ :elm_layout_box_prepend, [ :evas_object, :string, :evas_object ], :void ], + # EAPI void elm_layout_box_insert_before(Evas_Object *obj, const char *part, Evas_Object *child, const Evas_Object *reference); + [ :elm_layout_box_insert_before, [ :evas_object, :string, :evas_object, :evas_object ], :void ], + # EAPI void elm_layout_box_insert_at(Evas_Object *obj, const char *part, Evas_Object *child, unsigned int pos); + [ :elm_layout_box_insert_at, [ :evas_object, :string, :evas_object, :uint ], :void ], + # EAPI Evas_Object *elm_layout_box_remove(Evas_Object *obj, const char *part, Evas_Object *child); + [ :elm_layout_box_remove, [ :evas_object, :string, :evas_object ], :evas_object ], + # EAPI void elm_layout_box_remove_all(Evas_Object *obj, const char *part, Eina_Bool clear); + [ :elm_layout_box_remove_all, [ :evas_object, :string, :bool ], :void ], + # EAPI void elm_layout_table_pack(Evas_Object *obj, const char *part, Evas_Object *child_obj, unsigned short col, unsigned short row, unsigned short colspan, unsigned short rowspan); + [ :elm_layout_table_pack, [ :evas_object, :string, :evas_object, :ushort, :ushort, :ushort, :ushort ], :void ], + # EAPI Evas_Object *elm_layout_table_unpack(Evas_Object *obj, const char *part, Evas_Object *child_obj); + [ :elm_layout_table_unpack, [ :evas_object, :string, :evas_object ], :evas_object ], + # EAPI void elm_layout_table_clear(Evas_Object *obj, const char *part, Eina_Bool clear); + [ :elm_layout_table_clear, [ :evas_object, :string, :bool ], :void ], + # EAPI Evas_Object *elm_layout_edje_get(const Evas_Object *obj); + [ :elm_layout_edje_get, [ :evas_object ], :evas_object ], + # EAPI const char *elm_layout_data_get(const Evas_Object *obj, const char *key); + [ :elm_layout_data_get, [ :evas_object, :string ], :string ], + # EAPI void elm_layout_sizing_eval(Evas_Object *obj); + [ :elm_layout_sizing_eval, [ :evas_object ], :void ], + # EAPI Eina_Bool elm_layout_part_cursor_set(Evas_Object *obj, const char *part_name, const char *cursor); + [ :elm_layout_part_cursor_set, [ :evas_object, :string, :string ], :bool ], + # EAPI const char *elm_layout_part_cursor_get(const Evas_Object *obj, const char *part_name); + [ :elm_layout_part_cursor_get, [ :evas_object, :string ], :string ], + # EAPI void elm_layout_part_cursor_unset(Evas_Object *obj, const char *part_name); + [ :elm_layout_part_cursor_unset, [ :evas_object, :string ], :void ], + # EAPI Eina_Bool elm_layout_part_cursor_style_set(Evas_Object *obj, const char *part_name, const char *style); + [ :elm_layout_part_cursor_style_set, [ :evas_object, :string, :string ], :bool ], + # EAPI const char *elm_layout_part_cursor_style_get(const Evas_Object *obj, const char *part_name); + [ :elm_layout_part_cursor_style_get, [ :evas_object, :string ], :string ], + # EAPI Eina_Bool elm_layout_part_cursor_engine_only_set(Evas_Object *obj, const char *part_name, Eina_Bool engine_only); + [ :elm_layout_part_cursor_engine_only_set, [ :evas_object, :string, :bool ], :bool ], + # EAPI Eina_Bool elm_layout_part_cursor_engine_only_get(const Evas_Object *obj, const char *part_name); + [ :elm_layout_part_cursor_engine_only_get, [ :evas_object, :string ], :bool ], + ] + # + attach_fcts fcts + # + end +end +# +# EOF |