Functions | |
EAPI void | evas_object_smart_data_set (Evas_Object *obj, void *data) |
Store a pointer to user data for a smart object. | |
EAPI void * | evas_object_smart_data_get (Evas_Object *obj) |
Retrieve user data stored on a smart object. | |
EAPI Evas_Smart * | evas_object_smart_smart_get (Evas_Object *obj) |
Get the Evas_Smart from which obj was created. | |
EAPI void | evas_object_smart_member_add (Evas_Object *obj, Evas_Object *smart_obj) |
Set an evas object as a member of a smart object. | |
EAPI void | evas_object_smart_member_del (Evas_Object *obj) |
Removes a member object from a smart object. | |
EAPI Evas_Object * | evas_object_smart_parent_get (Evas_Object *obj) |
Gets the smart parent of an Evas_Object. | |
EAPI Evas_Object * | evas_object_smart_add (Evas *e, Evas_Smart *s) |
Instantiates a new smart object described by s . | |
EAPI void | evas_object_smart_callback_add (Evas_Object *obj, const char *event, void(*func)(void *data, Evas_Object *obj, void *event_info), const void *data) |
Add a callback for the smart event specified by event . | |
EAPI void * | evas_object_smart_callback_del (Evas_Object *obj, const char *event, void(*func)(void *data, Evas_Object *obj, void *event_info)) |
Remove a smart callback. | |
EAPI void | evas_object_smart_callback_call (Evas_Object *obj, const char *event, void *event_info) |
Call any smart callbacks on obj for event . |
Smart objects are groupings of primitive evas objects that behave as a cohesive group. For instance, a file manager icon may be a smart object composed of an image object, a text label and two rectangles that appear behind the image and text when the icon is selected. As a smart object, the normal evas api could be used on the icon object.
EAPI Evas_Object* evas_object_smart_add | ( | Evas * | e, | |
Evas_Smart * | s | |||
) |
Instantiates a new smart object described by s
.
e | the evas on which to add the object | |
s | the Evas_Smart describing the smart object |
EAPI void evas_object_smart_callback_add | ( | Evas_Object * | obj, | |
const char * | event, | |||
void(*)(void *data, Evas_Object *obj, void *event_info) | func, | |||
const void * | data | |||
) |
Add a callback for the smart event specified by event
.
obj | a smart object | |
event | the event name | |
func | the callback function | |
data | user data to be passed to the callback function |
EAPI void evas_object_smart_callback_call | ( | Evas_Object * | obj, | |
const char * | event, | |||
void * | event_info | |||
) |
Call any smart callbacks on obj
for event
.
obj | the smart object | |
event | the event name | |
event_info | an event specific struct of info to pass to the callback |
event_info
to expect.
EAPI void* evas_object_smart_callback_del | ( | Evas_Object * | obj, | |
const char * | event, | |||
void(*)(void *data, Evas_Object *obj, void *event_info) | func | |||
) |
Remove a smart callback.
Removes a callback that was added by evas_object_smart_callback_add()
obj | a smart object | |
event | the event name | |
func | the callback function |
EAPI void* evas_object_smart_data_get | ( | Evas_Object * | obj | ) |
Retrieve user data stored on a smart object.
obj | The smart object |
EAPI void evas_object_smart_data_set | ( | Evas_Object * | obj, | |
void * | data | |||
) |
Store a pointer to user data for a smart object.
obj | The smart object | |
data | A pointer to user data |
EAPI void evas_object_smart_member_add | ( | Evas_Object * | obj, | |
Evas_Object * | smart_obj | |||
) |
Set an evas object as a member of a smart object.
obj | The member object | |
smart_obj | The smart object |
Non-member objects can not interleave a smart object's members.
EAPI void evas_object_smart_member_del | ( | Evas_Object * | obj | ) |
Removes a member object from a smart object.
obj | the member object |
EAPI Evas_Object* evas_object_smart_parent_get | ( | Evas_Object * | obj | ) |
Gets the smart parent of an Evas_Object.
obj | the Evas_Object you want to get the parent |
EAPI Evas_Smart* evas_object_smart_smart_get | ( | Evas_Object * | obj | ) |
Get the Evas_Smart from which obj
was created.
obj | a smart object |