Edje_Edit (3) - Linux Man Pages

Edje_Edit: Functions to deal with edje internal object.

NAME

Edje_Edit.h - Functions to deal with edje internal object.

SYNOPSIS


Functions

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


EAPI void edje_edit_string_list_free (Evas_List *lst)
Free a generic Evas_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 int edje_edit_save (Evas_Object *obj)
Save the modified edje object back to his file.
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 unsigned char edje_edit_group_add (Evas_Object *obj, const char *name)
Create a new empty group in the given edje.
EAPI unsigned char edje_edit_group_del (Evas_Object *obj)
Delete the current group from the given edje.
EAPI unsigned char edje_edit_group_exist (Evas_Object *obj, const char *group)
Check if a group with the given name exist in the edje.
EAPI unsigned char edje_edit_group_name_set (Evas_Object *obj, const char *new_name)
Set a new name for the current open group.
EAPI int edje_edit_group_min_w_get (Evas_Object *obj)
Get the group min width.
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)
Get the group min height.
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)
Get the group max width.
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)
Get the group max height.
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 Evas_List * edje_edit_data_list_get (Evas_Object *obj)
Retrieves a list with the item names inside the data block.
EAPI unsigned char edje_edit_data_add (Evas_Object *obj, const char *itemname, const char *value)
Create a new data object in the given edje If another data with the same name exists nothing is created and FALSE is returned.
EAPI unsigned char edje_edit_data_del (Evas_Object *obj, const char *itemname)
Delete the given data object from edje.
EAPI const char * edje_edit_data_value_get (Evas_Object *obj, char *itemname)
Get the data associated with the given itemname.
EAPI unsigned char edje_edit_data_value_set (Evas_Object *obj, const char *itemname, const char *value)
Set the data associated with the given itemname.

Parts API
Functions to deal with part objects (see Edje Data Collection reference).


EAPI Evas_List * edje_edit_parts_list_get (Evas_Object *obj)
Get the list of all the parts in the given edje object.
EAPI unsigned char edje_edit_part_add (Evas_Object *obj, const char *name, unsigned char type)
Create a new part in the given edje If another part with the same name just exists nothing is created and FALSE is returned.
EAPI unsigned char edje_edit_part_del (Evas_Object *obj, const char *part)
Delete the given part from the edje All the reference to this part will be zeroed.
EAPI unsigned char edje_edit_part_exist (Evas_Object *obj, const char *part)
Check if a part with the given name exist in the edje object.
EAPI unsigned char edje_edit_part_restack_below (Evas_Object *obj, const char *part)
Move the given part below the previous one.
EAPI unsigned char edje_edit_part_restack_above (Evas_Object *obj, const char *part)
Move the given part above the next one.
EAPI unsigned char edje_edit_part_name_set (Evas_Object *obj, const char *part, const char *new_name)
Set a new name for part.
EAPI unsigned char edje_edit_part_type_get (Evas_Object *obj, const char *part)
Get the type of a part.
EAPI const char * edje_edit_part_clip_to_get (Evas_Object *obj, const char *part)
Get the clip_to part.
EAPI unsigned char edje_edit_part_clip_to_set (Evas_Object *obj, const char *part, const char *clip_to)
Set a part to clip part to.
EAPI const char * edje_edit_part_source_get (Evas_Object *obj, const char *part)
Get the source of part.
EAPI unsigned char edje_edit_part_source_set (Evas_Object *obj, const char *part, const char *source)
Set the source of part.
EAPI unsigned char edje_edit_part_effect_get (Evas_Object *obj, const char *part)
Get the effect for a given part.
EAPI void edje_edit_part_effect_set (Evas_Object *obj, const char *part, unsigned char effect)
Set the effect for a given part.
EAPI const char * edje_edit_part_selected_state_get (Evas_Object *obj, const char *part)
Get the current selected state in part.
EAPI unsigned char edje_edit_part_selected_state_set (Evas_Object *obj, const char *part, const char *state)
Set the current state in part.
EAPI unsigned char edje_edit_part_mouse_events_get (Evas_Object *obj, const char *part)
Get mouse_events for part.
EAPI void edje_edit_part_mouse_events_set (Evas_Object *obj, const char *part, unsigned char mouse_events)
Set mouse_events for part.
EAPI unsigned char edje_edit_part_repeat_events_get (Evas_Object *obj, const char *part)
Get repeat_events for part.
EAPI void edje_edit_part_repeat_events_set (Evas_Object *obj, const char *part, unsigned char repeat_events)
Set repeat_events for part.
EAPI Evas_Event_Flags edje_edit_part_ignore_flags_get (Evas_Object *obj, const char *part)
Get ignore_flags for 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.

States API
Functions to deal with part states (see Edje Data Collection reference).


EAPI Evas_List * edje_edit_part_states_list_get (Evas_Object *obj, const char *part)
Get the list of all the states in the given part.
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 unsigned char edje_edit_state_exist (Evas_Object *obj, const char *part, const char *state)
Check if a part state with the given name exist.
EAPI double edje_edit_state_rel1_relative_x_get (Evas_Object *obj, const char *part, const char *state)
Get the rel1 relative x value of state.
EAPI double edje_edit_state_rel1_relative_y_get (Evas_Object *obj, const char *part, const char *state)
Get the rel1 relative y value of state.
EAPI double edje_edit_state_rel2_relative_x_get (Evas_Object *obj, const char *part, const char *state)
Get the rel2 relative x value of state.
EAPI double edje_edit_state_rel2_relative_y_get (Evas_Object *obj, const char *part, const char *state)
Get the rel2 relative y value of 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)
Get the rel1 offset x value of state.
EAPI int edje_edit_state_rel1_offset_y_get (Evas_Object *obj, const char *part, const char *state)
Get the rel1 offset y value of state.
EAPI int edje_edit_state_rel2_offset_x_get (Evas_Object *obj, const char *part, const char *state)
Get the rel2 offset x value of state.
EAPI int edje_edit_state_rel2_offset_y_get (Evas_Object *obj, const char *part, const char *state)
Get the rel2 offset y value of 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)
Get the part name rel1x is relative to.
EAPI const char * edje_edit_state_rel1_to_y_get (Evas_Object *obj, const char *part, const char *state)
Get the part name rel1y is relative to.
EAPI const char * edje_edit_state_rel2_to_x_get (Evas_Object *obj, const char *part, const char *state)
Get the part name rel2x is relative to.
EAPI const char * edje_edit_state_rel2_to_y_get (Evas_Object *obj, const char *part, const char *state)
Get the part name rel2y is relative to.
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)
Get the align_x value of a part state.
EAPI double edje_edit_state_align_y_get (Evas_Object *obj, const char *part, const char *state)
Get the align_y value of a part 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)
Get the min_w value 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)
Get the min_h value 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)
Get the max_w value 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)
Get the max_h value 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)
Get the minimum aspect value of a part state.
EAPI double edje_edit_state_aspect_max_get (Evas_Object *obj, const char *part, const char *state)
Get the maximum aspect 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)
Get the aspect preference value of a part state.
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)
Get the fill origin relative x value of a part state.
EAPI double edje_edit_state_fill_origin_relative_y_get (Evas_Object *obj, const char *part, const char *state)
Get the fill origin relative y value of a part state.
EAPI int edje_edit_state_fill_origin_offset_x_get (Evas_Object *obj, const char *part, const char *state)
Get the fill origin offset x value of a part state.
EAPI int edje_edit_state_fill_origin_offset_y_get (Evas_Object *obj, const char *part, const char *state)
Get the fill origin offset y value of a part state.
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)
Get the fill size relative x value of a part state.
EAPI double edje_edit_state_fill_size_relative_y_get (Evas_Object *obj, const char *part, const char *state)
Get the fill size relative y value of a part state.
EAPI int edje_edit_state_fill_size_offset_x_get (Evas_Object *obj, const char *part, const char *state)
Get the fill size offset x value of a part state.
EAPI int edje_edit_state_fill_size_offset_y_get (Evas_Object *obj, const char *part, const char *state)
Get the fill size offset y value of a part state.
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 unsigned char edje_edit_state_visible_get (Evas_Object *obj, const char *part, const char *state)
Get the visibility of a part state.
EAPI void edje_edit_state_visible_set (Evas_Object *obj, const char *part, const char *state, unsigned char visible)
Set the visibility of a 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)
Get the text of a part 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)
Get the text size of a part state.
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)
Get the text horizontal align of a part state.
EAPI double edje_edit_state_text_align_y_get (Evas_Object *obj, const char *part, const char *state)
Get the text vertical align of a part state.
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 Evas_List * edje_edit_fonts_list_get (Evas_Object *obj)
Get the list of all the fonts in the given edje.
EAPI unsigned char edje_edit_font_add (Evas_Object *obj, const char *path)
Add a new ttf font to the edje file.
EAPI const char * edje_edit_state_font_get (Evas_Object *obj, const char *part, const char *state)
Get font name for a 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 Evas_List * edje_edit_images_list_get (Evas_Object *obj)
Get the list of all the images in the given edje.
EAPI unsigned char edje_edit_image_add (Evas_Object *obj, const char *path)
Add an new image to the image collection.
EAPI const char * edje_edit_state_image_get (Evas_Object *obj, const char *part, const char *state)
Get normal image name for a given part 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)
Get image id for a given image name.
EAPI int edje_edit_image_compression_type_get (Evas_Object *obj, const char *image)
Get compression type for the given image.
EAPI int edje_edit_image_compression_rate_get (Evas_Object *obj, const char *image)
Get compression rate for the given image.
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 Evas_List * edje_edit_state_tweens_list_get (Evas_Object *obj, const char *part, const char *state)
Get the list of all the tweens images in the given part state.
EAPI unsigned char edje_edit_state_tween_add (Evas_Object *obj, const char *part, const char *state, const char *tween)
Add a new tween frame to the given part state The tween param must be the name of an existing image.
EAPI unsigned char edje_edit_state_tween_del (Evas_Object *obj, const char *part, const char *state, const char *tween)
Remove the first tween with the given name.

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


EAPI Evas_List * edje_edit_spectrum_list_get (Evas_Object *obj)
Get the list of all the spectrum in the given edje object.
EAPI unsigned char edje_edit_spectra_add (Evas_Object *obj, const char *name)
Add a new spectra in the given edje object.
EAPI unsigned char edje_edit_spectra_del (Evas_Object *obj, const char *spectra)
Delete the given spectra from the edje object.
EAPI unsigned char edje_edit_spectra_name_set (Evas_Object *obj, const char *spectra, const char *name)
Change the name of the given spectra.
EAPI int edje_edit_spectra_stop_num_get (Evas_Object *obj, const char *spectra)
Get the number of stops in the given spectra.
EAPI unsigned char edje_edit_spectra_stop_num_set (Evas_Object *obj, const char *spectra, int num)
Set the number of stops in the given spectra.
EAPI unsigned char 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)
Get the colors of the given stop.
EAPI unsigned char 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)
Set the colors of the given stop.

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)
Get the type of gradient.
EAPI unsigned char edje_edit_state_gradient_type_set (Evas_Object *obj, const char *part, const char *state, const char *type)
Set the type of gradient.
EAPI unsigned char edje_edit_state_gradient_use_fill_get (Evas_Object *obj, const char *part, const char *state)
Get if the current gradient use the fill properties or the gradient_rel as params.
EAPI const char * edje_edit_state_gradient_spectra_get (Evas_Object *obj, const char *part, const char *state)
Get the spectra used by part state.
EAPI unsigned char edje_edit_state_gradient_spectra_set (Evas_Object *obj, const char *part, const char *state, const char *spectra)
Set the spectra used by part state.
EAPI double edje_edit_state_gradient_rel1_relative_x_get (Evas_Object *obj, const char *part, const char *state)
Get 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)
Get 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)
Get 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)
Get the gradien rel2 relative y value.
EAPI unsigned char edje_edit_state_gradient_rel1_relative_x_set (Evas_Object *obj, const char *part, const char *state, double val)
Set the gradien rel1 relative x value.
EAPI unsigned char edje_edit_state_gradient_rel1_relative_y_set (Evas_Object *obj, const char *part, const char *state, double val)
Set the gradien rel1 relative y value.
EAPI unsigned char edje_edit_state_gradient_rel2_relative_x_set (Evas_Object *obj, const char *part, const char *state, double val)
Set the gradien rel2 relative x value.
EAPI unsigned char edje_edit_state_gradient_rel2_relative_y_set (Evas_Object *obj, const char *part, const char *state, double val)
Set the gradien rel2 relative y value.
EAPI int edje_edit_state_gradient_rel1_offset_x_get (Evas_Object *obj, const char *part, const char *state)
Get the gradien rel1 offset x value.
EAPI int edje_edit_state_gradient_rel1_offset_y_get (Evas_Object *obj, const char *part, const char *state)
Get the gradien rel1 offset y value.
EAPI int edje_edit_state_gradient_rel2_offset_x_get (Evas_Object *obj, const char *part, const char *state)
Get the gradien rel2 offset x value.
EAPI int edje_edit_state_gradient_rel2_offset_y_get (Evas_Object *obj, const char *part, const char *state)
Get the gradien rel2 offset y value.
EAPI unsigned char edje_edit_state_gradient_rel1_offset_x_set (Evas_Object *obj, const char *part, const char *state, int val)
Set the gradien rel1 offset x value.
EAPI unsigned char edje_edit_state_gradient_rel1_offset_y_set (Evas_Object *obj, const char *part, const char *state, int val)
Set the gradien rel1 offset y value.
EAPI unsigned char edje_edit_state_gradient_rel2_offset_x_set (Evas_Object *obj, const char *part, const char *state, int val)
Set the gradien rel2 offset x value.
EAPI unsigned char edje_edit_state_gradient_rel2_offset_y_set (Evas_Object *obj, const char *part, const char *state, int val)
Set the gradien rel2 offset y value.

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


EAPI Evas_List * edje_edit_programs_list_get (Evas_Object *obj)
Get the list of all the programs in the given edje object.
EAPI unsigned char edje_edit_program_add (Evas_Object *obj, const char *name)
Add a new program to the edje file If a program with the same name just exist the function will fail.
EAPI unsigned char edje_edit_program_del (Evas_Object *obj, const char *prog)
Remove the given program from the edje file.
EAPI unsigned char edje_edit_program_exist (Evas_Object *obj, const char *prog)
Check if a program with the given name exist in the edje object.
EAPI unsigned char edje_edit_program_run (Evas_Object *obj, const char *prog)
Run the given program.
EAPI unsigned char edje_edit_program_name_set (Evas_Object *obj, const char *prog, const char *new_name)
Set a new name for the given program.
EAPI const char * edje_edit_program_source_get (Evas_Object *obj, const char *prog)
Get source of a given program.
EAPI unsigned char edje_edit_program_source_set (Evas_Object *obj, const char *prog, const char *source)
Set source of the given program.
EAPI const char * edje_edit_program_signal_get (Evas_Object *obj, const char *prog)
Get signal of a given program.
EAPI unsigned char edje_edit_program_signal_set (Evas_Object *obj, const char *prog, const char *signal)
Set signal of the given program.
EAPI double edje_edit_program_in_from_get (Evas_Object *obj, const char *prog)
Get in.from of a given program.
EAPI unsigned char edje_edit_program_in_from_set (Evas_Object *obj, const char *prog, double seconds)
Set in.from of a given program.
EAPI double edje_edit_program_in_range_get (Evas_Object *obj, const char *prog)
Get in.range of a given program.
EAPI unsigned char edje_edit_program_in_range_set (Evas_Object *obj, const char *prog, double seconds)
Set in.range of a given program.
EAPI int edje_edit_program_action_get (Evas_Object *obj, const char *prog)
Get the action of a given program.
EAPI unsigned char edje_edit_program_action_set (Evas_Object *obj, const char *prog, int action)
Set the action of a given program.
EAPI Evas_List * edje_edit_program_targets_get (Evas_Object *obj, const char *prog)
Get the list of the targets for the given program Return a list of target name Use edje_edit_string_list_free() when you don't need it anymore.
EAPI unsigned char edje_edit_program_target_add (Evas_Object *obj, const char *prog, const char *target)
Add a new target name to the list of 'targets' in the given program.
EAPI unsigned char edje_edit_program_targets_clear (Evas_Object *obj, const char *prog)
Clear the 'targets' list of the given program.
EAPI Evas_List * edje_edit_program_afters_get (Evas_Object *obj, const char *prog)
Get the list of action that will be run after the give program Return a list of program name.
EAPI unsigned char edje_edit_program_after_add (Evas_Object *obj, const char *prog, const char *after)
Add a new program name to the list of 'afters' in the given program.
EAPI unsigned char edje_edit_program_afters_clear (Evas_Object *obj, const char *prog)
Clear the 'afters' list of the given program.
EAPI const char * edje_edit_program_state_get (Evas_Object *obj, const char *prog)
Get the state for the given program In a STATE_SET action this is the name of state to set.
EAPI unsigned char edje_edit_program_state_set (Evas_Object *obj, const char *prog, const char *state)
Set the state for the given program In a STATE_SET action this is the name of state to set.
EAPI double edje_edit_program_value_get (Evas_Object *obj, const char *prog)
Get the value of state for the given program.
EAPI unsigned char edje_edit_program_value_set (Evas_Object *obj, const char *prog, double value)
Set the value of state for the given program.
EAPI const char * edje_edit_program_state2_get (Evas_Object *obj, const char *prog)
Get the state2 for the given program In a STATE_SET action is not used In a SIGNAL_EMIT action is the source of the emitted signal.
EAPI unsigned char edje_edit_program_state2_set (Evas_Object *obj, const char *prog, const char *state2)
Set the state2 for the given program In a STATE_SET action is not used In a SIGNAL_EMIT action is the source of the emitted signal.
EAPI double edje_edit_program_value2_get (Evas_Object *obj, const char *prog)
Get the value of state2 for the given program.
EAPI unsigned char edje_edit_program_value2_set (Evas_Object *obj, const char *prog, double value)
Set the value2 of state for the given program.
EAPI int edje_edit_program_transition_get (Evas_Object *obj, const char *prog)
Get the type of transition to use when apply animations.
EAPI unsigned char edje_edit_program_transition_set (Evas_Object *obj, const char *prog, int transition)
Set the type of transition to use when apply animations.
EAPI double edje_edit_program_transition_time_get (Evas_Object *obj, const char *prog)
Get the duration of the transition in seconds.
EAPI unsigned char edje_edit_program_transition_time_set (Evas_Object *obj, const char *prog, double seconds)
Set the duration of the transition in seconds.

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


EAPI const char * edje_edit_script_get (Evas_Object *obj)

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

  Evas_List *parts, *l;

  parts = edje_edit_parts_list_get(edje_object);
  while(l = parts; l; l = l->next)
  {
     printf('Part: %s, (char*)l->data);
  }
  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);


 

Function Documentation

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

Create a new data object in the given edje If another data with the same name exists nothing is created and FALSE is returned.

Returns:

TRUE on success

Parameters:

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

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

Delete the given data object from edje.

Returns:

TRUE on success

Parameters:

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

EAPI Evas_List* edje_edit_data_list_get (Evas_Object * obj)

Retrieves a list with the item names inside the data block.

Returns:

An Evas_List* of string (char *)containing all the data names.

Parameters:

obj The edje object

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

Get the data associated with the given itemname.

Returns:

The data value

Parameters:

obj The edje object
itemname The name of the data item

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

Set the data associated with the given itemname.

Returns:

TRUE on success

Parameters:

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

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

Add a new ttf font to the edje file.

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.

Returns:

TRUE on success or FALSE on failure

Parameters:

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

EAPI Evas_List* edje_edit_fonts_list_get (Evas_Object * obj)

Get the list of all the fonts in the given edje.

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

Returns:

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

Parameters:

obj The edje object

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

Create a new empty group in the given edje.

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

Returns:

1 on success, 0 on failure

Parameters:

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

EAPI unsigned char edje_edit_group_del (Evas_Object * obj)

Delete the current group from the given edje.

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.

Returns:

1 on success, 0 on failure

Parameters:

obj The edje object

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

Check if a group with the given name exist in the edje.

< 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)

Get the group max height.

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)

Get the group max width.

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)

Get the group min height.

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)

Get the group min width.

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 unsigned char edje_edit_group_name_set (Evas_Object * obj, const char * new_name)

Set a new name for the current open group.

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 ;)

Returns:

1 on success, 0 on failure

Parameters:

obj The edje object
new_name The new name for the group

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

Add an new image to the image collection.

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

Returns:

TRUE on success or FALSE on failure

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)

Get compression rate for the given 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 int edje_edit_image_compression_type_get (Evas_Object * obj, const char * image)

Get compression type for the given 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 int edje_edit_image_id_get (Evas_Object * obj, const char * image_name)

Get image id for a given image name.

Could be usefull to directly load the image from the eet file. < The ID of the givan image name Parameters:

obj The edje object

EAPI Evas_List* edje_edit_images_list_get (Evas_Object * obj)

Get the list of all the images in the given edje.

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

Returns:

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

Parameters:

obj The edje object

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

Create a new part in the given edje If another part with the same name just exists nothing is created and FALSE is returned.

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

Returns:

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

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)

Get the clip_to part.

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

Returns:

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

Parameters:

obj The edje object
part The name of the part

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

Set a part to clip part to.

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

Returns:

1 on success, 0 otherwise.

Parameters:

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

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

Delete the given part from the edje All the reference to this part will be zeroed.

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

Returns:

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

Parameters:

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

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

Get the effect for a given 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, unsigned char 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 unsigned char edje_edit_part_exist (Evas_Object * obj, const char * part)

Check if a part with the given name exist in the edje object.

< 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)

Get ignore_flags for 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 unsigned char edje_edit_part_mouse_events_get (Evas_Object * obj, const char * part)

Get mouse_events for 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, unsigned char 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 unsigned char edje_edit_part_name_set (Evas_Object * obj, const char * part, const char * new_name)

Set a new name for part.

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

Returns:

1 on success, 0 on failure

Parameters:

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

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

Get repeat_events for 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, unsigned char 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 unsigned char edje_edit_part_restack_above (Evas_Object * obj, const char * part)

Move the given part above the next one.

Returns:

1 on success, 0 on failure

Parameters:

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

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

Move the given part below the previous one.

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)

Get the current selected state in 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 unsigned char edje_edit_part_selected_state_set (Evas_Object * obj, const char * part, const char * state)

Set the current state in part.

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)

Get the source of part.

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

Returns:

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

Parameters:

obj The edje object
part The name of the part

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

Set the source of part.

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.

Returns:

1 on success, 0 otherwise.

Parameters:

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

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

Get the list of all the states in the given part.

Returns:

An Evas_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 unsigned char edje_edit_part_type_get (Evas_Object * obj, const char * part)

Get the type of a 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 Evas_List* edje_edit_parts_list_get (Evas_Object * obj)

Get the list of all the parts in the given edje object.

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

Returns:

An Evas_List* of string (char *)containing all the part names.

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 int edje_edit_program_action_get (Evas_Object * obj, const char * prog)

Get the action of a given program.

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

Returns:

The action type, or -1 on errors

Parameters:

obj The edje object
prog The program name

EAPI unsigned char edje_edit_program_action_set (Evas_Object * obj, const char * prog, int action)

Set the action of a given program.

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

Returns:

1 on success or 0 on errors

Parameters:

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

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

Add a new program to the edje file If a program with the same name just exist the function will fail.

Returns:

1 on success or 0 on errors

Parameters:

obj The edje object
name The name of the new program

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

Add a new program name to the list of 'afters' in the given program.

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

Returns:

1 on success or 0 on errors

Parameters:

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

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

Clear the 'afters' list of the given program.

Returns:

1 on success or 0 on errors

Parameters:

obj The edje object
prog The program name

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

Get the list of action that will be run after the give program Return a list of program name.

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

Returns:

An Evas_List of char*, or NULL on error

Parameters:

obj The edje object
prog The program name

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

Remove the given program from the edje file.

Returns:

1 on success or 0 on errors

Parameters:

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

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

Check if a program with the given name exist in the edje object.

< 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)

Get in.from of a given program.

Returns:

The delay

Parameters:

obj The edje object
prog The program name

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

Set in.from of a given program.

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)

Get in.range of a given program.

Returns:

The delay random

Parameters:

obj The edje object
prog The program name

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

Set in.range of a given program.

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 unsigned char edje_edit_program_name_set (Evas_Object * obj, const char * prog, const char * new_name)

Set a new name for the given program.

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 unsigned char edje_edit_program_run (Evas_Object * obj, const char * prog)

Run the given program.

< 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)

Get signal of a given program.

Remember to free the returned string using edje_edit_string_free().

Returns:

The signal value for prog

Parameters:

obj The edje object
prog The program name

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

Set signal of the given program.

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)

Get source of a given program.

Remember to free the returned string using edje_edit_string_free().

Returns:

The source value for prog

Parameters:

obj The edje object
prog The program name

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

Set source of the given program.

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)

Get the state2 for the given program In a STATE_SET action is not used In a SIGNAL_EMIT action is the source of the emitted signal.

Returns:

The source to emit for prog

Parameters:

obj The edje object
prog The program name

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

Set the state2 for the given program In a STATE_SET action is not used In a SIGNAL_EMIT action is the source of the emitted signal.

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)

Get the state for the given program In a STATE_SET action this is the name of state to set.

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

Returns:

The name of state for prog

Parameters:

obj The edje object
prog The program name

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

Set the state for the given program In a STATE_SET action this is the name of state to set.

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

Returns:

1 on success or 0 on errors

Parameters:

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

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

Add a new target name to the list of 'targets' in the given program.

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.

Returns:

1 on success or 0 on errors

Parameters:

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

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

Clear the 'targets' list of the given program.

Returns:

1 on success or 0 on errors

Parameters:

obj The edje object
prog The program name

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

Get the list of the targets for the given program Return a list of target name Use edje_edit_string_list_free() when you don't need it anymore.

Returns:

An Evas_List of char*, or NULL on error

Parameters:

obj The edje object
prog The program name

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

Get the type of transition to use when apply animations.

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.

Returns:

The type of transition used by program

Parameters:

obj The edje object
prog The program name

EAPI unsigned char edje_edit_program_transition_set (Evas_Object * obj, const char * prog, int transition)

Set the type of transition to use when apply animations.

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.

Returns:

1 on success or 0 on errors

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)

Get the duration of the transition in seconds.

Returns:

The duration of the transition

Parameters:

obj The edje object
prog The program name

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

Set the duration of the transition in 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)

Get the value of state2 for the given program.

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

Returns:

The value of state2 for prog

Parameters:

obj The edje object
prog The program name

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

Set the value2 of state for the given program.

This is used in DRAG_ACTION

Returns:

1 on success or 0 on errors

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)

Get the value of state for the given program.

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

Returns:

The value of state for prog

Parameters:

obj The edje object
prog The program name

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

Set the value of state for the given program.

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

Returns:

1 on success or 0 on errors

Parameters:

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

EAPI Evas_List* edje_edit_programs_list_get (Evas_Object * obj)

Get the list of all the programs in the given edje object.

Parameters:

obj The edje object

Returns:

An Evas_List* of string (char *)containing all the program names. Use edje_edit_string_list_free() when you don't need it anymore.

A string list containing all the program names

Parameters:

obj The edje object

EAPI int edje_edit_save (Evas_Object * obj)

Save the modified edje object back to his file.

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

Returns:

1 on success, 0 on failure

Parameters:

obj The edje object to save

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

Add a new spectra in the given edje object.

Returns:

1 on success, 0 otherwise

Parameters:

obj The edje object
name The name of the new spectra

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

Delete the given spectra from the edje object.

Returns:

1 on success, 0 otherwise

Parameters:

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

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

Change the name of the given spectra.

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 unsigned char 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)

Get the colors of the given stop.

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 unsigned char 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)

Set the colors of the given stop.

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)

Get the number of stops in the given spectra.

Returns:

The number of stops, or 0 on errors

Parameters:

obj The edje object
spectra The name of the spectra

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

Set the number of stops in the given spectra.

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 Evas_List* edje_edit_spectrum_list_get (Evas_Object * obj)

Get the list of all the spectrum in the given edje object.

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

Returns:

An Evas_List* of string(char *) containing all the spectra names.

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)

Get the align_x value of a part 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)

Get the align_y value of a part 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)

Get the maximum aspect value of a part 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)

Get the minimum aspect value of a part 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)

Get the aspect preference value of a part 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 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 unsigned char edje_edit_state_exist (Evas_Object * obj, const char * part, const char * state)

Check if a part state with the given name exist.

< 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)

Get the fill origin offset x value of a part 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)

Get the fill origin offset y value of a part 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)

Get the fill origin relative x value of a part 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)

Get the fill origin relative y value of a part 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)

Get the fill size offset x value of a part 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)

Get the fill size offset y value of a part 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)

Get the fill size relative x value of a part 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)

Get the fill size relative y value of a part 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)

Get font name for a given part state.

Remember to free the returned string using edje_edit_string_free().

Returns:

The name of the font used in 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')

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_rel1_offset_x_get (Evas_Object * obj, const char * part, const char * state)

Get the gradien rel1 offset x value.

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 unsigned char edje_edit_state_gradient_rel1_offset_x_set (Evas_Object * obj, const char * part, const char * state, int val)

Set the gradien rel1 offset x value.

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)

Get the gradien rel1 offset y value.

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 unsigned char edje_edit_state_gradient_rel1_offset_y_set (Evas_Object * obj, const char * part, const char * state, int val)

Set the gradien rel1 offset y value.

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)

Get the gradien rel1 relative x value.

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 unsigned char edje_edit_state_gradient_rel1_relative_x_set (Evas_Object * obj, const char * part, const char * state, double val)

Set the gradien rel1 relative x value.

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)

Get the gradien rel1 relative y value.

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 unsigned char edje_edit_state_gradient_rel1_relative_y_set (Evas_Object * obj, const char * part, const char * state, double val)

Set the gradien rel1 relative y value.

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)

Get the gradien rel2 offset x value.

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 unsigned char edje_edit_state_gradient_rel2_offset_x_set (Evas_Object * obj, const char * part, const char * state, int val)

Set the gradien rel2 offset x value.

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)

Get the gradien rel2 offset y value.

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 unsigned char edje_edit_state_gradient_rel2_offset_y_set (Evas_Object * obj, const char * part, const char * state, int val)

Set the gradien rel2 offset y value.

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)

Get the gradien rel2 relative x value.

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 unsigned char edje_edit_state_gradient_rel2_relative_x_set (Evas_Object * obj, const char * part, const char * state, double val)

Set the gradien rel2 relative x value.

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)

Get the gradien rel2 relative y value.

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 unsigned char edje_edit_state_gradient_rel2_relative_y_set (Evas_Object * obj, const char * part, const char * state, double val)

Set the gradien rel2 relative y value.

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)

Get the spectra used by part state.

Remember to free the string with edje_edit_string_free()

Returns:

The spectra name used in state

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_gradient_spectra_set (Evas_Object * obj, const char * part, const char * state, const char * spectra)

Set the spectra used by part state.

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)

Get the type of gradient.

Remember to free the string with edje_edit_string_free().

Returns:

The type of gradient used in state

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_gradient_type_set (Evas_Object * obj, const char * part, const char * state, const char * type)

Set the type of gradient.

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

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')
type The type of gradient to use

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

Get if the current gradient use the fill properties or the gradient_rel as params.

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 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)

Get normal image name for a given part state.

Remember to free the returned string using edje_edit_string_free().

Returns:

The name of the image used by 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_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)

Get the max_h value of a part 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)

Get the max_w value of a part 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)

Get the min_h value of a part 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)

Get the min_w value of a part 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)

Get the rel1 offset x value of 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)

Get the rel1 offset y value of 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)

Get the rel1 relative x value of 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)

Get the rel1 relative y value of 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)

Get the part name rel1x is relative to.

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

Returns:

The name of the part to apply the relativity

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)

Get the part name rel1y is relative to.

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

Returns:

The name of the part to apply the relativity

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)

Get the rel2 offset x value of 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)

Get the rel2 offset y value of 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)

Get the rel2 relative x value of 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)

Get the rel2 relative y value of 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)

Get the part name rel2x is relative to.

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

Returns:

The name of the part to apply the relativity

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)

Get the part name rel2y is relative to.

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

Returns:

The name of the part to apply the relativity

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)

Get the text horizontal align of a part state.

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

Returns:

The text align 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 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)

Get the text vertical align of a part state.

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

Returns:

The text align 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 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 const char* edje_edit_state_text_get (Evas_Object * obj, const char * part, const char * state)

Get the text of a part state.

Remember to free the returned string with edje_edit_string_free().

Returns:

A newly allocated string containing the text 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_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)

Get the text size of a part state.

The function will return -1 on errors.

Returns:

The font size in pixel or -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 unsigned char edje_edit_state_tween_add (Evas_Object * obj, const char * part, const char * state, const char * tween)

Add a new tween frame to the given part state The tween param must be the name of an existing image.

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 unsigned char edje_edit_state_tween_del (Evas_Object * obj, const char * part, const char * state, const char * tween)

Remove the first tween with the given name.

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

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 remove from the tween list.

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

Get the list of all the tweens images in the given part state.

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

Returns:

A string list containing all the image name that form a tween animation in 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')

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

Get the visibility of a part state.

Returns:

TRUE if the state is visible

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_visible_set (Evas_Object * obj, const char * part, const char * state, unsigned char visible)

Set the visibility 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')
visible TRUE to set the state visible

EAPI void edje_edit_string_free (const char * str)

Free a generic string (char *) allocated by an edje_edit_*_get() function.

Parameters:

str The string to free.

EAPI void edje_edit_string_list_free (Evas_List * lst)

Free a generic Evas_List of (char *) allocated by an edje_edit_*_get() function.

Parameters:

lst The list to free. Will also free all the strings.

Author

Generated automatically by Doxygen for Edje from the source code.