summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/efl_canvas_image_internal.eo
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2019-05-08 17:54:55 -0700
committerCedric BAIL <cedric.bail@free.fr>2019-07-12 09:54:03 -0700
commit9fbc5dfc66af70f42c31e6c68a7a15b70f0fbbce (patch)
treed72a969403e34aecf6ba7b60a8524bd140ad70d6 /src/lib/evas/canvas/efl_canvas_image_internal.eo
parentd3efb9c769c24bc999858655eb3aa80de0a24c1f (diff)
evas: add support for stretchable region.
This is the first step into introducing support for Android 9 patch format (extension: .9.png). The principle is to expose a new property on image object that define a complete behavior incompatible with other border and fill logic. The reason is that 9 patch allow for any number of stretchable area inside an image, not just for each corner. The way to define this is by giving a pointer to an array of the proper type that define stretchable region relative to each other. The logic being slightly more complex than the border and fill logic, it is slightly slower. If you are just defining corner on your image for something like a button, you would still get better performance using border. I will try to make edje_cc detect those case and fallback to border when possible. Reviewed-by: Hermet Park <hermetpark@gmail.com> Differential Revision: https://phab.enlightenment.org/D9096
Diffstat (limited to 'src/lib/evas/canvas/efl_canvas_image_internal.eo')
-rw-r--r--src/lib/evas/canvas/efl_canvas_image_internal.eo1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/evas/canvas/efl_canvas_image_internal.eo b/src/lib/evas/canvas/efl_canvas_image_internal.eo
index ae21062..98cf494 100644
--- a/src/lib/evas/canvas/efl_canvas_image_internal.eo
+++ b/src/lib/evas/canvas/efl_canvas_image_internal.eo
@@ -18,6 +18,7 @@ abstract @beta Efl.Canvas.Image_Internal extends Efl.Canvas.Object implements Ef
18 Efl.Gfx.Image.border { get; set; } 18 Efl.Gfx.Image.border { get; set; }
19 Efl.Gfx.Image.border_scale { get; set; } 19 Efl.Gfx.Image.border_scale { get; set; }
20 Efl.Gfx.Image.border_center_fill { get; set; } 20 Efl.Gfx.Image.border_center_fill { get; set; }
21 Efl.Gfx.Image.stretch_region { get; set; }
21 Efl.Gfx.Image.scale_hint { get; set; } 22 Efl.Gfx.Image.scale_hint { get; set; }
22 Efl.Gfx.Image.content_hint { get; set; } 23 Efl.Gfx.Image.content_hint { get; set; }
23 Efl.Gfx.Image.image_size { get; } 24 Efl.Gfx.Image.image_size { get; }