From a19eefaa43f4531a1a03a9a66072b5c9f56f8a50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 29 Feb 2012 09:04:02 +0100 Subject: update elementary API --- lib/efl/native/elm/elm_bubble.rb | 13 +++++++++---- lib/efl/native/elm/elm_entry.rb | 2 +- lib/efl/native/elm/elm_gengrid.rb | 12 +++++------- lib/efl/native/elm/elm_genlist.rb | 2 +- lib/efl/native/elm/elm_panes.rb | 4 ++-- 5 files changed, 18 insertions(+), 15 deletions(-) diff --git a/lib/efl/native/elm/elm_bubble.rb b/lib/efl/native/elm/elm_bubble.rb index 11b000b..635d3e8 100644 --- a/lib/efl/native/elm/elm_bubble.rb +++ b/lib/efl/native/elm/elm_bubble.rb @@ -21,14 +21,19 @@ module Efl # ffi_lib 'elementary-ver-pre-svn-09.so.0' # + # ENUMS + # typedef enum {...} Elm_Bubble_Pos; + enum :elm_bubble_pos, [ :elm_bubble_pos_invalid, -1, :elm_bubble_pos_top_left, 0, :elm_bubble_pos_top_right, 1, :elm_bubble_pos_bottom_left, + 2, :elm_bubble_pos_bottom_right, 3 ] + # # FUNCTIONS fcts = [ # EAPI Evas_Object *elm_bubble_add(Evas_Object *parent); [ :elm_bubble_add, [ :evas_object ], :evas_object ], - # EAPI void elm_bubble_corner_set(Evas_Object *obj, const char *corner); - [ :elm_bubble_corner_set, [ :evas_object, :string ], :void ], - # EAPI const char *elm_bubble_corner_get(const Evas_Object *obj); - [ :elm_bubble_corner_get, [ :evas_object ], :string ], + # EAPI void elm_bubble_pos_set(Evas_Object *obj, Elm_Bubble_Pos pos); + [ :elm_bubble_pos_set, [ :evas_object, :elm_bubble_pos ], :void ], + # EAPI Elm_Bubble_Pos elm_bubble_pos_get(const Evas_Object *obj); + [ :elm_bubble_pos_get, [ :evas_object ], :elm_bubble_pos ], ] # attach_fcts fcts diff --git a/lib/efl/native/elm/elm_entry.rb b/lib/efl/native/elm/elm_entry.rb index 2cd4800..7eb6b15 100644 --- a/lib/efl/native/elm/elm_entry.rb +++ b/lib/efl/native/elm/elm_entry.rb @@ -222,7 +222,7 @@ module Efl [ :elm_entry_input_panel_return_key_disabled_set, [ :evas_object, :bool ], :void ], # EAPI Eina_Bool elm_entry_input_panel_return_key_disabled_get(const Evas_Object *obj); [ :elm_entry_input_panel_return_key_disabled_get, [ :evas_object ], :bool ], - # EAPI void elm_entry_input_panel_return_key_autoenabled_set(Evas_Object *obj, Eina_Bool on); + # EAPI void elm_entry_input_panel_return_key_autoenabled_set(Evas_Object *obj, Eina_Bool enabled); [ :elm_entry_input_panel_return_key_autoenabled_set, [ :evas_object, :bool ], :void ], # EAPI void elm_entry_imf_context_reset(Evas_Object *obj); [ :elm_entry_imf_context_reset, [ :evas_object ], :void ], diff --git a/lib/efl/native/elm/elm_gengrid.rb b/lib/efl/native/elm/elm_gengrid.rb index 250822e..df79e26 100644 --- a/lib/efl/native/elm/elm_gengrid.rb +++ b/lib/efl/native/elm/elm_gengrid.rb @@ -103,7 +103,7 @@ module Efl [ :elm_gengrid_page_show, [ :evas_object, :int, :int ], :void ], # EAPI void elm_gengrid_page_bring_in(const Evas_Object *obj, int h_pagenumber, int v_pagenumber); [ :elm_gengrid_page_bring_in, [ :evas_object, :int, :int ], :void ], - # EAPI void elm_gengrid_horizontal_set(Evas_Object *obj, Eina_Bool setting); + # EAPI void elm_gengrid_horizontal_set(Evas_Object *obj, Eina_Bool horizontal); [ :elm_gengrid_horizontal_set, [ :evas_object, :bool ], :void ], # EAPI Eina_Bool elm_gengrid_horizontal_get(const Evas_Object *obj); [ :elm_gengrid_horizontal_get, [ :evas_object ], :bool ], @@ -125,10 +125,12 @@ module Efl [ :elm_gengrid_item_pos_get, [ :elm_object_item, :pointer, :pointer ], :void ], # EAPI void elm_gengrid_item_selected_set(Elm_Object_Item *it, Eina_Bool selected); [ :elm_gengrid_item_selected_set, [ :elm_object_item, :bool ], :void ], + # EAPI Elm_Object_Item *elm_gengrid_selected_item_get(const Evas_Object *obj); + [ :elm_gengrid_selected_item_get, [ :evas_object ], :elm_object_item ], + # EAPI const Eina_List *elm_gengrid_selected_items_get(const Evas_Object *obj); + [ :elm_gengrid_selected_items_get, [ :evas_object ], :eina_list ], # EAPI Eina_Bool elm_gengrid_item_selected_get(const Elm_Object_Item *it); [ :elm_gengrid_item_selected_get, [ :elm_object_item ], :bool ], - # EAPI const Evas_Object *elm_gengrid_item_object_get(const Elm_Object_Item *it); - [ :elm_gengrid_item_object_get, [ :elm_object_item ], :evas_object ], # EAPI void elm_gengrid_item_show(Elm_Object_Item *it); [ :elm_gengrid_item_show, [ :elm_object_item ], :void ], # EAPI void elm_gengrid_item_bring_in(Elm_Object_Item *it); @@ -163,10 +165,6 @@ module Efl [ :elm_gengrid_item_cursor_engine_only_get, [ :elm_object_item ], :bool ], # EAPI void elm_gengrid_clear(Evas_Object *obj); [ :elm_gengrid_clear, [ :evas_object ], :void ], - # EAPI Elm_Object_Item *elm_gengrid_selected_item_get(const Evas_Object *obj); - [ :elm_gengrid_selected_item_get, [ :evas_object ], :elm_object_item ], - # EAPI const Eina_List *elm_gengrid_selected_items_get(const Evas_Object *obj); - [ :elm_gengrid_selected_items_get, [ :evas_object ], :eina_list ], # EAPI void elm_gengrid_filled_set(Evas_Object *obj, Eina_Bool fill); [ :elm_gengrid_filled_set, [ :evas_object, :bool ], :void ], # EAPI Eina_Bool elm_gengrid_filled_get(const Evas_Object *obj); diff --git a/lib/efl/native/elm/elm_genlist.rb b/lib/efl/native/elm/elm_genlist.rb index 39add48..b3ed10c 100644 --- a/lib/efl/native/elm/elm_genlist.rb +++ b/lib/efl/native/elm/elm_genlist.rb @@ -28,7 +28,7 @@ module Efl enum :elm_genlist_item_flags, [ :elm_genlist_item_none, 0, :elm_genlist_item_subitems, (1<<0), :elm_genlist_item_group, (1<<1), :elm_genlist_item_max, (1<<2) ] # typedef enum {...} Elm_Genlist_Item_Field_Flags; - enum :elm_genlist_item_field_flags, [ :elm_genlist_item_field_all, 0, :elm_genlist_item_field_label, (1<<0), :elm_genlist_item_field_content, + enum :elm_genlist_item_field_flags, [ :elm_genlist_item_field_all, 0, :elm_genlist_item_field_text, (1<<0), :elm_genlist_item_field_content, (1<<1), :elm_genlist_item_field_state, (1<<2) ] # # TYPEDEFS diff --git a/lib/efl/native/elm/elm_panes.rb b/lib/efl/native/elm/elm_panes.rb index b804375..f54939f 100644 --- a/lib/efl/native/elm/elm_panes.rb +++ b/lib/efl/native/elm/elm_panes.rb @@ -34,9 +34,9 @@ module Efl # EAPI void elm_panes_content_left_size_set(Evas_Object *obj, double size); [ :elm_panes_content_left_size_set, [ :evas_object, :double ], :void ], # EAPI double elm_panes_content_right_size_get(const Evas_Object *obj); - #[ :elm_panes_content_right_size_get, [ :evas_object ], :double ], + [ :elm_panes_content_right_size_get, [ :evas_object ], :double ], # EAPI void elm_panes_content_right_size_set(Evas_Object *obj, double size); - #[ :elm_panes_content_right_size_set, [ :evas_object, :double ], :void ], + [ :elm_panes_content_right_size_set, [ :evas_object, :double ], :void ], # EAPI void elm_panes_horizontal_set(Evas_Object *obj, Eina_Bool horizontal); [ :elm_panes_horizontal_set, [ :evas_object, :bool ], :void ], # EAPI Eina_Bool elm_panes_horizontal_get(const Evas_Object *obj); -- cgit v1.1-2-g2b99 From 4ff4320c5dd6b05a3e78b2b020a27143af4c8bc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 29 Feb 2012 09:04:22 +0100 Subject: update evas_ecore API --- lib/efl/native/ecore_evas.rb | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/lib/efl/native/ecore_evas.rb b/lib/efl/native/ecore_evas.rb index b3f48d4..ac1ddf2 100644 --- a/lib/efl/native/ecore_evas.rb +++ b/lib/efl/native/ecore_evas.rb @@ -50,6 +50,8 @@ module Efl typedef :pointer, :ecore_cocoa_window # typedef struct _Ecore_Evas Ecore_Evas; typedef :pointer, :ecore_evas + # typedef struct _Ecore_Wl_Window Ecore_Wl_Window; + typedef :pointer, :ecore_wl_window # # CALLBACKS # typedef void (*Ecore_Evas_Event_Cb) (Ecore_Evas *ee); @@ -267,16 +269,12 @@ module Efl [ :ecore_evas_directfb_new, [ :string, :int, :int, :int, :int, :int ], :ecore_evas ], # EAPI Ecore_DirectFB_Window *ecore_evas_directfb_window_get(const Ecore_Evas *ee); [ :ecore_evas_directfb_window_get, [ :ecore_evas ], :ecore_directfb_window ], - # EAPI Ecore_Evas *ecore_evas_wayland_shm_new(const char *disp_name, int x, int y, int w, int h, int frame); - [ :ecore_evas_wayland_shm_new, [ :string, :int, :int, :int, :int, :int ], :ecore_evas ], - # EAPI Ecore_Evas *ecore_evas_wayland_egl_new(const char *disp_name, int x, int y, int w, int h, int frame); - [ :ecore_evas_wayland_egl_new, [ :string, :int, :int, :int, :int, :int ], :ecore_evas ], + # EAPI Ecore_Evas *ecore_evas_wayland_shm_new(const char *disp_name, unsigned int parent, int x, int y, int w, int h, Eina_Bool frame); + [ :ecore_evas_wayland_shm_new, [ :string, :uint, :int, :int, :int, :int, :bool ], :ecore_evas ], + # EAPI Ecore_Evas *ecore_evas_wayland_egl_new(const char *disp_name, unsigned int parent, int x, int y, int w, int h, Eina_Bool frame); + [ :ecore_evas_wayland_egl_new, [ :string, :uint, :int, :int, :int, :int, :bool ], :ecore_evas ], # EAPI void ecore_evas_wayland_resize(Ecore_Evas *ee, int location); [ :ecore_evas_wayland_resize, [ :ecore_evas, :int ], :void ], - # EAPI void ecore_evas_wayland_drag_start(Ecore_Evas *ee, Ecore_Evas *drag_ee, void *source); - [ :ecore_evas_wayland_drag_start, [ :ecore_evas, :ecore_evas, :pointer ], :void ], - # EAPI void ecore_evas_wayland_pointer_set(Ecore_Evas *ee, int hot_x, int hot_y); - [ :ecore_evas_wayland_pointer_set, [ :ecore_evas, :int, :int ], :void ], # EAPI Ecore_Evas *ecore_evas_buffer_new(int w, int h); [ :ecore_evas_buffer_new, [ :int, :int ], :ecore_evas ], # EAPI Ecore_Evas *ecore_evas_buffer_allocfunc_new(int w, int h, void *(*alloc_func) (void *data, int size), void (*free_func) (void *data, void *pix), const void *data); -- cgit v1.1-2-g2b99 From 8eb12c08d263e4f1ce0cd434d5eebc4c26afe68e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 29 Feb 2012 12:01:33 +0100 Subject: elm_calendar, elm_gengrid: update API --- lib/efl/native/elm/elm_calendar.rb | 8 ++++---- lib/efl/native/elm/elm_gengrid.rb | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/efl/native/elm/elm_calendar.rb b/lib/efl/native/elm/elm_calendar.rb index 9677040..6c7282e 100644 --- a/lib/efl/native/elm/elm_calendar.rb +++ b/lib/efl/native/elm/elm_calendar.rb @@ -42,10 +42,10 @@ module Efl [ :elm_calendar_min_max_year_set, [ :evas_object, :int, :int ], :void ], # EAPI void elm_calendar_min_max_year_get(const Evas_Object *obj, int *min, int *max); [ :elm_calendar_min_max_year_get, [ :evas_object, :pointer, :pointer ], :void ], - # EAPI void elm_calendar_day_selection_enabled_set(Evas_Object *obj, Eina_Bool enabled); - [ :elm_calendar_day_selection_enabled_set, [ :evas_object, :bool ], :void ], - # EAPI Eina_Bool elm_calendar_day_selection_enabled_get(const Evas_Object *obj); - [ :elm_calendar_day_selection_enabled_get, [ :evas_object ], :bool ], + # EAPI void elm_calendar_day_selection_disabled_set(Evas_Object *obj, Eina_Bool disabled); + [ :elm_calendar_day_selection_disabled_set, [ :evas_object, :bool ], :void ], + # EAPI Eina_Bool elm_calendar_day_selection_disabled_get(const Evas_Object *obj); + [ :elm_calendar_day_selection_disabled_get, [ :evas_object ], :bool ], # EAPI void elm_calendar_selected_time_set(Evas_Object *obj, struct tm *selected_time); [ :elm_calendar_selected_time_set, [ :evas_object, :pointer ], :void ], # EAPI Eina_Bool elm_calendar_selected_time_get(const Evas_Object *obj, struct tm *selected_time); diff --git a/lib/efl/native/elm/elm_gengrid.rb b/lib/efl/native/elm/elm_gengrid.rb index df79e26..5711177 100644 --- a/lib/efl/native/elm/elm_gengrid.rb +++ b/lib/efl/native/elm/elm_gengrid.rb @@ -119,8 +119,8 @@ module Efl [ :elm_gengrid_item_update, [ :elm_object_item ], :void ], # EAPI const Elm_Gengrid_Item_Class *elm_gengrid_item_item_class_get(const Elm_Object_Item *it); [ :elm_gengrid_item_item_class_get, [ :elm_object_item ], :elm_gengrid_item_class ], - # EAPI void elm_gengrid_item_item_class_set(Elm_Object_Item *it, const Elm_Gengrid_Item_Class *gic); - [ :elm_gengrid_item_item_class_set, [ :elm_object_item, :elm_gengrid_item_class ], :void ], + # EAPI void elm_gengrid_item_item_class_update(Elm_Object_Item *it, const Elm_Gengrid_Item_Class *gic); + [ :elm_gengrid_item_item_class_update, [ :elm_object_item, :elm_gengrid_item_class ], :void ], # EAPI void elm_gengrid_item_pos_get(const Elm_Object_Item *it, unsigned int *x, unsigned int *y); [ :elm_gengrid_item_pos_get, [ :elm_object_item, :pointer, :pointer ], :void ], # EAPI void elm_gengrid_item_selected_set(Elm_Object_Item *it, Eina_Bool selected); -- cgit v1.1-2-g2b99 From 35ebdabec5c965aec425f3aeeefe90b0d3369367 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 29 Feb 2012 14:59:45 +0100 Subject: remove deprecated elm_pager --- lib/efl/elementary_all.rb | 1 - lib/efl/elm/elm_pager.rb | 22 -------------------- lib/efl/native/elm/elm_pager.rb | 45 ----------------------------------------- tools/extract-api.sh | 1 - tools/genruby.rb | 1 - 5 files changed, 70 deletions(-) delete mode 100644 lib/efl/elm/elm_pager.rb delete mode 100644 lib/efl/native/elm/elm_pager.rb diff --git a/lib/efl/elementary_all.rb b/lib/efl/elementary_all.rb index 873160e..2c88f1b 100644 --- a/lib/efl/elementary_all.rb +++ b/lib/efl/elementary_all.rb @@ -55,7 +55,6 @@ require 'efl/elm/elm_mirroring' require 'efl/elm/elm_multibuttonentry' require 'efl/elm/elm_naviframe' require 'efl/elm/elm_notify' -require 'efl/elm/elm_pager' require 'efl/elm/elm_panel' require 'efl/elm/elm_panes' require 'efl/elm/elm_photocam' diff --git a/lib/efl/elm/elm_pager.rb b/lib/efl/elm/elm_pager.rb deleted file mode 100644 index f11108d..0000000 --- a/lib/efl/elm/elm_pager.rb +++ /dev/null @@ -1,22 +0,0 @@ -#! /usr/bin/env ruby -# -*- coding: UTF-8 -*- -# -require 'efl/elm/elm_object' -require 'efl/native/elm/elm_pager' -# -module Efl - # - module Elm - # - class ElmPager < ElmObject - # - include Helper - constructor :elm_pager_add - search_prefixes 'elm_pager_' - # - end - # - end -end -# -# EOF diff --git a/lib/efl/native/elm/elm_pager.rb b/lib/efl/native/elm/elm_pager.rb deleted file mode 100644 index 2cd908d..0000000 --- a/lib/efl/native/elm/elm_pager.rb +++ /dev/null @@ -1,45 +0,0 @@ -#! /usr/bin/env ruby -# -*- coding: UTF-8 -*- -# -require 'efl/native' -require 'efl/native/elementary' -# -module Efl - # - module ElmPager - # - FCT_PREFIX = 'elm_pager_' 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_pager_add(Evas_Object *parent); - [ :elm_pager_add, [ :evas_object ], :evas_object ], - # EAPI void elm_pager_content_push(Evas_Object *obj, Evas_Object *content); - [ :elm_pager_content_push, [ :evas_object, :evas_object ], :void ], - # EAPI void elm_pager_content_pop(Evas_Object *obj); - [ :elm_pager_content_pop, [ :evas_object ], :void ], - # EAPI void elm_pager_content_promote(Evas_Object *obj, Evas_Object *content); - [ :elm_pager_content_promote, [ :evas_object, :evas_object ], :void ], - # EAPI Evas_Object *elm_pager_content_bottom_get(const Evas_Object *obj); - [ :elm_pager_content_bottom_get, [ :evas_object ], :evas_object ], - # EAPI Evas_Object *elm_pager_content_top_get(const Evas_Object *obj); - [ :elm_pager_content_top_get, [ :evas_object ], :evas_object ], - ] - # - attach_fcts fcts - # - end -end -# -# EOF diff --git a/tools/extract-api.sh b/tools/extract-api.sh index f73b4dc..2d719a6 100755 --- a/tools/extract-api.sh +++ b/tools/extract-api.sh @@ -103,7 +103,6 @@ for header in \ "${INCLUDE}/elementary-0/elm_mirroring.h" \ "${INCLUDE}/elementary-0/elm_need.h" \ "${INCLUDE}/elementary-0/elm_notify.h" \ - "${INCLUDE}/elementary-0/elm_pager.h" \ "${INCLUDE}/elementary-0/elm_panel.h" \ "${INCLUDE}/elementary-0/elm_panes.h" \ "${INCLUDE}/elementary-0/elm_password.h" \ diff --git a/tools/genruby.rb b/tools/genruby.rb index bc2d1fe..dd7aacf 100755 --- a/tools/genruby.rb +++ b/tools/genruby.rb @@ -415,7 +415,6 @@ libs << elm_h('elm_menu.h', 'ElmMenu') libs << elm_h('elm_mirroring.h', 'ElmMirroring') libs << elm_h('elm_need.h', 'ElmNeed') libs << elm_h('elm_notify.h', 'ElmNotify') -libs << elm_h('elm_pager.h', 'ElmPager') libs << elm_h('elm_panel.h', 'ElmPanel') libs << elm_h('elm_panes.h', 'ElmPanes') libs << elm_h('elm_password.h', 'ElmPassword') -- cgit v1.1-2-g2b99 From 0241b168d235107611e3a238ce67a9a093b9e7d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 29 Feb 2012 16:53:57 +0100 Subject: parse elm_gesture_layer.h, generate elm_gesture_layer.rb --- lib/efl/elementary_all.rb | 3 +- lib/efl/elm/elm_gesture_layer.rb | 22 ++++++++++ lib/efl/native/elm/elm_gesture_layer.rb | 76 +++++++++++++++++++++++++++++++++ tools/genruby.rb | 2 +- 4 files changed, 100 insertions(+), 3 deletions(-) create mode 100644 lib/efl/elm/elm_gesture_layer.rb create mode 100644 lib/efl/native/elm/elm_gesture_layer.rb diff --git a/lib/efl/elementary_all.rb b/lib/efl/elementary_all.rb index 2c88f1b..6beba13 100644 --- a/lib/efl/elementary_all.rb +++ b/lib/efl/elementary_all.rb @@ -36,8 +36,7 @@ require 'efl/elm/elm_focus' require 'efl/elm/elm_frame' require 'efl/elm/elm_gengrid' require 'efl/elm/elm_genlist' -#require 'efl/elm/elm_gesture_layer' -#require 'efl/elm/elm_getting_started' +require 'efl/elm/elm_gesture_layer' #require 'efl/elm/elm_glview' require 'efl/elm/elm_grid' require 'efl/elm/elm_hover' diff --git a/lib/efl/elm/elm_gesture_layer.rb b/lib/efl/elm/elm_gesture_layer.rb new file mode 100644 index 0000000..7b4c99d --- /dev/null +++ b/lib/efl/elm/elm_gesture_layer.rb @@ -0,0 +1,22 @@ +#! /usr/bin/env ruby +# -*- coding: UTF-8 -*- +# +require 'efl/elm/elm_object' +require 'efl/native/elm/elm_gesture_layer' +# +module Efl + # + module Elm + # + class ElmGestureLayer < ElmObject + # + include Helper + constructor :elm_gesture_layer_add + search_prefixes 'elm_gesture_layer_' + # + end + # + end +end +# +# EOF diff --git a/lib/efl/native/elm/elm_gesture_layer.rb b/lib/efl/native/elm/elm_gesture_layer.rb new file mode 100644 index 0000000..6a3aba4 --- /dev/null +++ b/lib/efl/native/elm/elm_gesture_layer.rb @@ -0,0 +1,76 @@ +#! /usr/bin/env ruby +# -*- coding: UTF-8 -*- +# +require 'efl/native' +require 'efl/native/elementary' +# +module Efl + # + module ElmGestureLayer + # + FCT_PREFIX = 'elm_gesture_layer_' 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' + # + # ENUMS + # typedef enum {...} Elm_Gesture_Type; + enum :elm_gesture_type, [ :elm_gesture_first, 0, :elm_gesture_n_taps, 1, :elm_gesture_n_long_taps, 2, :elm_gesture_n_double_taps, 3, + :elm_gesture_n_triple_taps, 4, :elm_gesture_momentum, 5, :elm_gesture_n_lines, 6, :elm_gesture_n_flicks, 7, :elm_gesture_zoom, 8, :elm_gesture_rotate, + 9, :elm_gesture_last, 10 ] + # typedef enum {...} Elm_Gesture_State; + enum :elm_gesture_state, [ :elm_gesture_state_undefined, -1, :elm_gesture_state_start, 0, :elm_gesture_state_move, 1, :elm_gesture_state_end, + 2, :elm_gesture_state_abort, 3 ] + # + # TYPEDEFS + # typedef struct _Elm_Gesture_Taps_Info Elm_Gesture_Taps_Info; + typedef :pointer, :elm_gesture_taps_info + # typedef struct _Elm_Gesture_Momentum_Info Elm_Gesture_Momentum_Info; + typedef :pointer, :elm_gesture_momentum_info + # typedef struct _Elm_Gesture_Line_Info Elm_Gesture_Line_Info; + typedef :pointer, :elm_gesture_line_info + # typedef struct _Elm_Gesture_Zoom_Info Elm_Gesture_Zoom_Info; + typedef :pointer, :elm_gesture_zoom_info + # typedef struct _Elm_Gesture_Rotate_Info Elm_Gesture_Rotate_Info; + typedef :pointer, :elm_gesture_rotate_info + # + # CALLBACKS + # typedef Evas_Event_Flags (*Elm_Gesture_Event_Cb) (void *data, void *event_info); + callback :elm_gesture_event_cb, [ :pointer, :pointer ], :evas_event_flags + # + # FUNCTIONS + fcts = [ + # EAPI void elm_gesture_layer_cb_set(Evas_Object *obj, Elm_Gesture_Type idx, Elm_Gesture_State cb_type, Elm_Gesture_Event_Cb cb, void *data); + [ :elm_gesture_layer_cb_set, [ :evas_object, :elm_gesture_type, :elm_gesture_state, :elm_gesture_event_cb, :pointer ], :void ], + # EAPI Eina_Bool elm_gesture_layer_hold_events_get(const Evas_Object *obj); + [ :elm_gesture_layer_hold_events_get, [ :evas_object ], :bool ], + # EAPI void elm_gesture_layer_hold_events_set(Evas_Object *obj, Eina_Bool hold_events); + [ :elm_gesture_layer_hold_events_set, [ :evas_object, :bool ], :void ], + # EAPI void elm_gesture_layer_zoom_step_set(Evas_Object *obj, double step); + [ :elm_gesture_layer_zoom_step_set, [ :evas_object, :double ], :void ], + # EAPI double elm_gesture_layer_zoom_step_get(const Evas_Object *obj); + [ :elm_gesture_layer_zoom_step_get, [ :evas_object ], :double ], + # EAPI void elm_gesture_layer_rotate_step_set(Evas_Object *obj, double step); + [ :elm_gesture_layer_rotate_step_set, [ :evas_object, :double ], :void ], + # EAPI double elm_gesture_layer_rotate_step_get(const Evas_Object *obj); + [ :elm_gesture_layer_rotate_step_get, [ :evas_object ], :double ], + # EAPI Eina_Bool elm_gesture_layer_attach(Evas_Object *obj, Evas_Object *target); + [ :elm_gesture_layer_attach, [ :evas_object, :evas_object ], :bool ], + # EAPI Evas_Object *elm_gesture_layer_add(Evas_Object *parent); + [ :elm_gesture_layer_add, [ :evas_object ], :evas_object ], + ] + # + attach_fcts fcts + # + end +end +# +# EOF diff --git a/tools/genruby.rb b/tools/genruby.rb index dd7aacf..6b0ab95 100755 --- a/tools/genruby.rb +++ b/tools/genruby.rb @@ -401,7 +401,7 @@ libs << elm_h('elm_fonts.h', 'ElmFonts', ["#{NATIVE}/eina_hash","#{NATIVE}/elem libs << elm_h('elm_frame.h', 'ElmFrame') libs << elm_h('elm_gengrid.h', 'ElmGenGrid') libs << elm_h('elm_genlist.h', 'ElmGenList', ["#{NATIVE}/elementary","#{NATIVE}/elm/elm_list","#{NATIVE}/elm/elm_scroller"]) -#libs << elm_h('elm_gesture_layer.h', 'ElmGestureLayer') +libs << elm_h('elm_gesture_layer.h', 'ElmGestureLayer') #libs << elm_h('elm_glview.h', 'ElmGLView') libs << elm_h('elm_grid.h', 'ElmGrid') libs << elm_h('elm_hover.h', 'ElmHover') -- cgit v1.1-2-g2b99 From 5ba82144003b73f05d3398eb8b927c5522d6e970 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 29 Feb 2012 16:57:40 +0100 Subject: parse elm_glview.h, generate elm_glview.rb --- lib/efl/elementary_all.rb | 2 +- lib/efl/elm/elm_glview.rb | 22 +++++++++++++ lib/efl/native/elm/elm_glview.rb | 70 ++++++++++++++++++++++++++++++++++++++++ tools/genruby.rb | 2 +- 4 files changed, 94 insertions(+), 2 deletions(-) create mode 100644 lib/efl/elm/elm_glview.rb create mode 100644 lib/efl/native/elm/elm_glview.rb diff --git a/lib/efl/elementary_all.rb b/lib/efl/elementary_all.rb index 6beba13..22075a4 100644 --- a/lib/efl/elementary_all.rb +++ b/lib/efl/elementary_all.rb @@ -37,7 +37,7 @@ require 'efl/elm/elm_frame' require 'efl/elm/elm_gengrid' require 'efl/elm/elm_genlist' require 'efl/elm/elm_gesture_layer' -#require 'efl/elm/elm_glview' +require 'efl/elm/elm_glview' require 'efl/elm/elm_grid' require 'efl/elm/elm_hover' require 'efl/elm/elm_hoversel' diff --git a/lib/efl/elm/elm_glview.rb b/lib/efl/elm/elm_glview.rb new file mode 100644 index 0000000..542e5b8 --- /dev/null +++ b/lib/efl/elm/elm_glview.rb @@ -0,0 +1,22 @@ +#! /usr/bin/env ruby +# -*- coding: UTF-8 -*- +# +require 'efl/elm/elm_object' +require 'efl/native/elm/elm_glview' +# +module Efl + # + module Elm + # + class ElmGLView < ElmObject + # + include Helper + constructor :elm_glview_add + search_prefixes 'elm_glview_' + # + end + # + end +end +# +# EOF diff --git a/lib/efl/native/elm/elm_glview.rb b/lib/efl/native/elm/elm_glview.rb new file mode 100644 index 0000000..b23e25d --- /dev/null +++ b/lib/efl/native/elm/elm_glview.rb @@ -0,0 +1,70 @@ +#! /usr/bin/env ruby +# -*- coding: UTF-8 -*- +# +require 'efl/native' +require 'efl/native/elementary' +# +module Efl + # + module ElmGLView + # + FCT_PREFIX = 'elm_glview_' 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' + # + # ENUMS + # typedef enum _Elm_GLView_Mode {...} Elm_GLView_Mode; + enum :elm_glview_mode, [ :elm_glview_none, 0, :elm_glview_alpha, (1<<1), :elm_glview_depth, (1<<2), :elm_glview_stencil, (1<<3), + :elm_glview_direct, (1<<4) ] + # typedef enum {...} Elm_GLView_Resize_Policy; + enum :elm_glview_resize_policy, [ :elm_glview_resize_policy_recreate, 1, :elm_glview_resize_policy_scale, 2 ] + # typedef enum {...} Elm_GLView_Render_Policy; + enum :elm_glview_render_policy, [ :elm_glview_render_policy_on_demand, 1, :elm_glview_render_policy_always, 2 ] + # + # CALLBACKS + # typedef void (*Elm_GLView_Func_Cb) (Evas_Object *obj); + callback :elm_glview_func_cb, [ :evas_object ], :void + # + # FUNCTIONS + fcts = [ + # EAPI Evas_Object *elm_glview_add(Evas_Object *parent); + [ :elm_glview_add, [ :evas_object ], :evas_object ], + # EAPI void elm_glview_size_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h); + [ :elm_glview_size_set, [ :evas_object, :int, :int ], :void ], + # EAPI void elm_glview_size_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h); + [ :elm_glview_size_get, [ :evas_object, :pointer, :pointer ], :void ], + # EAPI Evas_GL_API *elm_glview_gl_api_get(const Evas_Object *obj); + [ :elm_glview_gl_api_get, [ :evas_object ], :pointer ], + # EAPI Eina_Bool elm_glview_mode_set(Evas_Object *obj, Elm_GLView_Mode mode); + [ :elm_glview_mode_set, [ :evas_object, :elm_glview_mode ], :bool ], + # EAPI Eina_Bool elm_glview_resize_policy_set(Evas_Object *obj, Elm_GLView_Resize_Policy policy); + [ :elm_glview_resize_policy_set, [ :evas_object, :elm_glview_resize_policy ], :bool ], + # EAPI Eina_Bool elm_glview_render_policy_set(Evas_Object *obj, Elm_GLView_Render_Policy policy); + [ :elm_glview_render_policy_set, [ :evas_object, :elm_glview_render_policy ], :bool ], + # EAPI void elm_glview_init_func_set(Evas_Object *obj, Elm_GLView_Func_Cb func); + [ :elm_glview_init_func_set, [ :evas_object, :elm_glview_func_cb ], :void ], + # EAPI void elm_glview_del_func_set(Evas_Object *obj, Elm_GLView_Func_Cb func); + [ :elm_glview_del_func_set, [ :evas_object, :elm_glview_func_cb ], :void ], + # EAPI void elm_glview_resize_func_set(Evas_Object *obj, Elm_GLView_Func_Cb func); + [ :elm_glview_resize_func_set, [ :evas_object, :elm_glview_func_cb ], :void ], + # EAPI void elm_glview_render_func_set(Evas_Object *obj, Elm_GLView_Func_Cb func); + [ :elm_glview_render_func_set, [ :evas_object, :elm_glview_func_cb ], :void ], + # EAPI void elm_glview_changed_set(Evas_Object *obj); + [ :elm_glview_changed_set, [ :evas_object ], :void ], + ] + # + attach_fcts fcts + # + end +end +# +# EOF diff --git a/tools/genruby.rb b/tools/genruby.rb index 6b0ab95..7d4f7c8 100755 --- a/tools/genruby.rb +++ b/tools/genruby.rb @@ -402,7 +402,7 @@ libs << elm_h('elm_frame.h', 'ElmFrame') libs << elm_h('elm_gengrid.h', 'ElmGenGrid') libs << elm_h('elm_genlist.h', 'ElmGenList', ["#{NATIVE}/elementary","#{NATIVE}/elm/elm_list","#{NATIVE}/elm/elm_scroller"]) libs << elm_h('elm_gesture_layer.h', 'ElmGestureLayer') -#libs << elm_h('elm_glview.h', 'ElmGLView') +libs << elm_h('elm_glview.h', 'ElmGLView') libs << elm_h('elm_grid.h', 'ElmGrid') libs << elm_h('elm_hover.h', 'ElmHover') libs << elm_h('elm_image.h', 'ElmImage') -- cgit v1.1-2-g2b99 From 1e1cf7af4c0cdf583cca161e499638dcb0133074 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 29 Feb 2012 17:00:25 +0100 Subject: update elm_win, elm_genlist, elm_gengrid --- lib/efl/native/elm/elm_gengrid.rb | 147 +++++++++++++++++++------------------- lib/efl/native/elm/elm_genlist.rb | 116 +++++++++++++++--------------- lib/efl/native/elm/elm_win.rb | 12 ++++ 3 files changed, 142 insertions(+), 133 deletions(-) diff --git a/lib/efl/native/elm/elm_gengrid.rb b/lib/efl/native/elm/elm_gengrid.rb index 5711177..309e5d6 100644 --- a/lib/efl/native/elm/elm_gengrid.rb +++ b/lib/efl/native/elm/elm_gengrid.rb @@ -41,22 +41,28 @@ module Efl fcts = [ # EAPI Evas_Object *elm_gengrid_add(Evas_Object *parent); [ :elm_gengrid_add, [ :evas_object ], :evas_object ], - # EAPI void elm_gengrid_item_size_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h); - [ :elm_gengrid_item_size_set, [ :evas_object, :int, :int ], :void ], - # EAPI void elm_gengrid_item_size_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h); - [ :elm_gengrid_item_size_get, [ :evas_object, :pointer, :pointer ], :void ], - # EAPI void elm_gengrid_group_item_size_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h); - [ :elm_gengrid_group_item_size_set, [ :evas_object, :int, :int ], :void ], - # EAPI void elm_gengrid_group_item_size_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h); - [ :elm_gengrid_group_item_size_get, [ :evas_object, :pointer, :pointer ], :void ], - # EAPI void elm_gengrid_align_set(Evas_Object *obj, double align_x, double align_y); - [ :elm_gengrid_align_set, [ :evas_object, :double, :double ], :void ], - # EAPI void elm_gengrid_align_get(const Evas_Object *obj, double *align_x, double *align_y); - [ :elm_gengrid_align_get, [ :evas_object, :pointer, :pointer ], :void ], - # EAPI void elm_gengrid_reorder_mode_set(Evas_Object *obj, Eina_Bool reorder_mode); - [ :elm_gengrid_reorder_mode_set, [ :evas_object, :bool ], :void ], - # EAPI Eina_Bool elm_gengrid_reorder_mode_get(const Evas_Object *obj); - [ :elm_gengrid_reorder_mode_get, [ :evas_object ], :bool ], + # EAPI void elm_gengrid_clear(Evas_Object *obj); + [ :elm_gengrid_clear, [ :evas_object ], :void ], + # EAPI void elm_gengrid_multi_select_set(Evas_Object *obj, Eina_Bool multi); + [ :elm_gengrid_multi_select_set, [ :evas_object, :bool ], :void ], + # EAPI Eina_Bool elm_gengrid_multi_select_get(const Evas_Object *obj); + [ :elm_gengrid_multi_select_get, [ :evas_object ], :bool ], + # EAPI void elm_gengrid_horizontal_set(Evas_Object *obj, Eina_Bool horizontal); + [ :elm_gengrid_horizontal_set, [ :evas_object, :bool ], :void ], + # EAPI Eina_Bool elm_gengrid_horizontal_get(const Evas_Object *obj); + [ :elm_gengrid_horizontal_get, [ :evas_object ], :bool ], + # EAPI void elm_gengrid_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select); + [ :elm_gengrid_always_select_mode_set, [ :evas_object, :bool ], :void ], + # EAPI Eina_Bool elm_gengrid_always_select_mode_get(const Evas_Object *obj); + [ :elm_gengrid_always_select_mode_get, [ :evas_object ], :bool ], + # EAPI void elm_gengrid_no_select_mode_set(Evas_Object *obj, Eina_Bool no_select); + [ :elm_gengrid_no_select_mode_set, [ :evas_object, :bool ], :void ], + # EAPI Eina_Bool elm_gengrid_no_select_mode_get(const Evas_Object *obj); + [ :elm_gengrid_no_select_mode_get, [ :evas_object ], :bool ], + # EAPI void elm_gengrid_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce); + [ :elm_gengrid_bounce_set, [ :evas_object, :bool, :bool ], :void ], + # EAPI void elm_gengrid_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce); + [ :elm_gengrid_bounce_get, [ :evas_object, :pointer, :pointer ], :void ], # EAPI Elm_Object_Item *elm_gengrid_item_append(Evas_Object *obj, const Elm_Gengrid_Item_Class *gic, const void *data, Evas_Smart_Cb func, const void *func_data); [ :elm_gengrid_item_append, [ :evas_object, :elm_gengrid_item_class, :pointer, :evas_smart_cb, :pointer ], :elm_object_item ], # EAPI Elm_Object_Item *elm_gengrid_item_prepend(Evas_Object *obj, const Elm_Gengrid_Item_Class *gic, const void *data, Evas_Smart_Cb func, const void *func_data); @@ -70,43 +76,10 @@ module Efl # EAPI Elm_Object_Item *elm_gengrid_item_sorted_insert(Evas_Object *obj, const Elm_Gengrid_Item_Class *gic, const void *data, Eina_Compare_Cb comp, Evas_Smart_Cb func, const void *func_data); [ :elm_gengrid_item_sorted_insert, [ :evas_object, :elm_gengrid_item_class, :pointer, :eina_compare_cb, :evas_smart_cb, :pointer ], :elm_object_item ], - # EAPI Elm_Object_Item *elm_gengrid_item_direct_sorted_insert(Evas_Object *obj, const Elm_Gengrid_Item_Class *gic, const void *data, Eina_Compare_Cb comp, Evas_Smart_Cb func, const void *func_data); - [ :elm_gengrid_item_direct_sorted_insert, [ :evas_object, :elm_gengrid_item_class, :pointer, :eina_compare_cb, :evas_smart_cb, :pointer ], - :elm_object_item ], - # EAPI void elm_gengrid_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select); - [ :elm_gengrid_always_select_mode_set, [ :evas_object, :bool ], :void ], - # EAPI Eina_Bool elm_gengrid_always_select_mode_get(const Evas_Object *obj); - [ :elm_gengrid_always_select_mode_get, [ :evas_object ], :bool ], - # EAPI void elm_gengrid_no_select_mode_set(Evas_Object *obj, Eina_Bool no_select); - [ :elm_gengrid_no_select_mode_set, [ :evas_object, :bool ], :void ], - # EAPI Eina_Bool elm_gengrid_no_select_mode_get(const Evas_Object *obj); - [ :elm_gengrid_no_select_mode_get, [ :evas_object ], :bool ], - # EAPI void elm_gengrid_multi_select_set(Evas_Object *obj, Eina_Bool multi); - [ :elm_gengrid_multi_select_set, [ :evas_object, :bool ], :void ], - # EAPI Eina_Bool elm_gengrid_multi_select_get(const Evas_Object *obj); - [ :elm_gengrid_multi_select_get, [ :evas_object ], :bool ], - # EAPI void elm_gengrid_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce); - [ :elm_gengrid_bounce_set, [ :evas_object, :bool, :bool ], :void ], - # EAPI void elm_gengrid_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce); - [ :elm_gengrid_bounce_get, [ :evas_object, :pointer, :pointer ], :void ], - # EAPI void elm_gengrid_page_relative_set(Evas_Object *obj, double h_pagerel, double v_pagerel); - [ :elm_gengrid_page_relative_set, [ :evas_object, :double, :double ], :void ], - # EAPI void elm_gengrid_page_relative_get(const Evas_Object *obj, double *h_pagerel, double *v_pagerel); - [ :elm_gengrid_page_relative_get, [ :evas_object, :pointer, :pointer ], :void ], - # EAPI void elm_gengrid_page_size_set(Evas_Object *obj, Evas_Coord h_pagesize, Evas_Coord v_pagesize); - [ :elm_gengrid_page_size_set, [ :evas_object, :int, :int ], :void ], - # EAPI void elm_gengrid_current_page_get(const Evas_Object *obj, int *h_pagenumber, int *v_pagenumber); - [ :elm_gengrid_current_page_get, [ :evas_object, :pointer, :pointer ], :void ], - # EAPI void elm_gengrid_last_page_get(const Evas_Object *obj, int *h_pagenumber, int *v_pagenumber); - [ :elm_gengrid_last_page_get, [ :evas_object, :pointer, :pointer ], :void ], - # EAPI void elm_gengrid_page_show(const Evas_Object *obj, int h_pagenumber, int v_pagenumber); - [ :elm_gengrid_page_show, [ :evas_object, :int, :int ], :void ], - # EAPI void elm_gengrid_page_bring_in(const Evas_Object *obj, int h_pagenumber, int v_pagenumber); - [ :elm_gengrid_page_bring_in, [ :evas_object, :int, :int ], :void ], - # EAPI void elm_gengrid_horizontal_set(Evas_Object *obj, Eina_Bool horizontal); - [ :elm_gengrid_horizontal_set, [ :evas_object, :bool ], :void ], - # EAPI Eina_Bool elm_gengrid_horizontal_get(const Evas_Object *obj); - [ :elm_gengrid_horizontal_get, [ :evas_object ], :bool ], + # EAPI Elm_Object_Item *elm_gengrid_selected_item_get(const Evas_Object *obj); + [ :elm_gengrid_selected_item_get, [ :evas_object ], :elm_object_item ], + # EAPI const Eina_List *elm_gengrid_selected_items_get(const Evas_Object *obj); + [ :elm_gengrid_selected_items_get, [ :evas_object ], :eina_list ], # EAPI Elm_Object_Item *elm_gengrid_first_item_get(const Evas_Object *obj); [ :elm_gengrid_first_item_get, [ :evas_object ], :elm_object_item ], # EAPI Elm_Object_Item *elm_gengrid_last_item_get(const Evas_Object *obj); @@ -115,26 +88,28 @@ module Efl [ :elm_gengrid_item_next_get, [ :elm_object_item ], :elm_object_item ], # EAPI Elm_Object_Item *elm_gengrid_item_prev_get(const Elm_Object_Item *it); [ :elm_gengrid_item_prev_get, [ :elm_object_item ], :elm_object_item ], - # EAPI void elm_gengrid_item_update(Elm_Object_Item *it); - [ :elm_gengrid_item_update, [ :elm_object_item ], :void ], - # EAPI const Elm_Gengrid_Item_Class *elm_gengrid_item_item_class_get(const Elm_Object_Item *it); - [ :elm_gengrid_item_item_class_get, [ :elm_object_item ], :elm_gengrid_item_class ], - # EAPI void elm_gengrid_item_item_class_update(Elm_Object_Item *it, const Elm_Gengrid_Item_Class *gic); - [ :elm_gengrid_item_item_class_update, [ :elm_object_item, :elm_gengrid_item_class ], :void ], - # EAPI void elm_gengrid_item_pos_get(const Elm_Object_Item *it, unsigned int *x, unsigned int *y); - [ :elm_gengrid_item_pos_get, [ :elm_object_item, :pointer, :pointer ], :void ], # EAPI void elm_gengrid_item_selected_set(Elm_Object_Item *it, Eina_Bool selected); [ :elm_gengrid_item_selected_set, [ :elm_object_item, :bool ], :void ], - # EAPI Elm_Object_Item *elm_gengrid_selected_item_get(const Evas_Object *obj); - [ :elm_gengrid_selected_item_get, [ :evas_object ], :elm_object_item ], - # EAPI const Eina_List *elm_gengrid_selected_items_get(const Evas_Object *obj); - [ :elm_gengrid_selected_items_get, [ :evas_object ], :eina_list ], # EAPI Eina_Bool elm_gengrid_item_selected_get(const Elm_Object_Item *it); [ :elm_gengrid_item_selected_get, [ :elm_object_item ], :bool ], # EAPI void elm_gengrid_item_show(Elm_Object_Item *it); [ :elm_gengrid_item_show, [ :elm_object_item ], :void ], # EAPI void elm_gengrid_item_bring_in(Elm_Object_Item *it); [ :elm_gengrid_item_bring_in, [ :elm_object_item ], :void ], + # EAPI void elm_gengrid_item_update(Elm_Object_Item *it); + [ :elm_gengrid_item_update, [ :elm_object_item ], :void ], + # EAPI void elm_gengrid_item_item_class_update(Elm_Object_Item *it, const Elm_Gengrid_Item_Class *gic); + [ :elm_gengrid_item_item_class_update, [ :elm_object_item, :elm_gengrid_item_class ], :void ], + # EAPI const Elm_Gengrid_Item_Class *elm_gengrid_item_item_class_get(const Elm_Object_Item *it); + [ :elm_gengrid_item_item_class_get, [ :elm_object_item ], :elm_gengrid_item_class ], + # EAPI Elm_Gengrid_Item_Class *elm_gengrid_item_class_new(void); + [ :elm_gengrid_item_class_new, [ ], :elm_gengrid_item_class ], + # EAPI void elm_gengrid_item_class_free(Elm_Gengrid_Item_Class *itc); + [ :elm_gengrid_item_class_free, [ :elm_gengrid_item_class ], :void ], + # EAPI void elm_gengrid_item_class_ref(Elm_Gengrid_Item_Class *itc); + [ :elm_gengrid_item_class_ref, [ :elm_gengrid_item_class ], :void ], + # EAPI void elm_gengrid_item_class_unref(Elm_Gengrid_Item_Class *itc); + [ :elm_gengrid_item_class_unref, [ :elm_gengrid_item_class ], :void ], # EAPI void elm_gengrid_item_tooltip_text_set(Elm_Object_Item *it, const char *text); [ :elm_gengrid_item_tooltip_text_set, [ :elm_object_item, :string ], :void ], # EAPI void elm_gengrid_item_tooltip_content_cb_set(Elm_Object_Item *it, Elm_Tooltip_Item_Content_Cb func, const void *data, Evas_Smart_Cb del_cb); @@ -163,20 +138,42 @@ module Efl [ :elm_gengrid_item_cursor_engine_only_set, [ :elm_object_item, :bool ], :void ], # EAPI Eina_Bool elm_gengrid_item_cursor_engine_only_get(const Elm_Object_Item *it); [ :elm_gengrid_item_cursor_engine_only_get, [ :elm_object_item ], :bool ], - # EAPI void elm_gengrid_clear(Evas_Object *obj); - [ :elm_gengrid_clear, [ :evas_object ], :void ], + # EAPI void elm_gengrid_item_size_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h); + [ :elm_gengrid_item_size_set, [ :evas_object, :int, :int ], :void ], + # EAPI void elm_gengrid_item_size_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h); + [ :elm_gengrid_item_size_get, [ :evas_object, :pointer, :pointer ], :void ], + # EAPI void elm_gengrid_group_item_size_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h); + [ :elm_gengrid_group_item_size_set, [ :evas_object, :int, :int ], :void ], + # EAPI void elm_gengrid_group_item_size_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h); + [ :elm_gengrid_group_item_size_get, [ :evas_object, :pointer, :pointer ], :void ], + # EAPI void elm_gengrid_align_set(Evas_Object *obj, double align_x, double align_y); + [ :elm_gengrid_align_set, [ :evas_object, :double, :double ], :void ], + # EAPI void elm_gengrid_align_get(const Evas_Object *obj, double *align_x, double *align_y); + [ :elm_gengrid_align_get, [ :evas_object, :pointer, :pointer ], :void ], + # EAPI void elm_gengrid_reorder_mode_set(Evas_Object *obj, Eina_Bool reorder_mode); + [ :elm_gengrid_reorder_mode_set, [ :evas_object, :bool ], :void ], + # EAPI Eina_Bool elm_gengrid_reorder_mode_get(const Evas_Object *obj); + [ :elm_gengrid_reorder_mode_get, [ :evas_object ], :bool ], + # EAPI void elm_gengrid_page_relative_set(Evas_Object *obj, double h_pagerel, double v_pagerel); + [ :elm_gengrid_page_relative_set, [ :evas_object, :double, :double ], :void ], + # EAPI void elm_gengrid_page_relative_get(const Evas_Object *obj, double *h_pagerel, double *v_pagerel); + [ :elm_gengrid_page_relative_get, [ :evas_object, :pointer, :pointer ], :void ], + # EAPI void elm_gengrid_page_size_set(Evas_Object *obj, Evas_Coord h_pagesize, Evas_Coord v_pagesize); + [ :elm_gengrid_page_size_set, [ :evas_object, :int, :int ], :void ], + # EAPI void elm_gengrid_current_page_get(const Evas_Object *obj, int *h_pagenumber, int *v_pagenumber); + [ :elm_gengrid_current_page_get, [ :evas_object, :pointer, :pointer ], :void ], + # EAPI void elm_gengrid_last_page_get(const Evas_Object *obj, int *h_pagenumber, int *v_pagenumber); + [ :elm_gengrid_last_page_get, [ :evas_object, :pointer, :pointer ], :void ], + # EAPI void elm_gengrid_page_show(const Evas_Object *obj, int h_pagenumber, int v_pagenumber); + [ :elm_gengrid_page_show, [ :evas_object, :int, :int ], :void ], + # EAPI void elm_gengrid_page_bring_in(const Evas_Object *obj, int h_pagenumber, int v_pagenumber); + [ :elm_gengrid_page_bring_in, [ :evas_object, :int, :int ], :void ], + # EAPI void elm_gengrid_item_pos_get(const Elm_Object_Item *it, unsigned int *x, unsigned int *y); + [ :elm_gengrid_item_pos_get, [ :elm_object_item, :pointer, :pointer ], :void ], # EAPI void elm_gengrid_filled_set(Evas_Object *obj, Eina_Bool fill); [ :elm_gengrid_filled_set, [ :evas_object, :bool ], :void ], # EAPI Eina_Bool elm_gengrid_filled_get(const Evas_Object *obj); [ :elm_gengrid_filled_get, [ :evas_object ], :bool ], - # EAPI Elm_Gengrid_Item_Class *elm_gengrid_item_class_new(void); - [ :elm_gengrid_item_class_new, [ ], :elm_gengrid_item_class ], - # EAPI void elm_gengrid_item_class_free(Elm_Gengrid_Item_Class *itc); - [ :elm_gengrid_item_class_free, [ :elm_gengrid_item_class ], :void ], - # EAPI void elm_gengrid_item_class_ref(Elm_Gengrid_Item_Class *itc); - [ :elm_gengrid_item_class_ref, [ :elm_gengrid_item_class ], :void ], - # EAPI void elm_gengrid_item_class_unref(Elm_Gengrid_Item_Class *itc); - [ :elm_gengrid_item_class_unref, [ :elm_gengrid_item_class ], :void ], ] # attach_fcts fcts diff --git a/lib/efl/native/elm/elm_genlist.rb b/lib/efl/native/elm/elm_genlist.rb index b3ed10c..afdcb84 100644 --- a/lib/efl/native/elm/elm_genlist.rb +++ b/lib/efl/native/elm/elm_genlist.rb @@ -69,30 +69,10 @@ module Efl [ :elm_genlist_no_select_mode_set, [ :evas_object, :bool ], :void ], # EAPI Eina_Bool elm_genlist_no_select_mode_get(const Evas_Object *obj); [ :elm_genlist_no_select_mode_get, [ :evas_object ], :bool ], - # EAPI void elm_genlist_compress_mode_set(Evas_Object *obj, Eina_Bool compress); - [ :elm_genlist_compress_mode_set, [ :evas_object, :bool ], :void ], - # EAPI Eina_Bool elm_genlist_compress_mode_get(const Evas_Object *obj); - [ :elm_genlist_compress_mode_get, [ :evas_object ], :bool ], - # EAPI void elm_genlist_height_for_width_mode_set(Evas_Object *obj, Eina_Bool height_for_width); - [ :elm_genlist_height_for_width_mode_set, [ :evas_object, :bool ], :void ], - # EAPI Eina_Bool elm_genlist_height_for_width_mode_get(const Evas_Object *obj); - [ :elm_genlist_height_for_width_mode_get, [ :evas_object ], :bool ], # EAPI void elm_genlist_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce); [ :elm_genlist_bounce_set, [ :evas_object, :bool, :bool ], :void ], # EAPI void elm_genlist_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce); [ :elm_genlist_bounce_get, [ :evas_object, :pointer, :pointer ], :void ], - # EAPI void elm_genlist_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous); - [ :elm_genlist_homogeneous_set, [ :evas_object, :bool ], :void ], - # EAPI Eina_Bool elm_genlist_homogeneous_get(const Evas_Object *obj); - [ :elm_genlist_homogeneous_get, [ :evas_object ], :bool ], - # EAPI void elm_genlist_block_count_set(Evas_Object *obj, int count); - [ :elm_genlist_block_count_set, [ :evas_object, :int ], :void ], - # EAPI int elm_genlist_block_count_get(const Evas_Object *obj); - [ :elm_genlist_block_count_get, [ :evas_object ], :int ], - # EAPI void elm_genlist_longpress_timeout_set(Evas_Object *obj, double timeout); - [ :elm_genlist_longpress_timeout_set, [ :evas_object, :double ], :void ], - # EAPI double elm_genlist_longpress_timeout_get(const Evas_Object *obj); - [ :elm_genlist_longpress_timeout_get, [ :evas_object ], :double ], # EAPI Elm_Object_Item *elm_genlist_item_append(Evas_Object *obj, const Elm_Genlist_Item_Class *itc, const void *data, Elm_Object_Item *parent, Elm_Genlist_Item_Flags flags, Evas_Smart_Cb func, const void *func_data); [ :elm_genlist_item_append, [ :evas_object, :elm_genlist_item_class, :pointer, :elm_object_item, :elm_genlist_item_flags, :evas_smart_cb, :pointer ], :elm_object_item ], @@ -114,8 +94,6 @@ module Efl [ :elm_genlist_selected_items_get, [ :evas_object ], :eina_list ], # EAPI Eina_List *elm_genlist_realized_items_get(const Evas_Object *obj); [ :elm_genlist_realized_items_get, [ :evas_object ], :eina_list ], - # EAPI Elm_Object_Item *elm_genlist_at_xy_item_get(const Evas_Object *obj, Evas_Coord x, Evas_Coord y, int *posret); - [ :elm_genlist_at_xy_item_get, [ :evas_object, :int, :int, :pointer ], :elm_object_item ], # EAPI Elm_Object_Item *elm_genlist_first_item_get(const Evas_Object *obj); [ :elm_genlist_first_item_get, [ :evas_object ], :elm_object_item ], # EAPI Elm_Object_Item *elm_genlist_last_item_get(const Evas_Object *obj); @@ -128,24 +106,10 @@ module Efl [ :elm_genlist_item_next_get, [ :elm_object_item ], :elm_object_item ], # EAPI Elm_Object_Item *elm_genlist_item_prev_get(const Elm_Object_Item *it); [ :elm_genlist_item_prev_get, [ :elm_object_item ], :elm_object_item ], - # EAPI Elm_Object_Item *elm_genlist_item_parent_get(const Elm_Object_Item *it); - [ :elm_genlist_item_parent_get, [ :elm_object_item ], :elm_object_item ], - # EAPI void elm_genlist_item_subitems_clear(Elm_Object_Item *it); - [ :elm_genlist_item_subitems_clear, [ :elm_object_item ], :void ], # EAPI void elm_genlist_item_selected_set(Elm_Object_Item *it, Eina_Bool selected); [ :elm_genlist_item_selected_set, [ :elm_object_item, :bool ], :void ], # EAPI Eina_Bool elm_genlist_item_selected_get(const Elm_Object_Item *it); [ :elm_genlist_item_selected_get, [ :elm_object_item ], :bool ], - # EAPI void elm_genlist_item_expanded_set(Elm_Object_Item *it, Eina_Bool expanded); - [ :elm_genlist_item_expanded_set, [ :elm_object_item, :bool ], :void ], - # EAPI Eina_Bool elm_genlist_item_expanded_get(const Elm_Object_Item *it); - [ :elm_genlist_item_expanded_get, [ :elm_object_item ], :bool ], - # EAPI int elm_genlist_item_expanded_depth_get(const Elm_Object_Item *it); - [ :elm_genlist_item_expanded_depth_get, [ :elm_object_item ], :int ], - # EAPI void elm_genlist_item_display_only_set(Elm_Object_Item *it, Eina_Bool display_only); - [ :elm_genlist_item_display_only_set, [ :elm_object_item, :bool ], :void ], - # EAPI Eina_Bool elm_genlist_item_display_only_get(const Elm_Object_Item *it); - [ :elm_genlist_item_display_only_get, [ :elm_object_item ], :bool ], # EAPI void elm_genlist_item_show(Elm_Object_Item *it); [ :elm_genlist_item_show, [ :elm_object_item ], :void ], # EAPI void elm_genlist_item_bring_in(Elm_Object_Item *it); @@ -158,20 +122,26 @@ module Efl [ :elm_genlist_item_middle_show, [ :elm_object_item ], :void ], # EAPI void elm_genlist_item_middle_bring_in(Elm_Object_Item *it); [ :elm_genlist_item_middle_bring_in, [ :elm_object_item ], :void ], - # EAPI void elm_genlist_item_contents_orphan(Elm_Object_Item *it); - [ :elm_genlist_item_contents_orphan, [ :elm_object_item ], :void ], # EAPI void elm_genlist_item_update(Elm_Object_Item *it); [ :elm_genlist_item_update, [ :elm_object_item ], :void ], - # EAPI void elm_genlist_item_promote(Elm_Object_Item *it); - [ :elm_genlist_item_promote, [ :elm_object_item ], :void ], - # EAPI void elm_genlist_item_demote(Elm_Object_Item *it); - [ :elm_genlist_item_demote, [ :elm_object_item ], :void ], - # EAPI void elm_genlist_item_fields_update(Elm_Object_Item *it, const char *parts, Elm_Genlist_Item_Field_Flags itf); - [ :elm_genlist_item_fields_update, [ :elm_object_item, :string, :elm_genlist_item_field_flags ], :void ], # EAPI void elm_genlist_item_item_class_update(Elm_Object_Item *it, const Elm_Genlist_Item_Class *itc); [ :elm_genlist_item_item_class_update, [ :elm_object_item, :elm_genlist_item_class ], :void ], # EAPI const Elm_Genlist_Item_Class *elm_genlist_item_item_class_get(const Elm_Object_Item *it); [ :elm_genlist_item_item_class_get, [ :elm_object_item ], :elm_genlist_item_class ], + # EAPI int elm_genlist_item_index_get(const Elm_Object_Item *it); + [ :elm_genlist_item_index_get, [ :elm_object_item ], :int ], + # EAPI void elm_genlist_realized_items_update(Evas_Object *obj); + [ :elm_genlist_realized_items_update, [ :evas_object ], :void ], + # EAPI unsigned int elm_genlist_items_count(const Evas_Object *obj); + [ :elm_genlist_items_count, [ :evas_object ], :uint ], + # EAPI Elm_Genlist_Item_Class *elm_genlist_item_class_new(void); + [ :elm_genlist_item_class_new, [ ], :elm_genlist_item_class ], + # EAPI void elm_genlist_item_class_free(Elm_Genlist_Item_Class *itc); + [ :elm_genlist_item_class_free, [ :elm_genlist_item_class ], :void ], + # EAPI void elm_genlist_item_class_ref(Elm_Genlist_Item_Class *itc); + [ :elm_genlist_item_class_ref, [ :elm_genlist_item_class ], :void ], + # EAPI void elm_genlist_item_class_unref(Elm_Genlist_Item_Class *itc); + [ :elm_genlist_item_class_unref, [ :elm_genlist_item_class ], :void ], # EAPI void elm_genlist_item_tooltip_text_set(Elm_Object_Item *it, const char *text); [ :elm_genlist_item_tooltip_text_set, [ :elm_object_item, :string ], :void ], # EAPI void elm_genlist_item_tooltip_content_cb_set(Elm_Object_Item *it, Elm_Tooltip_Item_Content_Cb func, const void *data, Evas_Smart_Cb del_cb); @@ -200,10 +170,50 @@ module Efl [ :elm_genlist_item_cursor_engine_only_set, [ :elm_object_item, :bool ], :void ], # EAPI Eina_Bool elm_genlist_item_cursor_engine_only_get(const Elm_Object_Item *it); [ :elm_genlist_item_cursor_engine_only_get, [ :elm_object_item ], :bool ], - # EAPI int elm_genlist_item_index_get(const Elm_Object_Item *it); - [ :elm_genlist_item_index_get, [ :elm_object_item ], :int ], - # EAPI void elm_genlist_realized_items_update(Evas_Object *obj); - [ :elm_genlist_realized_items_update, [ :evas_object ], :void ], + # EAPI void elm_genlist_compress_mode_set(Evas_Object *obj, Eina_Bool compress); + [ :elm_genlist_compress_mode_set, [ :evas_object, :bool ], :void ], + # EAPI Eina_Bool elm_genlist_compress_mode_get(const Evas_Object *obj); + [ :elm_genlist_compress_mode_get, [ :evas_object ], :bool ], + # EAPI void elm_genlist_height_for_width_mode_set(Evas_Object *obj, Eina_Bool height_for_width); + [ :elm_genlist_height_for_width_mode_set, [ :evas_object, :bool ], :void ], + # EAPI Eina_Bool elm_genlist_height_for_width_mode_get(const Evas_Object *obj); + [ :elm_genlist_height_for_width_mode_get, [ :evas_object ], :bool ], + # EAPI void elm_genlist_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous); + [ :elm_genlist_homogeneous_set, [ :evas_object, :bool ], :void ], + # EAPI Eina_Bool elm_genlist_homogeneous_get(const Evas_Object *obj); + [ :elm_genlist_homogeneous_get, [ :evas_object ], :bool ], + # EAPI void elm_genlist_block_count_set(Evas_Object *obj, int count); + [ :elm_genlist_block_count_set, [ :evas_object, :int ], :void ], + # EAPI int elm_genlist_block_count_get(const Evas_Object *obj); + [ :elm_genlist_block_count_get, [ :evas_object ], :int ], + # EAPI void elm_genlist_longpress_timeout_set(Evas_Object *obj, double timeout); + [ :elm_genlist_longpress_timeout_set, [ :evas_object, :double ], :void ], + # EAPI double elm_genlist_longpress_timeout_get(const Evas_Object *obj); + [ :elm_genlist_longpress_timeout_get, [ :evas_object ], :double ], + # EAPI Elm_Object_Item *elm_genlist_at_xy_item_get(const Evas_Object *obj, Evas_Coord x, Evas_Coord y, int *posret); + [ :elm_genlist_at_xy_item_get, [ :evas_object, :int, :int, :pointer ], :elm_object_item ], + # EAPI Elm_Object_Item *elm_genlist_item_parent_get(const Elm_Object_Item *it); + [ :elm_genlist_item_parent_get, [ :elm_object_item ], :elm_object_item ], + # EAPI void elm_genlist_item_subitems_clear(Elm_Object_Item *it); + [ :elm_genlist_item_subitems_clear, [ :elm_object_item ], :void ], + # EAPI void elm_genlist_item_expanded_set(Elm_Object_Item *it, Eina_Bool expanded); + [ :elm_genlist_item_expanded_set, [ :elm_object_item, :bool ], :void ], + # EAPI Eina_Bool elm_genlist_item_expanded_get(const Elm_Object_Item *it); + [ :elm_genlist_item_expanded_get, [ :elm_object_item ], :bool ], + # EAPI int elm_genlist_item_expanded_depth_get(const Elm_Object_Item *it); + [ :elm_genlist_item_expanded_depth_get, [ :elm_object_item ], :int ], + # EAPI void elm_genlist_item_display_only_set(Elm_Object_Item *it, Eina_Bool display_only); + [ :elm_genlist_item_display_only_set, [ :elm_object_item, :bool ], :void ], + # EAPI Eina_Bool elm_genlist_item_display_only_get(const Elm_Object_Item *it); + [ :elm_genlist_item_display_only_get, [ :elm_object_item ], :bool ], + # EAPI void elm_genlist_item_contents_orphan(Elm_Object_Item *it); + [ :elm_genlist_item_contents_orphan, [ :elm_object_item ], :void ], + # EAPI void elm_genlist_item_promote(Elm_Object_Item *it); + [ :elm_genlist_item_promote, [ :elm_object_item ], :void ], + # EAPI void elm_genlist_item_demote(Elm_Object_Item *it); + [ :elm_genlist_item_demote, [ :elm_object_item ], :void ], + # EAPI void elm_genlist_item_fields_update(Elm_Object_Item *it, const char *parts, Elm_Genlist_Item_Field_Flags itf); + [ :elm_genlist_item_fields_update, [ :elm_object_item, :string, :elm_genlist_item_field_flags ], :void ], # EAPI void elm_genlist_item_mode_set(Elm_Object_Item *it, const char *mode_type, Eina_Bool mode_set); [ :elm_genlist_item_mode_set, [ :elm_object_item, :string, :bool ], :void ], # EAPI const char *elm_genlist_mode_type_get(const Evas_Object *obj); @@ -216,16 +226,6 @@ module Efl [ :elm_genlist_reorder_mode_get, [ :evas_object ], :bool ], # EAPI Elm_Genlist_Item_Flags elm_genlist_item_flags_get(const Elm_Object_Item *it); [ :elm_genlist_item_flags_get, [ :elm_object_item ], :elm_genlist_item_flags ], - # EAPI Elm_Genlist_Item_Class *elm_genlist_item_class_new(void); - [ :elm_genlist_item_class_new, [ ], :elm_genlist_item_class ], - # EAPI void elm_genlist_item_class_free(Elm_Genlist_Item_Class *itc); - [ :elm_genlist_item_class_free, [ :elm_genlist_item_class ], :void ], - # EAPI void elm_genlist_item_class_ref(Elm_Genlist_Item_Class *itc); - [ :elm_genlist_item_class_ref, [ :elm_genlist_item_class ], :void ], - # EAPI void elm_genlist_item_class_unref(Elm_Genlist_Item_Class *itc); - [ :elm_genlist_item_class_unref, [ :elm_genlist_item_class ], :void ], - # EAPI unsigned int elm_genlist_items_count(const Evas_Object *obj); - [ :elm_genlist_items_count, [ :evas_object ], :uint ], # EAPI void elm_genlist_edit_mode_set(Evas_Object *obj, Eina_Bool edit_mode); [ :elm_genlist_edit_mode_set, [ :evas_object, :bool ], :void ], # EAPI Eina_Bool elm_genlist_edit_mode_get(const Evas_Object *obj); diff --git a/lib/efl/native/elm/elm_win.rb b/lib/efl/native/elm/elm_win.rb index 8518247..f903ce0 100644 --- a/lib/efl/native/elm/elm_win.rb +++ b/lib/efl/native/elm/elm_win.rb @@ -51,6 +51,18 @@ module Efl [ :elm_win_title_set, [ :evas_object, :string ], :void ], # EAPI const char *elm_win_title_get(const Evas_Object *obj); [ :elm_win_title_get, [ :evas_object ], :string ], + # EAPI void elm_win_icon_name_set(Evas_Object *obj, const char *icon_name); + [ :elm_win_icon_name_set, [ :evas_object, :string ], :void ], + # EAPI const char *elm_win_icon_name_get(const Evas_Object *obj); + [ :elm_win_icon_name_get, [ :evas_object ], :string ], + # EAPI void elm_win_role_set(Evas_Object *obj, const char *role); + [ :elm_win_role_set, [ :evas_object, :string ], :void ], + # EAPI const char *elm_win_role_get(const Evas_Object *obj); + [ :elm_win_role_get, [ :evas_object ], :string ], + # EAPI void elm_win_icon_object_set(Evas_Object *obj, Evas_Object *icon); + [ :elm_win_icon_object_set, [ :evas_object, :evas_object ], :void ], + # EAPI const Evas_Object *elm_win_icon_object_get(const Evas_Object *obj); + [ :elm_win_icon_object_get, [ :evas_object ], :evas_object ], # EAPI void elm_win_autodel_set(Evas_Object *obj, Eina_Bool autodel); [ :elm_win_autodel_set, [ :evas_object, :bool ], :void ], # EAPI Eina_Bool elm_win_autodel_get(const Evas_Object *obj); -- cgit v1.1-2-g2b99 From 3b43739a0fe76ee72ac9b8a7a612b8a997151f83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 29 Feb 2012 17:12:28 +0100 Subject: parse elm_segment_control.h, generate elm_segment_control.rb --- lib/efl/elementary_all.rb | 2 +- lib/efl/elm/elm_segment_control.rb | 39 +++++++++++++++++++++ lib/efl/native/elm/elm_segment_control.rb | 57 +++++++++++++++++++++++++++++++ tools/genruby.rb | 2 +- 4 files changed, 98 insertions(+), 2 deletions(-) create mode 100644 lib/efl/elm/elm_segment_control.rb create mode 100644 lib/efl/native/elm/elm_segment_control.rb diff --git a/lib/efl/elementary_all.rb b/lib/efl/elementary_all.rb index 22075a4..5de5480 100644 --- a/lib/efl/elementary_all.rb +++ b/lib/efl/elementary_all.rb @@ -65,7 +65,7 @@ require 'efl/elm/elm_route' require 'efl/elm/elm_scale' require 'efl/elm/elm_scroll' require 'efl/elm/elm_scroller' -#require 'efl/elm/elm_segment_control' +require 'efl/elm/elm_segment_control' require 'efl/elm/elm_separator' require 'efl/elm/elm_slider' require 'efl/elm/elm_slideshow' diff --git a/lib/efl/elm/elm_segment_control.rb b/lib/efl/elm/elm_segment_control.rb new file mode 100644 index 0000000..f08f552 --- /dev/null +++ b/lib/efl/elm/elm_segment_control.rb @@ -0,0 +1,39 @@ +#! /usr/bin/env ruby +# -*- coding: UTF-8 -*- +# +require 'efl/elm/elm_object' +require 'efl/elm/elm_object_item' +require 'efl/native/elm/elm_segment_control' +# +module Efl + # + module Elm + # + class ElmCheck < ElmObject + # + include Helper + constructor :elm_segment_control_add + search_prefixes 'elm_segment_control_' + # + def item_add icon, label=nil + ElmObjectItem.new Native.elm_segment_control_item_add @ptr, icon, label + end + # + def item_insert_at icon, label, idx + ElmObjectItem.new Native.elm_segment_control_item_insert_at @ptr, icon, label, idx + end + # + def item_get idx + ElmObjectItem.new Native.elm_segment_control_item_get @ptr, idx + end + # + def item_selected_get + ElmObjectItem.new Native.elm_segment_control_item_selected_get @ptr + end + # + end + # + end +end +# +# EOF diff --git a/lib/efl/native/elm/elm_segment_control.rb b/lib/efl/native/elm/elm_segment_control.rb new file mode 100644 index 0000000..76ae9df --- /dev/null +++ b/lib/efl/native/elm/elm_segment_control.rb @@ -0,0 +1,57 @@ +#! /usr/bin/env ruby +# -*- coding: UTF-8 -*- +# +require 'efl/native' +require 'efl/native/elementary' +# +module Efl + # + module ElmSegmentControl + # + FCT_PREFIX = 'elm_segment_control_' 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_segment_control_add(Evas_Object *parent); + [ :elm_segment_control_add, [ :evas_object ], :evas_object ], + # EAPI Elm_Object_Item *elm_segment_control_item_add(Evas_Object *obj, Evas_Object *icon, const char *label); + [ :elm_segment_control_item_add, [ :evas_object, :evas_object, :string ], :elm_object_item ], + # EAPI Elm_Object_Item *elm_segment_control_item_insert_at(Evas_Object *obj, Evas_Object *icon, const char *label, int index); + [ :elm_segment_control_item_insert_at, [ :evas_object, :evas_object, :string, :int ], :elm_object_item ], + # EAPI void elm_segment_control_item_del_at(Evas_Object *obj, int index); + [ :elm_segment_control_item_del_at, [ :evas_object, :int ], :void ], + # EAPI int elm_segment_control_item_count_get(const Evas_Object *obj); + [ :elm_segment_control_item_count_get, [ :evas_object ], :int ], + # EAPI Elm_Object_Item *elm_segment_control_item_get(const Evas_Object *obj, int index); + [ :elm_segment_control_item_get, [ :evas_object, :int ], :elm_object_item ], + # EAPI const char *elm_segment_control_item_label_get(const Evas_Object *obj, int index); + [ :elm_segment_control_item_label_get, [ :evas_object, :int ], :string ], + # EAPI Evas_Object *elm_segment_control_item_icon_get(const Evas_Object *obj, int index); + [ :elm_segment_control_item_icon_get, [ :evas_object, :int ], :evas_object ], + # EAPI int elm_segment_control_item_index_get(const Elm_Object_Item *it); + [ :elm_segment_control_item_index_get, [ :elm_object_item ], :int ], + # EAPI Evas_Object *elm_segment_control_item_object_get(const Elm_Object_Item *it); + [ :elm_segment_control_item_object_get, [ :elm_object_item ], :evas_object ], + # EAPI Elm_Object_Item *elm_segment_control_item_selected_get(const Evas_Object *obj); + [ :elm_segment_control_item_selected_get, [ :evas_object ], :elm_object_item ], + # EAPI void elm_segment_control_item_selected_set(Elm_Object_Item *it, Eina_Bool select); + [ :elm_segment_control_item_selected_set, [ :elm_object_item, :bool ], :void ], + ] + # + attach_fcts fcts + # + end +end +# +# EOF diff --git a/tools/genruby.rb b/tools/genruby.rb index 7d4f7c8..5031d15 100755 --- a/tools/genruby.rb +++ b/tools/genruby.rb @@ -426,7 +426,7 @@ libs << elm_h('elm_radio.h', 'ElmRadio') libs << elm_h('elm_route.h', 'ElmRoute', ["#{NATIVE}/emap","#{NATIVE}/elementary"]) libs << elm_h('elm_scale.h', 'ElmScale') libs << elm_h('elm_scroll.h', 'ElmScroll') -#libs << elm_h('elm_segment_control.h', 'ElmSegmentControl') +libs << elm_h('elm_segment_control.h', 'ElmSegmentControl') libs << elm_h('elm_separator.h', 'ElmSeparator') libs << elm_h('elm_slider.h', 'ElmSlider') libs << elm_h('elm_slideshow.h', 'ElmSlideshow') -- cgit v1.1-2-g2b99 From 12f90a99542647e2c18c69702cc9c83fc2920059 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 29 Feb 2012 17:20:00 +0100 Subject: parse elm_conform.h, generate elm_conform.rb --- lib/efl/elementary_all.rb | 2 +- lib/efl/elm/elm_conform.rb | 26 ++++++++++++++++++++++++++ lib/efl/native/elm/elm_conform.rb | 37 +++++++++++++++++++++++++++++++++++++ tools/genruby.rb | 2 +- 4 files changed, 65 insertions(+), 2 deletions(-) create mode 100644 lib/efl/elm/elm_conform.rb create mode 100644 lib/efl/native/elm/elm_conform.rb diff --git a/lib/efl/elementary_all.rb b/lib/efl/elementary_all.rb index 5de5480..60eaec1 100644 --- a/lib/efl/elementary_all.rb +++ b/lib/efl/elementary_all.rb @@ -19,7 +19,7 @@ require 'efl/elm/elm_check' require 'efl/elm/elm_clock' #require 'efl/elm/elm_cnp' require 'efl/elm/elm_colorselector' -#require 'efl/elm/elm_conform' +require 'efl/elm/elm_conform' require 'efl/elm/elm_ctxpopup' require 'efl/elm/elm_cursor' require 'efl/elm/elm_debug' diff --git a/lib/efl/elm/elm_conform.rb b/lib/efl/elm/elm_conform.rb new file mode 100644 index 0000000..564ba3f --- /dev/null +++ b/lib/efl/elm/elm_conform.rb @@ -0,0 +1,26 @@ +#! /usr/bin/env ruby +# -*- coding: UTF-8 -*- +# +require 'efl/elm/elm_object' +require 'efl/native/elm/elm_conform' +# +module Efl + # + module Elm + # + class ElmConform < ElmObject + # + include Helper + constructor :elm_conformant_add + search_prefixes 'elm_conformant_' + # + def content_area_get + Evas::REvasObject.new Native.elm_conformant_content_area_get @ptr + end + # + end + # + end +end +# +# EOF diff --git a/lib/efl/native/elm/elm_conform.rb b/lib/efl/native/elm/elm_conform.rb new file mode 100644 index 0000000..abf4ecb --- /dev/null +++ b/lib/efl/native/elm/elm_conform.rb @@ -0,0 +1,37 @@ +#! /usr/bin/env ruby +# -*- coding: UTF-8 -*- +# +require 'efl/native' +require 'efl/native/elementary' +# +module Efl + # + module ElmConform + # + FCT_PREFIX = 'elm_conform_' 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_conformant_add(Evas_Object *parent); + [ :elm_conformant_add, [ :evas_object ], :evas_object ], + # EAPI Evas_Object *elm_conformant_content_area_get(const Evas_Object *obj); + [ :elm_conformant_content_area_get, [ :evas_object ], :evas_object ], + ] + # + attach_fcts fcts + # + end +end +# +# EOF diff --git a/tools/genruby.rb b/tools/genruby.rb index 5031d15..9b4598b 100755 --- a/tools/genruby.rb +++ b/tools/genruby.rb @@ -387,7 +387,7 @@ libs << elm_h('elm_clock.h', 'ElmClock') #libs << elm_h('elm_cnp.h', 'ElmCnp') libs << elm_h('elm_colorselector.h', 'ElmColorSelector') libs << elm_h('elm_config.h', 'ElmConfig') -#libs << elm_h('elm_conform.h', 'ElmConform') +libs << elm_h('elm_conform.h', 'ElmConform') libs << elm_h('elm_cursor.h', 'ElmCursor') libs << elm_h('elm_debug.h', 'ElmDebug') libs << elm_h('elm_diskselector.h', 'ElmDiskSelector', ["#{NATIVE}/elementary","#{NATIVE}/elm/elm_scroller"]) -- cgit v1.1-2-g2b99 From 98d55fbd699d281dc416990eb55a5d876c9d12d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 29 Feb 2012 17:20:58 +0100 Subject: parse elm_engine.h, generate elm_engine.rb --- lib/efl/elementary_all.rb | 1 - lib/efl/native/elm/elm_engine.rb | 41 ++++++++++++++++++++++++++++++++++++++++ tools/genruby.rb | 2 +- 3 files changed, 42 insertions(+), 2 deletions(-) create mode 100644 lib/efl/native/elm/elm_engine.rb diff --git a/lib/efl/elementary_all.rb b/lib/efl/elementary_all.rb index 60eaec1..e41a38b 100644 --- a/lib/efl/elementary_all.rb +++ b/lib/efl/elementary_all.rb @@ -24,7 +24,6 @@ require 'efl/elm/elm_ctxpopup' require 'efl/elm/elm_cursor' require 'efl/elm/elm_debug' require 'efl/elm/elm_diskselector' -#require 'efl/elm/elm_engine' require 'efl/elm/elm_entry' #require 'efl/elm/elm_factory' require 'efl/elm/elm_fileselector_button' diff --git a/lib/efl/native/elm/elm_engine.rb b/lib/efl/native/elm/elm_engine.rb new file mode 100644 index 0000000..5690d7b --- /dev/null +++ b/lib/efl/native/elm/elm_engine.rb @@ -0,0 +1,41 @@ +#! /usr/bin/env ruby +# -*- coding: UTF-8 -*- +# +require 'efl/native' +require 'efl/native/elementary' +# +module Efl + # + module ElmEngine + # + FCT_PREFIX = 'elm_engine_' 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 const char *elm_engine_get(void); + [ :elm_engine_get, [ ], :string ], + # EAPI void elm_engine_set(const char *engine); + [ :elm_engine_set, [ :string ], :void ], + # EAPI const char *elm_preferred_engine_get(void); + [ :elm_preferred_engine_get, [ ], :string ], + # EAPI void elm_preferred_engine_set(const char *engine); + [ :elm_preferred_engine_set, [ :string ], :void ], + ] + # + attach_fcts fcts + # + end +end +# +# EOF diff --git a/tools/genruby.rb b/tools/genruby.rb index 9b4598b..41b59b2 100755 --- a/tools/genruby.rb +++ b/tools/genruby.rb @@ -391,7 +391,7 @@ libs << elm_h('elm_conform.h', 'ElmConform') libs << elm_h('elm_cursor.h', 'ElmCursor') libs << elm_h('elm_debug.h', 'ElmDebug') libs << elm_h('elm_diskselector.h', 'ElmDiskSelector', ["#{NATIVE}/elementary","#{NATIVE}/elm/elm_scroller"]) -#libs << elm_h('elm_engine.h', 'ElmEngine') +libs << elm_h('elm_engine.h', 'ElmEngine') #libs << elm_h('elm_factory.h', 'ElmFactory') libs << elm_h('elm_finger.h', 'ElmFinger') libs << elm_h('elm_flip.h', 'ElmFlip') -- cgit v1.1-2-g2b99 From c589f79f167df20273f0b66f3614328f995e1352 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 29 Feb 2012 17:27:09 +0100 Subject: parse elm_cnp.h, generate elm_cnp.rb --- lib/efl/elementary_all.rb | 2 +- lib/efl/elm/elm_cnp.rb | 30 ++++++++++++++++++++++++ lib/efl/native/elm/elm_cnp.rb | 54 +++++++++++++++++++++++++++++++++++++++++++ tools/genruby.rb | 2 +- 4 files changed, 86 insertions(+), 2 deletions(-) create mode 100644 lib/efl/elm/elm_cnp.rb create mode 100644 lib/efl/native/elm/elm_cnp.rb diff --git a/lib/efl/elementary_all.rb b/lib/efl/elementary_all.rb index e41a38b..1785e41 100644 --- a/lib/efl/elementary_all.rb +++ b/lib/efl/elementary_all.rb @@ -17,7 +17,7 @@ require 'efl/elm/elm_button' require 'efl/elm/elm_calendar' require 'efl/elm/elm_check' require 'efl/elm/elm_clock' -#require 'efl/elm/elm_cnp' +require 'efl/elm/elm_cnp' require 'efl/elm/elm_colorselector' require 'efl/elm/elm_conform' require 'efl/elm/elm_ctxpopup' diff --git a/lib/efl/elm/elm_cnp.rb b/lib/efl/elm/elm_cnp.rb new file mode 100644 index 0000000..9f8c3e8 --- /dev/null +++ b/lib/efl/elm/elm_cnp.rb @@ -0,0 +1,30 @@ +#! /usr/bin/env ruby +# -*- coding: UTF-8 -*- +# +require 'efl/elm/elm_object' +require 'efl/native/elm/elm_cnp' +# +module Efl + # + module Elm + # + class ElmObject + # + def cnp_selection_set selection, format, buf, sizet + Native.elm_cnp_selection_set @ptr, selection, format, buf, sizet + end + # + def cnp_selection_get selection, format, datacb, data + Native.elm_cnp_selection_set @ptr, selection, format, datacb, data + end + # + def cnp_selection_clear selection + Native.elm_object_cnp_selection_clear @ptr, selection + end + # + end + # + end +end +# +# EOF diff --git a/lib/efl/native/elm/elm_cnp.rb b/lib/efl/native/elm/elm_cnp.rb new file mode 100644 index 0000000..7b90c9c --- /dev/null +++ b/lib/efl/native/elm/elm_cnp.rb @@ -0,0 +1,54 @@ +#! /usr/bin/env ruby +# -*- coding: UTF-8 -*- +# +require 'efl/native' +require 'efl/native/elementary' +# +module Efl + # + module ElmCnp + # + FCT_PREFIX = 'elm_cnp_' 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' + # + # ENUMS + # typedef enum {...} Elm_Sel_Type; + enum :elm_sel_type, [ :elm_sel_type_primary, :elm_sel_type_secondary, :elm_sel_type_xdnd, :elm_sel_type_clipboard ] + # typedef enum {...} Elm_Sel_Format; + enum :elm_sel_format, [ :elm_sel_format_targets, -1, :elm_sel_format_none, 0x0, :elm_sel_format_text, 0x01, :elm_sel_format_markup, 0x02, + :elm_sel_format_image, 0x04, :elm_sel_format_vcard, 0x08, :elm_sel_format_html, 0x10 ] + # + # TYPEDEFS + # typedef struct _Elm_Selection_Data Elm_Selection_Data; + typedef :pointer, :elm_selection_data + # + # CALLBACKS + # typedef Eina_Bool (*Elm_Drop_Cb) (void *data, Evas_Object *obj, Elm_Selection_Data *ev); + callback :elm_drop_cb, [ :pointer, :evas_object, :elm_selection_data ], :bool + # + # FUNCTIONS + fcts = [ + # EAPI Eina_Bool elm_cnp_selection_set(Evas_Object *obj, Elm_Sel_Type selection, Elm_Sel_Format format, const void *buf, size_t buflen); + [ :elm_cnp_selection_set, [ :evas_object, :elm_sel_type, :elm_sel_format, :pointer, :ulong ], :bool ], + # EAPI Eina_Bool elm_cnp_selection_get(Evas_Object *obj, Elm_Sel_Type selection, Elm_Sel_Format format, Elm_Drop_Cb datacb, void *udata); + [ :elm_cnp_selection_get, [ :evas_object, :elm_sel_type, :elm_sel_format, :elm_drop_cb, :pointer ], :bool ], + # EAPI Eina_Bool elm_object_cnp_selection_clear(Evas_Object *obj, Elm_Sel_Type selection); + [ :elm_object_cnp_selection_clear, [ :evas_object, :elm_sel_type ], :bool ], + ] + # + attach_fcts fcts + # + end +end +# +# EOF diff --git a/tools/genruby.rb b/tools/genruby.rb index 41b59b2..446fc4b 100755 --- a/tools/genruby.rb +++ b/tools/genruby.rb @@ -384,7 +384,7 @@ libs << elm_h('elm_cache.h', 'ElmCache') libs << elm_h('elm_calendar.h', 'ElmCalendar') libs << elm_h('elm_check.h', 'ElmCheck') libs << elm_h('elm_clock.h', 'ElmClock') -#libs << elm_h('elm_cnp.h', 'ElmCnp') +libs << elm_h('elm_cnp.h', 'ElmCnp') libs << elm_h('elm_colorselector.h', 'ElmColorSelector') libs << elm_h('elm_config.h', 'ElmConfig') libs << elm_h('elm_conform.h', 'ElmConform') -- cgit v1.1-2-g2b99 From b306e3f4a2352246eb8baf7d17a54a89bfd02893 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 29 Feb 2012 17:29:56 +0100 Subject: parse elm_factory.h, generate elm_factory.rb --- lib/efl/elementary_all.rb | 2 +- lib/efl/elm/elm_factory.rb | 22 +++++++++++++++++++++ lib/efl/native/elm/elm_factory.rb | 41 +++++++++++++++++++++++++++++++++++++++ tools/genruby.rb | 2 +- 4 files changed, 65 insertions(+), 2 deletions(-) create mode 100644 lib/efl/elm/elm_factory.rb create mode 100644 lib/efl/native/elm/elm_factory.rb diff --git a/lib/efl/elementary_all.rb b/lib/efl/elementary_all.rb index 1785e41..b90db6a 100644 --- a/lib/efl/elementary_all.rb +++ b/lib/efl/elementary_all.rb @@ -25,7 +25,7 @@ require 'efl/elm/elm_cursor' require 'efl/elm/elm_debug' require 'efl/elm/elm_diskselector' require 'efl/elm/elm_entry' -#require 'efl/elm/elm_factory' +require 'efl/elm/elm_factory' require 'efl/elm/elm_fileselector_button' require 'efl/elm/elm_fileselector_entry' require 'efl/elm/elm_fileselector' diff --git a/lib/efl/elm/elm_factory.rb b/lib/efl/elm/elm_factory.rb new file mode 100644 index 0000000..b8d60f6 --- /dev/null +++ b/lib/efl/elm/elm_factory.rb @@ -0,0 +1,22 @@ +#! /usr/bin/env ruby +# -*- coding: UTF-8 -*- +# +require 'efl/elm/elm_object' +require 'efl/native/elm/elm_factory' +# +module Efl + # + module Elm + # + class ElmFactory < ElmObject + # + include Helper + constructor :elm_factory_add + search_prefixes 'elm_factory_' + # + end + # + end +end +# +# EOF diff --git a/lib/efl/native/elm/elm_factory.rb b/lib/efl/native/elm/elm_factory.rb new file mode 100644 index 0000000..efa4ef6 --- /dev/null +++ b/lib/efl/native/elm/elm_factory.rb @@ -0,0 +1,41 @@ +#! /usr/bin/env ruby +# -*- coding: UTF-8 -*- +# +require 'efl/native' +require 'efl/native/elementary' +# +module Efl + # + module ElmFactory + # + FCT_PREFIX = 'elm_factory_' 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_factory_add(Evas_Object *parent); + [ :elm_factory_add, [ :evas_object ], :evas_object ], + # EAPI void elm_factory_maxmin_mode_set(Evas_Object *obj, Eina_Bool enabled); + [ :elm_factory_maxmin_mode_set, [ :evas_object, :bool ], :void ], + # EAPI Eina_Bool elm_factory_maxmin_mode_get(const Evas_Object *obj); + [ :elm_factory_maxmin_mode_get, [ :evas_object ], :bool ], + # EAPI void elm_factory_maxmin_reset_set(Evas_Object *obj); + [ :elm_factory_maxmin_reset_set, [ :evas_object ], :void ], + ] + # + attach_fcts fcts + # + end +end +# +# EOF diff --git a/tools/genruby.rb b/tools/genruby.rb index 446fc4b..1013c92 100755 --- a/tools/genruby.rb +++ b/tools/genruby.rb @@ -392,7 +392,7 @@ libs << elm_h('elm_cursor.h', 'ElmCursor') libs << elm_h('elm_debug.h', 'ElmDebug') libs << elm_h('elm_diskselector.h', 'ElmDiskSelector', ["#{NATIVE}/elementary","#{NATIVE}/elm/elm_scroller"]) libs << elm_h('elm_engine.h', 'ElmEngine') -#libs << elm_h('elm_factory.h', 'ElmFactory') +libs << elm_h('elm_factory.h', 'ElmFactory') libs << elm_h('elm_finger.h', 'ElmFinger') libs << elm_h('elm_flip.h', 'ElmFlip') libs << elm_h('elm_flipselector.h', 'ElmFlipSelector') -- cgit v1.1-2-g2b99 From d13fa37a9b82920febb80805cd29f91e22684bc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 29 Feb 2012 17:57:38 +0100 Subject: parse elm_store.h, generate elm_store.rb --- lib/efl/elementary_all.rb | 2 +- lib/efl/elm/elm_store.rb | 43 ++++++++++++++++ lib/efl/native/elm/elm_store.rb | 110 ++++++++++++++++++++++++++++++++++++++++ tools/genruby.rb | 2 +- 4 files changed, 155 insertions(+), 2 deletions(-) create mode 100644 lib/efl/elm/elm_store.rb create mode 100644 lib/efl/native/elm/elm_store.rb diff --git a/lib/efl/elementary_all.rb b/lib/efl/elementary_all.rb index b90db6a..dcaf157 100644 --- a/lib/efl/elementary_all.rb +++ b/lib/efl/elementary_all.rb @@ -69,7 +69,7 @@ require 'efl/elm/elm_separator' require 'efl/elm/elm_slider' require 'efl/elm/elm_slideshow' require 'efl/elm/elm_spinner' -#require 'efl/elm/elm_store' +require 'efl/elm/elm_store' require 'efl/elm/elm_table' require 'efl/elm/elm_theme' require 'efl/elm/elm_thumb' diff --git a/lib/efl/elm/elm_store.rb b/lib/efl/elm/elm_store.rb new file mode 100644 index 0000000..625232a --- /dev/null +++ b/lib/efl/elm/elm_store.rb @@ -0,0 +1,43 @@ +#! /usr/bin/env ruby +# -*- coding: UTF-8 -*- +# +require 'efl' +require 'efl/native/elm/elm_store' +# +module Efl + # + module Elm + # + class ElmStore + # + include Efl::ClassHelper + search_prefixes 'elm_store_' + # + def initialize o=nil, &block + @ptr = ( + case o + when NilClass + FFI::AutoPointer.new Native.elm_store_filesystem_new, ElmStore.method(:release) + when FFI::Pointer + o + else + raise ArgumentError.new "wrong argument #{o.class.name}" + end + ) + instance_eval &block if block + end + def self.release p + Native.elm_store_free p + end + def free + @ptr.autorelease=false if @ptr.is_a? FFI::AutoPointer + ElmStore.release @ptr + @ptr=nil + end + # + end + # + end +end +# +# EOF diff --git a/lib/efl/native/elm/elm_store.rb b/lib/efl/native/elm/elm_store.rb new file mode 100644 index 0000000..5ea990f --- /dev/null +++ b/lib/efl/native/elm/elm_store.rb @@ -0,0 +1,110 @@ +#! /usr/bin/env ruby +# -*- coding: UTF-8 -*- +# +require 'efl/native' +require 'efl/native/elementary' +# +module Efl + # + module ElmStore + # + FCT_PREFIX = 'elm_store_' 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' + # + # ENUMS + # typedef enum {...} Elm_Store_Item_Mapping_Type; + enum :elm_store_item_mapping_type, [ :elm_store_item_mapping_none, 0, :elm_store_item_mapping_label, 1, :elm_store_item_mapping_state, 2, + :elm_store_item_mapping_icon, 3, :elm_store_item_mapping_photo, 4, :elm_store_item_mapping_custom, 5, :elm_store_item_mapping_last, 6 ] + # + # TYPEDEFS + # typedef struct _Elm_Store Elm_Store; + typedef :pointer, :elm_store + # typedef struct _Elm_Store_Filesystem Elm_Store_Filesystem; + typedef :pointer, :elm_store_filesystem + # typedef struct _Elm_Store_Item Elm_Store_Item; + typedef :pointer, :elm_store_item + # typedef struct _Elm_Store_Item_Filesystem Elm_Store_Item_Filesystem; + typedef :pointer, :elm_store_item_filesystem + # typedef struct _Elm_Store_Item_Info Elm_Store_Item_Info; + typedef :pointer, :elm_store_item_info + # typedef struct _Elm_Store_Item_Info_Filesystem Elm_Store_Item_Info_Filesystem; + typedef :pointer, :elm_store_item_info_filesystem + # typedef struct _Elm_Store_Item_Mapping Elm_Store_Item_Mapping; + typedef :pointer, :elm_store_item_mapping + # typedef struct _Elm_Store_Item_Mapping_Empty Elm_Store_Item_Mapping_Empty; + typedef :pointer, :elm_store_item_mapping_empty + # typedef struct _Elm_Store_Item_Mapping_Icon Elm_Store_Item_Mapping_Icon; + typedef :pointer, :elm_store_item_mapping_icon + # typedef struct _Elm_Store_Item_Mapping_Photo Elm_Store_Item_Mapping_Photo; + typedef :pointer, :elm_store_item_mapping_photo + # typedef struct _Elm_Store_Item_Mapping_Custom Elm_Store_Item_Mapping_Custom; + typedef :pointer, :elm_store_item_mapping_custom + # + # CALLBACKS + # typedef Eina_Bool (*Elm_Store_Item_List_Cb) (void *data, Elm_Store_Item_Info *info); + callback :elm_store_item_list_cb, [ :pointer, :elm_store_item_info ], :bool + # typedef void (*Elm_Store_Item_Fetch_Cb) (void *data, Elm_Store_Item *sti); + callback :elm_store_item_fetch_cb, [ :pointer, :elm_store_item ], :void + # typedef void (*Elm_Store_Item_Unfetch_Cb) (void *data, Elm_Store_Item *sti); + callback :elm_store_item_unfetch_cb, [ :pointer, :elm_store_item ], :void + # typedef void *(*Elm_Store_Item_Mapping_Cb) (void *data, Elm_Store_Item *sti, const char *part); + callback :elm_store_item_mapping_cb, [ :pointer, :elm_store_item, :string ], :pointer + # + # FUNCTIONS + fcts = [ + # EAPI void elm_store_free(Elm_Store *st); + [ :elm_store_free, [ :elm_store ], :void ], + # EAPI Elm_Store *elm_store_filesystem_new(void); + [ :elm_store_filesystem_new, [ ], :elm_store ], + # EAPI void elm_store_filesystem_directory_set(Elm_Store *st, const char *dir); + [ :elm_store_filesystem_directory_set, [ :elm_store, :string ], :void ], + # EAPI const char *elm_store_filesystem_directory_get(const Elm_Store *st); + [ :elm_store_filesystem_directory_get, [ :elm_store ], :string ], + # EAPI const char *elm_store_item_filesystem_path_get(const Elm_Store_Item *sti); + [ :elm_store_item_filesystem_path_get, [ :elm_store_item ], :string ], + # EAPI void elm_store_target_genlist_set(Elm_Store *st, Evas_Object *obj); + [ :elm_store_target_genlist_set, [ :elm_store, :evas_object ], :void ], + # EAPI void elm_store_cache_set(Elm_Store *st, int max); + [ :elm_store_cache_set, [ :elm_store, :int ], :void ], + # EAPI int elm_store_cache_get(const Elm_Store *st); + [ :elm_store_cache_get, [ :elm_store ], :int ], + # EAPI void elm_store_list_func_set(Elm_Store *st, Elm_Store_Item_List_Cb func, const void *data); + [ :elm_store_list_func_set, [ :elm_store, :elm_store_item_list_cb, :pointer ], :void ], + # EAPI void elm_store_fetch_func_set(Elm_Store *st, Elm_Store_Item_Fetch_Cb func, const void *data); + [ :elm_store_fetch_func_set, [ :elm_store, :elm_store_item_fetch_cb, :pointer ], :void ], + # EAPI void elm_store_fetch_thread_set(Elm_Store *st, Eina_Bool use_thread); + [ :elm_store_fetch_thread_set, [ :elm_store, :bool ], :void ], + # EAPI Eina_Bool elm_store_fetch_thread_get(const Elm_Store *st); + [ :elm_store_fetch_thread_get, [ :elm_store ], :bool ], + # EAPI void elm_store_unfetch_func_set(Elm_Store *st, Elm_Store_Item_Unfetch_Cb func, const void *data); + [ :elm_store_unfetch_func_set, [ :elm_store, :elm_store_item_unfetch_cb, :pointer ], :void ], + # EAPI void elm_store_sorted_set(Elm_Store *st, Eina_Bool sorted); + [ :elm_store_sorted_set, [ :elm_store, :bool ], :void ], + # EAPI Eina_Bool elm_store_sorted_get(const Elm_Store *st); + [ :elm_store_sorted_get, [ :elm_store ], :bool ], + # EAPI void elm_store_item_data_set(Elm_Store_Item *sti, void *data); + [ :elm_store_item_data_set, [ :elm_store_item, :pointer ], :void ], + # EAPI void *elm_store_item_data_get(Elm_Store_Item *sti); + [ :elm_store_item_data_get, [ :elm_store_item ], :pointer ], + # EAPI const Elm_Store *elm_store_item_store_get(const Elm_Store_Item *sti); + [ :elm_store_item_store_get, [ :elm_store_item ], :elm_store ], + # EAPI const Elm_Object_Item *elm_store_item_genlist_item_get(const Elm_Store_Item *sti); + [ :elm_store_item_genlist_item_get, [ :elm_store_item ], :elm_object_item ], + ] + # + attach_fcts fcts + # + end +end +# +# EOF diff --git a/tools/genruby.rb b/tools/genruby.rb index 1013c92..f72b6f1 100755 --- a/tools/genruby.rb +++ b/tools/genruby.rb @@ -431,7 +431,7 @@ libs << elm_h('elm_separator.h', 'ElmSeparator') libs << elm_h('elm_slider.h', 'ElmSlider') libs << elm_h('elm_slideshow.h', 'ElmSlideshow') libs << elm_h('elm_spinner.h', 'ElmSpinner') -#libs << elm_h('elm_store.h', 'ElmStore') +libs << elm_h('elm_store.h', 'ElmStore') libs << elm_h('elm_table.h', 'ElmTable') libs << elm_h('elm_theme.h', 'ElmTheme') libs << elm_h('elm_thumb.h', 'ElmThumb') -- cgit v1.1-2-g2b99 From 736f0937a6eeec0843e4dc17ad86a2eac7e77dd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 29 Feb 2012 18:01:21 +0100 Subject: tools/check_loading: update find --- tools/check_loading | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/check_loading b/tools/check_loading index 0814e78..0d082ed 100755 --- a/tools/check_loading +++ b/tools/check_loading @@ -18,11 +18,11 @@ function run () { function each () { echo $($RUBY --version) echo " lib/efl/native/*.rb" - for native in $(find $parentdir/lib/efl/native/ -name *.rb | sort); do + for native in $(find $parentdir/lib/efl/native/ -name 'e*.rb' | sort); do run $native done echo " lib/efl/*.rb" - for wrapper in $(find $parentdir/lib/efl/ -name e*.rb | grep -v native | sort); do + for wrapper in $(find $parentdir/lib/efl/ -name 'e*.rb' | grep -v native | sort); do run $wrapper done } -- cgit v1.1-2-g2b99 From 0c19c3c009399cef315c204a44e8ea9b4ca64fae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 29 Feb 2012 18:01:44 +0100 Subject: update edje API --- lib/efl/native/edje.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/efl/native/edje.rb b/lib/efl/native/edje.rb index a0edb14..61910bd 100644 --- a/lib/efl/native/edje.rb +++ b/lib/efl/native/edje.rb @@ -321,6 +321,8 @@ module Efl [ :edje_object_part_text_item_geometry_get, [ :evas_object, :string, :string, :pointer, :pointer, :pointer, :pointer ], :bool ], # EAPI void edje_object_part_text_cursor_geometry_get (const Evas_Object *obj, const char *part, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h); [ :edje_object_part_text_cursor_geometry_get, [ :evas_object, :string, :pointer, :pointer, :pointer, :pointer ], :void ], + # EAPI void edje_object_part_text_user_insert (const Evas_Object *obj, const char *part, const char *text); + [ :edje_object_part_text_user_insert, [ :evas_object, :string, :string ], :void ], # EAPI void edje_object_part_text_select_allow_set (const Evas_Object *obj, const char *part, Eina_Bool allow); [ :edje_object_part_text_select_allow_set, [ :evas_object, :string, :bool ], :void ], # EAPI void edje_object_part_text_select_abort (const Evas_Object *obj, const char *part); -- cgit v1.1-2-g2b99 From 5d7c9757c9d5d9ec562ab8961061077e26c12043 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 29 Feb 2012 18:03:12 +0100 Subject: remove elm_widget* --- lib/efl/elementary_all.rb | 1 - tools/genruby.rb | 1 - 2 files changed, 2 deletions(-) diff --git a/lib/efl/elementary_all.rb b/lib/efl/elementary_all.rb index dcaf157..380d4e8 100644 --- a/lib/efl/elementary_all.rb +++ b/lib/efl/elementary_all.rb @@ -77,7 +77,6 @@ require 'efl/elm/elm_toolbar' require 'efl/elm/elm_transit' require 'efl/elm/elm_video' require 'efl/elm/elm_web' -#require 'efl/elm/elm_widget' require 'efl/elm/elm_win' # # EOF diff --git a/tools/genruby.rb b/tools/genruby.rb index f72b6f1..fe252b3 100755 --- a/tools/genruby.rb +++ b/tools/genruby.rb @@ -439,7 +439,6 @@ libs << elm_h('elm_toolbar.h', 'ElmToolbar', ["#{NATIVE}/elementary","#{NATIVE}/ libs << elm_h('elm_transit.h', 'ElmTransit') libs << elm_h('elm_video.h', 'ElmVideo') libs << elm_h('elm_web.h', 'ElmWeb') -#libs << elm_h('elm_widget.h', 'ElmWidget') libs << elm_h('elm_win.h', 'ElmWin') Dir.mkdir lib_path unless (File.exists? lib_path) -- cgit v1.1-2-g2b99 From 7d430af815626bb783f0eb435d7df549733958d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 29 Feb 2012 18:06:15 +0100 Subject: update Changelog, update revision 0.0.10->0.0.11 --- Changelog | 3 ++- lib/efl.rb | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Changelog b/Changelog index 8d850e2..7726607 100644 --- a/Changelog +++ b/Changelog @@ -1,9 +1,10 @@ -2012-01-xx Jérémy Zurcher +2012-02-29 Jérémy Zurcher * remove usage of autoload * efl.rb holds objects and method_missing helper code * native.rb only helps for ffi mapping * follow new elementary header split * object constructors use instance_eval instead of yield + * elm widgets complete but rough 2011-09-02 Jérémy Zurcher * release 0.0.9 diff --git a/lib/efl.rb b/lib/efl.rb index 19b5551..96aa317 100644 --- a/lib/efl.rb +++ b/lib/efl.rb @@ -3,7 +3,7 @@ # module Efl # - VERSION = '0.0.10' + VERSION = '0.0.11' # module MethodResolver def self.resolve mod, meth, prefix -- cgit v1.1-2-g2b99