1 class Evas.Image (Evas.Object, Efl.File, Efl.Image)
3 legacy_prefix: evas_object_image;
4 eo_prefix: evas_obj_image;
9 @brief Set the DPI resolution of an image object's source image.
11 @if MOBILE @since_tizen 2.3
12 @elseif WEARABLE @since_tizen 2.3.1
15 @ingroup Evas_Object_Image
17 @remark This function sets the DPI resolution of a given loaded canvas
18 image. Most useful for the SVG image loader.
20 @see evas_object_image_load_dpi_get() */
24 @brief Get the DPI resolution of a loaded image object in the canvas.
26 @if MOBILE @since_tizen 2.3
27 @elseif WEARABLE @since_tizen 2.3.1
30 @ingroup Evas_Object_Image
32 @return The DPI resolution of the given canvas image.
34 @remark This function returns the DPI resolution of the given canvas image.
36 @see evas_object_image_load_dpi_set() for more details */
39 double dpi; /*@ The new DPI resolution. */
46 @brief Clip the proxy object with the source object's clipper.
48 @if MOBILE @since_tizen 2.3
49 @elseif WEARABLE @since_tizen 2.3.1
52 @ingroup Evas_Object_Image
54 @see evas_object_clip_set()
55 @see evas_object_image_source_set()
60 @brief Determine whether an object is clipped by source object's clipper.
62 @if MOBILE @since_tizen 2.3
63 @elseif WEARABLE @since_tizen 2.3.1
66 @ingroup Evas_Object_Image
68 @return @c EINA_TRUE if source clip is enabled, @c EINA_FALSE otherwise.
70 @see evas_object_clip_set()
71 @see evas_object_image_source_set()
72 @see evas_object_image_source_clip_set()
76 bool source_clip; /*@ whether @p obj is clipped by the source clipper.
77 (@c EINA_TRUE) or not (@c EINA_FALSE) */
83 @brief Set the source object on an image object to used as a @b proxy.
85 @if MOBILE @since_tizen 2.3
86 @elseif WEARABLE @since_tizen 2.3.1
89 @ingroup Evas_Object_Image
91 @return @c EINA_TRUE on success, @c EINA_FALSE on error.
93 @remark If an image object is set to behave as a @b proxy, it will mirror
94 the rendering contents of a given @b source object in its drawing
95 region, without affecting that source in any way. The source must
96 be another valid Evas object. Other effects may be applied to the
97 proxy, such as a map (see evas_object_map_set()) to create a
98 reflection of the original object (for example).
100 @remark Any existing source object on @p obj will be removed after this
101 call. Setting @p src to @c NULL clears the proxy object (not in
102 "proxy state" anymore).
104 @warning You cannot set a proxy as another proxy's source.
106 @see evas_object_image_source_get()
107 @see evas_object_image_source_unset()
108 @see evas_object_image_source_visible_set() */
113 @brief Get the current source object of an image object.
115 @if MOBILE @since_tizen 2.3
116 @elseif WEARABLE @since_tizen 2.3.1
119 @ingroup Evas_Object_Image
121 @return Source object (if any), or @c NULL, if not in "proxy mode"
124 @see evas_object_image_source_set() for more details */
127 Evas_Object *src; /*@ Source object to use for the proxy. */
133 @brief Set whether the image object's fill property should track the
136 @if MOBILE @since_tizen 2.3
137 @elseif WEARABLE @since_tizen 2.3.1
140 @ingroup Evas_Object_Image
142 @remark If @p setting is @c EINA_TRUE, then every evas_object_resize() will
143 @b automatically trigger a call to evas_object_image_fill_set()
144 with the that new size (and @c 0, @c 0 as source image's origin),
145 so the bound image will fill the whole object's area.
147 @see evas_object_image_filled_add()
148 @see evas_object_image_fill_get() */
152 @brief Retrieve whether the image object's fill property should track the
155 @if MOBILE @since_tizen 2.3
156 @elseif WEARABLE @since_tizen 2.3.1
159 @ingroup Evas_Object_Image
161 @return @c EINA_TRUE if it is tracking, @c EINA_FALSE, if not (and
162 evas_object_fill_set() must be called manually).
164 @see evas_object_image_filled_set() for more information */
167 bool filled; /*@ @c EINA_TRUE, to make the fill property follow
168 object size or @c EINA_FALSE, otherwise. */
174 @brief Set the content hint setting of a given image object of the canvas.
176 @if MOBILE @since_tizen 2.3
177 @elseif WEARABLE @since_tizen 2.3.1
180 @ingroup Evas_Object_Image
182 @remark This function sets the content hint value of the given image of the
183 canvas. For example, if you're on the GL engine and your driver
184 implementation supports it, setting this hint to
185 #EVAS_IMAGE_CONTENT_HINT_DYNAMIC will make it need @b zero copies
186 at texture upload time, which is an "expensive" operation.
188 @see evas_object_image_content_hint_get() */
192 @brief Get the content hint setting of a given image object of the canvas.
194 @if MOBILE @since_tizen 2.3
195 @elseif WEARABLE @since_tizen 2.3.1
198 @ingroup Evas_Object_Image
200 @return hint The content hint value set on it, one of the
201 #Evas_Image_Content_Hint ones (#EVAS_IMAGE_CONTENT_HINT_NONE means
204 @remark This function returns the content hint value of the given image of
207 @see evas_object_image_content_hint_set() */
210 Evas_Image_Content_Hint hint; /*@ The content hint value, one of the
211 #Evas_Image_Content_Hint ones. */
217 @brief Inform a given image object to load a selective region of its
220 @if MOBILE @since_tizen 2.3
221 @elseif WEARABLE @since_tizen 2.3.1
224 @ingroup Evas_Object_Image
226 @remark This function is useful when one is not showing all of an image's
227 area on its image object.
229 @remark The image loader for the image format in question has to
230 support selective region loading in order to this function to take
233 @see evas_object_image_load_region_get() */
237 @brief Retrieve the coordinates of a given image object's selective
238 (source image) load region.
240 @if MOBILE @since_tizen 2.3
241 @elseif WEARABLE @since_tizen 2.3.1
244 @ingroup Evas_Object_Image
246 @remark Use @c NULL pointers on the coordinates you're not interested
247 in: they'll be ignored by the function.
249 @see evas_object_image_load_region_get() */
252 int x; /*@ X-offset of the region to be loaded. */
253 int y; /*@ Y-offset of the region to be loaded. */
254 int w; /*@ Width of the region to be loaded. */
255 int h; /*@ Height of the region to be loaded. */
261 @brief Enable or disable alpha channel usage on the given image object.
263 @if MOBILE @since_tizen 2.3
264 @elseif WEARABLE @since_tizen 2.3.1
267 @ingroup Evas_Object_Image
269 @remark This function sets a flag on an image object indicating whether or
270 not to use alpha channel data. A value of @c EINA_TRUE makes it use
271 alpha channel data, and @c EINA_FALSE makes it ignore that
272 data. Note that this has nothing to do with an object's color as
273 manipulated by evas_object_color_set().
275 @see evas_object_image_alpha_get() */
279 @brief Retrieve whether alpha channel data is being used on the given
282 @if MOBILE @since_tizen 2.3
283 @elseif WEARABLE @since_tizen 2.3.1
286 @ingroup Evas_Object_Image
288 @return Whether the alpha channel data is being used (@c EINA_TRUE)
289 or not (@c EINA_FALSE).
291 @remark This function returns @c EINA_TRUE if the image object's alpha
292 channel is being used, or @c EINA_FALSE otherwise.
294 See @ref evas_object_image_alpha_set() for more details. */
297 bool alpha; /*@ Whether to use alpha channel (@c EINA_TRUE) data
298 or not (@c EINA_FALSE). */
304 @brief Set the dimensions for an image object's border, a region which
305 @b won't ever be scaled together with its center.
307 @if MOBILE @since_tizen 2.3
308 @elseif WEARABLE @since_tizen 2.3.1
311 @ingroup Evas_Object_Image
313 @remark When Evas is rendering, an image source may be scaled to fit the
314 size of its image object. This function sets an area from the
315 borders of the image inwards which is @b not to be scaled. This
316 function is useful for making frames and for widget theming, where,
317 for example, buttons may be of varying sizes, but their border size
318 must remain constant.
320 @remark The units used for @p l, @p r, @p t and @p b are canvas units.
322 @remark The border region itself @b may be scaled by the
323 evas_object_image_border_scale_set() function.
325 @remark By default, image objects have no borders set, i. e. @c l, @c
326 r, @c t and @c b start as @c 0.
328 @remark See the following figures for visual explanation:\n
330 <img src="image-borders.png" style="max-width: 100%;" />
331 <a href="image-borders.png">Full-size</a>
333 @image rtf image-borders.png
334 @image latex image-borders.eps width=\textwidth
336 <img src="border-effect.png" style="max-width: 100%;" />
337 <a href="border-effect.png">Full-size</a>
339 @image rtf border-effect.png
340 @image latex border-effect.eps width=\textwidth
342 @see evas_object_image_border_get()
343 @see evas_object_image_border_center_fill_set() */
347 @brief Retrieve the dimensions for an image object's border, a region
348 which @b won't ever be scaled together with its center.
350 @if MOBILE @since_tizen 2.3
351 @elseif WEARABLE @since_tizen 2.3.1
354 @ingroup Evas_Object_Image
356 @remark Use @c NULL pointers on the border components you're not
357 interested in: they'll be ignored by the function.
359 See @ref evas_object_image_border_set() for more details. */
362 int l; /*@ The border's left width. */
363 int r; /*@ The border's right width. */
364 int t; /*@ The border's top width. */
365 int b; /*@ The border's bottom width. */
371 @brief Sets the scaling factor (multiplier) for the borders of an image
374 @if MOBILE @since_tizen 2.3
375 @elseif WEARABLE @since_tizen 2.3.1
378 @ingroup Evas_Object_Image
380 @see evas_object_image_border_set()
381 @see evas_object_image_border_scale_get() */
385 @brief Retrieves the scaling factor (multiplier) for the borders of an
388 @if MOBILE @since_tizen 2.3
389 @elseif WEARABLE @since_tizen 2.3.1
392 @ingroup Evas_Object_Image
394 @return The scale factor set for its borders
396 @see evas_object_image_border_set()
397 @see evas_object_image_border_scale_set() */
400 double scale; /*@ The scale factor (default is @c 1.0 - i.e. no scaling) */
406 @brief Mark whether the given image object is dirty and needs to request its pixels.
408 @if MOBILE @since_tizen 2.3
409 @elseif WEARABLE @since_tizen 2.3.1
412 @ingroup Evas_Object_Image
414 @remark This function will only properly work if a pixels get callback has been set.
416 @warning use this function if you really know what you are doing.
418 @see evas_object_image_pixels_get_callback_set() */
422 @brief Retrieves whether the given image object is dirty (needs to be redrawn).
424 @if MOBILE @since_tizen 2.3
425 @elseif WEARABLE @since_tizen 2.3.1
428 @ingroup Evas_Object_Image
430 @return Whether the image is dirty. */
433 bool dirty; /*@ Whether the image is dirty. */
439 @brief Set the video surface linked to a given image of the canvas
441 @if MOBILE @since_tizen 2.3
442 @elseif WEARABLE @since_tizen 2.3.1
445 @ingroup Evas_Object_Image
447 This function links a video surface to a given canvas image. */
451 @brief Get the video surface linekd to a given image of the canvas
453 @if MOBILE @since_tizen 2.3
454 @elseif WEARABLE @since_tizen 2.3.1
457 @ingroup Evas_Object_Image
459 @return The video surface of the given canvas image.
462 This function returns the video surface linked to a given canvas image. */
465 Evas_Video_Surface *surf @const_get; /*@ The new video surface.
471 /*@ Set the video surface capabilities to a given image of the canvas */
474 /*@ Get the video surface capabilities to a given image of the canvas */
483 @brief Define if the orientation information in the image file should be honored.
485 @if MOBILE @since_tizen 2.3
486 @elseif WEARABLE @since_tizen 2.3.1
489 @ingroup Evas_Object_Image
495 @brief Get if the orientation information in the image file should be honored.
497 @if MOBILE @since_tizen 2.3
498 @elseif WEARABLE @since_tizen 2.3.1
501 @ingroup Evas_Object_Image
506 bool enable; /*@ @c EINA_TRUE means that it should honor the orientation information */
512 @brief Sets the tiling mode for the given evas image object's fill.
514 @if MOBILE @since_tizen 2.3
515 @elseif WEARABLE @since_tizen 2.3.1
518 @ingroup Evas_Object_Image
520 EVAS_TEXTURE_RESTRICT, or EVAS_TEXTURE_PAD. */
524 @brief Retrieves the spread (tiling mode) for the given image object's
527 @if MOBILE @since_tizen 2.3
528 @elseif WEARABLE @since_tizen 2.3.1
531 @ingroup Evas_Object_Image
533 @return The current spread mode of the image object. */
536 Evas_Fill_Spread spread; /*@ One of EVAS_TEXTURE_REFLECT, EVAS_TEXTURE_REPEAT, */
542 @brief Sets @b how the center part of the given image object (not the
543 borders) should be drawn when Evas is rendering it.
545 @if MOBILE @since_tizen 2.3
546 @elseif WEARABLE @since_tizen 2.3.1
549 @ingroup Evas_Object_Image
551 @remark This function sets how the center part of the image object's source
552 image is to be drawn, which must be one of the values in
553 #Evas_Border_Fill_Mode. By center we mean the complementary part of
554 that defined by evas_object_image_border_set(). This one is very
555 useful for making frames and decorations. You would most probably
556 also be using a filled image (as in evas_object_image_filled_set())
559 @see evas_object_image_border_center_fill_get() */
563 @brief Retrieves @b how the center part of the given image object (not the
564 borders) is to be drawn when Evas is rendering it.
566 @if MOBILE @since_tizen 2.3
567 @elseif WEARABLE @since_tizen 2.3.1
570 @ingroup Evas_Object_Image
572 @return fill Fill mode of the center region of @p obj (a value in
573 #Evas_Border_Fill_Mode).
575 See @ref evas_object_image_fill_set() for more details. */
578 Evas_Border_Fill_Mode fill; /*@ Fill mode of the center region of @p obj (a value in
579 #Evas_Border_Fill_Mode). */
585 @brief Sets the size of the given image object.
587 @if MOBILE @since_tizen 2.3
588 @elseif WEARABLE @since_tizen 2.3.1
591 @ingroup Evas_Object_Image
593 @remark This function will scale down or crop the image so that it is
594 treated as if it were at the given size. If the size given is
595 smaller than the image, it will be cropped. If the size given is
596 larger, then the image will be treated as if it were in the upper
597 left hand corner of a larger image that is otherwise transparent. */
601 @brief Retrieves the size of the given image object.
603 @if MOBILE @since_tizen 2.3
604 @elseif WEARABLE @since_tizen 2.3.1
607 @ingroup Evas_Object_Image
609 See @ref evas_object_image_size_set() for more details. */
612 int w; /*@ The new width of the image. */
613 int h; /*@ The new height of the image. */
619 @brief Set the source object to be visible or not.
621 @if MOBILE @since_tizen 2.3
622 @elseif WEARABLE @since_tizen 2.3.1
625 @ingroup Evas_Object_Image
627 @remark If the @p visible set to @c EINA_FALSE, the source object of the proxy(@p obj
630 @remark This API works differently to evas_object_show() and evas_object_hide().
631 Once source object is hidden by evas_object_hide() then the proxy object will
632 be hidden as well. Actually in this case both objects are excluded from the
633 Evas internal update circle.
635 @remark By this API, instead, one can toggle the visibility of a proxy's source
636 object remaining the proxy visibility untouched.
638 @warning If the all of proxies are deleted, then the source visibility of the
639 source object will be cancelled.
641 @see evas_object_image_source_visible_get()
642 @see evas_object_image_source_set()
643 @see evas_object_show()
644 @see evas_object_hide()
649 @brief Get the state of the source object visibility.
651 @if MOBILE @since_tizen 2.3
652 @elseif WEARABLE @since_tizen 2.3.1
655 @ingroup Evas_Object_Image
657 @return @c EINA_TRUE if source object is visible, @c EINA_FALSE otherwise.
659 @see evas_object_image_source_visible_set()
660 @see evas_object_image_source_set()
661 @see evas_object_show()
662 @see evas_object_hide()
666 bool visible; /*@ @c EINA_TRUE is source object to be shown, @c EINA_FALSE
673 @brief Set how to fill an image object's drawing rectangle given the
674 (real) image bound to it.
676 @if MOBILE @since_tizen 2.3
677 @elseif WEARABLE @since_tizen 2.3.1
680 @ingroup Evas_Object_Image
682 @remark Note that if @p w or @p h are smaller than the dimensions of
683 @p obj, the displayed image will be @b tiled around the object's
684 area. To have only one copy of the bound image drawn, @p x and @p y
685 must be 0 and @p w and @p h need to be the exact width and height
686 of the image object itself, respectively.
688 @remark See the following image to better understand the effects of this
689 call. On this diagram, both image object and original image source
690 have @c a x @c a dimensions and the image itself is a circle, with
691 empty space around it:
693 @image html image-fill.png
694 @image rtf image-fill.png
695 @image latex image-fill.eps
697 @warning The default values for the fill parameters are @p x = 0,
698 @p y = 0, @p w = 0 and @p h = 0. Thus, if you're not using the
699 evas_object_image_filled_add() helper and want your image
700 displayed, you'll have to set valid values with this function on
703 @remark evas_object_image_filled_set() is a helper function which
704 will @b override the values set here automatically, for you, in a
709 @brief Retrieve how an image object is to fill its drawing rectangle,
710 given the (real) image bound to it.
712 @if MOBILE @since_tizen 2.3
713 @elseif WEARABLE @since_tizen 2.3.1
716 @ingroup Evas_Object_Image
718 @remark Use @c NULL pointers on the fill components you're not
719 interested in: they'll be ignored by the function.
721 See @ref evas_object_image_fill_set() for more details. */
724 Evas_Coord x; /*@ The x coordinate (from the top left corner of the bound
725 image) to start drawing from. */
726 Evas_Coord y; /*@ The y coordinate (from the top left corner of the bound
727 image) to start drawing from. */
728 Evas_Coord w; /*@ The width the bound image will be displayed at. */
729 Evas_Coord h; /*@ The height the bound image will be displayed at. */
735 @brief Set the native surface of a given image of the canvas
737 @if MOBILE @since_tizen 2.3
738 @elseif WEARABLE @since_tizen 2.3.1
741 @ingroup Evas_Object_Image
743 This function sets a native surface of a given canvas image. */
749 @brief Get the native surface of a given image of the canvas
751 @if MOBILE @since_tizen 2.3
752 @elseif WEARABLE @since_tizen 2.3.1
755 @ingroup Evas_Object_Image
757 @return The native surface of the given canvas image.
759 This function returns the native surface of a given canvas image. */
762 Evas_Native_Surface *surf/* @const_get*/ @nonull; /*@ The new native surface. */
768 @brief Set the scale down factor of a given image object's source image,
771 @if MOBILE @since_tizen 2.3
772 @elseif WEARABLE @since_tizen 2.3.1
775 @ingroup Evas_Object_Image
777 @remark This function sets the scale down factor of a given canvas
778 image. Most useful for the SVG image loader.
780 @see evas_object_image_load_scale_down_get() */
784 @brief get the scale down factor of a given image object's source image,
787 @if MOBILE @since_tizen 2.3
788 @elseif WEARABLE @since_tizen 2.3.1
791 @ingroup Evas_Object_Image
793 @see evas_object_image_load_scale_down_set() for more details */
796 int scale_down; /*@ The scale down factor. */
802 @brief Set the scale hint of a given image of the canvas.
804 @if MOBILE @since_tizen 2.3
805 @elseif WEARABLE @since_tizen 2.3.1
808 @ingroup Evas_Object_Image
810 @remark This function sets the scale hint value of the given image object
811 in the canvas, which will affect how Evas is to cache scaled
812 versions of its original source image.
814 @see evas_object_image_scale_hint_get() */
818 @brief Get the scale hint of a given image of the canvas.
820 @if MOBILE @since_tizen 2.3
821 @elseif WEARABLE @since_tizen 2.3.1
824 @ingroup Evas_Object_Image
826 @return The scale hint value set on @p obj, a value in
827 #Evas_Image_Scale_Hint.
829 @remark This function returns the scale hint value of the given image
830 object of the canvas.
832 @see evas_object_image_scale_hint_set() for more details. */
835 Evas_Image_Scale_Hint hint; /*@ The scale hint, a value in
836 #Evas_Image_Scale_Hint. */
842 Set whether an Evas object is to source events.
844 Set whether an Evas object is to repeat events to source.
846 If @p source is @c EINA_TRUE, it will make events on @p obj to also be
847 repeated for the source object (see evas_object_image_source_set()). Even the
848 @p obj and source geometries are different, the event position will be
849 transformed to the source object's space.
851 If @p source is @c EINA_FALSE, events occurring on @p obj will be
852 processed only on it.
854 @see evas_object_image_source_get()
855 @see evas_object_image_source_visible_set()
856 @see evas_object_image_source_events_get()
861 Determine whether an object is set to source events.
863 @return @c EINA_TRUE if source object has events, @c EINA_FALSE otherwise.
865 @see evas_object_image_source_set()
866 @see evas_object_image_source_visible_set()
867 @see evas_object_image_source_events_set()
871 bool source; /*@ whether @p obj is to pass events (@c EINA_TRUE) or not
878 @brief Set the colorspace of a given image of the canvas.
880 @if MOBILE @since_tizen 2.3
881 @elseif WEARABLE @since_tizen 2.3.1
884 @ingroup Evas_Object_Image
886 This function sets the colorspace of given canvas image. */
890 @brief Get the colorspace of a given image of the canvas.
892 @if MOBILE @since_tizen 2.3
893 @elseif WEARABLE @since_tizen 2.3.1
896 @ingroup Evas_Object_Image
898 @return The colorspace of the image.
900 This function returns the colorspace of given canvas image. */
903 Evas_Colorspace cspace; /*@ The new color space. */
906 pixels_get_callback {
909 @brief Set the callback function to get pixels from a canvas' image.
911 @if MOBILE @since_tizen 2.3
912 @elseif WEARABLE @since_tizen 2.3.1
915 @ingroup Evas_Object_Image
917 @remark This functions sets a function to be the callback function that get
918 pixels from a image of the canvas. */
921 Evas_Object_Image_Pixels_Get_Cb func @nonull; /*@ The callback function. */
922 void *data; /*@ The data pointer to be passed to @a func. */
928 @brief Replaces the raw image data of the given image object.
930 @if MOBILE @since_tizen 2.3
931 @elseif WEARABLE @since_tizen 2.3.1
934 @ingroup Evas_Object_Image
936 @remark This function lets the application replace an image object's
937 internal pixel buffer with an user-allocated one. For best results,
938 you should generally first call evas_object_image_size_set() with
939 the width and height for the new buffer.
941 @remark This call is best suited for when you will be using image data with
942 different dimensions than the existing image data, if any. If you
943 only need to modify the existing image in some fashion, then using
944 evas_object_image_data_get() is probably what you are after.
946 @remark Note that the caller is responsible for freeing the buffer when
947 finished with it, as user-set image data will not be automatically
948 freed when the image object is deleted.
950 See @ref evas_object_image_data_get() for more details. */
953 void *data; /*@ The raw data to replace. */
959 @brief Set the frame to current frame of an image object
961 @if MOBILE @since_tizen 2.3
962 @elseif WEARABLE @since_tizen 2.3.1
965 @ingroup Evas_Object_Image
967 @remark This set image object's current frame to frame_num with 1 being the first
970 @see evas_object_image_animated_get()
971 @see evas_object_image_animated_frame_count_get()
972 @see evas_object_image_animated_loop_type_get()
973 @see evas_object_image_animated_loop_count_get()
974 @see evas_object_image_animated_frame_duration_get()
975 @see evas_object_image_animated_frame_set()
979 int frame_index; /*@ The index of current frame */
985 @brief Get the support state of a given image
987 @if MOBILE @since_tizen 2.3
988 @elseif WEARABLE @since_tizen 2.3.1
991 @ingroup Evas_Object_Image
993 @return The region support state
996 This function returns the state of the region support of given image */
997 return: bool @warn_unused;
1003 @brief Retrieves a number representing any error that occurred during the
1004 last loading of the given image object's source image.
1006 @if MOBILE @since_tizen 2.3
1007 @elseif WEARABLE @since_tizen 2.3.1
1010 @ingroup Evas_Object_Image
1012 @return A value giving the last error that occurred. It should be
1013 one of the #Evas_Load_Error values. #EVAS_LOAD_ERROR_NONE
1014 is returned if there was no error. */
1015 return: Evas_Load_Error @warn_unused;
1018 animated_frame_count {
1021 @brief Get the total number of frames of the image object.
1023 @if MOBILE @since_tizen 2.3
1024 @elseif WEARABLE @since_tizen 2.3.1
1027 @ingroup Evas_Object_Image
1029 @return The number of frames
1031 @remark This returns total number of frames the image object supports (if animated)
1033 @see evas_object_image_animated_get()
1034 @see evas_object_image_animated_frame_count_get()
1035 @see evas_object_image_animated_loop_type_get()
1036 @see evas_object_image_animated_loop_count_get()
1037 @see evas_object_image_animated_frame_duration_get()
1038 @see evas_object_image_animated_frame_set()
1046 @brief Retrieves the row stride of the given image object.
1048 @if MOBILE @since_tizen 2.3
1049 @elseif WEARABLE @since_tizen 2.3.1
1052 @ingroup Evas_Object_Image
1054 @return The stride of the image (<b>in bytes</b>).
1056 @remark The row stride is the number of bytes between the start of a row
1057 and the start of the next row for image data. */
1058 return: int @warn_unused;
1061 animated_loop_type {
1064 @brief Get the kind of looping the image object does.
1066 @if MOBILE @since_tizen 2.3
1067 @elseif WEARABLE @since_tizen 2.3.1
1070 @ingroup Evas_Object_Image
1072 @return Loop type of the image object
1074 @remark This returns the kind of looping the image object wants to do.
1076 @remark If it returns EVAS_IMAGE_ANIMATED_HINT_LOOP, you should display frames in a sequence like:
1077 1->2->3->1->2->3->1...
1078 If it returns EVAS_IMAGE_ANIMATED_HINT_PINGPONG, it is better to
1079 display frames in a sequence like: 1->2->3->2->1->2->3->1...
1081 @remark The default type is EVAS_IMAGE_ANIMATED_HINT_LOOP.
1083 @see evas_object_image_animated_get()
1084 @see evas_object_image_animated_frame_count_get()
1085 @see evas_object_image_animated_loop_type_get()
1086 @see evas_object_image_animated_loop_count_get()
1087 @see evas_object_image_animated_frame_duration_get()
1088 @see evas_object_image_animated_frame_set()
1090 return: Evas_Image_Animated_Loop_Hint;
1093 animated_loop_count {
1096 @brief Get the number times the animation of the object loops.
1098 @if MOBILE @since_tizen 2.3
1099 @elseif WEARABLE @since_tizen 2.3.1
1102 @ingroup Evas_Object_Image
1104 @return The number of loop of an animated image object
1106 @remark This returns loop count of image. The loop count is the number of times
1107 the animation will play fully from first to last frame until the animation
1108 should stop (at the final frame).
1110 @remark If 0 is returned, then looping should happen indefinitely (no limit to
1111 the number of times it loops).
1113 @see evas_object_image_animated_get()
1114 @see evas_object_image_animated_frame_count_get()
1115 @see evas_object_image_animated_loop_type_get()
1116 @see evas_object_image_animated_loop_count_get()
1117 @see evas_object_image_animated_frame_duration_get()
1118 @see evas_object_image_animated_frame_set()
1127 Set the 3D scene of a given image of the canvas.
1129 This function sets a 3d scene of a given canvas image.
1131 @see evas_object_image_scene_set
1137 Get the 3D scene of a given image of the canvas.
1139 @return The 3d scene of the given canvas image.
1141 This function returns the 3d scene of a given canvas image.
1143 @see evas_object_image_scene_get
1148 Evas_3D_Scene *scene; /*@ 3D scene on an image object. */
1153 /*@ Set an Evas filter program on this Text Object.
1155 If the program fails to compile (syntax error, invalid
1156 buffer name, etc...), the standard text effects will be
1157 applied instead (SHADOW, etc...). switch back to the
1158 standard text effects.
1161 @note EXPERIMENTAL FEATURE. This is an unstable API,
1162 please use only for testing purposes.
1163 @see @ref evasfiltersref "Evas filters reference"
1168 const(char)* program; /*@ The program code, as defined
1169 by the @ref evasfiltersref "Evas filters script language".
1170 Pass NULL to remove the former program and switch back
1171 to the standard text effect
1174 @note EXPERIMENTAL FEATURE. This is an unstable API,
1175 please use only for testing purposes.
1176 @see @ref evasfiltersref "Evas filters reference"
1182 /*@ Bind an object to use as a mask or texture with Evas Filters.
1184 This will create automatically a new RGBA buffer containing
1185 the source object's pixels (as it is rendered). */
1189 const(char)* name; /*@ Object name as used in the program code */
1190 Eo* eobj; /*@ Eo object to use through proxy rendering */
1195 /*@ Get the value of the extra padding set when a filter is used. */
1196 return: bool; /*@ Returns false if the filter is invalid and padding is 0 */
1200 int l; /*@ Left padding in pixels */
1201 int r; /*@ Right padding in pixels */
1202 int t; /*@ Top padding in pixels */
1203 int b; /*@ Bottom padding in pixels */
1209 /*@ Begin preloading an image object's image data in the background */
1214 @brief Mark a sub-region of the given image object to be redrawn.
1216 @if MOBILE @since_tizen 2.3
1217 @elseif WEARABLE @since_tizen 2.3.1
1220 @ingroup Evas_Object_Image
1222 @remark This function schedules a particular rectangular region of an image
1223 object to be updated (redrawn) at the next rendering cycle. */
1226 @in int x; /*@ X-offset of the region to be updated. */
1227 @in int y; /*@ Y-offset of the region to be updated. */
1228 @in int w; /*@ Width of the region to be updated. */
1229 @in int h; /*@ Height of the region to be updated. */
1232 animated_frame_duration_get @const {
1234 @brief Get the duration of a sequence of frames.
1236 @if MOBILE @since_tizen 2.3
1237 @elseif WEARABLE @since_tizen 2.3.1
1240 @ingroup Evas_Object_Image
1242 @remark This returns total duration that the specified sequence of frames should
1245 @remark If you set start_frame to 1 and frame_num 0, you get frame 1's duration
1246 If you set start_frame to 1 and frame_num 1, you get frame 1's duration +
1249 @see evas_object_image_animated_get()
1250 @see evas_object_image_animated_frame_count_get()
1251 @see evas_object_image_animated_loop_type_get()
1252 @see evas_object_image_animated_loop_count_get()
1253 @see evas_object_image_animated_frame_duration_get()
1254 @see evas_object_image_animated_frame_set()
1258 @in int start_frame; /*@ The first frame */
1259 @in int frame_num; /*@ Number of frames in the sequence */
1264 @brief Sets the raw image data of the given image object.
1266 @if MOBILE @since_tizen 2.3
1267 @elseif WEARABLE @since_tizen 2.3.1
1270 @ingroup Evas_Object_Image
1272 @remark Note that the raw data must be of the same size (see
1273 evas_object_image_size_set(), which has to be called @b before this
1274 one) and colorspace (see evas_object_image_colorspace_set()) of the
1275 image. If data is @c NULL, the current image data will be
1276 freed. Naturally, if one does not set an image object's data
1277 manually, it will still have one, allocated by Evas.
1279 @see evas_object_image_data_get() */
1282 @in void *data; /*@ The raw data, or @c NULL. */
1287 @brief Get a pointer to the raw image data of the given image object.
1289 @if MOBILE @since_tizen 2.3
1290 @elseif WEARABLE @since_tizen 2.3.1
1293 @ingroup Evas_Object_Image
1295 @return The raw image data.
1297 @remark This function returns a pointer to an image object's internal pixel
1298 buffer, for reading only or read/write. If you request it for
1299 writing, the image will be marked dirty so that it gets redrawn at
1302 @remark Each time you call this function on an image object, its data
1303 buffer will have an internal reference counter
1304 incremented. Decrement it back by using
1305 evas_object_image_data_set().
1307 @remark This is best suited for when you want to modify an existing image,
1308 without changing its dimensions.
1310 @remark The contents' format returned by it depend on the color
1311 space of the given image object.
1313 @remark You may want to use evas_object_image_data_update_add() to
1314 inform data changes, if you did any.
1316 @see evas_object_image_data_set() */
1317 return: void * @warn_unused;
1319 @in bool for_writing; /*@ Whether the data being retrieved will be
1320 modified (@c EINA_TRUE) or not (@c EINA_FALSE). */
1324 /*@ Cancel preloading an image object's image data in the background */
1329 @brief Converts the raw image data of the given image object to the
1330 specified colorspace.
1332 @if MOBILE @since_tizen 2.3
1333 @elseif WEARABLE @since_tizen 2.3.1
1336 @ingroup Evas_Object_Image
1338 @remark Note that this function does not modify the raw image data. If the
1339 requested colorspace is the same as the image colorspace nothing is
1340 done and @c NULL is returned. You should use
1341 evas_object_image_colorspace_get() to check the current image
1344 @remark See @ref evas_object_image_colorspace_get.
1346 @return data A newly allocated data in the format specified by to_cspace. */
1348 return: void * @warn_unused;
1350 @in Evas_Colorspace to_cspace; /*@ The colorspace to which the image raw data will be converted. */
1355 @brief Import pixels from given source to a given canvas image object.
1357 @if MOBILE @since_tizen 2.3
1358 @elseif WEARABLE @since_tizen 2.3.1
1361 @ingroup Evas_Object_Image
1363 This function imports pixels from a given source to a given canvas image. */
1367 @in Evas_Pixel_Import_Source *pixels @nonull; /*@ The pixel's source to be imported. */
1372 @brief Reload an image object's image data.
1374 @if MOBILE @since_tizen 2.3
1375 @elseif WEARABLE @since_tizen 2.3.1
1378 @ingroup Evas_Object_Image
1380 This function reloads the image data bound to image object @p obj. */
1384 Eo.Base.constructor;
1386 Eo.Base.dbg_info_get;
1392 Efl.Image.animated.get;
1393 Efl.Image.load_size.set;
1394 Efl.Image.load_size.get;
1395 Efl.Image.smooth_scale.set;
1396 Efl.Image.smooth_scale.get;