Generic Object Functions

Functions that manipulate generic evas objects. More...

Functions

void evas_object_del (Evas_Object *obj)
 Deletes the given evas object and frees its memory.
void evas_object_move (Evas_Object *obj, Evas_Coord x, Evas_Coord y)
 Moves the given evas object to the given location.
void evas_object_resize (Evas_Object *obj, Evas_Coord w, Evas_Coord h)
 Changes the size of the given evas object.
void evas_object_geometry_get (Evas_Object *obj, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h)
 Retrieves the position and rectangular size of the given evas object.
void evas_object_color_set (Evas_Object *obj, int r, int g, int b, int a)
 Sets the general colour of the given evas object to the given colour.
void evas_object_color_get (Evas_Object *obj, int *r, int *g, int *b, int *a)
 Retrieves the general colour of the given evas object.
void evas_object_anti_alias_set (Evas_Object *obj, Evas_Bool anti_alias)
 Sets whether or not the given evas object is to be drawn anti_aliased.
Evas_Bool evas_object_anti_alias_get (Evas_Object *obj)
 Retrieves whether or not the given evas object is to be drawn anti_aliased.
void evas_object_color_interpolation_set (Evas_Object *obj, int color_space)
 Sets the color_space to be used for linear interpolation of colors.
int evas_object_color_interpolation_get (Evas_Object *obj)
 Retrieves the current value of the color space used for linear interpolation.
Evasevas_object_evas_get (Evas_Object *obj)
 Retrieves the evas that the given evas object is on.
const char * evas_object_type_get (Evas_Object *obj)
 Retrieves the name of the type of the given evas object.

Detailed Description

Functions that manipulate generic evas objects.


Function Documentation

Evas_Bool evas_object_anti_alias_get Evas_Object obj  ) 
 

Retrieves whether or not the given evas object is to be drawn anti_aliased.

Parameters:
obj The given evas object.
Returns:
1 if the object is to be anti_aliased. 0 otherwise.

void evas_object_anti_alias_set Evas_Object obj,
Evas_Bool  anti_alias
 

Sets whether or not the given evas object is to be drawn anti_aliased.

Parameters:
obj The given evas object.
anti_alias. 1 if the object is to be anti_aliased, 0 otherwise.

void evas_object_color_get Evas_Object obj,
int *  r,
int *  g,
int *  b,
int *  a
 

Retrieves the general colour of the given evas object.

Note that if any of r, g, b or a are NULL, then the NULL parameters are ignored.

Parameters:
obj The given evas object.
r Pointer to an integer in which to store the red component of the colour.
g Pointer to an integer in which to store the green component of the colour.
b Pointer to an integer in which to store the blue component of the colour.
a Pointer to an integer in which to store the alpha component of the colour.

int evas_object_color_interpolation_get Evas_Object obj  ) 
 

Retrieves the current value of the color space used for linear interpolation.

Parameters:
obj The given evas object.
Returns:
EVAS_COLOR_SPACE_ARGB or EVAS_COLOR_SPACE_AHSV.

void evas_object_color_interpolation_set Evas_Object obj,
int  color_space
 

Sets the color_space to be used for linear interpolation of colors.

Parameters:
obj The given evas object.
color_space,one of EVAS_COLOR_SPACE_ARGB or EVAS_COLOR_SPACE_AHSV.

void evas_object_color_set Evas_Object obj,
int  r,
int  g,
int  b,
int  a
 

Sets the general colour of the given evas object to the given colour.

Parameters:
obj The given evas object.
r The red component of the given colour.
g The green component of the given colour.
b The blue component of the given colour.
a The alpha component of the given colour.

void evas_object_del Evas_Object obj  ) 
 

Deletes the given evas object and frees its memory.

The object's 'free' callback is called when this function is called. If the object currently has the focus, its 'focus out' callback is also called.

Parameters:
obj The given evas object.

Evas* evas_object_evas_get Evas_Object obj  ) 
 

Retrieves the evas that the given evas object is on.

Parameters:
obj The given evas object.
Returns:
The evas that the object is on.

void evas_object_geometry_get Evas_Object obj,
Evas_Coord *  x,
Evas_Coord *  y,
Evas_Coord *  w,
Evas_Coord *  h
 

Retrieves the position and rectangular size of the given evas object.

Note that if any of x, y, w or h are NULL, the NULL parameters are ignored.

Parameters:
obj The given evas object.
x Pointer to an integer in which to store the X coordinate of the object.
y Pointer to an integer in which to store the Y coordinate of the object.
w Pointer to an integer in which to store the width of the object.
h Pointer to an integer in which to store the height of the object.

void evas_object_move Evas_Object obj,
Evas_Coord  x,
Evas_Coord  y
 

Moves the given evas object to the given location.

Parameters:
obj The given evas object.
x X position to move the object to, in canvas units.
y Y position to move the object to, in canvas units.

void evas_object_resize Evas_Object obj,
Evas_Coord  w,
Evas_Coord  h
 

Changes the size of the given evas object.

Parameters:
obj The given evas object.
w The new width of the evas object.
h The new height of the evas object.

const char* evas_object_type_get Evas_Object obj  ) 
 

Retrieves the name of the type of the given evas object.

Parameters:
obj The given object.
Returns:
The name.