forked from enlightenment/efl
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:
parent
ad0c805545
commit
d50fdce4d3
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue