summaryrefslogtreecommitdiff
path: root/legacy/elementary/src/lib/elm_image_legacy.h
diff options
context:
space:
mode:
authorJi-Youn Park <jy0703.park@samsung.com>2016-03-22 22:44:04 +0830
committerJi-Youn Park <jy0703.park@samsung.com>2016-03-22 22:44:09 +0830
commitadcc8c218c487fb118a94bac7327bb538d2c672d (patch)
tree79efc5a5f43d06297704ee3483c7f61d02b417df /legacy/elementary/src/lib/elm_image_legacy.h
parentb76f9c8f6e96b9bc5d468bb0d2d26343a4011e4d (diff)
elm_image: remove elm_image_memfile_set api from eo API.
memfile_set feature will be deprecated. instead of memfile_set, use Efl.file.mmap. and merge elm_image_obj_mmap_set and elm_image_efl_file_mmap_set
Diffstat (limited to '')
-rw-r--r--legacy/elementary/src/lib/elm_image_legacy.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/legacy/elementary/src/lib/elm_image_legacy.h b/legacy/elementary/src/lib/elm_image_legacy.h
index 01df5fe3ab..db798831d5 100644
--- a/legacy/elementary/src/lib/elm_image_legacy.h
+++ b/legacy/elementary/src/lib/elm_image_legacy.h
@@ -272,4 +272,30 @@ EAPI void elm_image_editable_set(Evas_Object *obj, Eina_Bool set);
272 * @ingroup Elm_Image 272 * @ingroup Elm_Image
273 */ 273 */
274EAPI Eina_Bool elm_image_editable_get(const Evas_Object *obj); 274EAPI Eina_Bool elm_image_editable_get(const Evas_Object *obj);
275
276/**
277 * @brief Set a location in memory to be used as an image object's source
278 * bitmap.
279 *
280 * This function is handy when the contents of an image file are mapped in
281 * memory, for example.
282 *
283 * The @c format string should be something like $"png", $"jpg", $"tga",
284 * $"tiff", $"bmp" etc, when provided ($NULL, on the contrary). This improves
285 * the loader performance as it tries the "correct" loader first, before trying
286 * a range of other possible loaders until one succeeds.
287 *
288 * @param[in] img The binary data that will be used as image source
289 * @param[in] size The size of binary data blob @c img
290 * @param[in] format (Optional) expected format of @c img bytes
291 * @param[in] key Optional indexing key of @c img to be passed to the image
292 * loader (eg. if @c img is a memory-mapped EET file)
293 *
294 * @return @c true = success, @c false = error
295 *
296 * @since 1.7
297 *
298 * @ingroup Elm_Image
299 */
300EAPI Eina_Bool elm_image_memfile_set(Evas_Object *obj, const void *img, size_t size, const char *format, const char *key);
275#include "elm_image.eo.legacy.h" 301#include "elm_image.eo.legacy.h"