1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
#! /usr/bin/env ruby
# -*- coding: UTF-8 -*-
#
require 'efl/native'
require 'efl/native/elementary'
#
module Efl
#
module ElmFlip
#
FCT_PREFIX = 'elm_flip_' 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'
#
# ENUMS
# typedef enum {...} Elm_Flip_Mode;
enum :elm_flip_mode, [ :elm_flip_rotate_y_center_axis, :elm_flip_rotate_x_center_axis, :elm_flip_rotate_xz_center_axis,
:elm_flip_rotate_yz_center_axis, :elm_flip_cube_left, :elm_flip_cube_right, :elm_flip_cube_up, :elm_flip_cube_down, :elm_flip_page_left,
:elm_flip_page_right, :elm_flip_page_up, :elm_flip_page_down ]
# typedef enum {...} Elm_Flip_Interaction;
enum :elm_flip_interaction, [ :elm_flip_interaction_none, :elm_flip_interaction_rotate, :elm_flip_interaction_cube, :elm_flip_interaction_page
]
# typedef enum {...} Elm_Flip_Direction;
enum :elm_flip_direction, [ :elm_flip_direction_up, :elm_flip_direction_down, :elm_flip_direction_left, :elm_flip_direction_right ]
#
# FUNCTIONS
fcts = [
# EAPI Evas_Object *elm_flip_add(Evas_Object *parent);
[ :elm_flip_add, [ :evas_object ], :evas_object ],
# EAPI void elm_flip_perspective_set(Evas_Object *obj, Evas_Coord foc, Evas_Coord x, Evas_Coord y);
[ :elm_flip_perspective_set, [ :evas_object, :int, :int, :int ], :void ],
# EAPI void elm_flip_go(Evas_Object *obj, Elm_Flip_Mode mode);
[ :elm_flip_go, [ :evas_object, :elm_flip_mode ], :void ],
# EAPI void elm_flip_go_to(Evas_Object *obj, Eina_Bool front, Elm_Flip_Mode mode);
[ :elm_flip_go_to, [ :evas_object, :bool, :elm_flip_mode ], :void ],
# EAPI void elm_flip_interaction_set(Evas_Object *obj, Elm_Flip_Interaction mode);
[ :elm_flip_interaction_set, [ :evas_object, :elm_flip_interaction ], :void ],
# EAPI Elm_Flip_Interaction elm_flip_interaction_get(const Evas_Object *obj);
[ :elm_flip_interaction_get, [ :evas_object ], :elm_flip_interaction ],
# EAPI void elm_flip_interaction_direction_enabled_set(Evas_Object *obj, Elm_Flip_Direction dir, Eina_Bool enabled);
[ :elm_flip_interaction_direction_enabled_set, [ :evas_object, :elm_flip_direction, :bool ], :void ],
# EAPI Eina_Bool elm_flip_interaction_direction_enabled_get(Evas_Object *obj, Elm_Flip_Direction dir);
[ :elm_flip_interaction_direction_enabled_get, [ :evas_object, :elm_flip_direction ], :bool ],
# EAPI void elm_flip_interaction_direction_hitsize_set(Evas_Object *obj, Elm_Flip_Direction dir, double hitsize);
[ :elm_flip_interaction_direction_hitsize_set, [ :evas_object, :elm_flip_direction, :double ], :void ],
# EAPI double elm_flip_interaction_direction_hitsize_get(Evas_Object *obj, Elm_Flip_Direction dir);
[ :elm_flip_interaction_direction_hitsize_get, [ :evas_object, :elm_flip_direction ], :double ],
]
#
attach_fcts fcts
#
end
end
#
# EOF
|