Evas Gradient Object Functions

Functions that work on evas gradient objects. More...

Functions

Evas_Objectevas_object_gradient_add (Evas *e)
 Adds a gradient object to the given evas.
void evas_object_gradient_color_add (Evas_Object *obj, int r, int g, int b, int a, int distance)
 Adds a colour to the given evas gradient object.
void evas_object_gradient_colors_clear (Evas_Object *obj)
 Deletes all colours set for the given evas gradient object.
void evas_object_gradient_angle_set (Evas_Object *obj, Evas_Angle angle)
 Sets the angle at which the given evas gradient object sits clockwise from vertical.
Evas_Angle evas_object_gradient_angle_get (Evas_Object *obj)
 Retrieves the angle at which the given evas gradient object sits clockwise from the vertical.
void evas_object_gradient_spread_set (Evas_Object *obj, int spread)
 Sets the tiling mode for the given evas gradient object.
int evas_object_gradient_spread_get (Evas_Object *obj)
 Retrieves the spread (tiling mode) for the given gradient object.

Detailed Description

Functions that work on evas gradient objects.

The following example shows how


Function Documentation

Evas_Object* evas_object_gradient_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.

Evas_Angle evas_object_gradient_angle_get Evas_Object obj  ) 
 

Retrieves the angle at which the given evas gradient object sits clockwise from the vertical.

Parameters:
obj The given evas gradient object.
Returns:
The current angle if successful. 0.0 otherwise.

void evas_object_gradient_angle_set Evas_Object obj,
Evas_Angle  angle
 

Sets the angle at which the given evas gradient object sits clockwise from vertical.

Parameters:
obj The given evas gradient object.
angle Angle in degrees. Can be negative.

void evas_object_gradient_color_add Evas_Object obj,
int  r,
int  g,
int  b,
int  a,
int  distance
 

Adds a colour to the given evas gradient object.

The distance parameter determines the proportion of the gradient object that is to be set to this colour. For instance, if red is added with distance set to 2, and green is added with distance set to 1, two-thirds will be red or reddish and one-third will be green or greenish.

Colours are added from the top downwards.

Parameters:
obj The given evas gradient object.
r Red component of the given colour.
g Green component of the given colour.
b Blue component of the given colour.
a Alpha component of the given colour.
distance Proportion of the gradient object that is this colour.

void evas_object_gradient_colors_clear Evas_Object obj  ) 
 

Deletes all colours set for the given evas gradient object.

Parameters:
obj The given evas gradient object.

int evas_object_gradient_spread_get Evas_Object obj  ) 
 

Retrieves the spread (tiling mode) for the given gradient object.

Parameters:
obj The given evas gradient object.
Returns:
The current spread mode of the gradient object.

void evas_object_gradient_spread_set Evas_Object obj,
int  spread
 

Sets the tiling mode for the given evas gradient object.

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