summaryrefslogtreecommitdiff
path: root/src/lib/efl
diff options
context:
space:
mode:
authorDaniel Zaoui <daniel.zaoui@yahoo.com>2017-08-02 21:32:30 +0300
committerDaniel Zaoui <daniel.zaoui@yahoo.com>2017-08-22 09:53:24 +0300
commit2f53bdfe60c9730ad8274616d556ac408aaf149f (patch)
tree2e62030a2e71c972d1585e663e27cb10b486cf0c /src/lib/efl
parentd1631d8a86a6c68f9bc5f0c12ac09c27defbe177 (diff)
Move efl interfaces from evas to efl directory
You may need to remove your installed directory to avoid conflicts
Diffstat (limited to 'src/lib/efl')
-rw-r--r--src/lib/efl/Efl.h5
-rw-r--r--src/lib/efl/interfaces/efl_interfaces_main.c6
-rw-r--r--src/lib/efl/interfaces/efl_ui_clickable.eo15
-rw-r--r--src/lib/efl/interfaces/efl_ui_draggable.eo36
-rw-r--r--src/lib/efl/interfaces/efl_ui_scrollable.eo12
-rw-r--r--src/lib/efl/interfaces/efl_ui_selectable.eo15
-rw-r--r--src/lib/efl/interfaces/efl_ui_zoom.eo100
7 files changed, 189 insertions, 0 deletions
diff --git a/src/lib/efl/Efl.h b/src/lib/efl/Efl.h
index 8477574f70..82a1e3d460 100644
--- a/src/lib/efl/Efl.h
+++ b/src/lib/efl/Efl.h
@@ -95,6 +95,11 @@ typedef Efl_Gfx_Path_Command_Type Efl_Gfx_Path_Command;
95#include "interfaces/efl_ui_item.eo.h" 95#include "interfaces/efl_ui_item.eo.h"
96#include "interfaces/efl_ui_menu.eo.h" 96#include "interfaces/efl_ui_menu.eo.h"
97#include "interfaces/efl_ui_autorepeat.eo.h" 97#include "interfaces/efl_ui_autorepeat.eo.h"
98#include "interfaces/efl_ui_draggable.eo.h"
99#include "interfaces/efl_ui_clickable.eo.h"
100#include "interfaces/efl_ui_scrollable.eo.h"
101#include "interfaces/efl_ui_selectable.eo.h"
102#include "interfaces/efl_ui_zoom.eo.h"
98 103
99#include "interfaces/efl_screen.eo.h" 104#include "interfaces/efl_screen.eo.h"
100 105
diff --git a/src/lib/efl/interfaces/efl_interfaces_main.c b/src/lib/efl/interfaces/efl_interfaces_main.c
index a4ca74e593..ded13b6ece 100644
--- a/src/lib/efl/interfaces/efl_interfaces_main.c
+++ b/src/lib/efl/interfaces/efl_interfaces_main.c
@@ -63,6 +63,12 @@
63#include "interfaces/efl_ui_factory.eo.c" 63#include "interfaces/efl_ui_factory.eo.c"
64#include "interfaces/efl_ui_model_factory_connect.eo.c" 64#include "interfaces/efl_ui_model_factory_connect.eo.c"
65 65
66#include "interfaces/efl_ui_draggable.eo.c"
67#include "interfaces/efl_ui_clickable.eo.c"
68#include "interfaces/efl_ui_scrollable.eo.c"
69#include "interfaces/efl_ui_selectable.eo.c"
70#include "interfaces/efl_ui_zoom.eo.c"
71
66EAPI void 72EAPI void
67__efl_internal_init(void) 73__efl_internal_init(void)
68{ 74{
diff --git a/src/lib/efl/interfaces/efl_ui_clickable.eo b/src/lib/efl/interfaces/efl_ui_clickable.eo
new file mode 100644
index 0000000000..5cfaa89a35
--- /dev/null
+++ b/src/lib/efl/interfaces/efl_ui_clickable.eo
@@ -0,0 +1,15 @@
1interface Efl.Ui.Clickable ()
2{
3 [[Efl UI clickable interface]]
4 event_prefix: efl_ui;
5 events {
6 clicked; [[Called when object was clicked]]
7 clicked,double; [[Called when object received a double click]]
8 clicked,triple; [[Called when object received a triple click]]
9 clicked,right; [[Called when object received a right click]]
10 pressed; [[Called when the object was pressed]]
11 unpressed; [[Called when the object is now longer pressed]]
12 longpressed; [[Called when the object received a longpress]]
13 repeated; [[Called when the object received repeated presses/clicks]]
14 }
15}
diff --git a/src/lib/efl/interfaces/efl_ui_draggable.eo b/src/lib/efl/interfaces/efl_ui_draggable.eo
new file mode 100644
index 0000000000..c3b8a68d3b
--- /dev/null
+++ b/src/lib/efl/interfaces/efl_ui_draggable.eo
@@ -0,0 +1,36 @@
1/* FIXME: Edje Drag and this Dnd Draggable have confusingly similar names! */
2interface Efl.Ui.Draggable ()
3{
4 [[Efl UI draggable interface]]
5 event_prefix: efl_ui;
6 methods {
7 @property drag_target {
8 [[Control whether the object's content is changed by drag and drop.
9
10 If $drag_target is true, the object can be target of dragging
11 object and the content of this object can be changed into
12 dragging content. For example, If object deals with image and
13 $drag_target is true, user can drag new image and drop it into
14 this object. And then this object's image can be changed into
15 new image.]]
16 set {
17 }
18 get {
19 }
20 values {
21 set: bool; [[Turn on or off drop_target. Default is $false.]]
22 }
23 }
24 }
25
26 events {
27 drag; [[Called when drag operation starts]]
28 drag,start; [[Called when drag started]]
29 drag,stop; [[Called when drag stopped]]
30 drag,end; [[Called when drag operation ends]]
31 drag,start,up; [[Called when drag starts into up direction]]
32 drag,start,down; [[Called when drag starts into down direction]]
33 drag,start,right; [[Called when drag starts into right direction]]
34 drag,start,left; [[Called when drag starts into left direction]]
35 }
36}
diff --git a/src/lib/efl/interfaces/efl_ui_scrollable.eo b/src/lib/efl/interfaces/efl_ui_scrollable.eo
new file mode 100644
index 0000000000..366e2c02f9
--- /dev/null
+++ b/src/lib/efl/interfaces/efl_ui_scrollable.eo
@@ -0,0 +1,12 @@
1interface Efl.Ui.Scrollable ()
2{
3 [[Efl UI scrollable interface]]
4 event_prefix: efl_ui;
5 events {
6 scroll; [[Called when scroll operation started]]
7 scroll,anim,start; [[Called when scroll animation started]]
8 scroll,anim,stop; [[Called when scroll animation stopped]]
9 scroll,drag,start; [[Called when scroll drag started]]
10 scroll,drag,stop; [[Called when scroll drag stopped]]
11 }
12}
diff --git a/src/lib/efl/interfaces/efl_ui_selectable.eo b/src/lib/efl/interfaces/efl_ui_selectable.eo
new file mode 100644
index 0000000000..b24772ee02
--- /dev/null
+++ b/src/lib/efl/interfaces/efl_ui_selectable.eo
@@ -0,0 +1,15 @@
1interface Efl.Ui.Selectable ()
2{
3 [[Efl UI selectable interface]]
4 event_prefix: efl_ui;
5 events {
6 selected; [[Called when selected]]
7 unselected; [[Called when no longer selected]]
8 selection,paste; [[Called when selection got pasted]]
9 selection,copy; [[Called when selection was copied]]
10 selection,cut; [[Called when selection was cut]]
11 selection,start; [[Called at selection start]]
12 selection,changed; [[Called when selection changed]]
13 selection,cleared; [[Called when selection was cleared]]
14 }
15}
diff --git a/src/lib/efl/interfaces/efl_ui_zoom.eo b/src/lib/efl/interfaces/efl_ui_zoom.eo
new file mode 100644
index 0000000000..327c34d5e6
--- /dev/null
+++ b/src/lib/efl/interfaces/efl_ui_zoom.eo
@@ -0,0 +1,100 @@
1enum Efl.Ui.Zoom.Mode
2{
3 [[Types of zoom available.]]
4 legacy: efl_ui_zoom_mode;
5 manual = 0, [[Zoom controlled normally by efl_ui_zoom_set]]
6 auto_fit, [[Zoom until photo fits in zoomable object]]
7 auto_fill, [[Zoom until photo fills zoomable object]]
8 auto_fit_in, [[Zoom in until photo fits in zoomable object]]
9 last [[Sentinel value to indicate last enum field during iteration]]
10}
11
12interface Efl.Ui.Zoom ()
13{
14 [[Efl UI zoom interface]]
15 event_prefix: efl_ui;
16 eo_prefix: efl_ui;
17
18 methods {
19 @property zoom_animation {
20 set {
21 [[Enable zoom animation
22
23 This sets the zoom animation state to on or off for zoomable. The
24 default is off. This will stop zooming using animation on
25 zoom level changes and change instantly. This will stop any
26 existing animations that are running.
27 ]]
28 }
29 get {
30 [[Disable zoom animation
31
32 This gets the current zoom animation state for the zoomable object.
33 ]]
34 }
35 values {
36 paused: bool; [[The pause state.]]
37 }
38 }
39 @property zoom {
40 set {
41 [[Set the zoom level of the photo
42
43 This sets the zoom level. If $zoom is 1, it means no zoom. If
44 it's smaller than 1, it means zoom in. If it's bigger than 1,
45 it means zoom out. For example, $zoom 1 will be 1:1 pixel for
46 pixel. $zoom 2 will be 2:1 (that is 2x2 photo pixels will
47 display as 1 on-screen pixel) which is a zoom out. 4:1 will
48 be 4x4 photo pixels as 1 screen pixel, and so on. The $zoom
49 parameter must be greater than 0. It is suggested to stick
50 to powers of 2. (1, 2, 4, 8, 16, 32, etc.).
51 ]]
52 }
53 get {
54 [[Get the zoom level of the photo
55
56 This returns the current zoom level of the zoomable object.
57 Note that if you set the fill mode to other than
58 #EFL_UI_ZOOM_MODE_MANUAL (which is the default), the
59 zoom level may be changed at any time by the zoomable object
60 itself to account for photo size and zoomable viewport size.
61 ]]
62 }
63 values {
64 zoom: double; [[The zoom level to set]]
65 }
66 }
67 @property zoom_mode {
68 set {
69 [[Set the zoom mode
70
71 This sets the zoom mode to manual or one of several automatic
72 levels. Manual (EFL_UI_ZOOM_MODE_MANUAL) means that zoom
73 is set manually by @.zoom.set and will stay at that level until
74 changed by code or until zoom mode is changed. This is the
75 default mode. The Automatic modes will allow the zoomable object
76 to automatically adjust zoom mode based on properties.
77
78 #EFL_UI_ZOOM_MODE_AUTO_FIT) will adjust zoom so the photo
79 fits EXACTLY inside the scroll frame with no pixels outside this
80 region. #EFL_UI_ZOOM_MODE_AUTO_FILL will be similar but
81 ensure no pixels within the frame are left unfilled.
82 ]]
83 }
84 get {
85 [[Get the zoom mode
86
87 This gets the current zoom mode of the zoomable object.
88 ]]
89 }
90 values {
91 mode: Efl.Ui.Zoom.Mode; [[The zoom mode.]]
92 }
93 }
94 }
95 events {
96 zoom,start; [[Called when zooming started]]
97 zoom,stop; [[Called when zooming stopped]]
98 zoom,change; [[Called when zooming changed]]
99 }
100}