get {
[[Retrieve the coordinates of a given image object's selective
(source image) load region.
-
- Note: Use $null pointers on the coordinates you're not
- interested in: they'll be ignored by the function.
]]
}
values {
- x: int; [[X-offset of the region to be loaded.]]
- y: int; [[Y-offset of the region to be loaded.]]
- w: int; [[Width of the region to be loaded.]]
- h: int; [[Height of the region to be loaded.]]
+ region: Eina.Rect; [[A region of the image.]]
}
}
@property load_orientation {
}
EOLIAN static void
-_efl_canvas_image_efl_image_load_load_region_set(Eo *eo_obj, void *_pd EINA_UNUSED EINA_UNUSED, int x, int y, int w, int h)
+_efl_canvas_image_efl_image_load_load_region_set(Eo *eo_obj, void *_pd EINA_UNUSED EINA_UNUSED, Eina_Rect region)
{
- _evas_image_load_region_set(eo_obj, x, y, w, h);
+ _evas_image_load_region_set(eo_obj, region.x, region.y, region.w, region.h);
}
void
if (h) *h = o->load_opts->region.h;
}
-EOLIAN static void
-_efl_canvas_image_efl_image_load_load_region_get(Eo *eo_obj, void *_pd EINA_UNUSED EINA_UNUSED, int *x, int *y, int *w, int *h)
+EOLIAN static Eina_Rect
+_efl_canvas_image_efl_image_load_load_region_get(Eo *eo_obj, void *_pd EINA_UNUSED EINA_UNUSED)
{
- _evas_image_load_region_get(eo_obj, x, y, w, h);
+ Eina_Rect r;
+ _evas_image_load_region_get(eo_obj, &r.x, &r.y, &r.w, &r.h);
+ return r;
}
void