Gradient Object Fill Rectangle Functions
Functions that deal with what areas of the gradient object are to be tiled with the gradient. More...Functions | |
| EAPI void | evas_object_gradient_fill_set (Evas_Object *obj, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h) |
| Sets the rectangle on the gradient object that the gradient will be drawn to. | |
| EAPI void | evas_object_gradient_fill_get (const Evas_Object *obj, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h) |
| Retrieves the dimensions of the rectangle on the gradient object that the gradient will use as its fill rect. | |
Detailed Description
Functions that deal with what areas of the gradient object are to be tiled with the gradient.
Function Documentation
| EAPI void evas_object_gradient_fill_get | ( | const Evas_Object * | obj, | |
| Evas_Coord * | x, | |||
| Evas_Coord * | y, | |||
| Evas_Coord * | w, | |||
| Evas_Coord * | h | |||
| ) |
Retrieves the dimensions of the rectangle on the gradient object that the gradient will use as its fill rect.
See evas_object_gradient_fill_set for more details.
- Parameters:
-
obj The given evas gradient object. x Pointer to an Evas_Coord to store the X coordinate in. y Pointer to an Evas_Coord to store the Y coordinate in. w Pointer to an Evas_Coord to store the width in. h Pointer to an Evas_Coord to store the height in.
| EAPI void evas_object_gradient_fill_set | ( | Evas_Object * | obj, | |
| Evas_Coord | x, | |||
| Evas_Coord | y, | |||
| Evas_Coord | w, | |||
| Evas_Coord | h | |||
| ) |
Sets the rectangle on the gradient object that the gradient will be drawn to.
Note that the gradient may be tiled around this one rectangle, according to its spread value - restrict, repeat, or reflect. To have only one 'cycle' of the gradient drawn, the spread value must be set to restrict, or x and y must be 0 and w and h need to be the width and height of the gradient object respectively.
The default values for the fill parameters is x = 0, y = 0, w = 32 and h = 32.
- Parameters:
-
obj The given evas gradient object. x The X coordinate for the top left corner of the rect. y The Y coordinate for the top left corner of the rect. w The width of the rect. h The height of the rect.