summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/efl_ui_zoomable.eo
diff options
context:
space:
mode:
authorAmitesh Singh <amitesh.sh@samsung.com>2017-05-18 11:28:47 +0900
committerAmitesh Singh <amitesh.sh@samsung.com>2017-05-18 12:56:14 +0900
commitc124534a5e59bb2a90a7ee39215c6dd9e0dd76f0 (patch)
tree8a5a6ea846d59c6458482a7d4b85e8e1c2afd04d /src/lib/evas/canvas/efl_ui_zoomable.eo
parent12260dabb9db574be460e12e8e9c343de576f413 (diff)
photocam: move zoom related APIs to Efl.Ui.Zoomable
Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
Diffstat (limited to '')
-rw-r--r--src/lib/evas/canvas/efl_ui_zoomable.eo89
1 files changed, 89 insertions, 0 deletions
diff --git a/src/lib/evas/canvas/efl_ui_zoomable.eo b/src/lib/evas/canvas/efl_ui_zoomable.eo
index ae315c6639..474340de26 100644
--- a/src/lib/evas/canvas/efl_ui_zoomable.eo
+++ b/src/lib/evas/canvas/efl_ui_zoomable.eo
@@ -1,7 +1,96 @@
1enum Efl.Ui.Zoom_Mode
2{
3 [[Types of zoom available.]]
4 manual = 0, [[Zoom controlled normally by efl_ui_zoom_set]]
5 auto_fit, [[Zoom until photo fits in zoomable object]]
6 auto_fill, [[Zoom until photo fills zoomable object]]
7 auto_fit_in, [[Zoom in until photo fits in zoomable object]]
8 last [[Sentinel value to indicate last enum field during iteration]]
9}
10
1interface Efl.Ui.Zoomable () 11interface Efl.Ui.Zoomable ()
2{ 12{
3 [[Efl UI zoomable interface]] 13 [[Efl UI zoomable interface]]
4 event_prefix: efl_ui; 14 event_prefix: efl_ui;
15 eo_prefix: efl_ui;
16
17 methods {
18 @property zoom_animation {
19 set {
20 [[Enable zoom animation
21
22 This sets the zoom animation state to on or off for zoomable. The
23 default is off. This will stop zooming using animation on
24 zoom level changes and change instantly. This will stop any
25 existing animations that are running.
26 ]]
27 }
28 get {
29 [[Disable zoom animation
30
31 This gets the current zoom animation state for the zoomable object.
32 ]]
33 }
34 values {
35 paused: bool; [[The pause state.]]
36 }
37 }
38 @property zoom {
39 set {
40 [[Set the zoom level of the photo
41
42 This sets the zoom level. If $zoom is 1, it means no zoom. If
43 it's smaller than 1, it means zoom in. If it's bigger than 1,
44 it means zoom out. For example, $zoom 1 will be 1:1 pixel for
45 pixel. $zoom 2 will be 2:1 (that is 2x2 photo pixels will
46 display as 1 on-screen pixel) which is a zoom out. 4:1 will
47 be 4x4 photo pixels as 1 screen pixel, and so on. The $zoom
48 parameter must be greater than 0. It is suggested to stick
49 to powers of 2. (1, 2, 4, 8, 16, 32, etc.).
50 ]]
51 }
52 get {
53 [[Get the zoom level of the photo
54
55 This returns the current zoom level of the zoomable object.
56 Note that if you set the fill mode to other than
57 #EFL_UI_ZOOM_MODE_MANUAL (which is the default), the
58 zoom level may be changed at any time by the zoomable object
59 itself to account for photo size and zoomable viewport size.
60 ]]
61 }
62 values {
63 zoom: double; [[The zoom level to set]]
64 }
65 }
66 @property zoom_mode {
67 set {
68 [[Set the zoom mode
69
70 This sets the zoom mode to manual or one of several automatic
71 levels. Manual (EFL_UI_ZOOM_MODE_MANUAL) means that zoom
72 is set manually by @.zoom.set and will stay at that level until
73 changed by code or until zoom mode is changed. This is the
74 default mode. The Automatic modes will allow the zoomable object
75 to automatically adjust zoom mode based on properties.
76
77 #EFL_UI_ZOOM_MODE_AUTO_FIT) will adjust zoom so the photo
78 fits EXACTLY inside the scroll frame with no pixels outside this
79 region. #EFL_UI_ZOOM_MODE_AUTO_FILL will be similar but
80 ensure no pixels within the frame are left unfilled.
81 ]]
82 }
83 get {
84 [[Get the zoom mode
85
86 This gets the current zoom mode of the zoomable object.
87 ]]
88 }
89 values {
90 mode: Efl.Ui.Zoom_Mode; [[The zoom mode.]]
91 }
92 }
93 }
5 events { 94 events {
6 zoom,start; [[Called when zooming started]] 95 zoom,start; [[Called when zooming started]]
7 zoom,stop; [[Called when zooming stopped]] 96 zoom,stop; [[Called when zooming stopped]]