2013-04-29 00:03:21 -07:00
|
|
|
/**
|
|
|
|
* Add a new photo to the parent
|
|
|
|
*
|
|
|
|
* @param parent The parent object
|
|
|
|
* @return The new object or NULL if it cannot be created
|
|
|
|
*
|
2016-03-16 08:05:31 -07:00
|
|
|
* @ingroup Elm_Photo
|
2013-04-29 00:03:21 -07:00
|
|
|
*/
|
|
|
|
EAPI Evas_Object *elm_photo_add(Evas_Object *parent);
|
|
|
|
|
2014-07-22 08:20:31 -07:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
* Set the file that will be used as the photo widget's image.
|
|
|
|
*
|
|
|
|
* @return @c EINA_TRUE on success, @c EINA_FALSE otherwise
|
|
|
|
*
|
|
|
|
* @note Use @c NULL on @a file to set the photo widget back to it's
|
|
|
|
* initial state, which indicates "no photo".
|
|
|
|
*
|
2016-03-16 08:05:31 -07:00
|
|
|
* @ingroup Elm_Photo
|
2014-07-22 08:20:31 -07:00
|
|
|
*
|
|
|
|
* @param[in] file The path to file that will be used as @a obj's image.
|
|
|
|
*/
|
|
|
|
EAPI Eina_Bool elm_photo_file_set(Eo *obj, const char *file);
|
|
|
|
|
2016-03-18 18:30:19 -07:00
|
|
|
/**
|
|
|
|
* Set editability of the photo.
|
|
|
|
*
|
|
|
|
* An editable photo can be dragged to or from, and can be cut or pasted too.
|
|
|
|
* Note that pasting an image or dropping an item on the image will delete the
|
|
|
|
* existing content.
|
|
|
|
*
|
|
|
|
* @param[in] set To set of clear editability.
|
|
|
|
*
|
|
|
|
* @ingroup Elm_Photo
|
|
|
|
*/
|
|
|
|
EAPI void elm_photo_editable_set(Evas_Object *obj, Eina_Bool set);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get editability of the photo.
|
|
|
|
*
|
|
|
|
* @return To set of clear editability.
|
|
|
|
*
|
|
|
|
* @ingroup Elm_Photo
|
|
|
|
*/
|
|
|
|
EAPI Eina_Bool elm_photo_editable_get(const Evas_Object *obj);
|
2014-07-22 08:20:31 -07:00
|
|
|
#include "elm_photo.eo.legacy.h"
|