Evas_Object_Gradient2_Group

Langue: en

Version: 373822 (fedora - 01/12/10)

Section: 3 (Bibliothèques de fonctions)

NAME

Gradient2 Object Functions -

Functions that work on evas gradient2 objects.

Functions


EAPI void evas_object_gradient2_color_np_stop_insert (Evas_Object *obj, int r, int g, int b, int a, float pos)
Inserts a color stop to the given evas gradient object.
EAPI void evas_object_gradient2_clear (Evas_Object *obj)
Deletes all stops set for the given evas gradient object or any set data.
EAPI void evas_object_gradient2_fill_spread_set (Evas_Object *obj, int spread)
Sets the tiling mode for the given evas gradient object's fill.
EAPI int evas_object_gradient2_fill_spread_get (const Evas_Object *obj)
Retrieves the spread (tiling mode) for the given gradient object's fill.
EAPI Evas_Object * evas_object_gradient2_linear_add (Evas *e)
Adds a gradient object to the given evas.
EAPI void evas_object_gradient2_linear_fill_set (Evas_Object *obj, float x0, float y0, float x1, float y1)
Sets the start and end points of the linear gradient geometry for the object.
EAPI Evas_Object * evas_object_gradient2_radial_add (Evas *e)
Adds a gradient object to the given evas.
EAPI void evas_object_gradient2_radial_fill_set (Evas_Object *obj, float cx, float cy, float rx, float ry)
Sets the center and radii of the radial gradient geometry for the object.

Detailed Description

Functions that work on evas gradient2 objects.

Function Documentation

EAPI void evas_object_gradient2_clear (Evas_Object * obj)

Deletes all stops set for the given evas gradient object or any set data. Parameters:

obj The given evas gradient object.

EAPI void evas_object_gradient2_color_np_stop_insert (Evas_Object * obj, int r, int g, int b, int a, float pos)

Inserts a color stop to the given evas gradient object. The pos parameter determines where along the unit interval [0,1] the color is to be inserted. The r,g,b,a data are assumed input as being NON-PREMULTIPLIED.

Parameters:

obj The given evas gradient object.
r Red component of the given color.
g Green component of the given color.
b Blue component of the given color.
a Alpha component of the given color.
pos The pos in [0,1] of this stop.

EAPI int evas_object_gradient2_fill_spread_get (const Evas_Object * obj)

Retrieves the spread (tiling mode) for the given gradient object's fill. Parameters:

obj The given evas gradient object.

Returns:

The current spread mode of the gradient object.

References EVAS_TEXTURE_REPEAT.

EAPI void evas_object_gradient2_fill_spread_set (Evas_Object * obj, int spread)

Sets the tiling mode for the given evas gradient object's fill. Parameters:

obj The given evas gradient object.
spread One of EVAS_TEXTURE_REFLECT, EVAS_TEXTURE_REPEAT, EVAS_TEXTURE_RESTRICT, or EVAS_TEXTURE_PAD.

EAPI Evas_Object* evas_object_gradient2_linear_add (Evas * e)

Adds a gradient object to the given evas. Parameters:

e The given evas.

Returns:

A new evas gradient object if successful. Otherwise, NULL.

EAPI void evas_object_gradient2_linear_fill_set (Evas_Object * obj, float x0, float y0, float x1, float y1)

Sets the start and end points of the linear gradient geometry for the object. Note that the gradient may extend beyond these, 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. The default values for the fill parameters is x0 = 0, y0 = 0, x1 = 0 and y1 = 0.

Parameters:

obj The given evas linear gradient object.
x0 The X coordinate of the start point.
y0 The Y coordinate of the start point.
x1 The X coordinate of the end point.
y1 The Y coordinate of the end point

EAPI Evas_Object* evas_object_gradient2_radial_add (Evas * e)

Adds a gradient object to the given evas. Parameters:

e The given evas.

Returns:

A new evas gradient object if successful. Otherwise, NULL.

EAPI void evas_object_gradient2_radial_fill_set (Evas_Object * obj, float cx, float cy, float rx, float ry)

Sets the center and radii of the radial gradient geometry for the object. Note that the gradient may extend beyond these, 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. The default values for the fill parameters is cx = 0, cy = 0, rx = 0 and ry = 0.

Parameters:

obj The given evas radial gradient object.
cx The X coordinate of the start point.
cy The Y coordinate of the start point.
rx The length of the x-cordinate radius.
ry The length of the y-coordinate radius.

Author

Generated automatically by Doxygen for Evas from the source code.