Class image. More...
Public Member Functions | |
image (Eo *eo) | |
Eo Constructor. More... | |
image (std::nullptr_t) | |
nullptr_t Constructor. More... | |
image (image const &other) | |
Copy Constructor. | |
void | preload_begin () const |
Begin preloading an image object's image data in the background. | |
void | data_update_add (int x_, int y_, int w_, int h_) const |
Mark a sub-region of the given image object to be redrawn. More... | |
double | animated_frame_duration_get (int start_frame_, int frame_num_) const |
Get the duration of a sequence of frames. More... | |
void | data_set (void *data_) const |
Sets the raw image data of the given image object. More... | |
void * | data_get (bool for_writing_) const |
Get a pointer to the raw image data of the given image object. More... | |
void | preload_cancel () const |
Cancel preloading an image object's image data in the background. | |
double | load_dpi_get () const |
Get the DPI resolution of a loaded image object in the canvas. More... | |
void | load_dpi_set (double dpi_) const |
Set the DPI resolution of an image object's source image. More... | |
bool | source_clip_get () const |
Determine whether an object is clipped by source object's clipper. More... | |
void | source_clip_set (bool source_clip_) const |
Clip the proxy object with the source object's clipper. More... | |
::evas::object | source_get () const |
Get the current source object of an image object. More... | |
bool | source_set (::evas::object src_) const |
Set the source object on an image object to used as a proxy. More... | |
bool | filled_get () const |
Retrieve whether the image object's fill property should track the object's size. More... | |
void | filled_set (bool filled_) const |
Set whether the image object's fill property should track the object's size. More... | |
Evas_Image_Content_Hint | content_hint_get () const |
Get the content hint setting of a given image object of the canvas. More... | |
void | content_hint_set (Evas_Image_Content_Hint hint_) const |
Set the content hint setting of a given image object of the canvas. More... | |
void | load_region_get (int *x_, int *y_, int *w_, int *h_) const |
Retrieve the coordinates of a given image object's selective (source image) load region. More... | |
void | load_region_set (int x_, int y_, int w_, int h_) const |
Inform a given image object to load a selective region of its source image. More... | |
bool | alpha_get () const |
Retrieve whether alpha channel data is being used on the given image object. More... | |
void | alpha_set (bool alpha_) const |
Enable or disable alpha channel usage on the given image object. More... | |
void | border_get (int *l_, int *r_, int *t_, int *b_) const |
Retrieve the dimensions for an image object's border, a region which won't ever be scaled together with its center. More... | |
void | border_set (int l_, int r_, int t_, int b_) const |
Set the dimensions for an image object's border, a region which won't ever be scaled together with its center. More... | |
double | border_scale_get () const |
Retrieves the scaling factor (multiplier) for the borders of an image object. More... | |
void | border_scale_set (double scale_) const |
Sets the scaling factor (multiplier) for the borders of an image object. More... | |
bool | pixels_dirty_get () const |
Retrieves whether the given image object is dirty (needs to be redrawn). More... | |
void | pixels_dirty_set (bool dirty_) const |
Mark whether the given image object is dirty and needs to request its pixels. More... | |
const Evas_Video_Surface * | video_surface_get () const |
Get the video surface linekd to a given image of the canvas. More... | |
void | video_surface_set (Evas_Video_Surface *surf_) const |
Set the video surface linked to a given image of the canvas. More... | |
unsigned int | video_surface_caps_get () const |
Get the video surface capabilities to a given image of the canvas. | |
void | video_surface_caps_set (unsigned int caps_) const |
Set the video surface capabilities to a given image of the canvas. | |
bool | load_orientation_get () const |
Get if the orientation information in the image file should be honored. More... | |
void | load_orientation_set (bool enable_) const |
Define if the orientation information in the image file should be honored. More... | |
Evas_Border_Fill_Mode | border_center_fill_get () const |
Retrieves how the center part of the given image object (not the borders) is to be drawn when Evas is rendering it. More... | |
void | border_center_fill_set (Evas_Border_Fill_Mode fill_) const |
Sets how the center part of the given image object (not the borders) should be drawn when Evas is rendering it. More... | |
bool | source_visible_get () const |
Get the state of the source object visibility. More... | |
void | source_visible_set (bool visible_) const |
Set the source object to be visible or not. More... | |
Evas_Native_Surface * | native_surface_get () const |
Get the native surface of a given image of the canvas. More... | |
void | native_surface_set (Evas_Native_Surface *surf_) const |
Set the native surface of a given image of the canvas. More... | |
int | load_scale_down_get () const |
get the scale down factor of a given image object's source image, when loading it. More... | |
void | load_scale_down_set (int scale_down_) const |
Set the scale down factor of a given image object's source image, when loading it. More... | |
Evas_Image_Scale_Hint | scale_hint_get () const |
Get the scale hint of a given image of the canvas. More... | |
void | scale_hint_set (Evas_Image_Scale_Hint hint_) const |
Set the scale hint of a given image of the canvas. More... | |
bool | source_events_get () const |
Determine whether an object is set to source events. More... | |
void | source_events_set (bool source_) const |
Set whether an Evas object is to source events. More... | |
Evas_Colorspace | colorspace_get () const |
Get the colorspace of a given image of the canvas. More... | |
void | colorspace_set (Evas_Colorspace cspace_) const |
Set the colorspace of a given image of the canvas. More... | |
void | pixels_get_callback_set (Evas_Object_Image_Pixels_Get_Cb func_, void *data_) const |
Set the callback function to get pixels from a canvas' image. More... | |
void | data_copy_set (void *data_) const |
Replaces the raw image data of the given image object. More... | |
void | animated_frame_set (int frame_index_) const |
Set the frame to current frame of an image object. More... | |
bool | region_support_get () const |
Get the support state of a given image. More... | |
Evas_Load_Error | load_error_get () const |
Retrieves a number representing any error that occurred during the last loading of the given image object's source image. More... | |
int | animated_frame_count_get () const |
Get the total number of frames of the image object. More... | |
int | stride_get () const |
Retrieves the row stride of the given image object. More... | |
Evas_Image_Animated_Loop_Hint | animated_loop_type_get () const |
Get the kind of looping the image object does. More... | |
int | animated_loop_count_get () const |
Get the number times the animation of the object loops. More... | |
::evas::canvas3d::scene | scene_get () const |
Get the 3D scene of a given image of the canvas. More... | |
void | scene_set (::evas::canvas3d::scene scene_) const |
Set the 3D scene of a given image of the canvas. More... | |
Evas_Image_Orient | orient_get () const |
Get the image orientation. More... | |
void | orient_set (Evas_Image_Orient orient_) const |
Set the image orientation. More... | |
template<typename F > | |
::efl::eo::signal_connection | callback_async_error_add (F &&callback_,::efl::eo::callback_priority priority_=::efl::eo::callback_priorities::default_) |
template<typename T > | |
void | callback_async_error_call (T *info) |
template<typename F > | |
::efl::eo::signal_connection | callback_async_opened_add (F &&callback_,::efl::eo::callback_priority priority_=::efl::eo::callback_priorities::default_) |
template<typename T > | |
void | callback_async_opened_call (T *info) |
template<typename F > | |
::efl::eo::signal_connection | callback_callback_add_add (F &&callback_,::efl::eo::callback_priority priority_=::efl::eo::callback_priorities::default_) |
template<typename T > | |
void | callback_callback_add_call (T *info) |
template<typename F > | |
::efl::eo::signal_connection | callback_callback_del_add (F &&callback_,::efl::eo::callback_priority priority_=::efl::eo::callback_priorities::default_) |
template<typename T > | |
void | callback_callback_del_call (T *info) |
template<typename F > | |
::efl::eo::signal_connection | callback_changed_size_hints_add (F &&callback_,::efl::eo::callback_priority priority_=::efl::eo::callback_priorities::default_) |
template<typename T > | |
void | callback_changed_size_hints_call (T *info) |
template<typename F > | |
::efl::eo::signal_connection | callback_focus_in_add (F &&callback_,::efl::eo::callback_priority priority_=::efl::eo::callback_priorities::default_) |
template<typename T > | |
void | callback_focus_in_call (T *info) |
template<typename F > | |
::efl::eo::signal_connection | callback_focus_out_add (F &&callback_,::efl::eo::callback_priority priority_=::efl::eo::callback_priorities::default_) |
template<typename T > | |
void | callback_focus_out_call (T *info) |
template<typename F > | |
::efl::eo::signal_connection | callback_free_add (F &&callback_,::efl::eo::callback_priority priority_=::efl::eo::callback_priorities::default_) |
template<typename T > | |
void | callback_free_call (T *info) |
template<typename F > | |
::efl::eo::signal_connection | callback_hide_add (F &&callback_,::efl::eo::callback_priority priority_=::efl::eo::callback_priorities::default_) |
template<typename T > | |
void | callback_hide_call (T *info) |
template<typename F > | |
::efl::eo::signal_connection | callback_hold_add (F &&callback_,::efl::eo::callback_priority priority_=::efl::eo::callback_priorities::default_) |
template<typename T > | |
void | callback_hold_call (T *info) |
template<typename F > | |
::efl::eo::signal_connection | callback_image_preloaded_add (F &&callback_,::efl::eo::callback_priority priority_=::efl::eo::callback_priorities::default_) |
template<typename T > | |
void | callback_image_preloaded_call (T *info) |
template<typename F > | |
::efl::eo::signal_connection | callback_image_resize_add (F &&callback_,::efl::eo::callback_priority priority_=::efl::eo::callback_priorities::default_) |
template<typename T > | |
void | callback_image_resize_call (T *info) |
template<typename F > | |
::efl::eo::signal_connection | callback_image_unloaded_add (F &&callback_,::efl::eo::callback_priority priority_=::efl::eo::callback_priorities::default_) |
template<typename T > | |
void | callback_image_unloaded_call (T *info) |
template<typename F > | |
::efl::eo::signal_connection | callback_key_down_add (F &&callback_,::efl::eo::callback_priority priority_=::efl::eo::callback_priorities::default_) |
template<typename T > | |
void | callback_key_down_call (T *info) |
template<typename F > | |
::efl::eo::signal_connection | callback_key_up_add (F &&callback_,::efl::eo::callback_priority priority_=::efl::eo::callback_priorities::default_) |
template<typename T > | |
void | callback_key_up_call (T *info) |
template<typename F > | |
::efl::eo::signal_connection | callback_mouse_down_add (F &&callback_,::efl::eo::callback_priority priority_=::efl::eo::callback_priorities::default_) |
template<typename T > | |
void | callback_mouse_down_call (T *info) |
template<typename F > | |
::efl::eo::signal_connection | callback_mouse_in_add (F &&callback_,::efl::eo::callback_priority priority_=::efl::eo::callback_priorities::default_) |
template<typename T > | |
void | callback_mouse_in_call (T *info) |
template<typename F > | |
::efl::eo::signal_connection | callback_mouse_move_add (F &&callback_,::efl::eo::callback_priority priority_=::efl::eo::callback_priorities::default_) |
template<typename T > | |
void | callback_mouse_move_call (T *info) |
template<typename F > | |
::efl::eo::signal_connection | callback_mouse_out_add (F &&callback_,::efl::eo::callback_priority priority_=::efl::eo::callback_priorities::default_) |
template<typename T > | |
void | callback_mouse_out_call (T *info) |
template<typename F > | |
::efl::eo::signal_connection | callback_mouse_up_add (F &&callback_,::efl::eo::callback_priority priority_=::efl::eo::callback_priorities::default_) |
template<typename T > | |
void | callback_mouse_up_call (T *info) |
template<typename F > | |
::efl::eo::signal_connection | callback_mouse_wheel_add (F &&callback_,::efl::eo::callback_priority priority_=::efl::eo::callback_priorities::default_) |
template<typename T > | |
void | callback_mouse_wheel_call (T *info) |
template<typename F > | |
::efl::eo::signal_connection | callback_move_add (F &&callback_,::efl::eo::callback_priority priority_=::efl::eo::callback_priorities::default_) |
template<typename T > | |
void | callback_move_call (T *info) |
template<typename F > | |
::efl::eo::signal_connection | callback_multi_down_add (F &&callback_,::efl::eo::callback_priority priority_=::efl::eo::callback_priorities::default_) |
template<typename T > | |
void | callback_multi_down_call (T *info) |
template<typename F > | |
::efl::eo::signal_connection | callback_multi_move_add (F &&callback_,::efl::eo::callback_priority priority_=::efl::eo::callback_priorities::default_) |
template<typename T > | |
void | callback_multi_move_call (T *info) |
template<typename F > | |
::efl::eo::signal_connection | callback_multi_up_add (F &&callback_,::efl::eo::callback_priority priority_=::efl::eo::callback_priorities::default_) |
template<typename T > | |
void | callback_multi_up_call (T *info) |
template<typename F > | |
::efl::eo::signal_connection | callback_resize_add (F &&callback_,::efl::eo::callback_priority priority_=::efl::eo::callback_priorities::default_) |
template<typename T > | |
void | callback_resize_call (T *info) |
template<typename F > | |
::efl::eo::signal_connection | callback_restack_add (F &&callback_,::efl::eo::callback_priority priority_=::efl::eo::callback_priorities::default_) |
template<typename T > | |
void | callback_restack_call (T *info) |
template<typename F > | |
::efl::eo::signal_connection | callback_show_add (F &&callback_,::efl::eo::callback_priority priority_=::efl::eo::callback_priorities::default_) |
template<typename T > | |
void | callback_show_call (T *info) |
image (::efl::eo::parent_type _p) | |
Constructs a new evas::image object. More... | |
![]() | |
concrete (Eo *eo) | |
Class constructor. More... | |
concrete () | |
Default constructor. More... | |
~concrete () | |
Class destructor. | |
concrete (concrete const &other) | |
concrete (concrete &&other) | |
concrete & | operator= (concrete const &other) |
Assignment operator. | |
concrete & | operator= (concrete &&other) |
Eo * | _eo_ptr () const |
Return a pointer to the EO Object stored in this instance. More... | |
Eo * | _release () |
Releases the reference from this concrete object and return the pointer to the EO Object stored in this instance. More... | |
void | _reset (Eo *_ptr=nullptr) |
Reset the current pointer to reference a new Eo object. | |
int | ref_get () const |
Get the reference count of this object. More... | |
void | parent_set (concrete parent) |
Set the parent of this object. More... | |
eina::optional< concrete > | parent_get () |
Get the parent of this object. More... | |
Eo_Dbg_Info | dbg_info_get () |
Get debug information of this object. More... | |
operator bool () const | |
Static Public Member Functions | |
static Eo_Class const * | _eo_class () |
Additional Inherited Members | |
![]() | |
Eo * | _eo_raw |
The opaque EO Object. | |
Class image.
|
inlineexplicit |
Constructs a new evas::image object.
Constructs a new evas::image object. If you want this object to be a child of another Eo object, use an efl::eo::parent expression, like the example.
Example:
|
inlineexplicit |
Eo Constructor.
Constructs the object from an Eo* pointer stealing its ownership.
eo | The Eo object pointer. |
|
inlineexplicit |
nullptr_t Constructor.
Constructs an empty (null) object.
void evas::image::data_update_add | ( | int | x_, |
int | y_, | ||
int | w_, | ||
int | h_ | ||
) | const |
Mark a sub-region of the given image object to be redrawn.
This function schedules a particular rectangular region of an image object to be updated (redrawn) at the next rendering cycle.
x | X-offset of the region to be updated. |
y | Y-offset of the region to be updated. |
w | Width of the region to be updated. |
h | Height of the region to be updated. |
double evas::image::animated_frame_duration_get | ( | int | start_frame_, |
int | frame_num_ | ||
) | const |
Get the duration of a sequence of frames.
This returns total duration that the specified sequence of frames should take in seconds.
If you set start_frame to 1 and frame_num 0, you get frame 1's duration If you set start_frame to 1 and frame_num 1, you get frame 1's duration + frame2's duration
start_frame | The first frame |
frame_num | Number of frames in the sequence |
void evas::image::data_set | ( | void * | data_ | ) | const |
Sets the raw image data of the given image object.
Note that the raw data must be of the same size (see evas_object_image_size_set(), which has to be called before this one) and colorspace (see evas_object_image_colorspace_set()) of the image. If data is NULL
, the current image data will be freed. Naturally, if one does not set an image object's data manually, it will still have one, allocated by Evas.
data | The raw data, or NULL . |
void* evas::image::data_get | ( | bool | for_writing_ | ) | const |
Get a pointer to the raw image data of the given image object.
This function returns a pointer to an image object's internal pixel buffer, for reading only or read/write. If you request it for writing, the image will be marked dirty so that it gets redrawn at the next update.
Each time you call this function on an image object, its data buffer will have an internal reference counter incremented. Decrement it back by using evas_object_image_data_set().
This is best suited for when you want to modify an existing image, without changing its dimensions.
for_writing | Whether the data being retrieved will be modified (EINA_TRUE ) or not (EINA_FALSE ). |
double evas::image::load_dpi_get | ( | ) | const |
Get the DPI resolution of a loaded image object in the canvas.
This function returns the DPI resolution of the given canvas image.
void evas::image::load_dpi_set | ( | double | dpi_ | ) | const |
Set the DPI resolution of an image object's source image.
This function sets the DPI resolution of a given loaded canvas image. Most useful for the SVG image loader.
bool evas::image::source_clip_get | ( | ) | const |
Determine whether an object is clipped by source object's clipper.
EINA_TRUE
if source clip is enabled, EINA_FALSE
otherwise.void evas::image::source_clip_set | ( | bool | source_clip_ | ) | const |
Clip the proxy object with the source object's clipper.
::evas::object evas::image::source_get | ( | ) | const |
Get the current source object of an image object.
NULL
, if not in "proxy mode" (or on errors).bool evas::image::source_set | ( | ::evas::object | src_ | ) | const |
Set the source object on an image object to used as a proxy.
EINA_TRUE
on success, EINA_FALSE
on error.If an image object is set to behave as a proxy, it will mirror the rendering contents of a given source object in its drawing region, without affecting that source in any way. The source must be another valid Evas object. Other effects may be applied to the proxy, such as a map (see evas_object_map_set()) to create a reflection of the original object (for example).
Any existing source object on obj
will be removed after this call. Setting src
to NULL
clears the proxy object (not in "proxy state" anymore).
bool evas::image::filled_get | ( | ) | const |
Retrieve whether the image object's fill property should track the object's size.
EINA_TRUE
if it is tracking, EINA_FALSE
, if not (and evas_object_fill_set() must be called manually).void evas::image::filled_set | ( | bool | filled_ | ) | const |
Set whether the image object's fill property should track the object's size.
If setting
is EINA_TRUE
, then every evas_object_resize() will automatically trigger a call to evas_object_image_fill_set() with the that new size (and 0
, 0
as source image's origin), so the bound image will fill the whole object's area.
Evas_Image_Content_Hint evas::image::content_hint_get | ( | ) | const |
Get the content hint setting of a given image object of the canvas.
This function returns the content hint value of the given image of the canvas.
void evas::image::content_hint_set | ( | Evas_Image_Content_Hint | hint_ | ) | const |
Set the content hint setting of a given image object of the canvas.
This function sets the content hint value of the given image of the canvas. For example, if you're on the GL engine and your driver implementation supports it, setting this hint to EVAS_IMAGE_CONTENT_HINT_DYNAMIC will make it need zero copies at texture upload time, which is an "expensive" operation.
void evas::image::load_region_get | ( | int * | x_, |
int * | y_, | ||
int * | w_, | ||
int * | h_ | ||
) | const |
Retrieve the coordinates of a given image object's selective (source image) load region.
NULL
pointers on the coordinates you're not interested in: they'll be ignored by the function.void evas::image::load_region_set | ( | int | x_, |
int | y_, | ||
int | w_, | ||
int | h_ | ||
) | const |
Inform a given image object to load a selective region of its source image.
This function is useful when one is not showing all of an image's area on its image object.
bool evas::image::alpha_get | ( | ) | const |
Retrieve whether alpha channel data is being used on the given image object.
EINA_TRUE
) or not (EINA_FALSE
).This function returns EINA_TRUE
if the image object's alpha channel is being used, or EINA_FALSE
otherwise.
See evas_object_image_alpha_set() for more details.
void evas::image::alpha_set | ( | bool | alpha_ | ) | const |
Enable or disable alpha channel usage on the given image object.
This function sets a flag on an image object indicating whether or not to use alpha channel data. A value of EINA_TRUE
makes it use alpha channel data, and EINA_FALSE
makes it ignore that data. Note that this has nothing to do with an object's color as manipulated by evas_object_color_set().
void evas::image::border_get | ( | int * | l_, |
int * | r_, | ||
int * | t_, | ||
int * | b_ | ||
) | const |
Retrieve the dimensions for an image object's border, a region which won't ever be scaled together with its center.
NULL
pointers on the border components you're not interested in: they'll be ignored by the function.See evas_object_image_border_set() for more details.
void evas::image::border_set | ( | int | l_, |
int | r_, | ||
int | t_, | ||
int | b_ | ||
) | const |
Set the dimensions for an image object's border, a region which won't ever be scaled together with its center.
When Evas is rendering, an image source may be scaled to fit the size of its image object. This function sets an area from the borders of the image inwards which is not to be scaled. This function is useful for making frames and for widget theming, where, for example, buttons may be of varying sizes, but their border size must remain constant.
The units used for l
, r
, t
and b
are canvas units.
l
, r
, t
and b
start as 0
.See the following figures for visual explanation:
///
/// Full-size
///
///
/// Full-size
///
double evas::image::border_scale_get | ( | ) | const |
Retrieves the scaling factor (multiplier) for the borders of an image object.
void evas::image::border_scale_set | ( | double | scale_ | ) | const |
Sets the scaling factor (multiplier) for the borders of an image object.
bool evas::image::pixels_dirty_get | ( | ) | const |
Retrieves whether the given image object is dirty (needs to be redrawn).
void evas::image::pixels_dirty_set | ( | bool | dirty_ | ) | const |
Mark whether the given image object is dirty and needs to request its pixels.
This function will only properly work if a pixels get callback has been set.
const Evas_Video_Surface* evas::image::video_surface_get | ( | ) | const |
Get the video surface linekd to a given image of the canvas.
This function returns the video surface linked to a given canvas image.
void evas::image::video_surface_set | ( | Evas_Video_Surface * | surf_ | ) | const |
Set the video surface linked to a given image of the canvas.
This function links a video surface to a given canvas image.
bool evas::image::load_orientation_get | ( | ) | const |
Get if the orientation information in the image file should be honored.
void evas::image::load_orientation_set | ( | bool | enable_ | ) | const |
Define if the orientation information in the image file should be honored.
Evas_Border_Fill_Mode evas::image::border_center_fill_get | ( | ) | const |
Retrieves how the center part of the given image object (not the borders) is to be drawn when Evas is rendering it.
obj
(a value in Evas_Border_Fill_Mode).See evas_object_image_fill_set() for more details.
void evas::image::border_center_fill_set | ( | Evas_Border_Fill_Mode | fill_ | ) | const |
Sets how the center part of the given image object (not the borders) should be drawn when Evas is rendering it.
This function sets how the center part of the image object's source image is to be drawn, which must be one of the values in Evas_Border_Fill_Mode. By center we mean the complementary part of that defined by evas_object_image_border_set(). This one is very useful for making frames and decorations. You would most probably also be using a filled image (as in evas_object_image_filled_set()) to use as a frame.
bool evas::image::source_visible_get | ( | ) | const |
Get the state of the source object visibility.
EINA_TRUE
if source object is visible, EINA_FALSE
otherwise.void evas::image::source_visible_set | ( | bool | visible_ | ) | const |
Set the source object to be visible or not.
If the visible
set to EINA_FALSE
, the source object of the proxy(obj
) will be invisible.
This API works differently to evas_object_show() and evas_object_hide(). Once source object is hidden by evas_object_hide() then the proxy object will be hidden as well. Actually in this case both objects are excluded from the Evas internal update circle.
By this API, instead, one can toggle the visibility of a proxy's source object remaining the proxy visibility untouched.
Evas_Native_Surface* evas::image::native_surface_get | ( | ) | const |
Get the native surface of a given image of the canvas.
This function returns the native surface of a given canvas image.
void evas::image::native_surface_set | ( | Evas_Native_Surface * | surf_ | ) | const |
Set the native surface of a given image of the canvas.
This function sets a native surface of a given canvas image.
int evas::image::load_scale_down_get | ( | ) | const |
get the scale down factor of a given image object's source image, when loading it.
void evas::image::load_scale_down_set | ( | int | scale_down_ | ) | const |
Set the scale down factor of a given image object's source image, when loading it.
This function sets the scale down factor of a given canvas image. Most useful for the SVG image loader.
Evas_Image_Scale_Hint evas::image::scale_hint_get | ( | ) | const |
Get the scale hint of a given image of the canvas.
obj
, a value in #Evas_Image_Scale_Hint.This function returns the scale hint value of the given image object of the canvas.
void evas::image::scale_hint_set | ( | Evas_Image_Scale_Hint | hint_ | ) | const |
Set the scale hint of a given image of the canvas.
This function sets the scale hint value of the given image object in the canvas, which will affect how Evas is to cache scaled versions of its original source image.
bool evas::image::source_events_get | ( | ) | const |
Determine whether an object is set to source events.
EINA_TRUE
if source object has events, EINA_FALSE
otherwise.void evas::image::source_events_set | ( | bool | source_ | ) | const |
Set whether an Evas object is to source events.
Set whether an Evas object is to repeat events to source.
If source
is EINA_TRUE
, it will make events on obj
to also be repeated for the source object (see evas_object_image_source_set()). Even the obj
and source geometries are different, the event position will be transformed to the source object's space.
If source
is EINA_FALSE
, events occurring on obj
will be processed only on it.
Evas_Colorspace evas::image::colorspace_get | ( | ) | const |
Get the colorspace of a given image of the canvas.
This function returns the colorspace of given canvas image.
void evas::image::colorspace_set | ( | Evas_Colorspace | cspace_ | ) | const |
Set the colorspace of a given image of the canvas.
This function sets the colorspace of given canvas image.
void evas::image::pixels_get_callback_set | ( | Evas_Object_Image_Pixels_Get_Cb | func_, |
void * | data_ | ||
) | const |
Set the callback function to get pixels from a canvas' image.
This functions sets a function to be the callback function that get pixels from a image of the canvas.
void evas::image::data_copy_set | ( | void * | data_ | ) | const |
Replaces the raw image data of the given image object.
This function lets the application replace an image object's internal pixel buffer with an user-allocated one. For best results, you should generally first call evas_object_image_size_set() with the width and height for the new buffer.
This call is best suited for when you will be using image data with different dimensions than the existing image data, if any. If you only need to modify the existing image in some fashion, then using evas_object_image_data_get() is probably what you are after.
Note that the caller is responsible for freeing the buffer when finished with it, as user-set image data will not be automatically freed when the image object is deleted.
See evas_object_image_data_get() for more details.
void evas::image::animated_frame_set | ( | int | frame_index_ | ) | const |
Set the frame to current frame of an image object.
This set image object's current frame to frame_num with 1 being the first frame.
bool evas::image::region_support_get | ( | ) | const |
Get the support state of a given image.
This function returns the state of the region support of given image
Evas_Load_Error evas::image::load_error_get | ( | ) | const |
Retrieves a number representing any error that occurred during the last loading of the given image object's source image.
int evas::image::animated_frame_count_get | ( | ) | const |
Get the total number of frames of the image object.
This returns total number of frames the image object supports (if animated)
int evas::image::stride_get | ( | ) | const |
Retrieves the row stride of the given image object.
The row stride is the number of bytes between the start of a row and the start of the next row for image data.
Evas_Image_Animated_Loop_Hint evas::image::animated_loop_type_get | ( | ) | const |
Get the kind of looping the image object does.
This returns the kind of looping the image object wants to do.
If it returns EVAS_IMAGE_ANIMATED_HINT_LOOP, you should display frames in a sequence like: 1->2->3->1->2->3->1... If it returns EVAS_IMAGE_ANIMATED_HINT_PINGPONG, it is better to display frames in a sequence like: 1->2->3->2->1->2->3->1...
The default type is EVAS_IMAGE_ANIMATED_HINT_LOOP.
int evas::image::animated_loop_count_get | ( | ) | const |
Get the number times the animation of the object loops.
This returns loop count of image. The loop count is the number of times the animation will play fully from first to last frame until the animation should stop (at the final frame).
If 0 is returned, then looping should happen indefinitely (no limit to the number of times it loops).
::evas::canvas3d::scene evas::image::scene_get | ( | ) | const |
Get the 3D scene of a given image of the canvas.
This function returns the 3d scene of a given canvas image.
void evas::image::scene_set | ( | ::evas::canvas3d::scene | scene_ | ) | const |
Set the 3D scene of a given image of the canvas.
This function sets a 3d scene of a given canvas image.
Evas_Image_Orient evas::image::orient_get | ( | ) | const |
Get the image orientation.
void evas::image::orient_set | ( | Evas_Image_Orient | orient_ | ) | const |
Set the image orientation.
This function allows to rotate or flip the image.