2 * @defgroup Photo Photo
4 * For displaying the photo of a person (contact). Simple, yet
5 * with a very specific purpose.
7 * Signals that you can add callbacks for are:
9 * "clicked" - This is called when a user has clicked the photo
10 * "drag,start" - Someone started dragging the image out of the object
11 * "drag,end" - Dragged item was dropped (somewhere)
17 * Add a new photo to the parent
19 * @param parent The parent object
20 * @return The new object or NULL if it cannot be created
24 EAPI Evas_Object *elm_photo_add(Evas_Object *parent);
27 * Set the file that will be used as photo
29 * @param obj The photo object
30 * @param file The path to file that will be used as photo
32 * @return (1 = success, 0 = error)
36 EAPI Eina_Bool elm_photo_file_set(Evas_Object *obj, const char *file);
39 * Set the file that will be used as thumbnail in the photo.
41 * @param obj The photo object.
42 * @param file The path to file that will be used as thumb.
43 * @param group The key used in case of an EET file.
47 EAPI void elm_photo_thumb_set(const Evas_Object *obj, const char *file, const char *group);
50 * Set the size that will be used on the photo
52 * @param obj The photo object
53 * @param size The size that the photo will be
57 EAPI void elm_photo_size_set(Evas_Object *obj, int size);
60 * Set if the photo should be completely visible or not.
62 * @param obj The photo object
63 * @param fill if true the photo will be completely visible
67 EAPI void elm_photo_fill_inside_set(Evas_Object *obj, Eina_Bool fill);
70 * Set editability of the photo.
72 * An editable photo can be dragged to or from, and can be cut or
73 * pasted too. Note that pasting an image or dropping an item on
74 * the image will delete the existing content.
76 * @param obj The photo object.
77 * @param set To set of clear editablity.
79 EAPI void elm_photo_editable_set(Evas_Object *obj, Eina_Bool set);
82 * Set whether the original aspect ratio of the photo should be kept on resize.
84 * @param obj The photo object.
85 * @param fixed @c EINA_TRUE if the photo should fix the aspect,
86 * @c EINA_FALSE otherwise.
88 * The original aspect ratio (width / height) of the photo is usually
89 * distorted to match the object's size. Enabling this option will fix
90 * this original aspect, and the way that the photo is fit into
93 * @see elm_photo_aspect_fixed_get()
97 EAPI void elm_photo_aspect_fixed_set(Evas_Object *obj, Eina_Bool fixed);
100 * Get if the object fixes the original aspect ratio.
102 * @param obj The photo object.
103 * @return @c EINA_TRUE if the object keeps the original aspect, @c EINA_FALSE
108 EAPI Eina_Bool elm_photo_aspect_fixed_get(const Evas_Object *obj);