Evas Smart Functions
Functions that deal with Evas_Smart's. More...
Functions | |
EAPI Evas_Smart * | evas_smart_new (const char *name, void(*func_add)(Evas_Object *o), void(*func_del)(Evas_Object *o), void(*func_layer_set)(Evas_Object *o, int l) __UNUSED__, void(*func_raise)(Evas_Object *o) __UNUSED__, void(*func_lower)(Evas_Object *o) __UNUSED__, void(*func_stack_above)(Evas_Object *o, Evas_Object *above) __UNUSED__, void(*func_stack_below)(Evas_Object *o, Evas_Object *below) __UNUSED__, void(*func_move)(Evas_Object *o, Evas_Coord x, Evas_Coord y), void(*func_resize)(Evas_Object *o, Evas_Coord w, Evas_Coord h), void(*func_show)(Evas_Object *o), void(*func_hide)(Evas_Object *o), void(*func_color_set)(Evas_Object *o, int r, int g, int b, int a), void(*func_clip_set)(Evas_Object *o, Evas_Object *clip), void(*func_clip_unset)(Evas_Object *o), const void *data) |
Create an Evas_Smart, which can be used to instantiate new smart objects. | |
EAPI void | evas_smart_free (Evas_Smart *s) |
Free an Evas_Smart. | |
EAPI Evas_Smart * | evas_smart_class_new (const Evas_Smart_Class *sc) |
Creates an Evas_Smart from an Evas_Smart_Class. | |
EAPI const Evas_Smart_Class * | evas_smart_class_get (const Evas_Smart *s) |
Get the Evas_Smart_Class of an Evas_Smart. | |
EAPI void * | evas_smart_data_get (const Evas_Smart *s) |
Get the data pointer set on an Evas_Smart. |
Detailed Description
Functions that deal with Evas_Smart's.
Function Documentation
EAPI const Evas_Smart_Class* evas_smart_class_get | ( | const Evas_Smart * | s | ) |
Get the Evas_Smart_Class of an Evas_Smart.
- Parameters:
-
s the Evas_Smart
- Returns:
- the Evas_Smart_Class
EAPI Evas_Smart* evas_smart_class_new | ( | const Evas_Smart_Class * | sc | ) |
Creates an Evas_Smart from an Evas_Smart_Class.
- Parameters:
-
sc the smart class definition
- Returns:
- an Evas_Smart
References _Evas_Smart_Class::version.
EAPI void* evas_smart_data_get | ( | const Evas_Smart * | s | ) |
Get the data pointer set on an Evas_Smart.
- Parameters:
-
s Evas_Smart
This data pointer is set either as the final parameter to evas_smart_new or as the data field in the Evas_Smart_Class passed in to evas_smart_class_new
EAPI void evas_smart_free | ( | Evas_Smart * | s | ) |
Free an Evas_Smart.
If this smart was created using evas_smart_class_new(), the associated Evas_Smart_Class will not be freed.
- Parameters:
-
s the Evas_Smart to free
EAPI Evas_Smart* evas_smart_new | ( | const char * | name, | |
void(*)(Evas_Object *o) | func_add, | |||
void(*)(Evas_Object *o) | func_del, | |||
void(*)(Evas_Object *o, int l) __UNUSED__ | func_layer_set, | |||
void(*)(Evas_Object *o) __UNUSED__ | func_raise, | |||
void(*)(Evas_Object *o) __UNUSED__ | func_lower, | |||
void(*)(Evas_Object *o, Evas_Object *above) __UNUSED__ | func_stack_above, | |||
void(*)(Evas_Object *o, Evas_Object *below) __UNUSED__ | func_stack_below, | |||
void(*)(Evas_Object *o, Evas_Coord x, Evas_Coord y) | func_move, | |||
void(*)(Evas_Object *o, Evas_Coord w, Evas_Coord h) | func_resize, | |||
void(*)(Evas_Object *o) | func_show, | |||
void(*)(Evas_Object *o) | func_hide, | |||
void(*)(Evas_Object *o, int r, int g, int b, int a) | func_color_set, | |||
void(*)(Evas_Object *o, Evas_Object *clip) | func_clip_set, | |||
void(*)(Evas_Object *o) | func_clip_unset, | |||
const void * | data | |||
) |
Create an Evas_Smart, which can be used to instantiate new smart objects.
This function internally creates an Evas_Smart_Class and sets the provided callbacks. Callbacks that are unneeded (or marked DEPRECATED below) should be set to NULL.
Alternatively you can create an Evas_Smart_Class yourself and use evas_smart_class_new().
- Parameters:
-
name a unique name for the smart func_add callback called when smart object is added func_del callback called when smart object is deleted func_layer_set DEPRECATED func_raise DEPRECATED func_lower DEPRECATED func_stack_above DEPRECATED func_stack_below DEPRECATED func_move callback called when smart object is moved func_resize callback called when smart object is resized func_show callback called when smart object is shown func_hide callback called when smart object is hidden func_color_set callback called when smart object has its color set func_clip_set callback called when smart object has its clip set func_clip_unset callback called when smart object has its clip unset data a pointer to user data for the smart
- Returns:
- an Evas_Smart