1 class Elm_Photocam (Elm_Widget, Elm_Interface_Scrollable,
2 Elm_Interface_Atspi_Widget_Action)
4 eo_prefix: elm_obj_photocam;
9 @brief Set the paused state for photocam
11 @if MOBILE @since_tizen 2.3
12 @elseif WEARABLE @since_tizen 2.3.1
15 @remark This sets the paused state to on(@c EINA_TRUE) or off (@c EINA_FALSE) for
16 photocam. The default is off. This will stop zooming using animation on
17 zoom level changes and change instantly. This will stop any existing
18 animations that are running.
24 @brief Get the paused state for photocam
26 @if MOBILE @since_tizen 2.3
27 @elseif WEARABLE @since_tizen 2.3.1
30 @return The current paused state
32 @remark This gets the current paused state for the photocam object.
34 @see elm_photocam_paused_set()
39 bool paused; /*@ The pause state to set */
45 @brief Set the photo file to be shown
47 @if MOBILE @since_tizen 2.3
48 @elseif WEARABLE @since_tizen 2.3.1
51 @return The return error (see EVAS_LOAD_ERROR_NONE, EVAS_LOAD_ERROR_GENERIC etc.)
53 @remark This sets (and shows) the specified file (with a relative or absolute
54 path) and will return a load error (same error that
55 evas_object_image_load_error_get() will return). The image will change and
56 adjust its size at this point and begin a background load process for this
57 photo that at some time in the future will be displayed at the full
61 return: Evas_Load_Error;
65 @brief Returns the path of the current image file
67 @if MOBILE @since_tizen 2.3
68 @elseif WEARABLE @since_tizen 2.3.1
71 @return Returns the path
73 @see elm_photocam_file_set()
78 const(char)* file; /*@ The photo file */
84 @brief Set the gesture state for photocam.
86 @if MOBILE @since_tizen 2.3
87 @elseif WEARABLE @since_tizen 2.3.1
90 @remark This sets the gesture state to on(@c EINA_TRUE) or off (@c EINA_FALSE) for
91 photocam. The default is off. This will start multi touch zooming.
97 @brief Get the gesture state for photocam.
99 @if MOBILE @since_tizen 2.3
100 @elseif WEARABLE @since_tizen 2.3.1
103 @return The current gesture state
105 @remark This gets the current gesture state for the photocam object.
107 @see elm_photocam_gesture_enabled_set()
112 bool gesture; /*@ The gesture state to set */
118 @brief Set the zoom level of the photo
120 @if MOBILE @since_tizen 2.3
121 @elseif WEARABLE @since_tizen 2.3.1
124 @remark This sets the zoom level. If @p zoom is 1, it means no zoom. If it's smaller
125 than 1, it means zoom in. If it's bigger than 1, it means zoom out. For
126 example, @p zoom 1 will be 1:1 pixel for pixel. @p zoom 2 will be 2:1
127 (that is 2x2 photo pixels will display as 1 on-screen pixel) which is a zoom
128 out. 4:1 will be 4x4 photo pixels as 1 screen pixel, and so on. The @p zoom
129 parameter must be greater than 0. It is suggested to stick to powers of 2.
130 (1, 2, 4, 8, 16, 32, etc.).
136 @brief Get the zoom level of the photo
138 @if MOBILE @since_tizen 2.3
139 @elseif WEARABLE @since_tizen 2.3.1
142 @return The current zoom level
144 @remark This returns the current zoom level of the photocam object. Note that if
145 you set the fill mode to other than #ELM_PHOTOCAM_ZOOM_MODE_MANUAL
146 (which is the default), the zoom level may be changed at any time by the
147 photocam object itself to account for photo size and photocam viewport
150 @see elm_photocam_zoom_set()
151 @see elm_photocam_zoom_mode_set()
156 double zoom; /*@ The zoom level to set */
162 @brief Set the zoom mode
164 @if MOBILE @since_tizen 2.3
165 @elseif WEARABLE @since_tizen 2.3.1
168 @remark This sets the zoom mode to manual or one of several automatic levels.
169 Manual (ELM_PHOTOCAM_ZOOM_MODE_MANUAL) means that zoom is set manually by
170 elm_photocam_zoom_set() and will stay at that level until changed by code
171 or until zoom mode is changed. This is the default mode. The Automatic
172 modes will allow the photocam object to automatically adjust zoom mode
173 based on properties. #ELM_PHOTOCAM_ZOOM_MODE_AUTO_FIT) will adjust zoom so
174 the photo fits EXACTLY inside the scroll frame with no pixels outside this
175 region. #ELM_PHOTOCAM_ZOOM_MODE_AUTO_FILL will be similar but ensure no
176 pixels within the frame are left unfilled.
182 @brief Get the zoom mode
184 @if MOBILE @since_tizen 2.3
185 @elseif WEARABLE @since_tizen 2.3.1
188 @return The current zoom mode
190 @remark This gets the current zoom mode of the photocam object.
192 @see elm_photocam_zoom_mode_set()
197 Elm_Photocam_Zoom_Mode mode; /*@ The desired mode */
203 @brief Get the region of the image that is currently shown
205 @if MOBILE @since_tizen 2.3
206 @elseif WEARABLE @since_tizen 2.3.1
209 @see elm_photocam_image_region_show()
210 @see elm_photocam_image_region_bring_in()
215 int x; /*@ A pointer to the X-coordinate of region */
216 int y; /*@ A pointer to the Y-coordinate of region */
217 int w; /*@ A pointer to the width */
218 int h; /*@ A pointer to the height */
224 @brief Get the internal low-res image used for photocam
226 @if MOBILE @since_tizen 2.3
227 @elseif WEARABLE @since_tizen 2.3.1
230 @return The internal image object handle, or NULL if none exists
232 @remark This gets the internal image object inside photocam. Do not modify it. It
233 is for inspection only, and hooking callbacks to. Nothing else. It may be
234 deleted at any time as well.
237 return: Evas_Object *;
243 @brief Get the current image pixel width and height
245 @if MOBILE @since_tizen 2.3
246 @elseif WEARABLE @since_tizen 2.3.1
249 @remark This gets the current photo pixel width and height (for the original).
250 The size will be returned in the integers @p w and @p h that are pointed
256 int w; /*@ A pointer to the width return */
257 int h; /*@ A pointer to the height return */
264 @brief Set the viewed region of the image
266 @if MOBILE @since_tizen 2.3
267 @elseif WEARABLE @since_tizen 2.3.1
270 @remark This shows the region of the image without using animation.
275 @in int x; /*@ X-coordinate of region in image original pixels */
276 @in int y; /*@ Y-coordinate of region in image original pixels */
277 @in int w; /*@ Width of region in image original pixels */
278 @in int h; /*@ Height of region in image original pixels */
285 Evas.Object_Smart.move;
286 Evas.Object_Smart.add;
287 Evas.Object_Smart.del;
288 Evas.Object_Smart.member_add;
289 Evas.Object_Smart.resize;
290 Elm_Widget.theme_apply;
293 Elm_Interface_Scrollable.region_bring_in;
294 Elm_Interface_Atspi_Widget_Action.elm_actions.get;