lib/efl/interfaces/efl_control.eo \
lib/efl/interfaces/efl_duplicate.eo \
lib/efl/interfaces/efl_file.eo \
+ lib/efl/interfaces/efl_file_save.eo \
lib/efl/interfaces/efl_gfx_image_load_controller.eo \
lib/efl/interfaces/efl_part.eo \
lib/efl/interfaces/efl_playable.eo \
#include "interfaces/efl_control.eo.h"
#include "interfaces/efl_duplicate.eo.h"
#include "interfaces/efl_file.eo.h"
+#include "interfaces/efl_file_save.eo.h"
#include "interfaces/efl_gfx_image.eo.h"
#include "interfaces/efl_gfx_frame_controller.eo.h"
#include "interfaces/efl_gfx_image_load_controller.eo.h"
}
#include "interfaces/efl_file.eo.c"
+#include "interfaces/efl_file_save.eo.c"
$null, otherwise.]]
}
}
- save @const @pure_virtual {
- [[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 {
- @in file: string @nonull; [[The filename to be used to save the image (extension
- obligatory).]]
- @in key: string; [[The image key in the file (if an Eet one), or $null,
- otherwise.]]
- @in flags: string; [[String containing the flags to be used ($null for
- none).]]
- }
- return: bool; [[$true on success, $false otherwise]]
- }
}
}
--- /dev/null
+import eina_types;
+
+interface Efl.File_Save {
+ [[Efl file saving interface]]
+ 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 {
+ @in file: string @nonull; [[The filename to be used to save the image (extension
+ obligatory).]]
+ @in key: string; [[The image key in the file (if an Eet one), or $null,
+ otherwise.]]
+ @in flags: string; [[String containing the flags to be used ($null for
+ none).]]
+ }
+ return: bool; [[$true on success, $false otherwise]]
+ }
+ }
+}
'efl_control.eo',
'efl_duplicate.eo',
'efl_file.eo',
+ 'efl_file_save.eo',
'efl_gfx_image_load_controller.eo',
'efl_part.eo',
'efl_player.eo',
abstract Efl.Canvas.Image_Internal extends Efl.Canvas.Object implements Efl.Canvas.Filter.Internal,
Efl.Gfx.Image, Efl.Gfx.Buffer,
Efl.Gfx.Fill, Efl.Gfx.View,
- Efl.Orientation, Efl.File
+ Efl.Orientation, Efl.File_Save
{
[[Efl canvas internal image class]]
data: Evas_Image_Data;
Efl.Object.destructor;
Efl.Object.finalize;
Efl.Object.debug_name_override;
- Efl.File.save;
+ Efl.File_Save.save;
Efl.Orientation.orientation { get; set; }
Efl.Orientation.flip { get; set; }
Efl.Gfx.Image.smooth_scale { get; set; }
}
EOLIAN static Eina_Bool
-_efl_canvas_vg_object_efl_file_save(const Eo *obj, Efl_Canvas_Vg_Object_Data *pd, const char *file, const char *key, const char *flags)
+_efl_canvas_vg_object_efl_file_save_save(const Eo *obj, Efl_Canvas_Vg_Object_Data *pd, const char *file, const char *key, const char *flags)
{
if (pd->vg_entry)
return evas_cache_vg_entry_file_save(pd->vg_entry, file, key, flags);
dimension of the viewport.]]
}
-class Efl.Canvas.Vg.Object extends Efl.Canvas.Object implements Efl.File,
+class Efl.Canvas.Vg.Object extends Efl.Canvas.Object implements Efl.File, Efl.File_Save,
//TIZEN_ONLY(20180831): evas json: new feature for lottie - #4
Efl.Gfx.Frame_Controller
//
Efl.Object.destructor;
Efl.File.mmap { get; set; }
Efl.File.file { get; set; }
- Efl.File.save;
+ Efl.File_Save.save;
Efl.Gfx.Frame_Controller.animated { get; }
Efl.Gfx.Frame_Controller.frame { get; set; }
Efl.Gfx.Frame_Controller.frame_count { get; }
}
EOLIAN static Eina_Bool
-_evas_canvas3d_mesh_efl_file_save(const Eo *obj, Evas_Canvas3D_Mesh_Data *pd,
+_evas_canvas3d_mesh_efl_file_save_save(const Eo *obj, Evas_Canvas3D_Mesh_Data *pd,
const char *file,
const char *key EINA_UNUSED,
const char *flags EINA_UNUSED)
struct @extern Eina.Inarray; [[Eina inarray data structure]]
-class Evas.Canvas3D.Mesh extends Evas.Canvas3D.Object implements Efl.File
+class Evas.Canvas3D.Mesh extends Evas.Canvas3D.Object implements Efl.File, Efl.File_Save
{
[[Evas 3D canvas mesh class]]
data: Evas_Canvas3D_Mesh_Data;
Evas.Canvas3D.Object.change_notify;
Efl.File.file { get; set; }
Efl.File.mmap { get; set; }
- Efl.File.save;
+ Efl.File_Save.save;
}
}
}
EOLIAN static Eina_Bool
-_efl_canvas_image_internal_efl_file_save(const Eo *eo_obj, Evas_Image_Data *o, const char *file, const char *key, const char *flags)
+_efl_canvas_image_internal_efl_file_save_save(const Eo *eo_obj, Evas_Image_Data *o, const char *file, const char *key, const char *flags)
{
int quality = 80, compress = 9, ok = 0;
char *encoding = NULL;