Functions | |
EAPI void | evas_object_image_fill_set (Evas_Object *obj, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h) |
Sets the rectangle on the image object that the image will be drawn to. | |
EAPI void | evas_object_image_fill_get (Evas_Object *obj, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h) |
Retrieves the dimensions of the rectangle on the image object that the image will be drawn to. |
EAPI void evas_object_image_fill_get | ( | Evas_Object * | obj, | |
Evas_Coord * | x, | |||
Evas_Coord * | y, | |||
Evas_Coord * | w, | |||
Evas_Coord * | h | |||
) |
Retrieves the dimensions of the rectangle on the image object that the image will be drawn to.
See evas_object_image_fill_set for more details.
obj | The given evas image object. | |
x | Pointer to an integer to store the X coordinate in. | |
y | Pointer to an integer to store the Y coordinate in. | |
w | Pointer to an integer to store the width in. | |
h | Pointer to an integer to store the height in. |
EAPI void evas_object_image_fill_set | ( | Evas_Object * | obj, | |
Evas_Coord | x, | |||
Evas_Coord | y, | |||
Evas_Coord | w, | |||
Evas_Coord | h | |||
) |
Sets the rectangle on the image object that the image will be drawn to.
Note that the image will be tiled around this one rectangle. To have only one copy of the image drawn, x
and y
must be 0 and w
and h
need to be the width and height of the image object respectively.
The default values for the fill parameters is x
= 0, y
= 0, w
= 32 and h
= 32.
obj | The given evas image object. | |
x | The X coordinate for the top left corner of the image. | |
y | The Y coordinate for the top left corner of the image. | |
w | The width of the image. | |
h | The height of the image. |