_fit(void *data, Evas_Object *obj, void *event_info)
{
int x, y, w, h;
- elm_photocam_region_get(data, &x, &y, &w, &h);
+ elm_photocam_image_region_get(data, &x, &y, &w, &h);
printf("region: {%d, %d, %d, %d}\n", x, y, w, h);
elm_photocam_zoom_mode_set(data, ELM_PHOTOCAM_ZOOM_MODE_AUTO_FIT);
}
/**
- * @defgroup CopyPaste
+ * @defgroup CopyPaste CopyPaste
*
- * Implement the copy and paste + clipboard functionality, in order to
- * share data across application windows.
+ * Implement the following functionality
+ * a. select, copy/cut and paste
+ * b. clipboard
+ * c. drag and drop
+ * in order to share data across application windows.
*
* Contains functions to select a portion of text, stick it to a clipboard
* and to paste the selection to an appropriate place.
*
- *
- *
* @{
*/
ELM_SEL_FORMAT_IMAGE = 0x04,
/** Vcards */
ELM_SEL_FORMAT_VCARD = 0x08,
- /** Raw HTML-like things for widgets that want that stuff (hello webkit!) */
+ /** Raw HTML-like data (ex., webkit) */
ELM_SEL_FORMAT_HTML = 0x10,
} Elm_Sel_Format;
* @brief Set copy and paste data to a widget.
*
* XXX: need to be rewritten.
- * Append the given callback to the list. This functions will be called.
+ * Append the given callback to the list.
*
* @param selection Selection type for copying and pasting
* @param obj The source widget pointer
EINA_DEPRECATED EAPI void elm_video_uri_set(Evas_Object *video, const char *uri);
/**
+ * @brief Get the region of the image that is currently shown
+ *
+ * @param obj
+ * @param x A pointer to the X-coordinate of region
+ * @param y A pointer to the Y-coordinate of region
+ * @param w A pointer to the width
+ * @param h A pointer to the height
+ *
+ * @deprecated Use elm_photocam_image_region_get() instead.
+ */
+EINA_DEPRECATED EAPI void elm_photocam_region_get(const Evas_Object *obj, int *x, int *y, int *w, int *h);
+
+/**
* @}
*/
if (h) *h = wd->size.imh;
}
-EAPI void
+EINA_DEPRECATED EAPI void
elm_photocam_region_get(const Evas_Object *obj, int *x, int *y, int *w, int *h)
{
+ return elm_photocam_image_region_get(obj, x, y, w, h);
+}
+
+EAPI void
+elm_photocam_image_region_get(const Evas_Object *obj, int *x, int *y, int *w, int *h)
+{
ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
Evas_Coord sx, sy, sw, sh;
* @see elm_photocam_image_region_show()
* @see elm_photocam_image_region_bring_in()
*/
-EAPI void elm_photocam_region_get(const Evas_Object *obj, int *x, int *y, int *w, int *h);
+EAPI void elm_photocam_image_region_get(const Evas_Object *obj, int *x, int *y, int *w, int *h);
/**
* @brief Set the viewed region of the image