Tizen Native API
|
Functions | |
void | evas_object_data_set (Evas_Object *obj, const char *key, const void *data) |
Sets an attached data pointer to an object with a given string key. | |
void * | evas_object_data_get (const Evas_Object *obj, const char *key) |
Gets an attached data pointer on an Evas object by its given string key. | |
void * | evas_object_data_del (Evas_Object *obj, const char *key) |
Deletes an attached data pointer from an object. | |
void | evas_object_pointer_mode_set (Evas_Object *obj, Evas_Object_Pointer_Mode setting) |
Sets the pointer behavior. | |
Evas_Object_Pointer_Mode | evas_object_pointer_mode_get (const Evas_Object *obj) |
Gets how the pointer behaves. | |
void | evas_object_anti_alias_set (Evas_Object *obj, Eina_Bool antialias) |
Sets whether the given Evas object is to be drawn anti-aliased. | |
Eina_Bool | evas_object_anti_alias_get (const Evas_Object *obj) |
Checks whether the given Evas object is to be drawn anti-aliased. | |
void | evas_object_scale_set (Evas_Object *obj, double scale) |
Sets the scaling factor for an Evas object. Does not affect all objects. | |
double | evas_object_scale_get (const Evas_Object *obj) |
Gets the scaling factor for the given Evas object. | |
void | evas_object_render_op_set (Evas_Object *obj, Evas_Render_Op op) |
Sets the render_op to be used for rendering the Evas object. | |
Evas_Render_Op | evas_object_render_op_get (const Evas_Object *obj) |
Gets the current value of the operation used for rendering the Evas object. | |
void | evas_object_precise_is_inside_set (Evas_Object *obj, Eina_Bool precise) |
Sets whether to use precise (usually expensive) point collision detection for a given Evas object. | |
Eina_Bool | evas_object_precise_is_inside_get (const Evas_Object *obj) |
Checks whether an object is set to use precise point collision detection. | |
void | evas_object_static_clip_set (Evas_Object *obj, Eina_Bool is_static_clip) |
Sets a hint flag on the given Evas object that it is used as a "static clipper". | |
Eina_Bool | evas_object_static_clip_get (const Evas_Object *obj) |
Gets the "static clipper" hint flag for a given Evas object. | |
Typedefs | |
typedef enum _Evas_Render_Op | Evas_Render_Op |
Enumeration for modes of object rendering to output. | |
typedef enum _Evas_Object_Pointer_Mode | Evas_Object_Pointer_Mode |
Enumeration for handling mouse pointer. |
This group provides functions for extra object manipulation.
Miscellaneous functions that also apply to any object, but are less used or not implemented by all objects.
typedef enum _Evas_Object_Pointer_Mode Evas_Object_Pointer_Mode |
Enumeration for handling mouse pointer.
typedef enum _Evas_Render_Op Evas_Render_Op |
Enumeration for modes of object rendering to output.
How the object should be rendered to output
Enumeration for handling mouse pointer.
enum _Evas_Render_Op |
Enumeration for modes of object rendering to output.
Eina_Bool evas_object_anti_alias_get | ( | const Evas_Object * | obj | ) |
Checks whether the given Evas object is to be drawn anti-aliased.
[in] | obj | The given Evas object |
void evas_object_anti_alias_set | ( | Evas_Object * | obj, |
Eina_Bool | antialias | ||
) |
Sets whether the given Evas object is to be drawn anti-aliased.
[in] | obj | The given Evas object |
[in] | antialias | Set EINA_TRUE for the object to be anti-aliased, otherwise EINA_FALSE for it not to be anti-aliased |
void* evas_object_data_del | ( | Evas_Object * | obj, |
const char * | key | ||
) |
Deletes an attached data pointer from an object.
NULL
, if nothing is stored under that key.int *my_data; extern Evas_Object *obj; my_data = evas_object_data_del(obj, "name_of_my_data");
[in] | obj | The object to delete the data pointer from |
[in] | key | The string key the data is stored under |
void* evas_object_data_get | ( | const Evas_Object * | obj, |
const char * | key | ||
) |
Gets an attached data pointer on an Evas object by its given string key.
This function returns the data pointer attached to the object obj, stored using the string key key. If the object is valid and a data pointer is stored under the given key, that pointer is returned. If this is not the case, NULL
is returned, signifying an invalid object or a non-existent key. It is possible that a NULL
pointer is stored given that key, but this situation is not probable and thus can be considered an error as well. NULL
pointers are never stored as this is the return value if an error occurs.
int *my_data; extern Evas_Object *obj; my_data = evas_object_data_get(obj, "name_of_my_data"); if (my_data) printf("Data stored is %p\n", my_data); else printf("No data is stored on the object\n");
[in] | obj | The object to which the data is attached |
[in] | key | The string key the data is stored under |
NULL
if none are stored void evas_object_data_set | ( | Evas_Object * | obj, |
const char * | key, | ||
const void * | data | ||
) |
Sets an attached data pointer to an object with a given string key.
NULL
, the old value stored at key is removed but no new value is stored. This is synonymous with calling evas_object_data_del() with obj and key.int *my_data; extern Evas_Object *obj; my_data = malloc(500); evas_object_data_set(obj, "name_of_data", my_data); printf("The data that is attached is %p\n", evas_object_data_get(obj, "name_of_data"));
[in] | obj | The object to attach the data pointer to |
[in] | key | The string key for the data to access it |
[in] | data | The pointer to the data to be attached |
Evas_Object_Pointer_Mode evas_object_pointer_mode_get | ( | const Evas_Object * | obj | ) |
Gets how the pointer behaves.
[in] | obj | The pointer |
void evas_object_pointer_mode_set | ( | Evas_Object * | obj, |
Evas_Object_Pointer_Mode | setting | ||
) |
Sets the pointer behavior.
EVAS_OBJECT_POINTER_MODE_AUTOGRAB
, then when mouse is down at this object, events are restricted to it as source, mouse moves, for example, are emitted even if outside this object area.EVAS_OBJECT_POINTER_MODE_NOGRAB
, then events are emitted just when inside this object area.EVAS_OBJECT_POINTER_MODE_AUTOGRAB
.[in] | obj | The pointer for which behavior is set |
[in] | setting | The desired behavior |
Eina_Bool evas_object_precise_is_inside_get | ( | const Evas_Object * | obj | ) |
Checks whether an object is set to use precise point collision detection.
[in] | obj | The given object |
void evas_object_precise_is_inside_set | ( | Evas_Object * | obj, |
Eina_Bool | precise | ||
) |
Sets whether to use precise (usually expensive) point collision detection for a given Evas object.
[in] | obj | The given object |
[in] | precise | Set EINA_TRUE to use precise point collision detection, otherwise set EINA_FALSE to not use it The default value is EINA_FALSE. |
Evas_Render_Op evas_object_render_op_get | ( | const Evas_Object * | obj | ) |
Gets the current value of the operation used for rendering the Evas object.
[in] | obj | The given Evas object |
void evas_object_render_op_set | ( | Evas_Object * | obj, |
Evas_Render_Op | op | ||
) |
Sets the render_op to be used for rendering the Evas object.
[in] | obj | The given Evas object |
[in] | op | An Evas_Render_Op value |
double evas_object_scale_get | ( | const Evas_Object * | obj | ) |
Gets the scaling factor for the given Evas object.
[in] | obj | The given Evas object |
void evas_object_scale_set | ( | Evas_Object * | obj, |
double | scale | ||
) |
Sets the scaling factor for an Evas object.
Does not affect all objects.
[in] | obj | The given Evas object |
[in] | scale | The scaling factor 1.0 means no scaling, default size. |
Eina_Bool evas_object_static_clip_get | ( | const Evas_Object * | obj | ) |
Gets the "static clipper" hint flag for a given Evas object.
[in] | obj | The given object |
void evas_object_static_clip_set | ( | Evas_Object * | obj, |
Eina_Bool | is_static_clip | ||
) |
Sets a hint flag on the given Evas object that it is used as a "static clipper".
[in] | obj | The given object |
[in] | is_static_clip | Set EINA_TRUE if it is to be used as a static clipper, otherwise set EINA_FALSE |