From d50fdce4d3fc40d7af3072f6917593efd3a2ad30 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 22 Aug 2019 08:26:06 -0400 Subject: [PATCH] efl/gfx.image: add can_upscale and can_downscale properties these are more granular properties which allow blocking of image upscaling and/or downscaling regardless of scale hint ref T7875 Reviewed-by: Marcel Hollerbach Differential Revision: https://phab.enlightenment.org/D9703 --- src/lib/efl/interfaces/efl_gfx_image.eo | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/lib/efl/interfaces/efl_gfx_image.eo b/src/lib/efl/interfaces/efl_gfx_image.eo index 10073266ec..5b8ea58de9 100644 --- a/src/lib/efl/interfaces/efl_gfx_image.eo +++ b/src/lib/efl/interfaces/efl_gfx_image.eo @@ -88,6 +88,24 @@ interface @beta Efl.Gfx.Image scale_type: Efl.Gfx.Image_Scale_Type; [[Image scale type]] } } + @property can_upscale { + [[If $true, the image may be scaled to a larger size. If $false, + the image will never be resized larger than its native size. + This is set to $true by default. + ]] + values { + upscale: bool; [[Allow image upscaling]] + } + } + @property can_downscale { + [[If $true, the image may be scaled to a smaller size. If $false, + the image will never be resized smaller than its native size. + This is set to $true by default. + ]] + values { + downscale: bool; [[Allow image downscaling]] + } + } @property ratio { [[The native width/height ratio of the image.]] get {