Efl.Gfx.Image (interface)

Description

This interface defines a set of common APIs which should be implemented by image objects.

These APIs provide the ability to manipulate how images will be rendered, e.g., determining whether to allow upscaling and downscaling at render time, as well as functionality for detecting errors during the loading process.

Since 1.23

Members

border_insets (get, set)

Dimensions of this image's border, a region that does not scale with the center area.
void efl_gfx_image_border_insets_get(const Eo *obj, int *l, int *r, int *t, int *b);
void efl_gfx_image_border_insets_set(Eo *obj, int l, int r, int t, int b);


border_insets_scale (get, set)

Scaling factor applied to the image borders.
double efl_gfx_image_border_insets_scale_get(const Eo *obj);
void efl_gfx_image_border_insets_scale_set(Eo *obj, double scale);


can_downscale (get, set)

If true, the image may be scaled to a smaller size. If false, the image will never be resized smaller than its native size.
Eina_Bool efl_gfx_image_can_downscale_get(const Eo *obj);
void efl_gfx_image_can_downscale_set(Eo *obj, Eina_Bool downscale);


can_upscale (get, set)

If true, the image may be scaled to a larger size. If false, the image will never be resized larger than its native size.
Eina_Bool efl_gfx_image_can_upscale_get(const Eo *obj);
void efl_gfx_image_can_upscale_set(Eo *obj, Eina_Bool upscale);


center_fill_mode (get, set)

Specifies how the center part of the object (not the borders) should be drawn when EFL is rendering it.
Efl_Gfx_Center_Fill_Mode efl_gfx_image_center_fill_mode_get(const Eo *obj);
void efl_gfx_image_center_fill_mode_set(Eo *obj, Efl_Gfx_Center_Fill_Mode fill);


content_hint (get, set)

Content hint setting for the image. These hints might be used by EFL to enable optimizations.
Efl_Gfx_Image_Content_Hint efl_gfx_image_content_hint_get(const Eo *obj);
void efl_gfx_image_content_hint_set(Eo *obj, Efl_Gfx_Image_Content_Hint hint);


content_region (get)

Eina_Rect efl_gfx_image_content_region_get(const Eo *obj);


image_load_error (get)

Eina_Error efl_gfx_image_load_error_get(const Eo *obj);


image_size (get)

Eina_Size2D efl_gfx_image_size_get(const Eo *obj);


ratio (get)

double efl_gfx_image_ratio_get(const Eo *obj);


scale_hint (get, set)

The scale hint of a given image of the canvas.
Efl_Gfx_Image_Scale_Hint efl_gfx_image_scale_hint_get(const Eo *obj);
void efl_gfx_image_scale_hint_set(Eo *obj, Efl_Gfx_Image_Scale_Hint hint);


scale_method (get, set)

Determine how the image is scaled at render time.
Efl_Gfx_Image_Scale_Method efl_gfx_image_scale_method_get(const Eo *obj);
void efl_gfx_image_scale_method_set(Eo *obj, Efl_Gfx_Image_Scale_Method scale_method);


smooth_scale (get, set)

Whether to use high-quality image scaling algorithm for this image.
Eina_Bool efl_gfx_image_smooth_scale_get(const Eo *obj);
void efl_gfx_image_smooth_scale_set(Eo *obj, Eina_Bool smooth_scale);


stretch_region (get, set)

This property defines the stretchable pixels region of an image.
void efl_gfx_image_stretch_region_get(const Eo *obj, Eina_Iterator **horizontal, Eina_Iterator **vertical);
Eina_Error efl_gfx_image_stretch_region_set(Eo *obj, Eina_Iterator *horizontal, Eina_Iterator *vertical);


Events

image,preload_state,changed

If true, image data has been preloaded and can be displayed. If false, the image data has been unloaded and can no longer be displayed.
EFL_GFX_IMAGE_EVENT_IMAGE_PRELOAD_STATE_CHANGED(Eina_Bool)


image,resized

Image was resized (its pixel data). The event data is the image's new size.
EFL_GFX_IMAGE_EVENT_IMAGE_RESIZED(Eina_Size2D)