efl_image: convert docs

This commit is contained in:
Daniel Kolesa 2015-06-16 15:41:48 +01:00
parent 0d0439ecc3
commit 9bbe8c7ff1
1 changed files with 22 additions and 32 deletions

View File

@ -3,63 +3,53 @@ interface Efl.Image {
methods {
@property animated {
get {
/*@
Check if an image can be animated (have multiple frames)
@return whether the image support animation
*/
[[Check if an image can be animated (have multiple frames)]]
}
values {
is_animated: bool; /*@ If it's animated or not. */
is_animated: bool; [[If it's animated or not.]]
}
}
@property load_size {
set {
/*@
Set the loading size of an image. The image will be loaded into memory as if it was
the set size instead of the original size. This can save a lot of memory, and is
important for scalable types like svg.
*/
[[Set the loading size of an image. The image will be loaded into
memory as if it was the set size instead of the original size.
This can save a lot of memory, and is important for scalable
types like svg.
]]
}
get {
}
values {
w: int; /*@ The new width of the image's load size. */
h: int; /*@ The new height of the image's load size. */
w: int; [[The new width of the image's load size.]]
h: int; [[The new height of the image's load size.]]
}
}
@property smooth_scale {
set {
/*@
Sets whether to use high-quality image scaling algorithm on the
given image.
[[Sets whether to use high-quality image scaling algorithm on the
given image.
When enabled, a higher quality image scaling algorithm is used when
scaling images to sizes other than the source image's original
one. This gives better results but is more computationally
expensive.
*/
When enabled, a higher quality image scaling algorithm is used
when scaling images to sizes other than the source image's
original one. This gives better results but is more
computationally expensive.
]]
}
get {
/*@
Retrieves whether the given image is using high-quality
image scaling algorithm.
@return Whether smooth scale is being used.
*/
[[Retrieves whether the given image is using high-quality
image scaling algorithm.
]]
}
values {
smooth_scale: bool; /*@ Whether to use smooth scale or not. */
smooth_scale: bool; [[Whether to use smooth scale or not.]]
}
}
@property ratio {
get {
/*@
The native ration of the image object
*/
[[The native ration of the image object]]
}
values {
ratio: double; /*@ The image's ratio */
ratio: double; [[The image's ratio]]
}
}
}