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 <mail@marcel-hollerbach.de>
Differential Revision: https://phab.enlightenment.org/D9703
This commit is contained in:
Mike Blumenkrantz 2019-08-22 08:26:06 -04:00 committed by Marcel Hollerbach
parent ad0c805545
commit d50fdce4d3
1 changed files with 18 additions and 0 deletions

View File

@ -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 {