ffi-efl 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,93 @@
1
+ #! /usr/bin/env ruby
2
+ # -*- coding: UTF-8 -*-
3
+ #
4
+ require 'efl/ffi'
5
+ #
6
+ module Efl
7
+ #
8
+ module EMap
9
+ #
10
+ FCT_PREFIX = 'emap_'
11
+ #
12
+ def self.method_missing m, *args, &block
13
+ sym, args_s = ModuleHelper.find_function m, FCT_PREFIX
14
+ self.module_eval "def self.#{m} *args, █ r=Efl::Native.#{sym}(#{args_s}); yield r if block_given?; r; end"
15
+ self.send m, *args, &block
16
+ end
17
+ #
18
+ end
19
+ #
20
+ module Native
21
+ #
22
+ extend Efl::FFIHelper
23
+ #
24
+ ffi_lib 'emap'
25
+ #
26
+ # ENUMS
27
+ # typedef enum emap_route_type {...} EMap_Route_Type;
28
+ enum :emap_route_type, [ :emap_track_type_gpx ]
29
+ #
30
+ # TYPEDEFS
31
+ # typedef struct emap_route EMap_Route;
32
+ typedef :pointer, :emap_route
33
+ typedef :pointer, :emap_route_p
34
+ # typedef struct emap_route_node EMap_Route_Node;
35
+ typedef :pointer, :emap_route_node
36
+ typedef :pointer, :emap_route_node_p
37
+ #
38
+ # CALLBACKS
39
+ #
40
+ # VARIABLES
41
+ #
42
+ # FUNCTIONS
43
+ fcts = [
44
+ # EAPI int emap_init();
45
+ [ :emap_init, [ ], :int ],
46
+ # EAPI int emap_shutdown();
47
+ [ :emap_shutdown, [ ], :int ],
48
+ # EAPI EMap_Route *emap_route_new();
49
+ [ :emap_route_new, [ ], :emap_route_p ],
50
+ # EAPI void emap_route_node_add(EMap_Route *route, EMap_Route_Node *node);
51
+ [ :emap_route_node_add, [ :emap_route_p, :emap_route_node_p ], :void ],
52
+ # EAPI void emap_route_free(EMap_Route *route);
53
+ [ :emap_route_free, [ :emap_route_p ], :void ],
54
+ # EAPI void emap_route_name_set(EMap_Route *route, const char *name);
55
+ [ :emap_route_name_set, [ :emap_route_p, :string ], :void ],
56
+ # EAPI const char *emap_route_name_get(EMap_Route *route);
57
+ [ :emap_route_name_get, [ :emap_route_p ], :string ],
58
+ # EAPI Eina_List *emap_route_nodes_get(EMap_Route *route);
59
+ [ :emap_route_nodes_get, [ :emap_route_p ], :eina_list_p ],
60
+ # EAPI double emap_route_distance_get(EMap_Route *route);
61
+ [ :emap_route_distance_get, [ :emap_route_p ], :double ],
62
+ # EAPI EMap_Route_Node *emap_route_node_new();
63
+ [ :emap_route_node_new, [ ], :emap_route_node_p ],
64
+ # EAPI void emap_route_node_lon_set(EMap_Route_Node *node, double lon);
65
+ [ :emap_route_node_lon_set, [ :emap_route_node_p, :double ], :void ],
66
+ # EAPI void emap_route_node_lat_set(EMap_Route_Node *node, double lat);
67
+ [ :emap_route_node_lat_set, [ :emap_route_node_p, :double ], :void ],
68
+ # EAPI double emap_route_node_lon_get(EMap_Route_Node *node);
69
+ [ :emap_route_node_lon_get, [ :emap_route_node_p ], :double ],
70
+ # EAPI double emap_route_node_lat_get(EMap_Route_Node *node);
71
+ [ :emap_route_node_lat_get, [ :emap_route_node_p ], :double ],
72
+ # EAPI void emap_route_node_elevation_set(EMap_Route_Node *node, double elevation);
73
+ [ :emap_route_node_elevation_set, [ :emap_route_node_p, :double ], :void ],
74
+ # EAPI double emap_route_node_elevation_get(EMap_Route_Node *node);
75
+ [ :emap_route_node_elevation_get, [ :emap_route_node_p ], :double ],
76
+ # EAPI void emap_route_node_time_set(EMap_Route_Node *node, time_t time);
77
+ [ :emap_route_node_time_set, [ :emap_route_node_p, :ulong ], :void ],
78
+ # EAPI time_t emap_route_node_time_get(EMap_Route_Node *node);
79
+ [ :emap_route_node_time_get, [ :emap_route_node_p ], :ulong ],
80
+ # EAPI double emap_route_nodes_distance_get(EMap_Route_Node *A, EMap_Route_Node *B);
81
+ [ :emap_route_nodes_distance_get, [ :emap_route_node_p, :emap_route_node_p ], :double ],
82
+ # EAPI void emap_route_node_free(EMap_Route_Node *node);
83
+ [ :emap_route_node_free, [ :emap_route_node_p ], :void ],
84
+ # EAPI EMap_Route * emap_route_gpx_new(const char *file);
85
+ [ :emap_route_gpx_new, [ :string ], :emap_route_p ],
86
+ ]
87
+ #
88
+ attach_fcts fcts
89
+ #
90
+ end
91
+ end
92
+ #
93
+ # EOF
@@ -6,11 +6,12 @@ require 'efl/ffi'
6
6
  module Efl
7
7
  #
8
8
  module Evas
9
+ #
10
+ FCT_PREFIX = 'evas_'
9
11
  #
10
12
  def self.method_missing m, *args, &block
11
- sym = 'evas_'+m.to_s
12
- raise NameError.new "#{self.name}.#{sym} (#{m})" if not Efl::Native.respond_to? sym
13
- self.module_eval "def self.#{m} *args, █ r=Efl::Native.#{sym}(*args); yield r if block_given?; r; end"
13
+ sym, args_s = ModuleHelper.find_function m, FCT_PREFIX
14
+ self.module_eval "def self.#{m} *args, █ r=Efl::Native.#{sym}(#{args_s}); yield r if block_given?; r; end"
14
15
  self.send m, *args, &block
15
16
  end
16
17
  #
@@ -24,7 +25,7 @@ module Efl
24
25
  #
25
26
  # ENUMS
26
27
  # typedef enum _Evas_BiDi_Direction {...} Evas_BiDi_Direction;
27
- enum :evas_bidi_direction, [ :evas_bidi_direction_natural, :evas_bidi_direction_ltr, :evas_bidi_direction_rtl ]
28
+ enum :evas_bidi_direction, [ :evas_bidi_direction_natural, :evas_bidi_direction_neutral, :evas_bidi_direction_ltr, :evas_bidi_direction_rtl ]
28
29
  typedef :pointer, :evas_bidi_direction_p
29
30
  # typedef enum _Evas_Callback_Type {...} Evas_Callback_Type;
30
31
  enum :evas_callback_type, [ :evas_callback_mouse_in, :evas_callback_mouse_out, :evas_callback_mouse_down, :evas_callback_mouse_up, :evas_callback_mouse_move,
@@ -41,7 +42,7 @@ module Efl
41
42
  enum :evas_font_hinting_flags, [ :evas_font_hinting_none, :evas_font_hinting_auto, :evas_font_hinting_bytecode ]
42
43
  # typedef enum _Evas_Colorspace {...} Evas_Colorspace;
43
44
  enum :evas_colorspace, [ :evas_colorspace_argb8888, :evas_colorspace_ycbcr422p601_pl, :evas_colorspace_ycbcr422p709_pl, :evas_colorspace_rgb565_a5p,
44
- :evas_colorspace_gry8 ]
45
+ :evas_colorspace_gry8, :evas_colorspace_ycbcr422601_pl ]
45
46
  # typedef enum _Evas_Object_Table_Homogeneous_Mode {...} Evas_Object_Table_Homogeneous_Mode;
46
47
  enum :evas_object_table_homogeneous_mode, [ :evas_object_table_homogeneous_none, 0, :evas_object_table_homogeneous_table, 1, :evas_object_table_homogeneous_item,
47
48
  2 ]
@@ -68,6 +69,8 @@ module Efl
68
69
  enum :evas_border_fill_mode, [ :evas_border_fill_none, 0, :evas_border_fill_default, 1, :evas_border_fill_solid, 2 ]
69
70
  # typedef enum _Evas_Image_Scale_Hint {...} Evas_Image_Scale_Hint;
70
71
  enum :evas_image_scale_hint, [ :evas_image_scale_hint_none, 0, :evas_image_scale_hint_dynamic, 1, :evas_image_scale_hint_static, 2 ]
72
+ # typedef enum _Evas_Image_Animated_Loop_Hint {...} Evas_Image_Animated_Loop_Hint;
73
+ enum :evas_image_animated_loop_hint, [ :evas_image_animated_hint_none, 0, :evas_image_animated_hint_loop, 1, :evas_image_animated_hint_pingpong, 2 ]
71
74
  # typedef enum _Evas_Engine_Render_Mode {...} Evas_Engine_Render_Mode;
72
75
  enum :evas_engine_render_mode, [ :evas_render_mode_blocking, 0, :evas_render_mode_nonblocking, 1 ]
73
76
  # typedef enum _Evas_Image_Content_Hint {...} Evas_Image_Content_Hint;
@@ -84,16 +87,13 @@ module Efl
84
87
  enum :evas_textblock_text_type, [ :evas_textblock_text_raw, :evas_textblock_text_plain, :evas_textblock_text_markup ]
85
88
  # typedef enum _Evas_Textblock_Cursor_Type {...} Evas_Textblock_Cursor_Type;
86
89
  enum :evas_textblock_cursor_type, [ :evas_textblock_cursor_under, :evas_textblock_cursor_before ]
87
- # typedef enum {...} Evas_Filter_Mode;
88
- enum :evas_filter_mode, [ :evas_filter_mode_object, :evas_filter_mode_below ]
89
- # typedef enum {...} Evas_Filter;
90
- enum :evas_filter, [ :evas_filter_none, :evas_filter_blur, :evas_filter_invert, :evas_filter_solarize, :evas_filter_sepia, :evas_filter_greyscale,
91
- :evas_filter_grayscale, :evas_filter_brightness, :evas_filter_contrast, :evas_filter_last ]
92
90
  #
93
91
  # TYPEDEFS
94
92
  # typedef struct _Evas_Version Evas_Version;
95
93
  typedef :pointer, :evas_version
96
94
  typedef :pointer, :evas_version_p
95
+ # typedef short Evas_Callback_Priority;
96
+ typedef :short, :evas_callback_priority
97
97
  # typedef struct _Evas_Coord_Rectangle Evas_Coord_Rectangle;
98
98
  typedef :pointer, :evas_coord_rectangle
99
99
  # typedef struct _Evas_Point Evas_Point;
@@ -348,12 +348,28 @@ module Efl
348
348
  [ :evas_pointer_inside_get, [ :evas_p ], :eina_bool ],
349
349
  # EAPI void evas_sync(Evas *e);
350
350
  [ :evas_sync, [ :evas_p ], :void ],
351
+ # EAPI void evas_event_callback_add (Evas *e, Evas_Callback_Type type, Evas_Event_Cb func, const void *data);
352
+ [ :evas_event_callback_add, [ :evas_p, :evas_callback_type, :evas_event_cb, :void_p ], :void ],
353
+ # EAPI void evas_event_callback_priority_add(Evas *e, Evas_Callback_Type type, Evas_Callback_Priority priority, Evas_Event_Cb func, const void *data);
354
+ [ :evas_event_callback_priority_add, [ :evas_p, :evas_callback_type, :short, :evas_event_cb, :void_p ], :void ],
355
+ # EAPI void *evas_event_callback_del (Evas *e, Evas_Callback_Type type, Evas_Event_Cb func);
356
+ [ :evas_event_callback_del, [ :evas_p, :evas_callback_type, :evas_event_cb ], :void_p ],
357
+ # EAPI void *evas_event_callback_del_full (Evas *e, Evas_Callback_Type type, Evas_Event_Cb func, const void *data);
358
+ [ :evas_event_callback_del_full, [ :evas_p, :evas_callback_type, :evas_event_cb, :void_p ], :void_p ],
359
+ # EAPI void evas_post_event_callback_push (Evas *e, Evas_Object_Event_Post_Cb func, const void *data);
360
+ [ :evas_post_event_callback_push, [ :evas_p, :evas_object_event_post_cb, :void_p ], :void ],
361
+ # EAPI void evas_post_event_callback_remove (Evas *e, Evas_Object_Event_Post_Cb func);
362
+ [ :evas_post_event_callback_remove, [ :evas_p, :evas_object_event_post_cb ], :void ],
363
+ # EAPI void evas_post_event_callback_remove_full (Evas *e, Evas_Object_Event_Post_Cb func, const void *data);
364
+ [ :evas_post_event_callback_remove_full, [ :evas_p, :evas_object_event_post_cb, :void_p ], :void ],
351
365
  # EAPI void evas_event_freeze (Evas *e);
352
366
  [ :evas_event_freeze, [ :evas_p ], :void ],
353
367
  # EAPI void evas_event_thaw (Evas *e);
354
368
  [ :evas_event_thaw, [ :evas_p ], :void ],
355
369
  # EAPI int evas_event_freeze_get (const Evas *e);
356
370
  [ :evas_event_freeze_get, [ :evas_p ], :int ],
371
+ # EAPI void evas_event_thaw_eval (Evas *e);
372
+ [ :evas_event_thaw_eval, [ :evas_p ], :void ],
357
373
  # EAPI void evas_event_feed_mouse_down (Evas *e, int b, Evas_Button_Flags flags, unsigned int timestamp, const void *data);
358
374
  [ :evas_event_feed_mouse_down, [ :evas_p, :int, :evas_button_flags, :uint, :void_p ], :void ],
359
375
  # EAPI void evas_event_feed_mouse_up (Evas *e, int b, Evas_Button_Flags flags, unsigned int timestamp, const void *data);
@@ -382,18 +398,8 @@ module Efl
382
398
  [ :evas_event_feed_key_up, [ :evas_p, :string, :string, :string, :string, :uint, :void_p ], :void ],
383
399
  # EAPI void evas_event_feed_hold (Evas *e, int hold, unsigned int timestamp, const void *data);
384
400
  [ :evas_event_feed_hold, [ :evas_p, :int, :uint, :void_p ], :void ],
385
- # EAPI void evas_event_callback_add (Evas *e, Evas_Callback_Type type, Evas_Event_Cb func, const void *data);
386
- [ :evas_event_callback_add, [ :evas_p, :evas_callback_type, :evas_event_cb, :void_p ], :void ],
387
- # EAPI void *evas_event_callback_del (Evas *e, Evas_Callback_Type type, Evas_Event_Cb func);
388
- [ :evas_event_callback_del, [ :evas_p, :evas_callback_type, :evas_event_cb ], :void_p ],
389
- # EAPI void *evas_event_callback_del_full (Evas *e, Evas_Callback_Type type, Evas_Event_Cb func, const void *data);
390
- [ :evas_event_callback_del_full, [ :evas_p, :evas_callback_type, :evas_event_cb, :void_p ], :void_p ],
391
- # EAPI void evas_post_event_callback_push (Evas *e, Evas_Object_Event_Post_Cb func, const void *data);
392
- [ :evas_post_event_callback_push, [ :evas_p, :evas_object_event_post_cb, :void_p ], :void ],
393
- # EAPI void evas_post_event_callback_remove (Evas *e, Evas_Object_Event_Post_Cb func);
394
- [ :evas_post_event_callback_remove, [ :evas_p, :evas_object_event_post_cb ], :void ],
395
- # EAPI void evas_post_event_callback_remove_full (Evas *e, Evas_Object_Event_Post_Cb func, const void *data);
396
- [ :evas_post_event_callback_remove_full, [ :evas_p, :evas_object_event_post_cb, :void_p ], :void ],
401
+ # EAPI void evas_event_refeed_event (Evas *e, void *event_copy, Evas_Callback_Type event_type);;
402
+ [ :evas_event_refeed_event, [ :evas_p, :void_p, :evas_callback_type ], :void ],
397
403
  # EAPI void evas_image_cache_flush (Evas *e);
398
404
  [ :evas_image_cache_flush, [ :evas_p ], :void ],
399
405
  # EAPI void evas_image_cache_reload (Evas *e);
@@ -486,6 +492,8 @@ module Efl
486
492
  [ :evas_object_below_get, [ :evas_object_p ], :evas_object_p ],
487
493
  # EAPI void evas_object_event_callback_add (Evas_Object *obj, Evas_Callback_Type type, Evas_Object_Event_Cb func, const void *data);
488
494
  [ :evas_object_event_callback_add, [ :evas_object_p, :evas_callback_type, :evas_object_event_cb, :void_p ], :void ],
495
+ # EAPI void evas_object_event_callback_priority_add(Evas_Object *obj, Evas_Callback_Type type, Evas_Callback_Priority priority, Evas_Object_Event_Cb func, const void *data);
496
+ [ :evas_object_event_callback_priority_add, [ :evas_object_p, :evas_callback_type, :short, :evas_object_event_cb, :void_p ], :void ],
489
497
  # EAPI void *evas_object_event_callback_del (Evas_Object *obj, Evas_Callback_Type type, Evas_Object_Event_Cb func);
490
498
  [ :evas_object_event_callback_del, [ :evas_object_p, :evas_callback_type, :evas_object_event_cb ], :void_p ],
491
499
  # EAPI void *evas_object_event_callback_del_full(Evas_Object *obj, Evas_Callback_Type type, Evas_Object_Event_Cb func, const void *data);
@@ -732,10 +740,10 @@ module Efl
732
740
  [ :evas_object_image_load_error_get, [ :evas_object_p ], :evas_load_error ],
733
741
  # EAPI void evas_object_image_data_set (Evas_Object *obj, void *data);
734
742
  [ :evas_object_image_data_set, [ :evas_object_p, :void_p ], :void ],
735
- # EAPI void *evas_object_image_data_convert (Evas_Object *obj, Evas_Colorspace to_cspace);
736
- [ :evas_object_image_data_convert, [ :evas_object_p, :evas_colorspace ], :void_p ],
737
743
  # EAPI void *evas_object_image_data_get (const Evas_Object *obj, Eina_Bool for_writing);
738
744
  [ :evas_object_image_data_get, [ :evas_object_p, :eina_bool ], :void_p ],
745
+ # EAPI void *evas_object_image_data_convert (Evas_Object *obj, Evas_Colorspace to_cspace);
746
+ [ :evas_object_image_data_convert, [ :evas_object_p, :evas_colorspace ], :void_p ],
739
747
  # EAPI void evas_object_image_data_copy_set (Evas_Object *obj, void *data);
740
748
  [ :evas_object_image_data_copy_set, [ :evas_object_p, :void_p ], :void ],
741
749
  # EAPI void evas_object_image_data_update_add (Evas_Object *obj, int x, int y, int w, int h);
@@ -778,6 +786,10 @@ module Efl
778
786
  [ :evas_object_image_load_region_set, [ :evas_object_p, :int, :int, :int, :int ], :void ],
779
787
  # EAPI void evas_object_image_load_region_get (const Evas_Object *obj, int *x, int *y, int *w, int *h);
780
788
  [ :evas_object_image_load_region_get, [ :evas_object_p, :int_p, :int_p, :int_p, :int_p ], :void ],
789
+ # EAPI void evas_object_image_load_orientation_set (Evas_Object *obj, Eina_Bool enable);
790
+ [ :evas_object_image_load_orientation_set, [ :evas_object_p, :eina_bool ], :void ],
791
+ # EAPI Eina_Bool evas_object_image_load_orientation_get (const Evas_Object *obj);
792
+ [ :evas_object_image_load_orientation_get, [ :evas_object_p ], :eina_bool ],
781
793
  # EAPI void evas_object_image_colorspace_set (Evas_Object *obj, Evas_Colorspace cspace);
782
794
  [ :evas_object_image_colorspace_set, [ :evas_object_p, :evas_colorspace ], :void ],
783
795
  # EAPI Evas_Colorspace evas_object_image_colorspace_get (const Evas_Object *obj);
@@ -802,6 +814,22 @@ module Efl
802
814
  [ :evas_object_image_source_get, [ :evas_object_p ], :evas_object_p ],
803
815
  # EAPI Eina_Bool evas_object_image_source_unset (Evas_Object *obj);
804
816
  [ :evas_object_image_source_unset, [ :evas_object_p ], :eina_bool ],
817
+ # EAPI Eina_Bool evas_object_image_extension_can_load_get(const char *file);
818
+ [ :evas_object_image_extension_can_load_get, [ :string ], :eina_bool ],
819
+ # EAPI Eina_Bool evas_object_image_extension_can_load_fast_get(const char *file);
820
+ [ :evas_object_image_extension_can_load_fast_get, [ :string ], :eina_bool ],
821
+ # EAPI Eina_Bool evas_object_image_animated_get(const Evas_Object *obj);
822
+ [ :evas_object_image_animated_get, [ :evas_object_p ], :eina_bool ],
823
+ # EAPI int evas_object_image_animated_frame_count_get(const Evas_Object *obj);
824
+ [ :evas_object_image_animated_frame_count_get, [ :evas_object_p ], :int ],
825
+ # EAPI Evas_Image_Animated_Loop_Hint evas_object_image_animated_loop_type_get(const Evas_Object *obj);
826
+ [ :evas_object_image_animated_loop_type_get, [ :evas_object_p ], :evas_image_animated_loop_hint ],
827
+ # EAPI int evas_object_image_animated_loop_count_get(const Evas_Object *obj);
828
+ [ :evas_object_image_animated_loop_count_get, [ :evas_object_p ], :int ],
829
+ # EAPI double evas_object_image_animated_frame_duration_get(const Evas_Object *obj, int start_frame, int fram_num);
830
+ [ :evas_object_image_animated_frame_duration_get, [ :evas_object_p, :int, :int ], :double ],
831
+ # EAPI void evas_object_image_animated_frame_set(Evas_Object *obj, int frame_num);
832
+ [ :evas_object_image_animated_frame_set, [ :evas_object_p, :int ], :void ],
805
833
  # EAPI Evas_Object *evas_object_text_add (Evas *e);
806
834
  [ :evas_object_text_add, [ :evas_p ], :evas_object_p ],
807
835
  # EAPI void evas_object_text_font_source_set (Evas_Object *obj, const char *font);
@@ -814,12 +842,12 @@ module Efl
814
842
  [ :evas_object_text_font_get, [ :evas_object_p, :string_array, :int_p ], :void ],
815
843
  # EAPI void evas_object_text_text_set (Evas_Object *obj, const char *text);
816
844
  [ :evas_object_text_text_set, [ :evas_object_p, :string ], :void ],
845
+ # EAPI const char *evas_object_text_text_get (const Evas_Object *obj);
846
+ [ :evas_object_text_text_get, [ :evas_object_p ], :string ],
817
847
  # EAPI void evas_object_text_bidi_delimiters_set(Evas_Object *obj, const char *delim);
818
848
  [ :evas_object_text_bidi_delimiters_set, [ :evas_object_p, :string ], :void ],
819
849
  # EAPI const char *evas_object_text_bidi_delimiters_get(const Evas_Object *obj);
820
850
  [ :evas_object_text_bidi_delimiters_get, [ :evas_object_p ], :string ],
821
- # EAPI const char *evas_object_text_text_get (const Evas_Object *obj);
822
- [ :evas_object_text_text_get, [ :evas_object_p ], :string ],
823
851
  # EAPI Evas_Coord evas_object_text_ascent_get (const Evas_Object *obj);
824
852
  [ :evas_object_text_ascent_get, [ :evas_object_p ], :int ],
825
853
  # EAPI Evas_Coord evas_object_text_descent_get (const Evas_Object *obj);
@@ -896,19 +924,19 @@ module Efl
896
924
  [ :evas_object_textblock_bidi_delimiters_set, [ :evas_object_p, :string ], :void ],
897
925
  # EAPI const char *evas_object_textblock_bidi_delimiters_get(const Evas_Object *obj);
898
926
  [ :evas_object_textblock_bidi_delimiters_get, [ :evas_object_p ], :string ],
899
- # EAPI void evas_object_textblock_newline_mode_set(Evas_Object *obj, Eina_Bool mode);
900
- [ :evas_object_textblock_newline_mode_set, [ :evas_object_p, :eina_bool ], :void ],
901
- # EAPI Eina_Bool evas_object_textblock_newline_mode_get(const Evas_Object *obj);
902
- [ :evas_object_textblock_newline_mode_get, [ :evas_object_p ], :eina_bool ],
927
+ # EAPI void evas_object_textblock_legacy_newline_set(Evas_Object *obj, Eina_Bool mode);
928
+ [ :evas_object_textblock_legacy_newline_set, [ :evas_object_p, :eina_bool ], :void ],
929
+ # EAPI Eina_Bool evas_object_textblock_legacy_newline_get(const Evas_Object *obj);
930
+ [ :evas_object_textblock_legacy_newline_get, [ :evas_object_p ], :eina_bool ],
903
931
  # EAPI void evas_object_textblock_text_markup_set(Evas_Object *obj, const char *text);
904
932
  [ :evas_object_textblock_text_markup_set, [ :evas_object_p, :string ], :void ],
905
933
  # EAPI void evas_object_textblock_text_markup_prepend(Evas_Textblock_Cursor *cur, const char *text);
906
934
  [ :evas_object_textblock_text_markup_prepend, [ :evas_textblock_cursor_p, :string ], :void ],
907
935
  # EAPI const char *evas_object_textblock_text_markup_get(const Evas_Object *obj);
908
936
  [ :evas_object_textblock_text_markup_get, [ :evas_object_p ], :string ],
909
- # EAPI const Evas_Textblock_Cursor *evas_object_textblock_cursor_get(const Evas_Object *obj);
937
+ # EAPI Evas_Textblock_Cursor *evas_object_textblock_cursor_get(const Evas_Object *obj);
910
938
  [ :evas_object_textblock_cursor_get, [ :evas_object_p ], :evas_textblock_cursor_p ],
911
- # EAPI Evas_Textblock_Cursor *evas_object_textblock_cursor_new(Evas_Object *obj);
939
+ # EAPI Evas_Textblock_Cursor *evas_object_textblock_cursor_new(const Evas_Object *obj);
912
940
  [ :evas_object_textblock_cursor_new, [ :evas_object_p ], :evas_textblock_cursor_p ],
913
941
  # EAPI void evas_textblock_cursor_free(Evas_Textblock_Cursor *cur);
914
942
  [ :evas_textblock_cursor_free, [ :evas_textblock_cursor_p ], :void ],
@@ -920,6 +948,8 @@ module Efl
920
948
  [ :evas_textblock_cursor_paragraph_next, [ :evas_textblock_cursor_p ], :eina_bool ],
921
949
  # EAPI Eina_Bool evas_textblock_cursor_paragraph_prev(Evas_Textblock_Cursor *cur);
922
950
  [ :evas_textblock_cursor_paragraph_prev, [ :evas_textblock_cursor_p ], :eina_bool ],
951
+ # EAPI const Eina_List *evas_textblock_node_format_list_get(const Evas_Object *obj, const char *anchor);
952
+ [ :evas_textblock_node_format_list_get, [ :evas_object_p, :string ], :eina_list_p ],
923
953
  # EAPI const Evas_Object_Textblock_Node_Format *evas_textblock_node_format_first_get(const Evas_Object *obj);
924
954
  [ :evas_textblock_node_format_first_get, [ :evas_object_p ], :evas_object_textblock_node_format_p ],
925
955
  # EAPI const Evas_Object_Textblock_Node_Format *evas_textblock_node_format_last_get(const Evas_Object *obj);
@@ -930,11 +960,9 @@ module Efl
930
960
  [ :evas_textblock_node_format_prev_get, [ :evas_object_textblock_node_format_p ], :evas_object_textblock_node_format_p ],
931
961
  # EAPI void evas_textblock_node_format_remove_pair(Evas_Object *obj, Evas_Object_Textblock_Node_Format *n);
932
962
  [ :evas_textblock_node_format_remove_pair, [ :evas_object_p, :evas_object_textblock_node_format_p ], :void ],
933
- # EAPI void evas_textblock_cursor_set_at_format(Evas_Textblock_Cursor *cur, const Evas_Object_Textblock_Node_Format *n);
934
- [ :evas_textblock_cursor_set_at_format, [ :evas_textblock_cursor_p, :evas_object_textblock_node_format_p ], :void ],
935
963
  # EAPI const Evas_Object_Textblock_Node_Format *evas_textblock_cursor_format_get(const Evas_Textblock_Cursor *cur);
936
964
  [ :evas_textblock_cursor_format_get, [ :evas_textblock_cursor_p ], :evas_object_textblock_node_format_p ],
937
- # EAPI const char *evas_textblock_node_format_text_get(const Evas_Object_Textblock_Node_Format *cur);
965
+ # EAPI const char *evas_textblock_node_format_text_get(const Evas_Object_Textblock_Node_Format *fnode);
938
966
  [ :evas_textblock_node_format_text_get, [ :evas_object_textblock_node_format_p ], :string ],
939
967
  # EAPI void evas_textblock_cursor_at_format_set(Evas_Textblock_Cursor *cur, const Evas_Object_Textblock_Node_Format *fmt);
940
968
  [ :evas_textblock_cursor_at_format_set, [ :evas_textblock_cursor_p, :evas_object_textblock_node_format_p ], :void ],
@@ -984,6 +1012,8 @@ module Efl
984
1012
  [ :evas_textblock_cursor_paragraph_text_get, [ :evas_textblock_cursor_p ], :string ],
985
1013
  # EAPI int evas_textblock_cursor_paragraph_text_length_get(const Evas_Textblock_Cursor *cur);
986
1014
  [ :evas_textblock_cursor_paragraph_text_length_get, [ :evas_textblock_cursor_p ], :int ],
1015
+ # EAPI Eina_List * evas_textblock_cursor_range_formats_get(const Evas_Textblock_Cursor *cur1, const Evas_Textblock_Cursor *cur2);
1016
+ [ :evas_textblock_cursor_range_formats_get, [ :evas_textblock_cursor_p, :evas_textblock_cursor_p ], :eina_list_p ],
987
1017
  # EAPI char *evas_textblock_cursor_range_text_get(const Evas_Textblock_Cursor *cur1, const Evas_Textblock_Cursor *cur2, Evas_Textblock_Text_Type format);
988
1018
  [ :evas_textblock_cursor_range_text_get, [ :evas_textblock_cursor_p, :evas_textblock_cursor_p, :evas_textblock_text_type ], :string ],
989
1019
  # EAPI char *evas_textblock_cursor_content_get(const Evas_Textblock_Cursor *cur);
@@ -1042,20 +1072,22 @@ module Efl
1042
1072
  [ :evas_smart_callback_description_find, [ :evas_smart_p, :string ], :evas_smart_cb_description_p ],
1043
1073
  # EAPI Eina_Bool evas_smart_class_inherit_full (Evas_Smart_Class *sc, const Evas_Smart_Class *parent_sc, unsigned int parent_sc_size);
1044
1074
  [ :evas_smart_class_inherit_full, [ :evas_smart_class_p, :evas_smart_class_p, :uint ], :eina_bool ],
1075
+ # EAPI int evas_smart_usage_get(const Evas_Smart *s);
1076
+ [ :evas_smart_usage_get, [ :evas_smart_p ], :int ],
1045
1077
  # EAPI Evas_Object *evas_object_smart_add (Evas *e, Evas_Smart *s);
1046
1078
  [ :evas_object_smart_add, [ :evas_p, :evas_smart_p ], :evas_object_p ],
1047
1079
  # EAPI void evas_object_smart_member_add (Evas_Object *obj, Evas_Object *smart_obj);
1048
1080
  [ :evas_object_smart_member_add, [ :evas_object_p, :evas_object_p ], :void ],
1049
1081
  # EAPI void evas_object_smart_member_del (Evas_Object *obj);
1050
1082
  [ :evas_object_smart_member_del, [ :evas_object_p ], :void ],
1083
+ # EAPI Eina_List *evas_object_smart_members_get (const Evas_Object *obj);
1084
+ [ :evas_object_smart_members_get, [ :evas_object_p ], :eina_list_p ],
1051
1085
  # EAPI Evas_Object *evas_object_smart_parent_get (const Evas_Object *obj);
1052
1086
  [ :evas_object_smart_parent_get, [ :evas_object_p ], :evas_object_p ],
1053
1087
  # EAPI Eina_Bool evas_object_smart_type_check (const Evas_Object *obj, const char *type);
1054
1088
  [ :evas_object_smart_type_check, [ :evas_object_p, :string ], :eina_bool ],
1055
1089
  # EAPI Eina_Bool evas_object_smart_type_check_ptr (const Evas_Object *obj, const char *type);
1056
1090
  [ :evas_object_smart_type_check_ptr, [ :evas_object_p, :string ], :eina_bool ],
1057
- # EAPI Eina_List *evas_object_smart_members_get (const Evas_Object *obj);
1058
- [ :evas_object_smart_members_get, [ :evas_object_p ], :eina_list_p ],
1059
1091
  # EAPI Evas_Smart *evas_object_smart_smart_get (const Evas_Object *obj);
1060
1092
  [ :evas_object_smart_smart_get, [ :evas_object_p ], :evas_smart_p ],
1061
1093
  # EAPI void *evas_object_smart_data_get (const Evas_Object *obj);
@@ -1064,6 +1096,8 @@ module Efl
1064
1096
  [ :evas_object_smart_data_set, [ :evas_object_p, :void_p ], :void ],
1065
1097
  # EAPI void evas_object_smart_callback_add (Evas_Object *obj, const char *event, Evas_Smart_Cb func, const void *data);
1066
1098
  [ :evas_object_smart_callback_add, [ :evas_object_p, :string, :evas_smart_cb, :void_p ], :void ],
1099
+ # EAPI void evas_object_smart_callback_priority_add(Evas_Object *obj, const char *event, Evas_Callback_Priority priority, Evas_Smart_Cb func, const void *data);
1100
+ [ :evas_object_smart_callback_priority_add, [ :evas_object_p, :string, :short, :evas_smart_cb, :void_p ], :void ],
1067
1101
  # EAPI void *evas_object_smart_callback_del (Evas_Object *obj, const char *event, Evas_Smart_Cb func);
1068
1102
  [ :evas_object_smart_callback_del, [ :evas_object_p, :string, :evas_smart_cb ], :void_p ],
1069
1103
  # EAPI void evas_object_smart_callback_call (Evas_Object *obj, const char *event, void *event_info);
@@ -1084,14 +1118,14 @@ module Efl
1084
1118
  [ :evas_object_smart_calculate, [ :evas_object_p ], :void ],
1085
1119
  # EAPI void evas_smart_objects_calculate (Evas *e);
1086
1120
  [ :evas_smart_objects_calculate, [ :evas_p ], :void ],
1121
+ # EAPI void evas_object_smart_move_children_relative(Evas_Object *obj, Evas_Coord dx, Evas_Coord dy);
1122
+ [ :evas_object_smart_move_children_relative, [ :evas_object_p, :int, :int ], :void ],
1087
1123
  # EAPI Evas_Object *evas_object_smart_clipped_clipper_get (Evas_Object *obj);
1088
1124
  [ :evas_object_smart_clipped_clipper_get, [ :evas_object_p ], :evas_object_p ],
1089
1125
  # EAPI void evas_object_smart_clipped_smart_set (Evas_Smart_Class *sc);
1090
1126
  [ :evas_object_smart_clipped_smart_set, [ :evas_smart_class_p ], :void ],
1091
1127
  # EAPI const Evas_Smart_Class *evas_object_smart_clipped_class_get (void);
1092
1128
  [ :evas_object_smart_clipped_class_get, [ ], :evas_smart_class_p ],
1093
- # EAPI void evas_object_smart_move_children_relative(Evas_Object *obj, Evas_Coord dx, Evas_Coord dy);
1094
- [ :evas_object_smart_move_children_relative, [ :evas_object_p, :int, :int ], :void ],
1095
1129
  # EAPI void evas_object_box_smart_set (Evas_Object_Box_Api *api);
1096
1130
  [ :evas_object_box_smart_set, [ :evas_object_box_api_p ], :void ],
1097
1131
  # EAPI const Evas_Object_Box_Api *evas_object_box_smart_class_get (void);
@@ -1182,6 +1216,8 @@ module Efl
1182
1216
  [ :evas_object_table_mirrored_set, [ :evas_object_p, :eina_bool ], :void ],
1183
1217
  # EAPI Eina_Bool evas_object_table_mirrored_get (const Evas_Object *o);
1184
1218
  [ :evas_object_table_mirrored_get, [ :evas_object_p ], :eina_bool ],
1219
+ # EAPI Eina_Bool evas_object_table_pack_get(Evas_Object *o, Evas_Object *child, unsigned short *col, unsigned short *row, unsigned short *colspan, unsigned short *rowspan);
1220
+ [ :evas_object_table_pack_get, [ :evas_object_p, :evas_object_p, :ushort_p, :ushort_p, :ushort_p, :ushort_p ], :eina_bool ],
1185
1221
  # EAPI Eina_Bool evas_object_table_pack (Evas_Object *o, Evas_Object *child, unsigned short col, unsigned short row, unsigned short colspan, unsigned short rowspan);
1186
1222
  [ :evas_object_table_pack, [ :evas_object_p, :evas_object_p, :ushort, :ushort, :ushort, :ushort ], :eina_bool ],
1187
1223
  # EAPI Eina_Bool evas_object_table_unpack (Evas_Object *o, Evas_Object *child);
@@ -1198,30 +1234,32 @@ module Efl
1198
1234
  [ :evas_object_table_children_get, [ :evas_object_p ], :eina_list_p ],
1199
1235
  # EAPI Evas_Object *evas_object_table_child_get (const Evas_Object *o, unsigned short col, unsigned short row);
1200
1236
  [ :evas_object_table_child_get, [ :evas_object_p, :ushort, :ushort ], :evas_object_p ],
1201
- # EAPI Eina_Bool evas_object_filter_mode_set (Evas_Object *o, Evas_Filter_Mode mode);
1202
- [ :evas_object_filter_mode_set, [ :evas_object_p, :evas_filter_mode ], :eina_bool ],
1203
- # EAPI Evas_Filter_Mode evas_object_filter_mode_get (Evas_Object *o);
1204
- [ :evas_object_filter_mode_get, [ :evas_object_p ], :evas_filter_mode ],
1205
- # EAPI Eina_Bool evas_object_filter_set (Evas_Object *o, Evas_Filter filter);
1206
- [ :evas_object_filter_set, [ :evas_object_p, :evas_filter ], :eina_bool ],
1207
- # EAPI Evas_Filter evas_object_filter_get (Evas_Object *o);
1208
- [ :evas_object_filter_get, [ :evas_object_p ], :evas_filter ],
1209
- # EAPI Eina_Bool evas_object_filter_param_int_set (Evas_Object *o, const char *param, int val);
1210
- [ :evas_object_filter_param_int_set, [ :evas_object_p, :string, :int ], :eina_bool ],
1211
- # EAPI int evas_object_filter_param_int_get (Evas_Object *o, const char *param);
1212
- [ :evas_object_filter_param_int_get, [ :evas_object_p, :string ], :int ],
1213
- # EAPI Eina_Bool evas_object_filter_param_str_set (Evas_Object *o, const char *param, const char *val);
1214
- [ :evas_object_filter_param_str_set, [ :evas_object_p, :string, :string ], :eina_bool ],
1215
- # EAPI const char *evas_object_filter_param_str_get (Evas_Object *o, const char *param);
1216
- [ :evas_object_filter_param_str_get, [ :evas_object_p, :string ], :string ],
1217
- # EAPI Eina_Bool evas_object_filter_param_obj_set (Evas_Object *o, const char *param, Evas_Object *val);
1218
- [ :evas_object_filter_param_obj_set, [ :evas_object_p, :string, :evas_object_p ], :eina_bool ],
1219
- # EAPI Evas_Object *evas_object_filter_param_obj_get (Evas_Object *o, const char *param);
1220
- [ :evas_object_filter_param_obj_get, [ :evas_object_p, :string ], :evas_object_p ],
1221
- # EAPI Eina_Bool evas_object_filter_param_float_set(Evas_Object *o, const char *param, double val);
1222
- [ :evas_object_filter_param_float_set, [ :evas_object_p, :string, :double ], :eina_bool ],
1223
- # EAPI double evas_object_filter_param_float_get(Evas_Object *o, const char *param);
1224
- [ :evas_object_filter_param_float_get, [ :evas_object_p, :string ], :double ],
1237
+ # EAPI Evas_Object *evas_object_grid_add (Evas *evas);
1238
+ [ :evas_object_grid_add, [ :evas_p ], :evas_object_p ],
1239
+ # EAPI Evas_Object *evas_object_grid_add_to (Evas_Object *parent);
1240
+ [ :evas_object_grid_add_to, [ :evas_object_p ], :evas_object_p ],
1241
+ # EAPI void evas_object_grid_size_set (Evas_Object *o, int w, int h);
1242
+ [ :evas_object_grid_size_set, [ :evas_object_p, :int, :int ], :void ],
1243
+ # EAPI void evas_object_grid_size_get (const Evas_Object *o, int *w, int *h);
1244
+ [ :evas_object_grid_size_get, [ :evas_object_p, :int_p, :int_p ], :void ],
1245
+ # EAPI void evas_object_grid_mirrored_set (Evas_Object *o, Eina_Bool mirrored);
1246
+ [ :evas_object_grid_mirrored_set, [ :evas_object_p, :eina_bool ], :void ],
1247
+ # EAPI Eina_Bool evas_object_grid_mirrored_get (const Evas_Object *o);
1248
+ [ :evas_object_grid_mirrored_get, [ :evas_object_p ], :eina_bool ],
1249
+ # EAPI Eina_Bool evas_object_grid_pack (Evas_Object *o, Evas_Object *child, int x, int y, int w, int h);
1250
+ [ :evas_object_grid_pack, [ :evas_object_p, :evas_object_p, :int, :int, :int, :int ], :eina_bool ],
1251
+ # EAPI Eina_Bool evas_object_grid_unpack (Evas_Object *o, Evas_Object *child);
1252
+ [ :evas_object_grid_unpack, [ :evas_object_p, :evas_object_p ], :eina_bool ],
1253
+ # EAPI void evas_object_grid_clear (Evas_Object *o, Eina_Bool clear);
1254
+ [ :evas_object_grid_clear, [ :evas_object_p, :eina_bool ], :void ],
1255
+ # EAPI Eina_Bool evas_object_grid_pack_get (Evas_Object *o, Evas_Object *child, int *x, int *y, int *w, int *h);
1256
+ [ :evas_object_grid_pack_get, [ :evas_object_p, :evas_object_p, :int_p, :int_p, :int_p, :int_p ], :eina_bool ],
1257
+ # EAPI Eina_Iterator *evas_object_grid_iterator_new (const Evas_Object *o);
1258
+ [ :evas_object_grid_iterator_new, [ :evas_object_p ], :eina_iterator_p ],
1259
+ # EAPI Eina_Accessor *evas_object_grid_accessor_new (const Evas_Object *o);
1260
+ [ :evas_object_grid_accessor_new, [ :evas_object_p ], :eina_accessor_p ],
1261
+ # EAPI Eina_List *evas_object_grid_children_get (const Evas_Object *o);
1262
+ [ :evas_object_grid_children_get, [ :evas_object_p ], :eina_list_p ],
1225
1263
  # EAPI Eina_Bool evas_cserve_want_get (void);
1226
1264
  [ :evas_cserve_want_get, [ ], :eina_bool ],
1227
1265
  # EAPI Eina_Bool evas_cserve_connected_get (void);
data/lib/efl.rb CHANGED
@@ -4,7 +4,7 @@
4
4
  #
5
5
  module Efl
6
6
  #
7
- VERSION = '0.0.6'
7
+ VERSION = '0.0.7'
8
8
  #
9
9
  autoload :EcoreEvas, './lib/efl/ecore_evas.rb'
10
10
  autoload :EcoreGetopt, './lib/efl/ecore_getopt.rb'
@@ -48,9 +48,9 @@ describe Efl::EcoreEvas do
48
48
  end
49
49
  #
50
50
  describe Efl::EcoreEvas::REcoreEvas do
51
- before(:all) {
51
+ before(:all) do
52
52
  EcoreEvas.init.should == 2
53
- }
53
+ end
54
54
  before(:each) do
55
55
  @e = EcoreEvas::REcoreEvas.new :engine_name=>"software_x11", :x=>10, :y=>10, :w=>100, :h=>120
56
56
  @canvas = @e.evas