Image Object Fill Rectangle Functions
Functions that deal with what areas of the image object are to be tiled with the given image. More...Functions | |
EAPI void | evas_object_image_border_center_fill_set (Evas_Object *obj, Evas_Bool fill) |
Sets if the center part of the given image object (not the border) should be drawn. | |
EAPI Evas_Bool | evas_object_image_border_center_fill_get (Evas_Object *obj) |
Retrieves if the center of the given image object is to be drawn or not. | |
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 of the given 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 of the given image object that the image will be drawn to. |
Detailed Description
Functions that deal with what areas of the image object are to be tiled with the given image.
Function Documentation
EAPI Evas_Bool evas_object_image_border_center_fill_get | ( | Evas_Object * | obj | ) |
Retrieves if the center of the given image object is to be drawn or not.
See evas_object_image_fill_set for more details.
- Parameters:
-
obj The given image object.
- Returns:
- If the center is to be drawn or not.
EAPI void evas_object_image_border_center_fill_set | ( | Evas_Object * | obj, | |
Evas_Bool | fill | |||
) |
Sets if the center part of the given image object (not the border) should be drawn.
When rendering, the image may be scaled to fit the size of the image object. This function sets if the center part of the scaled image is to be drawn or left completely blank. Very useful for frames and decorations.
- Parameters:
-
obj The given image object. fill Whether the center should be drawn.
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 of the given image object that the image will be drawn to.
See evas_object_image_fill_set for more details.
- Parameters:
-
obj The given image object. x Location to store the X coordinate for the top left corner of the image in, or NULL. y Location to store the Y coordinate for the top left corner of the image in, or NULL. w Location to store the width of the image in, or NULL. h Location to store the height of the image in, or NULL.
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 of the given 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.
- Parameters:
-
obj The given 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.