summaryrefslogtreecommitdiff
path: root/src/lib/efl/interfaces/efl_gfx_types.eot
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2016-06-08 14:56:51 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2016-06-08 15:14:11 +0900
commit7d5811a99a16338c998b469ec70e4b2584c05930 (patch)
tree1662338a2593cfacb94165844600b902d10dc76e /src/lib/efl/interfaces/efl_gfx_types.eot
parentc5663ddb84a96399067b94049b01614b4f769346 (diff)
Evas: Move aspect ratio to Efl.Gfx.Size.Hint
Problem: - edje aspect ratio is defined by 1 enum and 2 double (min, max) - window aspect ratio is defined by only 1 double - evas object aspect ratio is defined by 1 enum and 2 ints (w, h) Which one is the best interface? Are min/max a better option? Also, not sure how to call the enum...
Diffstat (limited to 'src/lib/efl/interfaces/efl_gfx_types.eot')
-rw-r--r--src/lib/efl/interfaces/efl_gfx_types.eot19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/lib/efl/interfaces/efl_gfx_types.eot b/src/lib/efl/interfaces/efl_gfx_types.eot
index 86b860b3cd..9821784c3d 100644
--- a/src/lib/efl/interfaces/efl_gfx_types.eot
+++ b/src/lib/efl/interfaces/efl_gfx_types.eot
@@ -174,3 +174,22 @@ struct Efl.Gfx.Event.Render_Post
174 updated_area: list <Eina.Rectangle>; [[A list of rectangles that were 174 updated_area: list <Eina.Rectangle>; [[A list of rectangles that were
175 updated in the canvas.]] 175 updated in the canvas.]]
176} 176}
177
178enum Efl.Gfx.Size.Hint.Aspect
179{
180 [[Aspect types/policies for scaling size hints.
181
182 See also $Efl.Gfx.Size.Hint.aspect.
183 ]]
184
185 none = 0, [[No preference on either direction of the container
186 for aspect ratio control.]]
187 neither = 1, [[Same effect as disabling aspect ratio preference]]
188 horizontal = 2, [[Use all horizontal container space to place an object,
189 using the given aspect.]]
190 vertical = 3, [[Use all vertical container space to place an object, using
191 the given aspect.]]
192 both = 4 [[Use all horizontal and vertical container spaces to place an
193 object (never growing it out of those bounds), using the given
194 aspect.]]
195}