Download

Support

Edje_Edit.h File Reference


Detailed Description

Functions to deal with edje internal object.

Don't use in standard situations. The use of any of the edje_edit_* functions can break your theme ability, remember that the program must be separated from the interface!

The API can be used to query or set every part of an edje object in real time. You can manage every aspect of parts, part states, programs, script and whatever is contained in the edje file. For a reference of what all parameter means look at the complete Edje Data Collection reference.

All the functions that deals with part states include the state value inside the returned strings (ex: "defaut 0.00"). For this reason there aren't functions to set/get a state value, you have to pass the value inside the name string (always in the form "state x.xx").

Don't forget to free all the strings and the lists returned by any edje_edit_*() functions using edje_edit_string_free() and edje_edit_string_list_free() when you don't need anymore.

Example: print all the part in a loaded edje_object

  Eina_List *parts, *l;

  parts = edje_edit_parts_list_get(edje_object);
  while(l = parts; l; l = eina_list_nexst(l))
  {
     printf("Part: %s\n", (char*)eina_list_data_get(l));
  }
  edje_edit_string_list_free(parts);

Example: Change the color of a rect inside an edje file

 Evas_Object *edje;

 edje = edje_object_add(evas);
 edje_object_file_set(edje,"edj/file/name", "group to load");
 edje_edit_state_color_set(edje, "MyRectName", "default 0.00", 255, 255, 0, 255);
 edje_edit_save(edje);


Functions

General API
General functions that don't fit in other cateories.

EAPI void edje_edit_string_list_free (Eina_List *lst)
 Free a generic Eina_List of (char *) allocated by an edje_edit_*_get() function.
EAPI void edje_edit_string_free (const char *str)
 Free a generic string (char *) allocated by an edje_edit_*_get() function.
EAPI const char * edje_edit_compiler_get (Evas_Object *obj)
 
Returns:
The compiler name. Don't forget to free the string with edje_edit_string_free()

EAPI int edje_edit_save (Evas_Object *obj)
 
Returns:
1 on success, 0 on failure

EAPI void edje_edit_print_internal_status (Evas_Object *obj)
 Print on standard output many information about the internal status of the edje object.
Groups API
Functions to deal with groups property (see Edje Data Collection reference).

EAPI Eina_Bool edje_edit_group_add (Evas_Object *obj, const char *name)
 
Returns:
1 on success, 0 on failure

EAPI Eina_Bool edje_edit_group_del (Evas_Object *obj)
 
Returns:
1 on success, 0 on failure

EAPI Eina_Bool edje_edit_group_exist (Evas_Object *obj, const char *group)
 < 1 if the group exist, 0 otherwise.
EAPI Eina_Bool edje_edit_group_name_set (Evas_Object *obj, const char *new_name)
 
Returns:
1 on success, 0 on failure

EAPI int edje_edit_group_min_w_get (Evas_Object *obj)
 
Returns:
The minw value or -1 on errors

EAPI void edje_edit_group_min_w_set (Evas_Object *obj, int w)
 Set the group min width.
EAPI int edje_edit_group_min_h_get (Evas_Object *obj)
 
Returns:
The minh value or -1 on errors

EAPI void edje_edit_group_min_h_set (Evas_Object *obj, int h)
 Set the group min height.
EAPI int edje_edit_group_max_w_get (Evas_Object *obj)
 
Returns:
The maxw value or -1 on errors

EAPI void edje_edit_group_max_w_set (Evas_Object *obj, int w)
 Set the group max width.
EAPI int edje_edit_group_max_h_get (Evas_Object *obj)
 
Returns:
The maxh value or -1 on errors

EAPI void edje_edit_group_max_h_set (Evas_Object *obj, int h)
 Set the group max height.
Data API
Functions to deal with data embedded in the edje (see Edje Data Collection reference).

EAPI Eina_List * edje_edit_data_list_get (Evas_Object *obj)
 
Returns:
An Eina_List* of string (char *)containing all the data names.

EAPI Eina_Bool edje_edit_data_add (Evas_Object *obj, const char *itemname, const char *value)
 
Returns:
TRUE on success

EAPI Eina_Bool edje_edit_data_del (Evas_Object *obj, const char *itemname)
 
Returns:
TRUE on success

EAPI const char * edje_edit_data_value_get (Evas_Object *obj, char *itemname)
 
Returns:
The data value

EAPI Eina_Bool edje_edit_data_value_set (Evas_Object *obj, const char *itemname, const char *value)
 
Returns:
TRUE on success

EAPI Eina_Bool edje_edit_data_name_set (Evas_Object *obj, const char *itemname, const char *newname)
 
Returns:
TRUE on success

Color Classes API
Functions to deal with Color Classes (see Edje Data Collection reference).

EAPI Eina_List * edje_edit_color_classes_list_get (Evas_Object *obj)
 
Returns:
An Eina_List* of string (char *)containing all the classes names.

EAPI Eina_Bool edje_edit_color_class_add (Evas_Object *obj, const char *name)
 
Returns:
TRUE on success

EAPI Eina_Bool edje_edit_color_class_del (Evas_Object *obj, const char *name)
 
Returns:
TRUE on success

EAPI Eina_Bool edje_edit_color_class_colors_get (Evas_Object *obj, const char *class_name, int *r, int *g, int *b, int *a, int *r2, int *g2, int *b2, int *a2, int *r3, int *g3, int *b3, int *a3)
 
Returns:
TRUE on success

EAPI Eina_Bool edje_edit_color_class_colors_set (Evas_Object *obj, const char *class_name, int r, int g, int b, int a, int r2, int g2, int b2, int a2, int r3, int g3, int b3, int a3)
 
Returns:
TRUE on success

EAPI Eina_Bool edje_edit_color_class_name_set (Evas_Object *obj, const char *name, const char *newname)
 
Returns:
TRUE on success

Text styles API
Functions to deal with text styles (see Edje Data Collection reference).

EAPI Eina_List * edje_edit_styles_list_get (Evas_Object *obj)
 
Returns:
An Eina_List* of string (char *)containing all the styles name.

EAPI Eina_Bool edje_edit_style_add (Evas_Object *obj, const char *style)
 
Returns:
TRUE on success, FALSE if the tag can't be created

EAPI void edje_edit_style_del (Evas_Object *obj, const char *style)
 Delete the given text style and all the child tags.
EAPI Eina_List * edje_edit_style_tags_list_get (Evas_Object *obj, const char *style)
 
Returns:
An Eina_List* of string (char *)containing all the tags name.

EAPI const char * edje_edit_style_tag_value_get (Evas_Object *obj, const char *style, const char *tag)
 
Returns:
The value of the tag.

EAPI void edje_edit_style_tag_value_set (Evas_Object *obj, const char *style, const char *tag, const char *new_value)
 Set the value of the given tag.
EAPI void edje_edit_style_tag_name_set (Evas_Object *obj, const char *style, const char *tag, const char *new_name)
 Set the name of the given tag.
EAPI Eina_Bool edje_edit_style_tag_add (Evas_Object *obj, const char *style, const char *tag_name)
 
Returns:
TRUE on success, FALSE if the tag can't be created

EAPI void edje_edit_style_tag_del (Evas_Object *obj, const char *style, const char *tag)
 Delete the given tag.
Parts API
Functions to deal with part objects (see Edje Data Collection reference).

EAPI Eina_List * edje_edit_parts_list_get (Evas_Object *obj)
 
Returns:
An Eina_List* of string (char *)containing all the part names.

EAPI Eina_Bool edje_edit_part_add (Evas_Object *obj, const char *name, Edje_Part_Type type)
 
Returns:
TRUE on success, FALSE if the part can't be created

EAPI Eina_Bool edje_edit_part_del (Evas_Object *obj, const char *part)
 
Returns:
1 on success, 0 if the part can't be removed

EAPI Eina_Bool edje_edit_part_exist (Evas_Object *obj, const char *part)
 < 1 if the part exist, 0 otherwise.
EAPI Eina_Bool edje_edit_part_restack_below (Evas_Object *obj, const char *part)
 
Returns:
1 on success, 0 on failure

EAPI Eina_Bool edje_edit_part_restack_above (Evas_Object *obj, const char *part)
 
Returns:
1 on success, 0 on failure

EAPI Eina_Bool edje_edit_part_name_set (Evas_Object *obj, const char *part, const char *new_name)
 
Returns:
1 on success, 0 on failure

EAPI Edje_Part_Type edje_edit_part_type_get (Evas_Object *obj, const char *part)
 
Returns:
One of: EDJE_PART_TYPE_NONE, EDJE_PART_TYPE_RECTANGLE, EDJE_PART_TYPE_TEXT,EDJE_PART_TYPE_IMAGE, EDJE_PART_TYPE_SWALLOW, EDJE_PART_TYPE_TEXTBLOCK,EDJE_PART_TYPE_GRADIENT or EDJE_PART_TYPE_GROUP

EAPI const char * edje_edit_part_clip_to_get (Evas_Object *obj, const char *part)
 
Returns:
The name of the part to clip part to. Use edje_edit_string_free() when you don't need it anymore.

EAPI Eina_Bool edje_edit_part_clip_to_set (Evas_Object *obj, const char *part, const char *clip_to)
 
Returns:
1 on success, 0 otherwise.

EAPI const char * edje_edit_part_source_get (Evas_Object *obj, const char *part)
 
Returns:
The name of the group to source the given part. Use edje_edit_string_free() when you don't need it anymore.

EAPI Eina_Bool edje_edit_part_source_set (Evas_Object *obj, const char *part, const char *source)
 
Returns:
1 on success, 0 otherwise.

EAPI Edje_Text_Effect edje_edit_part_effect_get (Evas_Object *obj, const char *part)
 
Returns:
One of: EDJE_TEXT_EFFECT_NONE, _PLAIN, _OUTLINE, _SOFT_OUTLINE, _SHADOW, _SOFT_SHADOW, _OUTLINE_SHADOW, _OUTLINE_SOFT_SHADOW, _FAR_SHADOW, _FAR_SOFT_SHADOW, _GLOW.

EAPI void edje_edit_part_effect_set (Evas_Object *obj, const char *part, Edje_Text_Effect effect)
 Set the effect for a given part.
EAPI const char * edje_edit_part_selected_state_get (Evas_Object *obj, const char *part)
 
Returns:
The name of the selected state including the float value. Use edje_edit_string_free() when you don't need it anymore.

EAPI Eina_Bool edje_edit_part_selected_state_set (Evas_Object *obj, const char *part, const char *state)
 
Returns:
1 on success, 0 otherwise.

EAPI Eina_Bool edje_edit_part_mouse_events_get (Evas_Object *obj, const char *part)
 
Returns:
1 if part accept mouse events, 0 if not

EAPI void edje_edit_part_mouse_events_set (Evas_Object *obj, const char *part, Eina_Bool mouse_events)
 Set mouse_events for part.
EAPI Eina_Bool edje_edit_part_repeat_events_get (Evas_Object *obj, const char *part)
 
Returns:
1 if part will pass all events to the other parts, 0 if not

EAPI void edje_edit_part_repeat_events_set (Evas_Object *obj, const char *part, Eina_Bool repeat_events)
 Set repeat_events for part.
EAPI Evas_Event_Flags edje_edit_part_ignore_flags_get (Evas_Object *obj, const char *part)
 
Returns:
event flags ignored

EAPI void edje_edit_part_ignore_flags_set (Evas_Object *obj, const char *part, Evas_Event_Flags ignore_flags)
 Set repeat_events for part.
EAPI int edje_edit_part_drag_x_get (Evas_Object *obj, const char *part)
 
Returns:
1 (or -1) if the part can be dragged horizontally

EAPI void edje_edit_part_drag_x_set (Evas_Object *obj, const char *part, int drag)
 Set horizontal dragable state for part.
EAPI int edje_edit_part_drag_y_get (Evas_Object *obj, const char *part)
 
Returns:
1 (or -1) if the part can be dragged vertically

EAPI void edje_edit_part_drag_y_set (Evas_Object *obj, const char *part, int drag)
 Set vertical dragable state for part.
EAPI int edje_edit_part_drag_step_x_get (Evas_Object *obj, const char *part)
 
Returns:
The drag horizontal step value

EAPI void edje_edit_part_drag_step_x_set (Evas_Object *obj, const char *part, int step)
 Set horizontal dragable state for part.
EAPI int edje_edit_part_drag_step_y_get (Evas_Object *obj, const char *part)
 
Returns:
The drag vertical step value

EAPI void edje_edit_part_drag_step_y_set (Evas_Object *obj, const char *part, int step)
 Set vertical dragable state for part.
EAPI int edje_edit_part_drag_count_x_get (Evas_Object *obj, const char *part)
 
Returns:
The drag horizontal count value

EAPI void edje_edit_part_drag_count_x_set (Evas_Object *obj, const char *part, int count)
 Set horizontal dragable count for part.
EAPI int edje_edit_part_drag_count_y_get (Evas_Object *obj, const char *part)
 
Returns:
The drag vertical count value

EAPI void edje_edit_part_drag_count_y_set (Evas_Object *obj, const char *part, int count)
 Set vertical dragable count for part.
EAPI const char * edje_edit_part_drag_confine_get (Evas_Object *obj, const char *part)
 Get the name of the part that is used as 'confine' for the given draggies.
EAPI void edje_edit_part_drag_confine_set (Evas_Object *obj, const char *part, const char *confine)
 Set the name of the part that is used as 'confine' for the given draggies.
EAPI const char * edje_edit_part_drag_event_get (Evas_Object *obj, const char *part)
 Get the name of the part that is used as the receiver of the drag event.
EAPI void edje_edit_part_drag_event_set (Evas_Object *obj, const char *part, const char *event)
 Set the name of the part that will recive events from the given draggies.
States API
Functions to deal with part states (see Edje Data Collection reference).

EAPI Eina_List * edje_edit_part_states_list_get (Evas_Object *obj, const char *part)
 
Returns:
An Eina_List* of string (char *)containing all the states names found in part, including the float value (ex: "default 0.00").

EAPI int edje_edit_state_name_set (Evas_Object *obj, const char *part, const char *state, const char *new_name)
 Set a new name for the given state in the given part.
EAPI void edje_edit_state_add (Evas_Object *obj, const char *part, const char *name)
 Create a new state to the give part.
EAPI void edje_edit_state_del (Evas_Object *obj, const char *part, const char *state)
 Delete the given part state from the edje.
EAPI Eina_Bool edje_edit_state_exist (Evas_Object *obj, const char *part, const char *state)
 < 1 if the part state exist, 0 otherwise.
EAPI double edje_edit_state_rel1_relative_x_get (Evas_Object *obj, const char *part, const char *state)
 
Returns:
The 'rel1 relative X' value of the part state

EAPI double edje_edit_state_rel1_relative_y_get (Evas_Object *obj, const char *part, const char *state)
 
Returns:
The 'rel1 relative Y' value of the part state

EAPI double edje_edit_state_rel2_relative_x_get (Evas_Object *obj, const char *part, const char *state)
 
Returns:
The 'rel2 relative X' value of the part state

EAPI double edje_edit_state_rel2_relative_y_get (Evas_Object *obj, const char *part, const char *state)
 
Returns:
The 'rel2 relative Y' value of the part state

EAPI void edje_edit_state_rel1_relative_x_set (Evas_Object *obj, const char *part, const char *state, double x)
 Set the rel1 relative x value of state.
EAPI void edje_edit_state_rel1_relative_y_set (Evas_Object *obj, const char *part, const char *state, double y)
 Set the rel1 relative y value of state.
EAPI void edje_edit_state_rel2_relative_x_set (Evas_Object *obj, const char *part, const char *state, double x)
 Set the rel2 relative x value of state.
EAPI void edje_edit_state_rel2_relative_y_set (Evas_Object *obj, const char *part, const char *state, double y)
 Set the rel2 relative y value of state.
EAPI int edje_edit_state_rel1_offset_x_get (Evas_Object *obj, const char *part, const char *state)
 
Returns:
The 'rel1 offset X' value of the part state

EAPI int edje_edit_state_rel1_offset_y_get (Evas_Object *obj, const char *part, const char *state)
 
Returns:
The 'rel1 offset Y' value of the part state

EAPI int edje_edit_state_rel2_offset_x_get (Evas_Object *obj, const char *part, const char *state)
 
Returns:
The 'rel2 offset X' value of the part state

EAPI int edje_edit_state_rel2_offset_y_get (Evas_Object *obj, const char *part, const char *state)
 
Returns:
The 'rel2 offset Y' value of the part state

EAPI void edje_edit_state_rel1_offset_x_set (Evas_Object *obj, const char *part, const char *state, double x)
 Set the rel1 offset x value of state.
EAPI void edje_edit_state_rel1_offset_y_set (Evas_Object *obj, const char *part, const char *state, double y)
 Get the rel1 offset y value of state.
EAPI void edje_edit_state_rel2_offset_x_set (Evas_Object *obj, const char *part, const char *state, double x)
 Get the rel2 offset x value of state.
EAPI void edje_edit_state_rel2_offset_y_set (Evas_Object *obj, const char *part, const char *state, double y)
 Get the rel2 offset y value of state.
EAPI const char * edje_edit_state_rel1_to_x_get (Evas_Object *obj, const char *part, const char *state)
 
Returns:
The name of the part to apply the relativity

EAPI const char * edje_edit_state_rel1_to_y_get (Evas_Object *obj, const char *part, const char *state)
 
Returns:
The name of the part to apply the relativity

EAPI const char * edje_edit_state_rel2_to_x_get (Evas_Object *obj, const char *part, const char *state)
 
Returns:
The name of the part to apply the relativity

EAPI const char * edje_edit_state_rel2_to_y_get (Evas_Object *obj, const char *part, const char *state)
 
Returns:
The name of the part to apply the relativity

EAPI void edje_edit_state_rel1_to_x_set (Evas_Object *obj, const char *part, const char *state, const char *rel_to)
 Set the part rel1x is relative to.
EAPI void edje_edit_state_rel1_to_y_set (Evas_Object *obj, const char *part, const char *state, const char *rel_to)
 Set the part rel1y is relative to.
EAPI void edje_edit_state_rel2_to_x_set (Evas_Object *obj, const char *part, const char *state, const char *rel_to)
 Set the part rel2x is relative to.
EAPI void edje_edit_state_rel2_to_y_set (Evas_Object *obj, const char *part, const char *state, const char *rel_to)
 Set the part rel2y is relative to.
EAPI void edje_edit_state_color_get (Evas_Object *obj, const char *part, const char *state, int *r, int *g, int *b, int *a)
 Get the color of a part state.
EAPI void edje_edit_state_color2_get (Evas_Object *obj, const char *part, const char *state, int *r, int *g, int *b, int *a)
 Get the color2 of a part state.
EAPI void edje_edit_state_color3_get (Evas_Object *obj, const char *part, const char *state, int *r, int *g, int *b, int *a)
 Get the color3 of a part state.
EAPI void edje_edit_state_color_set (Evas_Object *obj, const char *part, const char *state, int r, int g, int b, int a)
 Set the color of a part state.
EAPI void edje_edit_state_color2_set (Evas_Object *obj, const char *part, const char *state, int r, int g, int b, int a)
 Set the color2 of a part state.
EAPI void edje_edit_state_color3_set (Evas_Object *obj, const char *part, const char *state, int r, int g, int b, int a)
 Set the color3 of a part state.
EAPI double edje_edit_state_align_x_get (Evas_Object *obj, const char *part, const char *state)
 
Returns:
The horizontal align value for the given state

EAPI double edje_edit_state_align_y_get (Evas_Object *obj, const char *part, const char *state)
 
Returns:
The vertical align value for the given state

EAPI void edje_edit_state_align_x_set (Evas_Object *obj, const char *part, const char *state, double align)
 Set the align_x value of a part state.
EAPI void edje_edit_state_align_y_set (Evas_Object *obj, const char *part, const char *state, double align)
 Set the align_y value of a part state.
EAPI int edje_edit_state_min_w_get (Evas_Object *obj, const char *part, const char *state)
 
Returns:
The minimum width of a part state

EAPI void edje_edit_state_min_w_set (Evas_Object *obj, const char *part, const char *state, int min_w)
 Set the min_w value of a part state.
EAPI int edje_edit_state_min_h_get (Evas_Object *obj, const char *part, const char *state)
 
Returns:
The minimum height of a part state

EAPI void edje_edit_state_min_h_set (Evas_Object *obj, const char *part, const char *state, int min_h)
 Set the min_h value of a part state.
EAPI int edje_edit_state_max_w_get (Evas_Object *obj, const char *part, const char *state)
 
Returns:
The maximum width of a part state

EAPI void edje_edit_state_max_w_set (Evas_Object *obj, const char *part, const char *state, int max_w)
 Set the max_w value of a part state.
EAPI int edje_edit_state_max_h_get (Evas_Object *obj, const char *part, const char *state)
 
Returns:
The maximum height of a part state

EAPI void edje_edit_state_max_h_set (Evas_Object *obj, const char *part, const char *state, int max_h)
 Set the max_h value of a part state.
EAPI double edje_edit_state_aspect_min_get (Evas_Object *obj, const char *part, const char *state)
 
Returns:
The aspect minimum value of a part state

EAPI double edje_edit_state_aspect_max_get (Evas_Object *obj, const char *part, const char *state)
 
Returns:
The aspect maximum value of a part state

EAPI void edje_edit_state_aspect_min_set (Evas_Object *obj, const char *part, const char *state, double aspect)
 Set the minimum aspect value of a part state.
EAPI void edje_edit_state_aspect_max_set (Evas_Object *obj, const char *part, const char *state, double aspect)
 Set the maximum aspect value of a part state.
EAPI unsigned char edje_edit_state_aspect_pref_get (Evas_Object *obj, const char *part, const char *state)
 
Returns:
The aspect preference (0=none, 1=vertical, 2=horizontal, 3=both)

EAPI void edje_edit_state_aspect_pref_set (Evas_Object *obj, const char *part, const char *state, unsigned char pref)
 Set the aspect preference value of a part state.
EAPI double edje_edit_state_fill_origin_relative_x_get (Evas_Object *obj, const char *part, const char *state)
 
Returns:
The fill offset x relative to area

EAPI double edje_edit_state_fill_origin_relative_y_get (Evas_Object *obj, const char *part, const char *state)
 
Returns:
The fill origin y relative to area

EAPI int edje_edit_state_fill_origin_offset_x_get (Evas_Object *obj, const char *part, const char *state)
 
Returns:
The fill origin offset x relative to area

EAPI int edje_edit_state_fill_origin_offset_y_get (Evas_Object *obj, const char *part, const char *state)
 
Returns:
The fill origin offset y relative to area

EAPI void edje_edit_state_fill_origin_relative_x_set (Evas_Object *obj, const char *part, const char *state, double x)
 Set the fill origin relative x value of a part state.
EAPI void edje_edit_state_fill_origin_relative_y_set (Evas_Object *obj, const char *part, const char *state, double x)
 Set the fill origin relative y value of a part state.
EAPI void edje_edit_state_fill_origin_offset_x_set (Evas_Object *obj, const char *part, const char *state, double x)
 Set the fill origin offset x value of a part state.
EAPI void edje_edit_state_fill_origin_offset_y_set (Evas_Object *obj, const char *part, const char *state, double y)
 Set the fill origin offset x value of a part state.
EAPI double edje_edit_state_fill_size_relative_x_get (Evas_Object *obj, const char *part, const char *state)
 
Returns:
The fill size offset x relative to area

EAPI double edje_edit_state_fill_size_relative_y_get (Evas_Object *obj, const char *part, const char *state)
 
Returns:
The fill size y relative to area

EAPI int edje_edit_state_fill_size_offset_x_get (Evas_Object *obj, const char *part, const char *state)
 
Returns:
The fill size offset x relative to area

EAPI int edje_edit_state_fill_size_offset_y_get (Evas_Object *obj, const char *part, const char *state)
 
Returns:
The fill size offset y relative to area

EAPI void edje_edit_state_fill_size_relative_x_set (Evas_Object *obj, const char *part, const char *state, double x)
 Set the fill size relative x value of a part state.
EAPI void edje_edit_state_fill_size_relative_y_set (Evas_Object *obj, const char *part, const char *state, double x)
 Set the fill size relative y value of a part state.
EAPI void edje_edit_state_fill_size_offset_x_set (Evas_Object *obj, const char *part, const char *state, double x)
 Set the fill size offset x value of a part state.
EAPI void edje_edit_state_fill_size_offset_y_set (Evas_Object *obj, const char *part, const char *state, double y)
 Set the fill size offset x value of a part state.
EAPI Eina_Bool edje_edit_state_visible_get (Evas_Object *obj, const char *part, const char *state)
 
Returns:
TRUE if the state is visible

EAPI void edje_edit_state_visible_set (Evas_Object *obj, const char *part, const char *state, Eina_Bool visible)
 Set the visibility of a part state.
EAPI const char * edje_edit_state_color_class_get (Evas_Object *obj, const char *part, const char *state)
 
Returns:
The current color_class of the part state

EAPI void edje_edit_state_color_class_set (Evas_Object *obj, const char *part, const char *state, const char *color_class)
 Set the color class for the given part state.
Text API
Functions to deal with text objects (see Edje Data Collection reference).

EAPI const char * edje_edit_state_text_get (Evas_Object *obj, const char *part, const char *state)
 
Returns:
A newly allocated string containing the text for the given state

EAPI void edje_edit_state_text_set (Evas_Object *obj, const char *part, const char *state, const char *text)
 Set the text of a part state.
EAPI int edje_edit_state_text_size_get (Evas_Object *obj, const char *part, const char *state)
 
Returns:
The font size in pixel or -1 on errors.

EAPI void edje_edit_state_text_size_set (Evas_Object *obj, const char *part, const char *state, int size)
 Set the text size of a part state.
EAPI double edje_edit_state_text_align_x_get (Evas_Object *obj, const char *part, const char *state)
 
Returns:
The text align X value

EAPI double edje_edit_state_text_align_y_get (Evas_Object *obj, const char *part, const char *state)
 
Returns:
The text align Y value

EAPI void edje_edit_state_text_align_x_set (Evas_Object *obj, const char *part, const char *state, double align)
 Set the text horizontal align of a part state.
EAPI void edje_edit_state_text_align_y_set (Evas_Object *obj, const char *part, const char *state, double align)
 Set the text vertical align of a part state.
EAPI double edje_edit_state_text_elipsis_get (Evas_Object *obj, const char *part, const char *state)
 
Returns:
The text elipsis value

EAPI void edje_edit_state_text_elipsis_set (Evas_Object *obj, const char *part, const char *state, double balance)
 Set the text vertical align of a part state.
EAPI Eina_Bool edje_edit_state_text_fit_x_get (Evas_Object *obj, const char *part, const char *state)
 
Returns:
1 If the part fit it's container horizontally

EAPI void edje_edit_state_text_fit_x_set (Evas_Object *obj, const char *part, const char *state, Eina_Bool fit)
 Set if the text part should fit it's container horizontally.
EAPI Eina_Bool edje_edit_state_text_fit_y_get (Evas_Object *obj, const char *part, const char *state)
 
Returns:
1 If the part fit it's container vertically

EAPI void edje_edit_state_text_fit_y_set (Evas_Object *obj, const char *part, const char *state, Eina_Bool fit)
 Set if the text part should fit it's container vertically.
EAPI Eina_List * edje_edit_fonts_list_get (Evas_Object *obj)
 
Returns:
An Eina_List* of string (char *)containing all the fonts names found in the edje file.

EAPI Eina_Bool edje_edit_font_add (Evas_Object *obj, const char *path)
 
Returns:
TRUE on success or FALSE on failure

EAPI const char * edje_edit_state_font_get (Evas_Object *obj, const char *part, const char *state)
 
Returns:
The name of the font used in the given part state

EAPI void edje_edit_state_font_set (Evas_Object *obj, const char *part, const char *state, const char *font)
 Set font name for a given part state.
Images API
Functions to deal with image objects (see Edje Data Collection reference).

EAPI Eina_List * edje_edit_images_list_get (Evas_Object *obj)
 
Returns:
An Eina_List* of string (char *)containing all the images names found in the edje file.

EAPI Eina_Bool edje_edit_image_add (Evas_Object *obj, const char *path)
 
Returns:
TRUE on success or FALSE on failure

EAPI Eina_Bool edje_edit_image_data_add (Evas_Object *obj, const char *name, int id)
 
Returns:
TRUE on success or FALSE on failure

EAPI const char * edje_edit_state_image_get (Evas_Object *obj, const char *part, const char *state)
 
Returns:
The name of the image used by state

EAPI void edje_edit_state_image_set (Evas_Object *obj, const char *part, const char *state, const char *image)
 Set normal image for a given part state.
EAPI int edje_edit_image_id_get (Evas_Object *obj, const char *image_name)
 < The ID of the givan image name
EAPI Edje_Edit_Image_Comp edje_edit_image_compression_type_get (Evas_Object *obj, const char *image)
 
Returns:
One of EDJE_EDIT_IMAGE_COMP_RAW, EDJE_EDIT_IMAGE_COMP_USER, EDJE_EDIT_IMAGE_COMP_COMP or EDJE_EDIT_IMAGE_COMP_LOSSY

EAPI int edje_edit_image_compression_rate_get (Evas_Object *obj, const char *image)
 
Returns:
the compression rate if the image is EDJE_EDIT_IMAGE_COMP_LOSSY. Or < 0 on errors

EAPI void edje_edit_state_image_border_get (Evas_Object *obj, const char *part, const char *state, int *l, int *r, int *t, int *b)
 Get the image border of a part state.
EAPI void edje_edit_state_image_border_set (Evas_Object *obj, const char *part, const char *state, int l, int r, int t, int b)
 Set the image border of a part state.
EAPI unsigned char edje_edit_state_image_border_fill_get (Evas_Object *obj, const char *part, const char *state)
 
Returns:
1 if the center of the bordered image is draw

EAPI void edje_edit_state_image_border_fill_set (Evas_Object *obj, const char *part, const char *state, unsigned char fill)
 Set if the image center should be draw.
EAPI Eina_List * edje_edit_state_tweens_list_get (Evas_Object *obj, const char *part, const char *state)
 
Returns:
A string list containing all the image name that form a tween animation in the given part state

EAPI Eina_Bool edje_edit_state_tween_add (Evas_Object *obj, const char *part, const char *state, const char *tween)
 
Returns:
1 on success, 0 otherwise

EAPI Eina_Bool edje_edit_state_tween_del (Evas_Object *obj, const char *part, const char *state, const char *tween)
 
Returns:
1 on success, 0 otherwise

Spectrum API
Functions to manage spectrum (see Edje Data Collection reference).

EAPI Eina_List * edje_edit_spectrum_list_get (Evas_Object *obj)
 
Returns:
An Eina_List* of string(char *) containing all the spectra names.

EAPI Eina_Bool edje_edit_spectra_add (Evas_Object *obj, const char *name)
 
Returns:
1 on success, 0 otherwise

EAPI Eina_Bool edje_edit_spectra_del (Evas_Object *obj, const char *spectra)
 
Returns:
1 on success, 0 otherwise

EAPI Eina_Bool edje_edit_spectra_name_set (Evas_Object *obj, const char *spectra, const char *name)
 
Returns:
1 on success, 0 otherwise

EAPI int edje_edit_spectra_stop_num_get (Evas_Object *obj, const char *spectra)
 
Returns:
The number of stops, or 0 on errors

EAPI Eina_Bool edje_edit_spectra_stop_num_set (Evas_Object *obj, const char *spectra, int num)
 
Returns:
1 on success, 0 otherwise

EAPI Eina_Bool edje_edit_spectra_stop_color_get (Evas_Object *obj, const char *spectra, int stop_number, int *r, int *g, int *b, int *a, int *d)
 
Returns:
1 on success, 0 otherwise

EAPI Eina_Bool edje_edit_spectra_stop_color_set (Evas_Object *obj, const char *spectra, int stop_number, int r, int g, int b, int a, int d)
 
Returns:
1 on success, 0 otherwise

Gradient API
Functions to deal with gradient objects (see Edje Data Collection reference).

EAPI const char * edje_edit_state_gradient_type_get (Evas_Object *obj, const char *part, const char *state)
 
Returns:
The type of gradient used in state

EAPI Eina_Bool edje_edit_state_gradient_type_set (Evas_Object *obj, const char *part, const char *state, const char *type)
 
Returns:
1 on success, 0 otherwise

EAPI Eina_Bool edje_edit_state_gradient_use_fill_get (Evas_Object *obj, const char *part, const char *state)
 
Returns:
1 if use fill, 0 if use gradient_rel

EAPI const char * edje_edit_state_gradient_spectra_get (Evas_Object *obj, const char *part, const char *state)
 
Returns:
The spectra name used in state

EAPI Eina_Bool edje_edit_state_gradient_spectra_set (Evas_Object *obj, const char *part, const char *state, const char *spectra)
 
Returns:
1 on success, 0 otherwise

EAPI int edje_edit_state_gradient_angle_get (Evas_Object *obj, const char *part, const char *state)
 
Returns:
The angle of the gradient

EAPI void edje_edit_state_gradient_angle_set (Evas_Object *obj, const char *part, const char *state, int angle)
 Set the angle of the gradient.
EAPI double edje_edit_state_gradient_rel1_relative_x_get (Evas_Object *obj, const char *part, const char *state)
 
Returns:
The gradien rel1 relative x value

EAPI double edje_edit_state_gradient_rel1_relative_y_get (Evas_Object *obj, const char *part, const char *state)
 
Returns:
The gradien rel1 relative y value

EAPI double edje_edit_state_gradient_rel2_relative_x_get (Evas_Object *obj, const char *part, const char *state)
 
Returns:
The gradien rel2 relative x value

EAPI double edje_edit_state_gradient_rel2_relative_y_get (Evas_Object *obj, const char *part, const char *state)
 
Returns:
The gradien rel2 relative y value

EAPI Eina_Bool edje_edit_state_gradient_rel1_relative_x_set (Evas_Object *obj, const char *part, const char *state, double val)
 
Returns:
1 on success, 0 otherwise

EAPI Eina_Bool edje_edit_state_gradient_rel1_relative_y_set (Evas_Object *obj, const char *part, const char *state, double val)
 
Returns:
1 on success, 0 otherwise

EAPI Eina_Bool edje_edit_state_gradient_rel2_relative_x_set (Evas_Object *obj, const char *part, const char *state, double val)
 
Returns:
1 on success, 0 otherwise

EAPI Eina_Bool edje_edit_state_gradient_rel2_relative_y_set (Evas_Object *obj, const char *part, const char *state, double val)
 
Returns:
1 on success, 0 otherwise

EAPI int edje_edit_state_gradient_rel1_offset_x_get (Evas_Object *obj, const char *part, const char *state)
 
Returns:
The gradient rel1 offset x value

EAPI int edje_edit_state_gradient_rel1_offset_y_get (Evas_Object *obj, const char *part, const char *state)
 
Returns:
The gradient rel1 offset y value

EAPI int edje_edit_state_gradient_rel2_offset_x_get (Evas_Object *obj, const char *part, const char *state)
 
Returns:
The gradient rel2 offset x value

EAPI int edje_edit_state_gradient_rel2_offset_y_get (Evas_Object *obj, const char *part, const char *state)
 
Returns:
The gradient rel2 offset y value

EAPI Eina_Bool edje_edit_state_gradient_rel1_offset_x_set (Evas_Object *obj, const char *part, const char *state, int val)
 
Returns:
1 on success, 0 otherwise

EAPI Eina_Bool edje_edit_state_gradient_rel1_offset_y_set (Evas_Object *obj, const char *part, const char *state, int val)
 
Returns:
1 on success, 0 otherwise

EAPI Eina_Bool edje_edit_state_gradient_rel2_offset_x_set (Evas_Object *obj, const char *part, const char *state, int val)
 
Returns:
1 on success, 0 otherwise

EAPI Eina_Bool edje_edit_state_gradient_rel2_offset_y_set (Evas_Object *obj, const char *part, const char *state, int val)
 
Returns:
1 on success, 0 otherwise

Programs API
Functions to deal with programs (see Edje Data Collection reference).

EAPI Eina_List * edje_edit_programs_list_get (Evas_Object *obj)
 
Returns:
A string list containing all the program names

EAPI Eina_Bool edje_edit_program_add (Evas_Object *obj, const char *name)
 
Returns:
1 on success or 0 on errors

EAPI Eina_Bool edje_edit_program_del (Evas_Object *obj, const char *prog)
 
Returns:
1 on success or 0 on errors

EAPI Eina_Bool edje_edit_program_exist (Evas_Object *obj, const char *prog)
 < 1 if the program exist, 0 otherwise.
EAPI Eina_Bool edje_edit_program_run (Evas_Object *obj, const char *prog)
 < 1 on success, 0 otherwise.
EAPI Eina_Bool edje_edit_program_name_set (Evas_Object *obj, const char *prog, const char *new_name)
 
Returns:
1 on success or 0 on errors

EAPI const char * edje_edit_program_source_get (Evas_Object *obj, const char *prog)
 
Returns:
The source value for prog

EAPI Eina_Bool edje_edit_program_source_set (Evas_Object *obj, const char *prog, const char *source)
 
Returns:
1 on success or 0 on errors

EAPI const char * edje_edit_program_signal_get (Evas_Object *obj, const char *prog)
 
Returns:
The signal value for prog

EAPI Eina_Bool edje_edit_program_signal_set (Evas_Object *obj, const char *prog, const char *signal)
 
Returns:
1 on success or 0 on errors

EAPI double edje_edit_program_in_from_get (Evas_Object *obj, const char *prog)
 
Returns:
The delay

EAPI Eina_Bool edje_edit_program_in_from_set (Evas_Object *obj, const char *prog, double seconds)
 
Returns:
1 on success or 0 on errors

EAPI double edje_edit_program_in_range_get (Evas_Object *obj, const char *prog)
 
Returns:
The delay random

EAPI Eina_Bool edje_edit_program_in_range_set (Evas_Object *obj, const char *prog, double seconds)
 
Returns:
1 on success or 0 on errors

EAPI Edje_Action_Type edje_edit_program_action_get (Evas_Object *obj, const char *prog)
 
Returns:
The action type, or -1 on errors

EAPI Eina_Bool edje_edit_program_action_set (Evas_Object *obj, const char *prog, Edje_Action_Type action)
 
Returns:
1 on success or 0 on errors

EAPI Eina_List * edje_edit_program_targets_get (Evas_Object *obj, const char *prog)
 
Returns:
An Eina_List of char*, or NULL on error

EAPI Eina_Bool edje_edit_program_target_add (Evas_Object *obj, const char *prog, const char *target)
 
Returns:
1 on success or 0 on errors

EAPI Eina_Bool edje_edit_program_targets_clear (Evas_Object *obj, const char *prog)
 
Returns:
1 on success or 0 on errors

EAPI Eina_List * edje_edit_program_afters_get (Evas_Object *obj, const char *prog)
 
Returns:
An Eina_List of char*, or NULL on error

EAPI Eina_Bool edje_edit_program_after_add (Evas_Object *obj, const char *prog, const char *after)
 
Returns:
1 on success or 0 on errors

EAPI Eina_Bool edje_edit_program_afters_clear (Evas_Object *obj, const char *prog)
 
Returns:
1 on success or 0 on errors

EAPI const char * edje_edit_program_state_get (Evas_Object *obj, const char *prog)
 
Returns:
The name of state for prog

EAPI Eina_Bool edje_edit_program_state_set (Evas_Object *obj, const char *prog, const char *state)
 
Returns:
1 on success or 0 on errors

EAPI double edje_edit_program_value_get (Evas_Object *obj, const char *prog)
 
Returns:
The value of state for prog

EAPI Eina_Bool edje_edit_program_value_set (Evas_Object *obj, const char *prog, double value)
 
Returns:
1 on success or 0 on errors

EAPI const char * edje_edit_program_state2_get (Evas_Object *obj, const char *prog)
 
Returns:
The source to emit for prog

EAPI Eina_Bool edje_edit_program_state2_set (Evas_Object *obj, const char *prog, const char *state2)
 
Returns:
1 on success or 0 on errors

EAPI double edje_edit_program_value2_get (Evas_Object *obj, const char *prog)
 
Returns:
The value of state2 for prog

EAPI Eina_Bool edje_edit_program_value2_set (Evas_Object *obj, const char *prog, double value)
 
Returns:
1 on success or 0 on errors

EAPI Edje_Tween_Mode edje_edit_program_transition_get (Evas_Object *obj, const char *prog)
 
Returns:
The type of transition used by program

EAPI Eina_Bool edje_edit_program_transition_set (Evas_Object *obj, const char *prog, Edje_Tween_Mode transition)
 
Returns:
1 on success or 0 on errors

EAPI double edje_edit_program_transition_time_get (Evas_Object *obj, const char *prog)
 
Returns:
The duration of the transition

EAPI Eina_Bool edje_edit_program_transition_time_set (Evas_Object *obj, const char *prog, double seconds)
 
Returns:
1 on success or 0 on errors

Scripts API
Functions to deal with embryo scripts (see Edje Data Collection reference).

EAPI const char * edje_edit_script_get (Evas_Object *obj)

Function Documentation

EAPI Eina_Bool edje_edit_color_class_add ( Evas_Object *  obj,
const char *  name 
)

Returns:
TRUE on success

Parameters:
obj  The edje object
name  The name of the new color class

EAPI Eina_Bool edje_edit_color_class_colors_get ( Evas_Object *  obj,
const char *  class_name,
int *  r,
int *  g,
int *  b,
int *  a,
int *  r2,
int *  g2,
int *  b2,
int *  a2,
int *  r3,
int *  g3,
int *  b3,
int *  a3 
)

Returns:
TRUE on success

You can pass NULL to colors you are not intrested in

Parameters:
obj  The edje object
class_name  The name of the color class
r  Where to store the red component of the standard color
g  Where to store the green component of the standard color
b  Where to store the blue component of the standard color
a  Where to store the alpha component of the standard color
r2  Where to store the red component of the second color
g2  Where to store the green component of the second color
b2  Where to store the green component of the second color
a2  Where to store the green component of the second color
r3  Where to store the red component of the third color
g3  Where to store the green component of the third color
b3  Where to store the blue component of the third color
a3  Where to store the alpha component of the third color

EAPI Eina_Bool edje_edit_color_class_colors_set ( Evas_Object *  obj,
const char *  class_name,
int  r,
int  g,
int  b,
int  a,
int  r2,
int  g2,
int  b2,
int  a2,
int  r3,
int  g3,
int  b3,
int  a3 
)

Returns:
TRUE on success

If you set a color to -1 it will not be touched

Parameters:
obj  The edje object
class_name  The name of the color class
r  The red component of the standard color
g  The green component of the standard color
b  The blue component of the standard color
a  The alpha component of the standard color
r2  The red component of the second color
g2  The green component of the second color
b2  The blue component of the second color
a2  The alpha component of the second color
r3  The red component of the third color
g3  The green component of the third color
b3  The blue component of the third color
a3  The alpha component of the third color

EAPI Eina_Bool edje_edit_color_class_del ( Evas_Object *  obj,
const char *  name 
)

Returns:
TRUE on success

Parameters:
obj  The edje object
name  The name of the color class to delete

EAPI Eina_Bool edje_edit_color_class_name_set ( Evas_Object *  obj,
const char *  name,
const char *  newname 
)

Returns:
TRUE on success

Parameters:
obj  The edje object
name  The name of the color class
newname  The new name to assign

EAPI Eina_List* edje_edit_color_classes_list_get ( Evas_Object *  obj  ) 

Returns:
An Eina_List* of string (char *)containing all the classes names.

Use edje_edit_string_list_free() when you don't need it anymore.

Parameters:
obj  The edje object

EAPI const char* edje_edit_compiler_get ( Evas_Object *  obj  ) 

Returns:
The compiler name. Don't forget to free the string with edje_edit_string_free()


Can be 'edje_cc' or 'edje_edit'

Parameters:
obj  The edje object

EAPI Eina_Bool edje_edit_data_add ( Evas_Object *  obj,
const char *  itemname,
const char *  value 
)

Returns:
TRUE on success

Parameters:
obj  The edje object
itemname  The name for the new data
value  The value for the new data

EAPI Eina_Bool edje_edit_data_del ( Evas_Object *  obj,
const char *  itemname 
)

Returns:
TRUE on success

Parameters:
obj  The edje object
itemname  The name of the data to remove

EAPI Eina_List* edje_edit_data_list_get ( Evas_Object *  obj  ) 

Returns:
An Eina_List* of string (char *)containing all the data names.

Parameters:
obj  The edje object

EAPI Eina_Bool edje_edit_data_name_set ( Evas_Object *  obj,
const char *  itemname,
const char *  newname 
)

Returns:
TRUE on success

Parameters:
obj  The edje object
itemname  The name of the data item
newname  The new name to set

EAPI const char* edje_edit_data_value_get ( Evas_Object *  obj,
char *  itemname 
)

Returns:
The data value

Parameters:
obj  The edje object
itemname  The name of the data item

EAPI Eina_Bool edje_edit_data_value_set ( Evas_Object *  obj,
const char *  itemname,
const char *  value 
)

Returns:
TRUE on success

Parameters:
obj  The edje object
itemname  The name of the data item
value  The new value to set

EAPI Eina_Bool edje_edit_font_add ( Evas_Object *  obj,
const char *  path 
)

Returns:
TRUE on success or FALSE on failure

The newly created font will be available to all the groups in the edje, not only the current one. If font can't be load FALSE is returned.

Parameters:
obj  The edje object
path  The file path to load the ttf font from

EAPI Eina_List* edje_edit_fonts_list_get ( Evas_Object *  obj  ) 

Returns:
An Eina_List* of string (char *)containing all the fonts names found in the edje file.

Use edje_edit_string_list_free() when you don't need the list anymore.

Parameters:
obj  The edje object

EAPI Eina_Bool edje_edit_group_add ( Evas_Object *  obj,
const char *  name 
)

Returns:
1 on success, 0 on failure

If a group with the same name exist none is created.

Parameters:
obj  The edje object
name  The name for the new empty group

EAPI Eina_Bool edje_edit_group_del ( Evas_Object *  obj  ) 

Returns:
1 on success, 0 on failure

You can only delete the currently loaded group. All the parts and the programs inside the group will be deleted as well, but not image or font embedded in the edje.

Parameters:
obj  The edje object

EAPI Eina_Bool edje_edit_group_exist ( Evas_Object *  obj,
const char *  group 
)

< 1 if the group exist, 0 otherwise.

Parameters:
obj  The edje object
group  The name of the group

EAPI int edje_edit_group_max_h_get ( Evas_Object *  obj  ) 

Returns:
The maxh value or -1 on errors

Parameters:
obj  The edje object

EAPI void edje_edit_group_max_h_set ( Evas_Object *  obj,
int  h 
)

Set the group max height.

Parameters:
obj  The edje object
h  The new group maximum height in pixel

EAPI int edje_edit_group_max_w_get ( Evas_Object *  obj  ) 

Returns:
The maxw value or -1 on errors

Parameters:
obj  The edje object

EAPI void edje_edit_group_max_w_set ( Evas_Object *  obj,
int  w 
)

Set the group max width.

Parameters:
obj  The edje object
w  The new group maximum width in pixel

EAPI int edje_edit_group_min_h_get ( Evas_Object *  obj  ) 

Returns:
The minh value or -1 on errors

Parameters:
obj  The edje object

EAPI void edje_edit_group_min_h_set ( Evas_Object *  obj,
int  h 
)

Set the group min height.

Parameters:
obj  The edje object
h  The new group minimum height in pixel

EAPI int edje_edit_group_min_w_get ( Evas_Object *  obj  ) 

Returns:
The minw value or -1 on errors

Parameters:
obj  The edje object

EAPI void edje_edit_group_min_w_set ( Evas_Object *  obj,
int  w 
)

Set the group min width.

Parameters:
obj  The edje object
w  The new group minimum width in pixel

EAPI Eina_Bool edje_edit_group_name_set ( Evas_Object *  obj,
const char *  new_name 
)

Returns:
1 on success, 0 on failure

You can only rename a group that is currently loaded Note that the relative getter function don't exist as it don't make sense ;)

Parameters:
obj  The edje object
new_name  The new name for the group

EAPI Eina_Bool edje_edit_image_add ( Evas_Object *  obj,
const char *  path 
)

Returns:
TRUE on success or FALSE on failure

This function add the given image inside the edje. Don't add a new image part but only put the image inside the edje file. It actually write directly to the file so you don't have to save (and you can't undo!). After you have to create a new image_part that use this image. Note that all the parts in the edje share the same image collection, thus you can/must use the same image for different part.

The format of the image files that can be loaded depend on the evas engine on your system

Parameters:
obj  The edje object
path  The name of the image file to include in the edje

EAPI int edje_edit_image_compression_rate_get ( Evas_Object *  obj,
const char *  image 
)

Returns:
the compression rate if the image is EDJE_EDIT_IMAGE_COMP_LOSSY. Or < 0 on errors

Parameters:
obj  The edje object
image  The name of the image

EAPI Edje_Edit_Image_Comp edje_edit_image_compression_type_get ( Evas_Object *  obj,
const char *  image 
)

Returns:
One of EDJE_EDIT_IMAGE_COMP_RAW, EDJE_EDIT_IMAGE_COMP_USER, EDJE_EDIT_IMAGE_COMP_COMP or EDJE_EDIT_IMAGE_COMP_LOSSY

Parameters:
obj  The edje object
image  The name of the image

EAPI Eina_Bool edje_edit_image_data_add ( Evas_Object *  obj,
const char *  name,
int  id 
)

Returns:
TRUE on success or FALSE on failure

This function adds the given image entry to the edje image collection. The image needs to be inside the eet already, with key name "images/id". After you have to create a new image_part that use this image, referring to it as "name". Note that all the parts in the edje share the same image collection, thus you can/must use the same image for different part.

Parameters:
obj  The edje object
name  The image entry name
id  The image id

EAPI int edje_edit_image_id_get ( Evas_Object *  obj,
const char *  image_name 
)

< The ID of the givan image name

Could be usefull to directly load the image from the eet file.

Parameters:
obj  The edje object

EAPI Eina_List* edje_edit_images_list_get ( Evas_Object *  obj  ) 

Returns:
An Eina_List* of string (char *)containing all the images names found in the edje file.

Use edje_edit_string_list_free() when you don't need the list anymore.

Parameters:
obj  The edje object

EAPI Eina_Bool edje_edit_part_add ( Evas_Object *  obj,
const char *  name,
Edje_Part_Type  type 
)

Returns:
TRUE on success, FALSE if the part can't be created

Note that this function also create a default description for the part.

Parameters:
obj  The edje object
name  The name for the new part
type  The type of the part to create (One of: EDJE_PART_TYPE_NONE, EDJE_PART_TYPE_RECTANGLE, EDJE_PART_TYPE_TEXT,EDJE_PART_TYPE_IMAGE, EDJE_PART_TYPE_SWALLOW, EDJE_PART_TYPE_TEXTBLOCK,EDJE_PART_TYPE_GRADIENT or EDJE_PART_TYPE_GROUP)

EAPI const char* edje_edit_part_clip_to_get ( Evas_Object *  obj,
const char *  part 
)

Returns:
The name of the part to clip part to. Use edje_edit_string_free() when you don't need it anymore.

NULL is returned on errors and if the part don't have a clip.

Parameters:
obj  The edje object
part  The name of the part

EAPI Eina_Bool edje_edit_part_clip_to_set ( Evas_Object *  obj,
const char *  part,
const char *  clip_to 
)

Returns:
1 on success, 0 otherwise.

If clip_to is NULL then the clipping value will be cancelled (unset clipping)

Parameters:
obj  The edje object
part  The name of the part
clip_to  The name of the part to clip part to.

EAPI Eina_Bool edje_edit_part_del ( Evas_Object *  obj,
const char *  part 
)

Returns:
1 on success, 0 if the part can't be removed

A group must have at least one part, so it's not possible to remove the last remaining part.

Parameters:
obj  The edje object
part  The name of the part to remove

EAPI const char* edje_edit_part_drag_confine_get ( Evas_Object *  obj,
const char *  part 
)

Get the name of the part that is used as 'confine' for the given draggies.

Parameters:
obj  The edje object
part  The name of the drag part

EAPI void edje_edit_part_drag_confine_set ( Evas_Object *  obj,
const char *  part,
const char *  confine 
)

Set the name of the part that is used as 'confine' for the given draggies.

Parameters:
obj  The edje object
part  The name of the drag part
confine  The name of the confine part, or NULL to unset confine

EAPI int edje_edit_part_drag_count_x_get ( Evas_Object *  obj,
const char *  part 
)

Returns:
The drag horizontal count value

Parameters:
obj  The edje object
part  The name of the part

EAPI void edje_edit_part_drag_count_x_set ( Evas_Object *  obj,
const char *  part,
int  count 
)

Set horizontal dragable count for part.

Parameters:
obj  The edje object
part  The name of the part
count  The count value

EAPI int edje_edit_part_drag_count_y_get ( Evas_Object *  obj,
const char *  part 
)

Returns:
The drag vertical count value

Parameters:
obj  The edje object
part  The name of the part

EAPI void edje_edit_part_drag_count_y_set ( Evas_Object *  obj,
const char *  part,
int  count 
)

Set vertical dragable count for part.

Parameters:
obj  The edje object
part  The name of the part
count  The count value

EAPI const char* edje_edit_part_drag_event_get ( Evas_Object *  obj,
const char *  part 
)

Get the name of the part that is used as the receiver of the drag event.

Parameters:
obj  The edje object
part  The name of the drag part

EAPI void edje_edit_part_drag_event_set ( Evas_Object *  obj,
const char *  part,
const char *  event 
)

Set the name of the part that will recive events from the given draggies.

Parameters:
obj  The edje object
part  The name of the drag part
event  The name of the part that will receive events, or NULL to unset.

EAPI int edje_edit_part_drag_step_x_get ( Evas_Object *  obj,
const char *  part 
)

Returns:
The drag horizontal step value

Parameters:
obj  The edje object
part  The name of the part

EAPI void edje_edit_part_drag_step_x_set ( Evas_Object *  obj,
const char *  part,
int  step 
)

Set horizontal dragable state for part.

Parameters:
obj  The edje object
part  The name of the part
step  The step value

EAPI int edje_edit_part_drag_step_y_get ( Evas_Object *  obj,
const char *  part 
)

Returns:
The drag vertical step value

Parameters:
obj  The edje object
part  The name of the part

EAPI void edje_edit_part_drag_step_y_set ( Evas_Object *  obj,
const char *  part,
int  step 
)

Set vertical dragable state for part.

Parameters:
obj  The edje object
part  The name of the part
step  The step value

EAPI int edje_edit_part_drag_x_get ( Evas_Object *  obj,
const char *  part 
)

Returns:
1 (or -1) if the part can be dragged horizontally

(1, -1 or 0)

Parameters:
obj  The edje object
part  The name of the part

EAPI void edje_edit_part_drag_x_set ( Evas_Object *  obj,
const char *  part,
int  drag 
)

Set horizontal dragable state for part.

(1, -1 or 0)

Parameters:
obj  The edje object
part  The name of the part
drag  Set to 1 (or -1) if the part should be dragged horizontally

EAPI int edje_edit_part_drag_y_get ( Evas_Object *  obj,
const char *  part 
)

Returns:
1 (or -1) if the part can be dragged vertically

(1, -1 or 0)

Parameters:
obj  The edje object
part  The name of the part

EAPI void edje_edit_part_drag_y_set ( Evas_Object *  obj,
const char *  part,
int  drag 
)

Set vertical dragable state for part.

(1, -1 or 0)

Parameters:
obj  The edje object
part  The name of the part
drag  Set to 1 (or -1) if the part should be dragged vertically

EAPI Edje_Text_Effect edje_edit_part_effect_get ( Evas_Object *  obj,
const char *  part 
)

Returns:
One of: EDJE_TEXT_EFFECT_NONE, _PLAIN, _OUTLINE, _SOFT_OUTLINE, _SHADOW, _SOFT_SHADOW, _OUTLINE_SHADOW, _OUTLINE_SOFT_SHADOW, _FAR_SHADOW, _FAR_SOFT_SHADOW, _GLOW.

Parameters:
obj  The edje object
part  The name of the part

EAPI void edje_edit_part_effect_set ( Evas_Object *  obj,
const char *  part,
Edje_Text_Effect  effect 
)

Set the effect for a given part.

Parameters:
obj  The edje object
part  The name of the part
effect  The effect to set. See edje_edit_part_effect_get() for possible value

EAPI Eina_Bool edje_edit_part_exist ( Evas_Object *  obj,
const char *  part 
)

< 1 if the part exist, 0 otherwise.

Parameters:
obj  The edje object
part  The name of the part

EAPI Evas_Event_Flags edje_edit_part_ignore_flags_get ( Evas_Object *  obj,
const char *  part 
)

Returns:
event flags ignored

Parameters:
obj  The edje object
part  The name of the part

EAPI void edje_edit_part_ignore_flags_set ( Evas_Object *  obj,
const char *  part,
Evas_Event_Flags  ignore_flags 
)

Set repeat_events for part.

Parameters:
obj  The edje object
part  The name of the part
ignore_flags  event flags to be ignored

EAPI Eina_Bool edje_edit_part_mouse_events_get ( Evas_Object *  obj,
const char *  part 
)

Returns:
1 if part accept mouse events, 0 if not

Parameters:
obj  The edje object
part  The name of the part

EAPI void edje_edit_part_mouse_events_set ( Evas_Object *  obj,
const char *  part,
Eina_Bool  mouse_events 
)

Set mouse_events for part.

Parameters:
obj  The edje object
part  The name of the part
mouse_events  If set to 1 part will accept mouse events, 0 to ignore all mouse events from part.

EAPI Eina_Bool edje_edit_part_name_set ( Evas_Object *  obj,
const char *  part,
const char *  new_name 
)

Returns:
1 on success, 0 on failure

Note that the relative getter function don't exist as it don't make sense ;)

Parameters:
obj  The edje object
part  The name of the part to rename
new_name  The new name for the part

EAPI Eina_Bool edje_edit_part_repeat_events_get ( Evas_Object *  obj,
const char *  part 
)

Returns:
1 if part will pass all events to the other parts, 0 if not

Parameters:
obj  The edje object
part  The name of the part

EAPI void edje_edit_part_repeat_events_set ( Evas_Object *  obj,
const char *  part,
Eina_Bool  repeat_events 
)

Set repeat_events for part.

Parameters:
obj  The edje object
part  The name of the part
repeat_events  If set to 1 part will repeat all the received mouse events to other parts. If set to 0 the events received will not propagate to other parts.

EAPI Eina_Bool edje_edit_part_restack_above ( Evas_Object *  obj,
const char *  part 
)

Returns:
1 on success, 0 on failure

Parameters:
obj  The edje object
part  The name of the part to restack

EAPI Eina_Bool edje_edit_part_restack_below ( Evas_Object *  obj,
const char *  part 
)

Returns:
1 on success, 0 on failure

Parameters:
obj  The edje object
part  The name of the part to restack

EAPI const char* edje_edit_part_selected_state_get ( Evas_Object *  obj,
const char *  part 
)

Returns:
The name of the selected state including the float value. Use edje_edit_string_free() when you don't need it anymore.

Parameters:
obj  The edje object
part  The name of the part

EAPI Eina_Bool edje_edit_part_selected_state_set ( Evas_Object *  obj,
const char *  part,
const char *  state 
)

Returns:
1 on success, 0 otherwise.

Parameters:
obj  The edje object
part  The name of the part
state  The name of the state to set (including the float value)

EAPI const char* edje_edit_part_source_get ( Evas_Object *  obj,
const char *  part 
)

Returns:
The name of the group to source the given part. Use edje_edit_string_free() when you don't need it anymore.

Source is used in part of type EDJE_PART_TYPE_GROUP to specify the group to 'autoswallow' inside the given part.

Parameters:
obj  The edje object
part  The name of the part

EAPI Eina_Bool edje_edit_part_source_set ( Evas_Object *  obj,
const char *  part,
const char *  source 
)

Returns:
1 on success, 0 otherwise.

Source is used in part of type EDJE_PART_TYPE_GROUP to specify the group to 'autoswallow' inside the given part. NOTE: This is not applied now. You must reload the edje to see the change.

Parameters:
obj  The edje object
part  The name of the part
source  The name of the group to autoswallow in the given part

EAPI Eina_List* edje_edit_part_states_list_get ( Evas_Object *  obj,
const char *  part 
)

Returns:
An Eina_List* of string (char *)containing all the states names found in part, including the float value (ex: "default 0.00").

Use edje_edit_string_list_free() when you don't need it anymore.

Parameters:
obj  The edje object
part  The name of the part

EAPI Edje_Part_Type edje_edit_part_type_get ( Evas_Object *  obj,
const char *  part 
)

Returns:
One of: EDJE_PART_TYPE_NONE, EDJE_PART_TYPE_RECTANGLE, EDJE_PART_TYPE_TEXT,EDJE_PART_TYPE_IMAGE, EDJE_PART_TYPE_SWALLOW, EDJE_PART_TYPE_TEXTBLOCK,EDJE_PART_TYPE_GRADIENT or EDJE_PART_TYPE_GROUP

Parameters:
obj  The edje object
part  The name of the part

EAPI Eina_List* edje_edit_parts_list_get ( Evas_Object *  obj  ) 

Returns:
An Eina_List* of string (char *)containing all the part names.

Use edje_edit_string_list_free() when you don't need it anymore.

Parameters:
obj  The edje object

EAPI void edje_edit_print_internal_status ( Evas_Object *  obj  ) 

Print on standard output many information about the internal status of the edje object.

This is probably only usefull to debug.

Parameters:
obj  The edje object to inspect

EAPI Edje_Action_Type edje_edit_program_action_get ( Evas_Object *  obj,
const char *  prog 
)

Returns:
The action type, or -1 on errors

Action can be one of EDJE_ACTION_TYPE_NONE, _STATE_SET, ACTION_STOP, SIGNAL_EMIT, DRAG_VAL_SET, _DRAG_VAL_STEP, _DRAG_VAL_PAGE, _SCRIPT

Parameters:
obj  The edje object
prog  The program name

EAPI Eina_Bool edje_edit_program_action_set ( Evas_Object *  obj,
const char *  prog,
Edje_Action_Type  action 
)

Returns:
1 on success or 0 on errors

Action can be one of EDJE_ACTION_TYPE_NONE, _STATE_SET, ACTION_STOP, SIGNAL_EMIT, DRAG_VAL_SET, _DRAG_VAL_STEP, _DRAG_VAL_PAGE, _SCRIPT

Parameters:
obj  The edje object
prog  The program name
action  The new action type

EAPI Eina_Bool edje_edit_program_add ( Evas_Object *  obj,
const char *  name 
)

Returns:
1 on success or 0 on errors

Parameters:
obj  The edje object
name  The name of the new program

EAPI Eina_Bool edje_edit_program_after_add ( Evas_Object *  obj,
const char *  prog,
const char *  after 
)

Returns:
1 on success or 0 on errors

All the programs listed in 'afters' will be executed after program execution.

Parameters:
obj  The edje object
prog  The program name
after  The name of another program to add to the afters list

EAPI Eina_Bool edje_edit_program_afters_clear ( Evas_Object *  obj,
const char *  prog 
)

Returns:
1 on success or 0 on errors

Parameters:
obj  The edje object
prog  The program name

EAPI Eina_List* edje_edit_program_afters_get ( Evas_Object *  obj,
const char *  prog 
)

Returns:
An Eina_List of char*, or NULL on error

Use edje_edit_string_list_free() when you don't need it anymore.

Parameters:
obj  The edje object
prog  The program name

EAPI Eina_Bool edje_edit_program_del ( Evas_Object *  obj,
const char *  prog 
)

Returns:
1 on success or 0 on errors

Parameters:
obj  The edje object
prog  The name of the program to remove

EAPI Eina_Bool edje_edit_program_exist ( Evas_Object *  obj,
const char *  prog 
)

< 1 if the program exist, 0 otherwise.

Parameters:
obj  The edje object
prog  The name of the program

EAPI double edje_edit_program_in_from_get ( Evas_Object *  obj,
const char *  prog 
)

Returns:
The delay

Parameters:
obj  The edje object
prog  The program name

EAPI Eina_Bool edje_edit_program_in_from_set ( Evas_Object *  obj,
const char *  prog,
double  seconds 
)

Returns:
1 on success or 0 on errors

Parameters:
obj  The edje object
prog  The program name
seconds  Number of seconds to delay the program execution

EAPI double edje_edit_program_in_range_get ( Evas_Object *  obj,
const char *  prog 
)

Returns:
The delay random

Parameters:
obj  The edje object
prog  The program name

EAPI Eina_Bool edje_edit_program_in_range_set ( Evas_Object *  obj,
const char *  prog,
double  seconds 
)

Returns:
1 on success or 0 on errors

Parameters:
obj  The edje object
prog  The program name
seconds  Max random number of seconds to delay

EAPI Eina_Bool edje_edit_program_name_set ( Evas_Object *  obj,
const char *  prog,
const char *  new_name 
)

Returns:
1 on success or 0 on errors

Parameters:
obj  The edje object
prog  The program name
new_name  The new name to assign

EAPI Eina_Bool edje_edit_program_run ( Evas_Object *  obj,
const char *  prog 
)

< 1 on success, 0 otherwise.

Parameters:
obj  The edje object
prog  The name of the program to execute

EAPI const char* edje_edit_program_signal_get ( Evas_Object *  obj,
const char *  prog 
)

Returns:
The signal value for prog

Remember to free the returned string using edje_edit_string_free().

Parameters:
obj  The edje object
prog  The program name

EAPI Eina_Bool edje_edit_program_signal_set ( Evas_Object *  obj,
const char *  prog,
const char *  signal 
)

Returns:
1 on success or 0 on errors

Parameters:
obj  The edje object
prog  The program name
signal  The new signal value

EAPI const char* edje_edit_program_source_get ( Evas_Object *  obj,
const char *  prog 
)

Returns:
The source value for prog

Remember to free the returned string using edje_edit_string_free().

Parameters:
obj  The edje object
prog  The program name

EAPI Eina_Bool edje_edit_program_source_set ( Evas_Object *  obj,
const char *  prog,
const char *  source 
)

Returns:
1 on success or 0 on errors

Parameters:
obj  The edje object
prog  The program name
source  The new source value

EAPI const char* edje_edit_program_state2_get ( Evas_Object *  obj,
const char *  prog 
)

Returns:
The source to emit for prog

Parameters:
obj  The edje object
prog  The program name

EAPI Eina_Bool edje_edit_program_state2_set ( Evas_Object *  obj,
const char *  prog,
const char *  state2 
)

Returns:
1 on success or 0 on errors

Parameters:
obj  The edje object
prog  The program name
state2  The state2 value to set

EAPI const char* edje_edit_program_state_get ( Evas_Object *  obj,
const char *  prog 
)

Returns:
The name of state for prog

In a SIGNAL_EMIT action is the name of the signal to emit.

Parameters:
obj  The edje object
prog  The program name

EAPI Eina_Bool edje_edit_program_state_set ( Evas_Object *  obj,
const char *  prog,
const char *  state 
)

Returns:
1 on success or 0 on errors

In a SIGNAL_EMIT action is the name of the signal to emit.

Parameters:
obj  The edje object
prog  The program name
state  The state to set (not including the state value)

EAPI Eina_Bool edje_edit_program_target_add ( Evas_Object *  obj,
const char *  prog,
const char *  target 
)

Returns:
1 on success or 0 on errors

If program action is EDJE_ACTION_TYPE_ACTION_STOP then 'target' must be an existing program name. If action is EDJE_ACTION_TYPE_STATE_SET then 'target' must be an existing part name.

Parameters:
obj  The edje object
prog  The program name
target  The name of another program or another part

EAPI Eina_Bool edje_edit_program_targets_clear ( Evas_Object *  obj,
const char *  prog 
)

Returns:
1 on success or 0 on errors

Parameters:
obj  The edje object
prog  The program name

EAPI Eina_List* edje_edit_program_targets_get ( Evas_Object *  obj,
const char *  prog 
)

Returns:
An Eina_List of char*, or NULL on error

Parameters:
obj  The edje object
prog  The program name

EAPI Edje_Tween_Mode edje_edit_program_transition_get ( Evas_Object *  obj,
const char *  prog 
)

Returns:
The type of transition used by program

Can be one of: EDJE_TWEEN_MODE_NONE, EDJE_TWEEN_MODE_LINEAR, EDJE_TWEEN_MODE_SINUSOIDAL, EDJE_TWEEN_MODE_ACCELERATE or EDJE_TWEEN_MODE_DECELERATE.

Parameters:
obj  The edje object
prog  The program name

EAPI Eina_Bool edje_edit_program_transition_set ( Evas_Object *  obj,
const char *  prog,
Edje_Tween_Mode  transition 
)

Returns:
1 on success or 0 on errors

Can be one of: EDJE_TWEEN_MODE_NONE, EDJE_TWEEN_MODE_LINEAR, EDJE_TWEEN_MODE_SINUSOIDAL, EDJE_TWEEN_MODE_ACCELERATE or EDJE_TWEEN_MODE_DECELERATE.

Parameters:
obj  The edje object
prog  The program name
transition  The transition type to set

EAPI double edje_edit_program_transition_time_get ( Evas_Object *  obj,
const char *  prog 
)

Returns:
The duration of the transition

Parameters:
obj  The edje object
prog  The program name

EAPI Eina_Bool edje_edit_program_transition_time_set ( Evas_Object *  obj,
const char *  prog,
double  seconds 
)

Returns:
1 on success or 0 on errors

Parameters:
obj  The edje object
prog  The program name
seconds  The duration of the transition (in seconds)

EAPI double edje_edit_program_value2_get ( Evas_Object *  obj,
const char *  prog 
)

Returns:
The value of state2 for prog

I don't know what this is used for. :P

Parameters:
obj  The edje object
prog  The program name

EAPI Eina_Bool edje_edit_program_value2_set ( Evas_Object *  obj,
const char *  prog,
double  value 
)

Returns:
1 on success or 0 on errors

This is used in DRAG_ACTION

Parameters:
obj  The edje object
prog  The program name
value  The value to set

EAPI double edje_edit_program_value_get ( Evas_Object *  obj,
const char *  prog 
)

Returns:
The value of state for prog

In a STATE_SET action this is the value of state to set. Not used on SIGNAL_EMIT action.

Parameters:
obj  The edje object
prog  The program name

EAPI Eina_Bool edje_edit_program_value_set ( Evas_Object *  obj,
const char *  prog,
double  value 
)

Returns:
1 on success or 0 on errors

In a STATE_SET action this is the value of state to set. Not used on SIGNAL_EMIT action.

Parameters:
obj  The edje object
prog  The program name
value  The value to set

EAPI Eina_List* edje_edit_programs_list_get ( Evas_Object *  obj  ) 

Returns:
A string list containing all the program names

Parameters:
obj The edje object
Returns:
An Eina_List* of string (char *)containing all the program names. Use edje_edit_string_list_free() when you don't need it anymore.
Parameters:
obj  The edje object

EAPI int edje_edit_save ( Evas_Object *  obj  ) 

Returns:
1 on success, 0 on failure

Use this function when you are done with your editing, all the change made to the current loaded group will be saved back to the original file.

NOTE: for now this as 2 limitations -the saved edje file cannot be decompiled anymore -you will lost your define in the edc source

Parameters:
obj  The edje object to save

EAPI Eina_Bool edje_edit_spectra_add ( Evas_Object *  obj,
const char *  name 
)

Returns:
1 on success, 0 otherwise

Parameters:
obj  The edje object
name  The name of the new spectra

EAPI Eina_Bool edje_edit_spectra_del ( Evas_Object *  obj,
const char *  spectra 
)

Returns:
1 on success, 0 otherwise

Parameters:
obj  The edje object
spectra  The name of the spectra to delete

EAPI Eina_Bool edje_edit_spectra_name_set ( Evas_Object *  obj,
const char *  spectra,
const char *  name 
)

Returns:
1 on success, 0 otherwise

Parameters:
obj  The edje object
spectra  The current name of the spectra
name  The new name to assign

EAPI Eina_Bool edje_edit_spectra_stop_color_get ( Evas_Object *  obj,
const char *  spectra,
int  stop_number,
int *  r,
int *  g,
int *  b,
int *  a,
int *  d 
)

Returns:
1 on success, 0 otherwise

Parameters:
obj  The edje object
spectra  The name of the spectra
stop_number  The number of the stop
r  Where to store the red color value
g  Where to store the green color value
b  Where to store the blue color value
a  Where to store the alpha color value
d  Where to store the delta stop value

EAPI Eina_Bool edje_edit_spectra_stop_color_set ( Evas_Object *  obj,
const char *  spectra,
int  stop_number,
int  r,
int  g,
int  b,
int  a,
int  d 
)

Returns:
1 on success, 0 otherwise

Parameters:
obj  The edje object
spectra  The name of the spectra
stop_number  The number of the stop
r  The red color value to set
g  The green color value to set
b  The blue color value to set
a  The alpha color value to set
d  The delta stop value to set

EAPI int edje_edit_spectra_stop_num_get ( Evas_Object *  obj,
const char *  spectra 
)

Returns:
The number of stops, or 0 on errors

Parameters:
obj  The edje object
spectra  The name of the spectra

EAPI Eina_Bool edje_edit_spectra_stop_num_set ( Evas_Object *  obj,
const char *  spectra,
int  num 
)

Returns:
1 on success, 0 otherwise

Parameters:
obj  The edje object
spectra  The name of the spectra
num  The number of stops you want

EAPI Eina_List* edje_edit_spectrum_list_get ( Evas_Object *  obj  ) 

Returns:
An Eina_List* of string(char *) containing all the spectra names.

Use edje_edit_string_list_free() when you don't need it anymore.

Parameters:
obj  The edje object

EAPI void edje_edit_state_add ( Evas_Object *  obj,
const char *  part,
const char *  name 
)

Create a new state to the give part.

Parameters:
obj  The edje object
part  The name of the part
name  The name for the new state (not including the state value)

EAPI double edje_edit_state_align_x_get ( Evas_Object *  obj,
const char *  part,
const char *  state 
)

Returns:
The horizontal align value for the given state

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")

EAPI void edje_edit_state_align_x_set ( Evas_Object *  obj,
const char *  part,
const char *  state,
double  align 
)

Set the align_x value of a part state.

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")
align  The new horizontal align to set

EAPI double edje_edit_state_align_y_get ( Evas_Object *  obj,
const char *  part,
const char *  state 
)

Returns:
The vertical align value for the given state

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")

EAPI void edje_edit_state_align_y_set ( Evas_Object *  obj,
const char *  part,
const char *  state,
double  align 
)

Set the align_y value of a part state.

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")
align  The new vertical align to set

EAPI double edje_edit_state_aspect_max_get ( Evas_Object *  obj,
const char *  part,
const char *  state 
)

Returns:
The aspect maximum value of a part state

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")

EAPI void edje_edit_state_aspect_max_set ( Evas_Object *  obj,
const char *  part,
const char *  state,
double  aspect 
)

Set the maximum aspect value of a part state.

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")
aspect  The new maximum aspect value to set

EAPI double edje_edit_state_aspect_min_get ( Evas_Object *  obj,
const char *  part,
const char *  state 
)

Returns:
The aspect minimum value of a part state

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")

EAPI void edje_edit_state_aspect_min_set ( Evas_Object *  obj,
const char *  part,
const char *  state,
double  aspect 
)

Set the minimum aspect value of a part state.

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")
aspect  The new minimum aspect value to set

EAPI unsigned char edje_edit_state_aspect_pref_get ( Evas_Object *  obj,
const char *  part,
const char *  state 
)

Returns:
The aspect preference (0=none, 1=vertical, 2=horizontal, 3=both)

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")

EAPI void edje_edit_state_aspect_pref_set ( Evas_Object *  obj,
const char *  part,
const char *  state,
unsigned char  pref 
)

Set the aspect preference value of a part state.

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")
pref  The new aspect preference to set (0=none, 1=vertical, 2=horizontal, 3=both)

EAPI void edje_edit_state_color2_get ( Evas_Object *  obj,
const char *  part,
const char *  state,
int *  r,
int *  g,
int *  b,
int *  a 
)

Get the color2 of a part state.

Pass NULL to any of [r,g,b,a] to get only the others.

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")
r  A pointer to store the red value
g  A pointer to store the green value
b  A pointer to store the blue value
a  A pointer to store the alpha value

EAPI void edje_edit_state_color2_set ( Evas_Object *  obj,
const char *  part,
const char *  state,
int  r,
int  g,
int  b,
int  a 
)

Set the color2 of a part state.

Pass -1 to any of [r,g,b,a] to leave the value untouched.

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")
r  The red value of the color
g  The green value of the color
b  The blue value of the color
a  The alpha value of the color

EAPI void edje_edit_state_color3_get ( Evas_Object *  obj,
const char *  part,
const char *  state,
int *  r,
int *  g,
int *  b,
int *  a 
)

Get the color3 of a part state.

Pass NULL to any of [r,g,b,a] to get only the others.

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")
r  A pointer to store the red value
g  A pointer to store the green value
b  A pointer to store the blue value
a  A pointer to store the alpha value

EAPI void edje_edit_state_color3_set ( Evas_Object *  obj,
const char *  part,
const char *  state,
int  r,
int  g,
int  b,
int  a 
)

Set the color3 of a part state.

Pass -1 to any of [r,g,b,a] to leave the value untouched.

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")
r  The red value of the color
g  The green value of the color
b  The blue value of the color
a  The alpha value of the color

EAPI const char* edje_edit_state_color_class_get ( Evas_Object *  obj,
const char *  part,
const char *  state 
)

Returns:
The current color_class of the part state

Remember to free the string with edje_edit_string_free()

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")

EAPI void edje_edit_state_color_class_set ( Evas_Object *  obj,
const char *  part,
const char *  state,
const char *  color_class 
)

Set the color class for the given part state.

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")
color_class  The new color_class to assign

EAPI void edje_edit_state_color_get ( Evas_Object *  obj,
const char *  part,
const char *  state,
int *  r,
int *  g,
int *  b,
int *  a 
)

Get the color of a part state.

Pass NULL to any of [r,g,b,a] to get only the others.

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")
r  A pointer to store the red value
g  A pointer to store the green value
b  A pointer to store the blue value
a  A pointer to store the alpha value

EAPI void edje_edit_state_color_set ( Evas_Object *  obj,
const char *  part,
const char *  state,
int  r,
int  g,
int  b,
int  a 
)

Set the color of a part state.

Pass -1 to any of [r,g,b,a] to leave the value untouched.

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")
r  The red value of the color
g  The green value of the color
b  The blue value of the color
a  The alpha value of the color

EAPI void edje_edit_state_del ( Evas_Object *  obj,
const char *  part,
const char *  state 
)

Delete the given part state from the edje.

Parameters:
obj  The edje object
part  The name of the part that contain state
state  The current name of the state (including the state value)

EAPI Eina_Bool edje_edit_state_exist ( Evas_Object *  obj,
const char *  part,
const char *  state 
)

< 1 if the part state exist, 0 otherwise.

Parameters:
obj  The edje object
part  The name of the part
state  The name of the state to check (including the state value)

EAPI int edje_edit_state_fill_origin_offset_x_get ( Evas_Object *  obj,
const char *  part,
const char *  state 
)

Returns:
The fill origin offset x relative to area

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")

EAPI void edje_edit_state_fill_origin_offset_x_set ( Evas_Object *  obj,
const char *  part,
const char *  state,
double  x 
)

Set the fill origin offset x value of a part state.

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")
x  The new value to set

EAPI int edje_edit_state_fill_origin_offset_y_get ( Evas_Object *  obj,
const char *  part,
const char *  state 
)

Returns:
The fill origin offset y relative to area

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")

EAPI void edje_edit_state_fill_origin_offset_y_set ( Evas_Object *  obj,
const char *  part,
const char *  state,
double  y 
)

Set the fill origin offset x value of a part state.

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")
y  The new value to set

EAPI double edje_edit_state_fill_origin_relative_x_get ( Evas_Object *  obj,
const char *  part,
const char *  state 
)

Returns:
The fill offset x relative to area

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")

EAPI void edje_edit_state_fill_origin_relative_x_set ( Evas_Object *  obj,
const char *  part,
const char *  state,
double  x 
)

Set the fill origin relative x value of a part state.

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")
x  The new value to set

EAPI double edje_edit_state_fill_origin_relative_y_get ( Evas_Object *  obj,
const char *  part,
const char *  state 
)

Returns:
The fill origin y relative to area

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")

EAPI void edje_edit_state_fill_origin_relative_y_set ( Evas_Object *  obj,
const char *  part,
const char *  state,
double  x 
)

Set the fill origin relative y value of a part state.

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")
x  The new value to set

EAPI int edje_edit_state_fill_size_offset_x_get ( Evas_Object *  obj,
const char *  part,
const char *  state 
)

Returns:
The fill size offset x relative to area

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")

EAPI void edje_edit_state_fill_size_offset_x_set ( Evas_Object *  obj,
const char *  part,
const char *  state,
double  x 
)

Set the fill size offset x value of a part state.

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")
x  The new value to set

EAPI int edje_edit_state_fill_size_offset_y_get ( Evas_Object *  obj,
const char *  part,
const char *  state 
)

Returns:
The fill size offset y relative to area

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")

EAPI void edje_edit_state_fill_size_offset_y_set ( Evas_Object *  obj,
const char *  part,
const char *  state,
double  y 
)

Set the fill size offset x value of a part state.

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")
y  The new value to set

EAPI double edje_edit_state_fill_size_relative_x_get ( Evas_Object *  obj,
const char *  part,
const char *  state 
)

Returns:
The fill size offset x relative to area

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")

EAPI void edje_edit_state_fill_size_relative_x_set ( Evas_Object *  obj,
const char *  part,
const char *  state,
double  x 
)

Set the fill size relative x value of a part state.

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")
x  The new value to set

EAPI double edje_edit_state_fill_size_relative_y_get ( Evas_Object *  obj,
const char *  part,
const char *  state 
)

Returns:
The fill size y relative to area

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")

EAPI void edje_edit_state_fill_size_relative_y_set ( Evas_Object *  obj,
const char *  part,
const char *  state,
double  x 
)

Set the fill size relative y value of a part state.

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")
x  The new value to set

EAPI const char* edje_edit_state_font_get ( Evas_Object *  obj,
const char *  part,
const char *  state 
)

Returns:
The name of the font used in the given part state

Remember to free the returned string using edje_edit_string_free().

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")

EAPI void edje_edit_state_font_set ( Evas_Object *  obj,
const char *  part,
const char *  state,
const char *  font 
)

Set font name for a given part state.

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")
font  The name of the font to use in the given part state

EAPI int edje_edit_state_gradient_angle_get ( Evas_Object *  obj,
const char *  part,
const char *  state 
)

Returns:
The angle of the gradient

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")

EAPI void edje_edit_state_gradient_angle_set ( Evas_Object *  obj,
const char *  part,
const char *  state,
int  angle 
)

Set the angle of the gradient.

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")
angle  The angle to set

EAPI int edje_edit_state_gradient_rel1_offset_x_get ( Evas_Object *  obj,
const char *  part,
const char *  state 
)

Returns:
The gradient rel1 offset x value

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")

EAPI Eina_Bool edje_edit_state_gradient_rel1_offset_x_set ( Evas_Object *  obj,
const char *  part,
const char *  state,
int  val 
)

Returns:
1 on success, 0 otherwise

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")

EAPI int edje_edit_state_gradient_rel1_offset_y_get ( Evas_Object *  obj,
const char *  part,
const char *  state 
)

Returns:
The gradient rel1 offset y value

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")

EAPI Eina_Bool edje_edit_state_gradient_rel1_offset_y_set ( Evas_Object *  obj,
const char *  part,
const char *  state,
int  val 
)

Returns:
1 on success, 0 otherwise

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")

EAPI double edje_edit_state_gradient_rel1_relative_x_get ( Evas_Object *  obj,
const char *  part,
const char *  state 
)

Returns:
The gradien rel1 relative x value

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")

EAPI Eina_Bool edje_edit_state_gradient_rel1_relative_x_set ( Evas_Object *  obj,
const char *  part,
const char *  state,
double  val 
)

Returns:
1 on success, 0 otherwise

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")

EAPI double edje_edit_state_gradient_rel1_relative_y_get ( Evas_Object *  obj,
const char *  part,
const char *  state 
)

Returns:
The gradien rel1 relative y value

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")

EAPI Eina_Bool edje_edit_state_gradient_rel1_relative_y_set ( Evas_Object *  obj,
const char *  part,
const char *  state,
double  val 
)

Returns:
1 on success, 0 otherwise

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")

EAPI int edje_edit_state_gradient_rel2_offset_x_get ( Evas_Object *  obj,
const char *  part,
const char *  state 
)

Returns:
The gradient rel2 offset x value

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")

EAPI Eina_Bool edje_edit_state_gradient_rel2_offset_x_set ( Evas_Object *  obj,
const char *  part,
const char *  state,
int  val 
)

Returns:
1 on success, 0 otherwise

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")

EAPI int edje_edit_state_gradient_rel2_offset_y_get ( Evas_Object *  obj,
const char *  part,
const char *  state 
)

Returns:
The gradient rel2 offset y value

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")

EAPI Eina_Bool edje_edit_state_gradient_rel2_offset_y_set ( Evas_Object *  obj,
const char *  part,
const char *  state,
int  val 
)

Returns:
1 on success, 0 otherwise

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")

EAPI double edje_edit_state_gradient_rel2_relative_x_get ( Evas_Object *  obj,
const char *  part,
const char *  state 
)

Returns:
The gradien rel2 relative x value

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")

EAPI Eina_Bool edje_edit_state_gradient_rel2_relative_x_set ( Evas_Object *  obj,
const char *  part,
const char *  state,
double  val 
)

Returns:
1 on success, 0 otherwise

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")

EAPI double edje_edit_state_gradient_rel2_relative_y_get ( Evas_Object *  obj,
const char *  part,
const char *  state 
)

Returns:
The gradien rel2 relative y value

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")

EAPI Eina_Bool edje_edit_state_gradient_rel2_relative_y_set ( Evas_Object *  obj,
const char *  part,
const char *  state,
double  val 
)

Returns:
1 on success, 0 otherwise

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")

EAPI const char* edje_edit_state_gradient_spectra_get ( Evas_Object *  obj,
const char *  part,
const char *  state 
)

Returns:
The spectra name used in state

Remember to free the string with edje_edit_string_free()

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")

EAPI Eina_Bool edje_edit_state_gradient_spectra_set ( Evas_Object *  obj,
const char *  part,
const char *  state,
const char *  spectra 
)

Returns:
1 on success, 0 otherwise

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")
spectra  The spectra name to assign

EAPI const char* edje_edit_state_gradient_type_get ( Evas_Object *  obj,
const char *  part,
const char *  state 
)

Returns:
The type of gradient used in state

Remember to free the string with edje_edit_string_free().

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")

EAPI Eina_Bool edje_edit_state_gradient_type_set ( Evas_Object *  obj,
const char *  part,
const char *  state,
const char *  type 
)

Returns:
1 on success, 0 otherwise

Gradient type can be on of the following: linear, linear.diag, linear.codiag, radial, rectangular, angular, sinusoidal

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")
type  The type of gradient to use

EAPI Eina_Bool edje_edit_state_gradient_use_fill_get ( Evas_Object *  obj,
const char *  part,
const char *  state 
)

Returns:
1 if use fill, 0 if use gradient_rel

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")

EAPI unsigned char edje_edit_state_image_border_fill_get ( Evas_Object *  obj,
const char *  part,
const char *  state 
)

Returns:
1 if the center of the bordered image is draw

1 means to draw the center, 0 to don't draw it.

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")

EAPI void edje_edit_state_image_border_fill_set ( Evas_Object *  obj,
const char *  part,
const char *  state,
unsigned char  fill 
)

Set if the image center should be draw.

1 means to draw the center, 0 to don't draw it.

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")
fill  If set to 0 the image center isn't draw

EAPI void edje_edit_state_image_border_get ( Evas_Object *  obj,
const char *  part,
const char *  state,
int *  l,
int *  r,
int *  t,
int *  b 
)

Get the image border of a part state.

Pass NULL to any of [r,g,b,a] to get only the others.

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")
l  A pointer to store the left value
r  A pointer to store the right value
t  A pointer to store the top value
b  A pointer to store the bottom value

EAPI void edje_edit_state_image_border_set ( Evas_Object *  obj,
const char *  part,
const char *  state,
int  l,
int  r,
int  t,
int  b 
)

Set the image border of a part state.

Pass -1 to any of [l,r,t,b] to leave the value untouched.

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")
l  The new left border (or -1)
r  The new right border (or -1)
t  The new top border (or -1)
b  The new bottom border (or -1)

EAPI const char* edje_edit_state_image_get ( Evas_Object *  obj,
const char *  part,
const char *  state 
)

Returns:
The name of the image used by state

Remember to free the returned string using edje_edit_string_free().

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")

EAPI void edje_edit_state_image_set ( Evas_Object *  obj,
const char *  part,
const char *  state,
const char *  image 
)

Set normal image for a given part state.

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")
image  The name of the image for the given state (must be an image contained in the edje file)

EAPI int edje_edit_state_max_h_get ( Evas_Object *  obj,
const char *  part,
const char *  state 
)

Returns:
The maximum height of a part state

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")

EAPI void edje_edit_state_max_h_set ( Evas_Object *  obj,
const char *  part,
const char *  state,
int  max_h 
)

Set the max_h value of a part state.

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")
max_h  The new maximum height to set for the part state

EAPI int edje_edit_state_max_w_get ( Evas_Object *  obj,
const char *  part,
const char *  state 
)

Returns:
The maximum width of a part state

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")

EAPI void edje_edit_state_max_w_set ( Evas_Object *  obj,
const char *  part,
const char *  state,
int  max_w 
)

Set the max_w value of a part state.

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")
max_w  The new maximum width to set for the part state

EAPI int edje_edit_state_min_h_get ( Evas_Object *  obj,
const char *  part,
const char *  state 
)

Returns:
The minimum height of a part state

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")

EAPI void edje_edit_state_min_h_set ( Evas_Object *  obj,
const char *  part,
const char *  state,
int  min_h 
)

Set the min_h value of a part state.

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")
min_h  The new minimum height to set for the part state

EAPI int edje_edit_state_min_w_get ( Evas_Object *  obj,
const char *  part,
const char *  state 
)

Returns:
The minimum width of a part state

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")

EAPI void edje_edit_state_min_w_set ( Evas_Object *  obj,
const char *  part,
const char *  state,
int  min_w 
)

Set the min_w value of a part state.

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")
min_w  The new minimum width to set for the part state

EAPI int edje_edit_state_name_set ( Evas_Object *  obj,
const char *  part,
const char *  state,
const char *  new_name 
)

Set a new name for the given state in the given part.

Note that state and new_name must include the floating value inside the string (ex. "default 0.00")

Parameters:
obj  The edje object
part  The name of the part that contain state
state  The current name of the state
new_name  The new name to assign (including the value)

EAPI int edje_edit_state_rel1_offset_x_get ( Evas_Object *  obj,
const char *  part,
const char *  state 
)

Returns:
The 'rel1 offset X' value of the part state

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")

EAPI void edje_edit_state_rel1_offset_x_set ( Evas_Object *  obj,
const char *  part,
const char *  state,
double  x 
)

Set the rel1 offset x value of state.

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")
x  The new 'rel1 offset X' value to set

EAPI int edje_edit_state_rel1_offset_y_get ( Evas_Object *  obj,
const char *  part,
const char *  state 
)

Returns:
The 'rel1 offset Y' value of the part state

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")

EAPI void edje_edit_state_rel1_offset_y_set ( Evas_Object *  obj,
const char *  part,
const char *  state,
double  y 
)

Get the rel1 offset y value of state.

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")
y  The new 'rel1 offset Y' value to set

EAPI double edje_edit_state_rel1_relative_x_get ( Evas_Object *  obj,
const char *  part,
const char *  state 
)

Returns:
The 'rel1 relative X' value of the part state

Parameters:
obj  The edje object
part  The name of the part
state  The name of the part state (ex. "default 0.00")

EAPI void edje_edit_state_rel1_relative_x_set ( Evas_Object *  obj,
const char *  part,
const char *  state,
double  x 
)

Set the rel1 relative x value of state.

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")
x  The new 'rel1 relative X' value to set

EAPI double edje_edit_state_rel1_relative_y_get ( Evas_Object *  obj,
const char *  part,
const char *  state 
)

Returns:
The 'rel1 relative Y' value of the part state

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")

EAPI void edje_edit_state_rel1_relative_y_set ( Evas_Object *  obj,
const char *  part,
const char *  state,
double  y 
)

Set the rel1 relative y value of state.

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")
y  The new 'rel1 relative Y' value to set

EAPI const char* edje_edit_state_rel1_to_x_get ( Evas_Object *  obj,
const char *  part,
const char *  state 
)

Returns:
The name of the part to apply the relativity

The function return NULL if the part is relative to the whole interface.

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")

EAPI void edje_edit_state_rel1_to_x_set ( Evas_Object *  obj,
const char *  part,
const char *  state,
const char *  rel_to 
)

Set the part rel1x is relative to.

Set rel_to to NULL make the part relative to the whole interface.

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")
rel_to  The name of the part that is used as container/parent

EAPI const char* edje_edit_state_rel1_to_y_get ( Evas_Object *  obj,
const char *  part,
const char *  state 
)

Returns:
The name of the part to apply the relativity

The function return NULL if the part is relative to the whole interface.

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")

EAPI void edje_edit_state_rel1_to_y_set ( Evas_Object *  obj,
const char *  part,
const char *  state,
const char *  rel_to 
)

Set the part rel1y is relative to.

Set rel_to to NULL make the part relative to the whole interface.

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")
rel_to  The name of the part that is used as container/parent

EAPI int edje_edit_state_rel2_offset_x_get ( Evas_Object *  obj,
const char *  part,
const char *  state 
)

Returns:
The 'rel2 offset X' value of the part state

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")

EAPI void edje_edit_state_rel2_offset_x_set ( Evas_Object *  obj,
const char *  part,
const char *  state,
double  x 
)

Get the rel2 offset x value of state.

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")
x  The new 'rel2 offset X' value to set

EAPI int edje_edit_state_rel2_offset_y_get ( Evas_Object *  obj,
const char *  part,
const char *  state 
)

Returns:
The 'rel2 offset Y' value of the part state

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")

EAPI void edje_edit_state_rel2_offset_y_set ( Evas_Object *  obj,
const char *  part,
const char *  state,
double  y 
)

Get the rel2 offset y value of state.

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")
y  The new 'rel2 offset Y' value to set

EAPI double edje_edit_state_rel2_relative_x_get ( Evas_Object *  obj,
const char *  part,
const char *  state 
)

Returns:
The 'rel2 relative X' value of the part state

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")

EAPI void edje_edit_state_rel2_relative_x_set ( Evas_Object *  obj,
const char *  part,
const char *  state,
double  x 
)

Set the rel2 relative x value of state.

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")
x  The new 'rel2 relative X' value to set

EAPI double edje_edit_state_rel2_relative_y_get ( Evas_Object *  obj,
const char *  part,
const char *  state 
)

Returns:
The 'rel2 relative Y' value of the part state

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")

EAPI void edje_edit_state_rel2_relative_y_set ( Evas_Object *  obj,
const char *  part,
const char *  state,
double  y 
)

Set the rel2 relative y value of state.

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")
y  The new 'rel2 relative Y' value to set

EAPI const char* edje_edit_state_rel2_to_x_get ( Evas_Object *  obj,
const char *  part,
const char *  state 
)

Returns:
The name of the part to apply the relativity

The function return NULL if the part is relative to the whole interface.

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")

EAPI void edje_edit_state_rel2_to_x_set ( Evas_Object *  obj,
const char *  part,
const char *  state,
const char *  rel_to 
)

Set the part rel2x is relative to.

Set rel_to to NULL make the part relative to the whole interface.

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")
rel_to  The name of the part that is used as container/parent

EAPI const char* edje_edit_state_rel2_to_y_get ( Evas_Object *  obj,
const char *  part,
const char *  state 
)

Returns:
The name of the part to apply the relativity

The function return NULL if the part is relative to the whole interface.

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")

EAPI void edje_edit_state_rel2_to_y_set ( Evas_Object *  obj,
const char *  part,
const char *  state,
const char *  rel_to 
)

Set the part rel2y is relative to.

Set rel_to to NULL make the part relative to the whole interface.

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")
rel_to  The name of the part that is used as container/parent

EAPI double edje_edit_state_text_align_x_get ( Evas_Object *  obj,
const char *  part,
const char *  state 
)

Returns:
The text align X value

The value range is from 0.0(right) to 1.0(left)

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")

EAPI void edje_edit_state_text_align_x_set ( Evas_Object *  obj,
const char *  part,
const char *  state,
double  align 
)

Set the text horizontal align of a part state.

The value range is from 0.0(right) to 1.0(left)

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")
align  The new text align X value

EAPI double edje_edit_state_text_align_y_get ( Evas_Object *  obj,
const char *  part,
const char *  state 
)

Returns:
The text align Y value

The value range is from 0.0(top) to 1.0(bottom)

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")

EAPI void edje_edit_state_text_align_y_set ( Evas_Object *  obj,
const char *  part,
const char *  state,
double  align 
)

Set the text vertical align of a part state.

The value range is from 0.0(top) to 1.0(bottom)

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")
align  The new text align Y value

EAPI double edje_edit_state_text_elipsis_get ( Evas_Object *  obj,
const char *  part,
const char *  state 
)

Returns:
The text elipsis value

The value range is from 0.0(right) to 1.0(left)

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")

EAPI void edje_edit_state_text_elipsis_set ( Evas_Object *  obj,
const char *  part,
const char *  state,
double  balance 
)

Set the text vertical align of a part state.

The value range is from 0.0(right) to 1.0(left)

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")
balance  The position where to cut the string

EAPI Eina_Bool edje_edit_state_text_fit_x_get ( Evas_Object *  obj,
const char *  part,
const char *  state 
)

Returns:
1 If the part fit it's container horizontally

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")

EAPI void edje_edit_state_text_fit_x_set ( Evas_Object *  obj,
const char *  part,
const char *  state,
Eina_Bool  fit 
)

Set if the text part should fit it's container horizontally.

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")
fit  1 to make the text fit it's container

EAPI Eina_Bool edje_edit_state_text_fit_y_get ( Evas_Object *  obj,
const char *  part,
const char *  state 
)

Returns:
1 If the part fit it's container vertically

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")

EAPI void edje_edit_state_text_fit_y_set ( Evas_Object *  obj,
const char *  part,
const char *  state,
Eina_Bool  fit 
)

Set if the text part should fit it's container vertically.

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")
fit  1 to make the text fit it's container

EAPI const char* edje_edit_state_text_get ( Evas_Object *  obj,
const char *  part,
const char *  state 
)

Returns:
A newly allocated string containing the text for the given state

Remember to free the returned string with edje_edit_string_free().

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")

EAPI void edje_edit_state_text_set ( Evas_Object *  obj,
const char *  part,
const char *  state,
const char *  text 
)

Set the text of a part state.

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")
text  The new text to assign

EAPI int edje_edit_state_text_size_get ( Evas_Object *  obj,
const char *  part,
const char *  state 
)

Returns:
The font size in pixel or -1 on errors.

The function will return -1 on errors.

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")

EAPI void edje_edit_state_text_size_set ( Evas_Object *  obj,
const char *  part,
const char *  state,
int  size 
)

Set the text size of a part state.

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")
size  The new font size to set (in pixel)

EAPI Eina_Bool edje_edit_state_tween_add ( Evas_Object *  obj,
const char *  part,
const char *  state,
const char *  tween 
)

Returns:
1 on success, 0 otherwise

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")
tween  The name of the image to add.

EAPI Eina_Bool edje_edit_state_tween_del ( Evas_Object *  obj,
const char *  part,
const char *  state,
const char *  tween 
)

Returns:
1 on success, 0 otherwise

If none is removed the function return 0. The image is not removed from the edje.

Parameters:
obj  The edje object
part  The name of the part
state  The name of the 'part state' (ex. "default 0.00")
tween  The name of the image to remove from the tween list.

EAPI Eina_List* edje_edit_state_tweens_list_get ( Evas_Object *  obj,
const char *  part,
const char *  state 
)