2019-01-30 06:05:05 -08:00
|
|
|
import eina_types;
|
|
|
|
|
2019-02-27 10:17:35 -08:00
|
|
|
|
|
|
|
struct Efl.File_Save_Info
|
|
|
|
{
|
2019-03-22 08:25:22 -07:00
|
|
|
[[Info used to determine various attributes when saving a file.
|
|
|
|
|
|
|
|
@since 1.22
|
|
|
|
]]
|
2019-02-27 10:17:35 -08:00
|
|
|
quality: uint; [[The quality level (0-100) to save the file with; commonly used when saving image files.]]
|
|
|
|
compression: uint; [[The compression level (0-100) to save the file with.]]
|
|
|
|
encoding: string; [[The encoding to use when saving the file.]]
|
|
|
|
}
|
|
|
|
|
efl: apply the stabilzed column of the efl api board
Summary:
The project https://phab.enlightenment.org/tag/efl_api/ has been used in
the last few weeks to figure out which classes can be stablized and
which cannot. This commit moves those dedicated classes outside beta.
And makes them stable.
ref T7601
ref T7600
ref T7599
ref T7598
ref T7597
ref T7596
ref T7594
ref T7593
ref T7591
ref T7590
ref T7589
ref T7588
ref T7583
ref T7582
ref T7581
ref T7576
ref T7570
ref T7567
ref T7564
ref T7563
ref T7560
ref T7559
ref T7672
ref T7584
ref T7577
ref T7571
ref T7558
ref T7555
ref T7554
ref T7553
ref T7512
ref T7511
Depends on D8272
Reviewers: cedric, stefan_schmidt, zmike, segfaultxavi
Reviewed By: segfaultxavi
Subscribers: #reviewers, #committers
Tags: #efl
Maniphest Tasks: T7672, T7601, T7600, T7599, T7598, T7597, T7596, T7594, T7593, T7591, T7590, T7589, T7588, T7584, T7583, T7582, T7581, T7577, T7576, T7571, T7570, T7567, T7564, T7563, T7560, T7559, T7558, T7555, T7554, T7553, T7512, T7511
Differential Revision: https://phab.enlightenment.org/D8273
2019-03-09 04:44:17 -08:00
|
|
|
interface Efl.File_Save {
|
2019-03-22 08:25:22 -07:00
|
|
|
[[Efl file saving interface
|
|
|
|
|
|
|
|
@since 1.22
|
|
|
|
]]
|
2019-01-30 06:05:05 -08:00
|
|
|
methods {
|
|
|
|
save @const {
|
|
|
|
[[Save the given image object's contents to an (image) file.
|
|
|
|
|
|
|
|
The extension suffix on $file will determine which saver
|
|
|
|
module Evas is to use when saving, thus the final file's
|
|
|
|
format. If the file supports multiple data stored in it (Eet ones),
|
|
|
|
you can specify the key to be used as the index of the image in it.
|
|
|
|
|
|
|
|
You can specify some flags when saving the image. Currently
|
|
|
|
acceptable flags are $quality and $compress. Eg.:
|
|
|
|
"quality=100 compress=9".
|
|
|
|
]]
|
|
|
|
params {
|
2019-05-26 08:25:15 -07:00
|
|
|
@in file: string; [[The filename to be used to save the image (extension
|
|
|
|
obligatory).]]
|
2019-01-30 06:05:05 -08:00
|
|
|
@in key: string; [[The image key in the file (if an Eet one), or $null,
|
2019-05-26 08:25:15 -07:00
|
|
|
otherwise.]]
|
2019-09-10 05:29:06 -07:00
|
|
|
@in info: const(Efl.File_Save_Info) @by_ref; [[The flags to be used ($null for defaults).]]
|
2019-01-30 06:05:05 -08:00
|
|
|
}
|
|
|
|
return: bool; [[$true on success, $false otherwise]]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|