summaryrefslogtreecommitdiff
path: root/src/lib/efl/interfaces/efl_image.eo
diff options
context:
space:
mode:
authorSungtaek Hong <sth253.hong@samsung.com>2017-12-18 13:55:25 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-12-18 20:49:45 +0900
commit25136ddf8ccbf384b21d89a7ce3939c1d4db00a6 (patch)
tree4d467b7a2abcfc727e5dbb288c77218178530e9f /src/lib/efl/interfaces/efl_image.eo
parent147ef4f91deb99d44c67cbb37fa737d42d8a1792 (diff)
efl_ui_bg: add Efl.Ui.Bg interface
Summary: - Previous class efl_ui_bg moved to efl_ui_bg_widget. - Scale_type moved to efl_image from efl_ui_image. - Previous enum Efl_Ui_Image_Scale_Type moved to Efl_Image_Scale_Type. Test Plan: Run elementary_test 1.Image Scale Type 2.Efl.Ui.Bg 3.Efl.Ui.Win 4.Part Background Reviewers: jpeg, woohyun, cedric Differential Revision: https://phab.enlightenment.org/D5616
Diffstat (limited to '')
-rw-r--r--src/lib/efl/interfaces/efl_image.eo28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/lib/efl/interfaces/efl_image.eo b/src/lib/efl/interfaces/efl_image.eo
index 9cf3391e4d..1e46b70769 100644
--- a/src/lib/efl/interfaces/efl_image.eo
+++ b/src/lib/efl/interfaces/efl_image.eo
@@ -18,6 +18,28 @@ enum Efl.Image.Scale_Hint
18 static = 2 [[Image will not be re-scaled over time, thus turning scaling cache ON for its data.]] 18 static = 2 [[Image will not be re-scaled over time, thus turning scaling cache ON for its data.]]
19} 19}
20 20
21enum Efl.Image.Scale_Type
22{
23 [[Enumeration that defines scale types of an image.]]
24 fill, [[Scale the image so that it matches
25 the object's area exactly.
26 The image's aspect ratio might be changed.]]
27 fit_inside, [[Scale the image
28 so that it fits inside the object's area
29 while maintaining the aspect ratio.
30 At least one of the dimensions of the image
31 should be equal to the corresponding dimension
32 of the object.]]
33 fit_outside, [[Scale the image
34 so that it covers the entire object area
35 while maintaining the aspect ratio.
36 At least one of the dimensions of the image
37 should be equal to the corresponding
38 dimension of the object.]]
39 tile, [[Tile image at its original size.]]
40 none [[Not scale the image]]
41}
42
21interface Efl.Image () 43interface Efl.Image ()
22{ 44{
23 [[Common APIs for all 2D images that can be rendered on the canvas.]] 45 [[Common APIs for all 2D images that can be rendered on the canvas.]]
@@ -39,6 +61,12 @@ interface Efl.Image ()
39 smooth_scale: bool; [[Whether to use smooth scale or not.]] 61 smooth_scale: bool; [[Whether to use smooth scale or not.]]
40 } 62 }
41 } 63 }
64 @property scale_type {
65 [[Control how the image is scaled.]]
66 values {
67 scale_type: Efl.Image.Scale_Type; [[Image scale type]]
68 }
69 }
42 @property ratio { 70 @property ratio {
43 [[The native width/height ratio of the image.]] 71 [[The native width/height ratio of the image.]]
44 get { 72 get {