diff options
31 files changed, 859 insertions, 230 deletions
@@ -1,9 +1,10 @@ -2012-01-xx Jérémy Zurcher <jeremy@asynk.ch> +2012-02-29 Jérémy Zurcher <jeremy@asynk.ch> * 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 <jeremy@asynk.ch> * release 0.0.9 @@ -3,7 +3,7 @@ # module Efl # - VERSION = '0.0.10' + VERSION = '0.0.11' # module MethodResolver def self.resolve mod, meth, prefix diff --git a/lib/efl/elementary_all.rb b/lib/efl/elementary_all.rb index 873160e..380d4e8 100644 --- a/lib/efl/elementary_all.rb +++ b/lib/efl/elementary_all.rb @@ -17,16 +17,15 @@ 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_conform' 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_factory' require 'efl/elm/elm_fileselector_button' require 'efl/elm/elm_fileselector_entry' require 'efl/elm/elm_fileselector' @@ -36,9 +35,8 @@ 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_glview' +require 'efl/elm/elm_gesture_layer' +require 'efl/elm/elm_glview' require 'efl/elm/elm_grid' require 'efl/elm/elm_hover' require 'efl/elm/elm_hoversel' @@ -55,7 +53,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' @@ -67,12 +64,12 @@ 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' 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' @@ -80,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/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/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/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/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/elm/elm_pager.rb b/lib/efl/elm/elm_glview.rb index f11108d..542e5b8 100644 --- a/lib/efl/elm/elm_pager.rb +++ b/lib/efl/elm/elm_glview.rb @@ -2,17 +2,17 @@ # -*- coding: UTF-8 -*- # require 'efl/elm/elm_object' -require 'efl/native/elm/elm_pager' +require 'efl/native/elm/elm_glview' # module Efl # module Elm # - class ElmPager < ElmObject + class ElmGLView < ElmObject # include Helper - constructor :elm_pager_add - search_prefixes 'elm_pager_' + constructor :elm_glview_add + search_prefixes 'elm_glview_' # end # 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/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/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); 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); 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_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_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/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/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/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_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/lib/efl/native/elm/elm_gengrid.rb b/lib/efl/native/elm/elm_gengrid.rb index 250822e..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 setting); - [ :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,24 +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_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_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 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); [ :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); @@ -161,24 +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 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_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 39add48..afdcb84 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 @@ -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_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/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/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/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); 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/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/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); 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 } diff --git a/tools/extract-api.sh b/tools/extract-api.sh index 0702629..3750cac 100755 --- a/tools/extract-api.sh +++ b/tools/extract-api.sh @@ -101,7 +101,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 15fd985..f0f546a 100755 --- a/tools/genruby.rb +++ b/tools/genruby.rb @@ -382,15 +382,15 @@ 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') +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_factory.h', 'ElmFactory') +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') libs << elm_h('elm_flipselector.h', 'ElmFlipSelector') @@ -399,8 +399,8 @@ 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_glview.h', 'ElmGLView') +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') libs << elm_h('elm_image.h', 'ElmImage') @@ -413,7 +413,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') @@ -425,12 +424,12 @@ 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') 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') @@ -438,7 +437,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) |