#ifndef _EDJE_EDIT_H
#define _EDJE_EDIT_H
-#include <Evas.h>
+#include <Edje.h>
#ifdef EAPI
# undef EAPI
#endif
-enum {
+typedef enum _Edje_Edit_Image_Comp
+{
EDJE_EDIT_IMAGE_COMP_RAW,
EDJE_EDIT_IMAGE_COMP_USER,
EDJE_EDIT_IMAGE_COMP_COMP,
EDJE_EDIT_IMAGE_COMP_LOSSY
-};
+} Edje_Edit_Image_Comp;
/**
* @file
/**Create a new empty group in the given edje.
* If a group with the same name exist none is created.
*/
-EAPI unsigned char ///@return 1 on success, 0 on failure
+EAPI Eina_Bool ///@return 1 on success, 0 on failure
edje_edit_group_add(
Evas_Object *obj, ///< The edje object
const char *name ///< The name for the new empty group
* All the parts and the programs inside the group will be deleted as well,
* but not image or font embedded in the edje.
*/
-EAPI unsigned char ///@return 1 on success, 0 on failure
+EAPI Eina_Bool ///@return 1 on success, 0 on failure
edje_edit_group_del(
Evas_Object *obj ///< The edje object
);
/**Check if a group with the given name exist in the edje.
*/
-EAPI unsigned char ///< 1 if the group exist, 0 otherwise.
+EAPI Eina_Bool ///< 1 if the group exist, 0 otherwise.
edje_edit_group_exist(
Evas_Object *obj, ///< The edje object
const char *group ///< The name of the 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 ;)
*/
-EAPI unsigned char ///@return 1 on success, 0 on failure
+EAPI Eina_Bool ///@return 1 on success, 0 on failure
edje_edit_group_name_set(
Evas_Object *obj, ///< The edje object
const char *new_name ///< The new name for the group
/**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 ///@return TRUE on success
+EAPI Eina_Bool ///@return TRUE on success
edje_edit_data_add(
Evas_Object *obj, ///< The edje object
const char *itemname, ///< The name for the new data
);
/**Delete the given data object from edje */
-EAPI unsigned char ///@return TRUE on success
+EAPI Eina_Bool ///@return TRUE on success
edje_edit_data_del(
Evas_Object *obj, ///< The edje object
const char *itemname ///< The name of the data to remove
);
/** Set the data associated with the given itemname **/
-EAPI unsigned char ///@return TRUE on success
+EAPI Eina_Bool ///@return TRUE on success
edje_edit_data_value_set(
Evas_Object * obj, ///< The edje object
const char *itemname, ///< The name of the data item
);
/** Change the name of the given data object */
-EAPI unsigned char ///@return TRUE on success
+EAPI Eina_Bool ///@return TRUE on success
edje_edit_data_name_set(
Evas_Object *obj, ///< The edje object
const char *itemname, ///< The name of the data item
/** Create a new color class object in the given edje
* If another class with the same name exists nothing is created and FALSE is returned.
*/
-EAPI unsigned char ///@return TRUE on success
+EAPI Eina_Bool ///@return TRUE on success
edje_edit_color_class_add(
Evas_Object *obj, ///< The edje object
const char *name ///< The name of the new color class
);
/** Delete the given class object from edje */
-EAPI unsigned char ///@return TRUE on success
+EAPI Eina_Bool ///@return TRUE on success
edje_edit_color_class_del(
Evas_Object *obj, ///< The edje object
const char *name ///< The name of the color class to delete
/** Get all the colors that compose the class.
* You can pass NULL to colors you are not intrested in
*/
-EAPI unsigned char ///@return TRUE on success
+EAPI Eina_Bool ///@return TRUE on success
edje_edit_color_class_colors_get(
Evas_Object *obj, ///< The edje object
const char *class_name, ///< The name of the color class
/** Set the colors for the given color class.
* If you set a color to -1 it will not be touched
*/
-EAPI unsigned char ///@return TRUE on success
+EAPI Eina_Bool ///@return TRUE on success
edje_edit_color_class_colors_set(
Evas_Object *obj, ///< The edje object
const char *class_name, ///< The name of the color class
);
/** Change the name of a color class */
-EAPI unsigned char ///@return TRUE on success
+EAPI Eina_Bool ///@return TRUE on success
edje_edit_color_class_name_set(
Evas_Object *obj, ///< The edje object
const char *name, ///< The name of the color class
/** Create a new text style object in the given edje
* If another style with the same name exists nothing is created and FALSE is returned.
*/
-EAPI unsigned char ///@return TRUE on success, FALSE if the tag can't be created
+EAPI Eina_Bool ///@return TRUE on success, FALSE if the tag can't be created
edje_edit_style_add(
Evas_Object *obj, ///< The edje object
const char *style ///< The new name for the style
/** Add a new tag to the given text style.
* If another tag with the same name exists nothing is created and FALSE is returned.
*/
-EAPI unsigned char ///@return TRUE on success, FALSE if the tag can't be created
+EAPI Eina_Bool ///@return TRUE on success, FALSE if the tag can't be created
edje_edit_style_tag_add(
Evas_Object *obj, ///< The edje object
const char *style, ///< The name of the style
* 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.
*/
-EAPI unsigned char ///@return TRUE on success, FALSE if the part can't be created
+EAPI Eina_Bool ///@return TRUE on success, FALSE if the part can't be created
edje_edit_part_add(
Evas_Object *obj, ///< The edje object
const char *name, ///< The name for the new part
- unsigned char 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)
+ Edje_Part_Type 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)
);
/**Delete the given part from the edje
* A group must have at least one part, so it's not possible to
* remove the last remaining part.
*/
-EAPI unsigned char ///@return 1 on success, 0 if the part can't be removed
+EAPI Eina_Bool ///@return 1 on success, 0 if the part can't be removed
edje_edit_part_del(
Evas_Object *obj, ///< The edje object
const char *part ///< The name of the part to remove
/**Check if a part with the given name exist in the edje object.
*/
-EAPI unsigned char ///< 1 if the part exist, 0 otherwise.
+EAPI Eina_Bool ///< 1 if the part exist, 0 otherwise.
edje_edit_part_exist(
Evas_Object *obj, ///< The edje object
const char *part ///< The name of the part
);
/**Move the given part below the previous one.*/
-EAPI unsigned char ///@return 1 on success, 0 on failure
+EAPI Eina_Bool ///@return 1 on success, 0 on failure
edje_edit_part_restack_below(
Evas_Object *obj, ///< The edje object
const char *part ///< The name of the part to restack
);
/**Move the given part above the next one.*/
-EAPI unsigned char ///@return 1 on success, 0 on failure
+EAPI Eina_Bool ///@return 1 on success, 0 on failure
edje_edit_part_restack_above(
Evas_Object *obj, ///< The edje object
const char *part ///< The name of the part to restack
/**Set a new name for part.
* Note that the relative getter function don't exist as it don't make sense ;)
*/
-EAPI unsigned char ///@return 1 on success, 0 on failure
+EAPI Eina_Bool ///@return 1 on success, 0 on failure
edje_edit_part_name_set(
Evas_Object *obj, ///< The edje object
const char *part, ///< The name of the part to rename
);
/**Get the type of a part */
-EAPI unsigned char ///@return 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 Edje_Part_Type ///@return 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
edje_edit_part_type_get(
Evas_Object *obj, ///< The edje object
const char *part ///< The name of the part
/**Set a part to clip part to.
* If clip_to is NULL then the clipping value will be cancelled (unset clipping)
*/
-EAPI unsigned char ///@return 1 on success, 0 otherwise.
+EAPI Eina_Bool ///@return 1 on success, 0 otherwise.
edje_edit_part_clip_to_set(
Evas_Object *obj, ///< The edje object
const char *part, ///< The name of the part
* 'autoswallow' inside the given part.
* NOTE: This is not applied now. You must reload the edje to see the change.
*/
-EAPI unsigned char ///@return 1 on success, 0 otherwise.
+EAPI Eina_Bool ///@return 1 on success, 0 otherwise.
edje_edit_part_source_set(
Evas_Object *obj, ///< The edje object
const char *part, ///< The name of the part
);
/**Get the effect for a given part. */
-EAPI unsigned char ///@return One of: EDJE_TEXT_EFFECT_NONE, _PLAIN, _OUTLINE, _SOFT_OUTLINE, _SHADOW, _SOFT_SHADOW, _OUTLINE_SHADOW, _OUTLINE_SOFT_SHADOW, _FAR_SHADOW, _FAR_SOFT_SHADOW, _GLOW.
+EAPI Edje_Text_Effect ///@return One of: EDJE_TEXT_EFFECT_NONE, _PLAIN, _OUTLINE, _SOFT_OUTLINE, _SHADOW, _SOFT_SHADOW, _OUTLINE_SHADOW, _OUTLINE_SOFT_SHADOW, _FAR_SHADOW, _FAR_SOFT_SHADOW, _GLOW.
edje_edit_part_effect_get(
Evas_Object *obj, ///< The edje object
const char *part ///< The name of the part
edje_edit_part_effect_set(
Evas_Object *obj, ///< The edje object
const char *part, ///< The name of the part
- unsigned char effect ///< The effect to set. See edje_edit_part_effect_get() for possible value
+ Edje_Text_Effect effect ///< The effect to set. See edje_edit_part_effect_get() for possible value
);
/**Get the current selected state in part. */
);
/**Set the current state in part.*/
-EAPI unsigned char ///@return 1 on success, 0 otherwise.
+EAPI Eina_Bool ///@return 1 on success, 0 otherwise.
edje_edit_part_selected_state_set(
Evas_Object *obj, ///< The edje object
const char *part, ///< The name of the part
);
/**Get mouse_events for part.*/
-EAPI unsigned char ///@return 1 if part accept mouse events, 0 if not
+EAPI Eina_Bool ///@return 1 if part accept mouse events, 0 if not
edje_edit_part_mouse_events_get(
Evas_Object *obj, ///< The edje object
const char *part ///< The name of the part
edje_edit_part_mouse_events_set(
Evas_Object *obj, ///< The edje object
const char *part, ///< The name of the part
- unsigned char mouse_events ///< If set to 1 part will accept mouse events, 0 to ignore all mouse events from part.
+ Eina_Bool mouse_events ///< If set to 1 part will accept mouse events, 0 to ignore all mouse events from part.
);
/**Get repeat_events for part.*/
-EAPI unsigned char ///@return 1 if part will pass all events to the other parts, 0 if not
+EAPI Eina_Bool ///@return 1 if part will pass all events to the other parts, 0 if not
edje_edit_part_repeat_events_get(
Evas_Object *obj, ///< The edje object
const char *part ///< The name of the part
edje_edit_part_repeat_events_set(
Evas_Object *obj, ///< The edje object
const char *part, ///< The name of the part
- unsigned char repeat_events /**< If set to 1 part will repeat
+ Eina_Bool 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.*/
);
/**Check if a part state with the given name exist.
*/
-EAPI unsigned char ///< 1 if the part state exist, 0 otherwise.
+EAPI Eina_Bool ///< 1 if the part state exist, 0 otherwise.
edje_edit_state_exist(
Evas_Object *obj, ///< The edje object
const char *part, ///< The name of the part
);
/**Get the visibility of a part state.*/
-EAPI unsigned char ///@return TRUE if the state is visible
+EAPI Eina_Bool ///@return TRUE if the state is visible
edje_edit_state_visible_get(
Evas_Object *obj, ///< The edje object
const char *part, ///< The name of the part
Evas_Object *obj, ///< The edje object
const char *part, ///< The name of the part
const char *state, ///< The name of the 'part state' (ex. "default 0.00")
- unsigned char visible ///< TRUE to set the state visible
+ Eina_Bool visible ///< TRUE to set the state visible
);
/**Get the color class of the given part state. Remember to free the string with edje_edit_string_free()*/
);
/**Get if the text part fit it's container horizontally */
-EAPI unsigned char ///@return 1 If the part fit it's container horizontally
+EAPI Eina_Bool ///@return 1 If the part fit it's container horizontally
edje_edit_state_text_fit_x_get(
Evas_Object *obj, ///< The edje object
const char *part, ///< The name of the part
Evas_Object *obj, ///< The edje object
const char *part, ///< The name of the part
const char *state, ///< The name of the 'part state' (ex. "default 0.00")
- unsigned char fit ///< 1 to make the text fit it's container
+ Eina_Bool fit ///< 1 to make the text fit it's container
);
/**Get if the text part fit it's container vertically */
-EAPI unsigned char ///@return 1 If the part fit it's container vertically
+EAPI Eina_Bool ///@return 1 If the part fit it's container vertically
edje_edit_state_text_fit_y_get(
Evas_Object *obj, ///< The edje object
const char *part, ///< The name of the part
Evas_Object *obj, ///< The edje object
const char *part, ///< The name of the part
const char *state, ///< The name of the 'part state' (ex. "default 0.00")
- unsigned char fit ///< 1 to make the text fit it's container
+ Eina_Bool fit ///< 1 to make the text fit it's container
);
/**Get the list of all the fonts in the given edje.
* 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.
*/
-EAPI unsigned char ///@return TRUE on success or FALSE on failure
+EAPI Eina_Bool ///@return TRUE on success or FALSE on failure
edje_edit_font_add(
Evas_Object *obj, ///< The edje object
const char* path ///< The file path to load the ttf font from
*
* The format of the image files that can be loaded depend on the evas engine on your system
*/
-EAPI unsigned char ///@return TRUE on success or FALSE on failure
+EAPI Eina_Bool ///@return TRUE on success or FALSE on failure
edje_edit_image_add(
Evas_Object *obj, ///< The edje object
const char* path ///< The name of the image file to include in the edje
* "name". Note that all the parts in the edje share the same image collection,
* thus you can/must use the same image for different part.
*/
-EAPI unsigned char /// @return TRUE on success or FALSE on failure
+EAPI Eina_Bool /// @return TRUE on success or FALSE on failure
edje_edit_image_data_add(
Evas_Object *obj, ///< The edje object
const char *name, ///< The image entry name
);
/**Get compression type for the given image.*/
-EAPI int ///@return One of EDJE_EDIT_IMAGE_COMP_RAW, EDJE_EDIT_IMAGE_COMP_USER, EDJE_EDIT_IMAGE_COMP_COMP or EDJE_EDIT_IMAGE_COMP_LOSSY
+EAPI Edje_Edit_Image_Comp ///@return One of EDJE_EDIT_IMAGE_COMP_RAW, EDJE_EDIT_IMAGE_COMP_USER, EDJE_EDIT_IMAGE_COMP_COMP or EDJE_EDIT_IMAGE_COMP_LOSSY
edje_edit_image_compression_type_get(
Evas_Object *obj, ///< The edje object
const char *image ///< The name of the image
/**Add a new tween frame to the given part state
* The tween param must be the name of an existing image.
*/
-EAPI unsigned char ///@return 1 on success, 0 otherwise
+EAPI Eina_Bool ///@return 1 on success, 0 otherwise
edje_edit_state_tween_add(
Evas_Object *obj, ///< The edje object
const char *part, ///< The name of the part
* If none is removed the function return 0.
* The image is not removed from the edje.
*/
-EAPI unsigned char ///@return 1 on success, 0 otherwise
+EAPI Eina_Bool ///@return 1 on success, 0 otherwise
edje_edit_state_tween_del(
Evas_Object *obj, ///< The edje object
const char *part, ///< The name of the part
);
/**Add a new spectra in the given edje object.*/
-EAPI unsigned char ///@return 1 on success, 0 otherwise
+EAPI Eina_Bool ///@return 1 on success, 0 otherwise
edje_edit_spectra_add(
Evas_Object *obj, ///< The edje object
const char* name ///< The name of the new spectra
);
/**Delete the given spectra from the edje object.*/
-EAPI unsigned char ///@return 1 on success, 0 otherwise
+EAPI Eina_Bool ///@return 1 on success, 0 otherwise
edje_edit_spectra_del(
Evas_Object *obj, ///< The edje object
const char* spectra ///< The name of the spectra to delete
);
/**Change the name of the given spectra.*/
-EAPI unsigned char ///@return 1 on success, 0 otherwise
+EAPI Eina_Bool ///@return 1 on success, 0 otherwise
edje_edit_spectra_name_set(
Evas_Object *obj, ///< The edje object
const char* spectra, ///< The current name of the spectra
);
/**Set the number of stops in the given spectra.*/
-EAPI unsigned char ///@return 1 on success, 0 otherwise
+EAPI Eina_Bool ///@return 1 on success, 0 otherwise
edje_edit_spectra_stop_num_set(
Evas_Object *obj, ///< The edje object
const char* spectra, ///< The name of the spectra
);
/**Get the colors of the given stop.*/
-EAPI unsigned char ///@return 1 on success, 0 otherwise
+EAPI Eina_Bool ///@return 1 on success, 0 otherwise
edje_edit_spectra_stop_color_get(
Evas_Object *obj, ///< The edje object
const char* spectra, ///< The name of the spectra
);
/**Set the colors of the given stop.*/
-EAPI unsigned char ///@return 1 on success, 0 otherwise
+EAPI Eina_Bool ///@return 1 on success, 0 otherwise
edje_edit_spectra_stop_color_set(
Evas_Object *obj, ///< The edje object
const char* spectra, ///< The name of the spectra
/**Set the type of gradient.
* Gradient type can be on of the following: linear, linear.diag, linear.codiag, radial, rectangular, angular, sinusoidal
*/
-EAPI unsigned char ///@return 1 on success, 0 otherwise
+EAPI Eina_Bool ///@return 1 on success, 0 otherwise
edje_edit_state_gradient_type_set(
Evas_Object *obj, ///< The edje object
const char *part, ///< The name of the part
);
/**Get if the current gradient use the fill properties or the gradient_rel as params.*/
-EAPI unsigned char ///@return 1 if use fill, 0 if use gradient_rel
+EAPI Eina_Bool ///@return 1 if use fill, 0 if use gradient_rel
edje_edit_state_gradient_use_fill_get(
Evas_Object *obj, ///< The edje object
const char *part, ///< The name of the part
);
/**Set the spectra used by part state.*/
-EAPI unsigned char ///@return 1 on success, 0 otherwise
+EAPI Eina_Bool ///@return 1 on success, 0 otherwise
edje_edit_state_gradient_spectra_set(
Evas_Object *obj, ///< The edje object
const char *part, ///< The name of the part
);
/**Set the gradien rel1 relative x value */
-EAPI unsigned char ///@return 1 on success, 0 otherwise
+EAPI Eina_Bool ///@return 1 on success, 0 otherwise
edje_edit_state_gradient_rel1_relative_x_set(
Evas_Object *obj, ///< The edje object
const char *part, ///< The name of the part
);
/**Set the gradien rel1 relative y value */
-EAPI unsigned char ///@return 1 on success, 0 otherwise
+EAPI Eina_Bool ///@return 1 on success, 0 otherwise
edje_edit_state_gradient_rel1_relative_y_set(
Evas_Object *obj, ///< The edje object
const char *part, ///< The name of the part
);
/**Set the gradien rel2 relative x value */
-EAPI unsigned char ///@return 1 on success, 0 otherwise
+EAPI Eina_Bool ///@return 1 on success, 0 otherwise
edje_edit_state_gradient_rel2_relative_x_set(
Evas_Object *obj, ///< The edje object
const char *part, ///< The name of the part
);
/**Set the gradien rel2 relative y value */
-EAPI unsigned char ///@return 1 on success, 0 otherwise
+EAPI Eina_Bool ///@return 1 on success, 0 otherwise
edje_edit_state_gradient_rel2_relative_y_set(
Evas_Object *obj, ///< The edje object
const char *part, ///< The name of the part
);
/**Set the gradien rel1 offset x value */
-EAPI unsigned char ///@return 1 on success, 0 otherwise
+EAPI Eina_Bool ///@return 1 on success, 0 otherwise
edje_edit_state_gradient_rel1_offset_x_set(
Evas_Object *obj, ///< The edje object
const char *part, ///< The name of the part
);
/**Set the gradien rel1 offset y value */
-EAPI unsigned char ///@return 1 on success, 0 otherwise
+EAPI Eina_Bool ///@return 1 on success, 0 otherwise
edje_edit_state_gradient_rel1_offset_y_set(
Evas_Object *obj, ///< The edje object
const char *part, ///< The name of the part
);
/**Set the gradien rel2 offset x value */
-EAPI unsigned char ///@return 1 on success, 0 otherwise
+EAPI Eina_Bool ///@return 1 on success, 0 otherwise
edje_edit_state_gradient_rel2_offset_x_set(
Evas_Object *obj, ///< The edje object
const char *part, ///< The name of the part
);
/**Set the gradien rel2 offset y value */
-EAPI unsigned char ///@return 1 on success, 0 otherwise
+EAPI Eina_Bool ///@return 1 on success, 0 otherwise
edje_edit_state_gradient_rel2_offset_y_set(
Evas_Object *obj, ///< The edje object
const char *part, ///< The name of the part
/**Add a new program to the edje file
* If a program with the same name just exist the function will fail.
*/
-EAPI unsigned char ///@return 1 on success or 0 on errors
+EAPI Eina_Bool ///@return 1 on success or 0 on errors
edje_edit_program_add(
Evas_Object *obj, ///< The edje object
const char *name ///< The name of the new program
/**Remove the given program from the edje file.
*/
-EAPI unsigned char ///@return 1 on success or 0 on errors
+EAPI Eina_Bool ///@return 1 on success or 0 on errors
edje_edit_program_del(
Evas_Object *obj, ///< The edje object
const char *prog ///< The name of the program to remove
/**Check if a program with the given name exist in the edje object.
*/
-EAPI unsigned char ///< 1 if the program exist, 0 otherwise.
+EAPI Eina_Bool ///< 1 if the program exist, 0 otherwise.
edje_edit_program_exist(
Evas_Object *obj, ///< The edje object
const char *prog ///< The name of the program
);
/**Run the given program. */
-EAPI unsigned char ///< 1 on success, 0 otherwise.
+EAPI Eina_Bool ///< 1 on success, 0 otherwise.
edje_edit_program_run(
Evas_Object *obj, ///< The edje object
const char *prog ///< The name of the program to execute
);
/**Set a new name for the given program */
-EAPI unsigned char ///@return 1 on success or 0 on errors
+EAPI Eina_Bool ///@return 1 on success or 0 on errors
edje_edit_program_name_set(
Evas_Object *obj, ///< The edje object
const char *prog, ///< The program name
);
/**Set source of the given program. */
-EAPI unsigned char ///@return 1 on success or 0 on errors
+EAPI Eina_Bool ///@return 1 on success or 0 on errors
edje_edit_program_source_set(
Evas_Object *obj, ///< The edje object
const char *prog, ///< The program name
);
/**Set signal of the given program. */
-EAPI unsigned char ///@return 1 on success or 0 on errors
+EAPI Eina_Bool ///@return 1 on success or 0 on errors
edje_edit_program_signal_set(
Evas_Object *obj, ///< The edje object
const char *prog, ///< The program name
);
/**Set in.from of a given program.*/
-EAPI unsigned char ///@return 1 on success or 0 on errors
+EAPI Eina_Bool ///@return 1 on success or 0 on errors
edje_edit_program_in_from_set(
Evas_Object *obj, ///< The edje object
const char *prog, ///< The program name
);
/**Set in.range of a given program.*/
-EAPI unsigned char ///@return 1 on success or 0 on errors
+EAPI Eina_Bool ///@return 1 on success or 0 on errors
edje_edit_program_in_range_set(
Evas_Object *obj, ///< The edje object
const char *prog, ///< The program name
/**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
*/
-EAPI int ///@return The action type, or -1 on errors
+EAPI Edje_Action_Type ///@return The action type, or -1 on errors
edje_edit_program_action_get(
Evas_Object *obj, ///< The edje object
const char *prog ///< The program name
/**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
*/
-EAPI unsigned char ///@return 1 on success or 0 on errors
+EAPI Eina_Bool ///@return 1 on success or 0 on errors
edje_edit_program_action_set(
Evas_Object *obj, ///< The edje object
const char *prog, ///< The program name
- int action ///< The new action type
+ Edje_Action_Type action ///< The new action type
);
/**Get the list of the targets for 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.
*/
-EAPI unsigned char ///@return 1 on success or 0 on errors
+EAPI Eina_Bool ///@return 1 on success or 0 on errors
edje_edit_program_target_add(
Evas_Object *obj, ///< The edje object
const char *prog, ///< The program name
);
/**Clear the 'targets' list of the given program */
-EAPI unsigned char ///@return 1 on success or 0 on errors
+EAPI Eina_Bool ///@return 1 on success or 0 on errors
edje_edit_program_targets_clear(
Evas_Object *obj, ///< The edje object
const char *prog ///< The program name
/**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.
*/
-EAPI unsigned char ///@return 1 on success or 0 on errors
+EAPI Eina_Bool ///@return 1 on success or 0 on errors
edje_edit_program_after_add(
Evas_Object *obj, ///< The edje object
const char *prog, ///< The program name
);
/**Clear the 'afters' list of the given program */
-EAPI unsigned char ///@return 1 on success or 0 on errors
+EAPI Eina_Bool ///@return 1 on success or 0 on errors
edje_edit_program_afters_clear(
Evas_Object *obj, ///< The edje object
const char *prog ///< The program name
* 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.
*/
-EAPI unsigned char ///@return 1 on success or 0 on errors
+EAPI Eina_Bool ///@return 1 on success or 0 on errors
edje_edit_program_state_set(
Evas_Object *obj, ///< The edje object
const char *prog, ///< The program name
* In a STATE_SET action this is the value of state to set.
* Not used on SIGNAL_EMIT action.
*/
-EAPI unsigned char ///@return 1 on success or 0 on errors
+EAPI Eina_Bool ///@return 1 on success or 0 on errors
edje_edit_program_value_set(
Evas_Object *obj, ///< The edje object
const char *prog, ///< The program name
* In a STATE_SET action is not used
* In a SIGNAL_EMIT action is the source of the emitted signal.
*/
-EAPI unsigned char ///@return 1 on success or 0 on errors
+EAPI Eina_Bool ///@return 1 on success or 0 on errors
edje_edit_program_state2_set(
Evas_Object *obj, ///< The edje object
const char *prog, ///< The program name
/**Set the value2 of state for the given program.
* This is used in DRAG_ACTION
*/
-EAPI unsigned char ///@return 1 on success or 0 on errors
+EAPI Eina_Bool ///@return 1 on success or 0 on errors
edje_edit_program_value2_set(
Evas_Object *obj, ///< The edje object
const char *prog, ///< The program name
/**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.
*/
-EAPI int ///@return The type of transition used by program
+EAPI Edje_Tween_Mode ///@return The type of transition used by program
edje_edit_program_transition_get(
Evas_Object *obj, ///< The edje object
const char *prog ///< The program name
/**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.
*/
-EAPI unsigned char ///@return 1 on success or 0 on errors
+EAPI Eina_Bool ///@return 1 on success or 0 on errors
edje_edit_program_transition_set(
Evas_Object *obj, ///< The edje object
const char *prog, ///< The program name
- int transition ///< The transition type to set
+ Edje_Tween_Mode transition ///< The transition type to set
);
/**Get the duration of the transition in seconds.*/
);
/**Set the duration of the transition in seconds.*/
-EAPI unsigned char ///@return 1 on success or 0 on errors
+EAPI Eina_Bool ///@return 1 on success or 0 on errors
edje_edit_program_transition_time_set(
Evas_Object *obj, ///< The edje object
const char *prog, ///< The program name
eina_mempool_free(_edje_real_part_mp, rp);
}
-static unsigned char
+static Eina_Bool
_edje_import_image_file(Edje *ed, const char *path, int id)
{
char buf[256];
/* GROUPS API */
/****************/
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_group_add(Evas_Object *obj, const char *name)
{
Edje_Part_Collection_Directory_Entry *de;
search = 0;
while (!id)
{
- unsigned char found = 0;
+ Eina_Bool found = 0;
EINA_LIST_FOREACH(ed->file->collection_dir->entries, l, d)
{
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_group_del(Evas_Object *obj)
{
char buf[32];
return 1;
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_group_exist(Evas_Object *obj, const char *group)
{
Eina_List *l;
return 0;
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_group_name_set(Evas_Object *obj, const char *new_name)
{
Eina_List *l;
GET_ED_OR_RETURN(0);
if (!new_name) return 0;
- if (edje_edit_group_exist(obj, new_name)) return 0;
pc = ed->collection;
+ if (!strcmp(pc->part, new_name)) return 1;
+
+ if (edje_edit_group_exist(obj, new_name)) return 0;
+
printf("Set name of current group: %s [id: %d][new name: %s]\n",
pc->part, pc->id, new_name);
return datas;
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_data_add(Evas_Object *obj, const char *itemname, const char *value)
{
Eina_List *l;
return 1;
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_data_del(Evas_Object *obj, const char *itemname)
{
Eina_List *l;
return NULL;
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_data_value_set(Evas_Object *obj, const char *itemname, const char *value)
{
Eina_List *l;
return 0;
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_data_name_set(Evas_Object *obj, const char *itemname, const char *newname)
{
Eina_List *l;
return classes;
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_color_class_colors_get(Evas_Object *obj, const char *class_name, int *r, int *g, int *b, int *a, int *r2, int *g2, int *b2, int *a2, int *r3, int *g3, int *b3, int *a3)
{
Eina_List *l;
return 0;
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_color_class_colors_set(Evas_Object *obj, const char *class_name, int r, int g, int b, int a, int r2, int g2, int b2, int a2, int r3, int g3, int b3, int a3)
{
Eina_List *l;
return 0;
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_color_class_add(Evas_Object *obj, const char *name)
{
Eina_List *l;
return 1;
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_color_class_del(Evas_Object *obj, const char *name)
{
Eina_List *l;
return 0;
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_color_class_name_set(Evas_Object *obj, const char *name, const char *newname)
{
Eina_List *l;
return styles;
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_style_add(Evas_Object * obj, const char* style)
{
Edje_Style *s;
t->value = eina_stringshare_add(new_value);
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_style_tag_add(Evas_Object * obj, const char* style, const char* tag_name)
{
Edje_Style *s;
return parts;
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_part_name_set(Evas_Object *obj, const char* part, const char* new_name)
{
GET_RP_OR_RETURN(0);
if (!new_name) return 0;
+ if (!strcmp(part, new_name)) return 1;
if (_edje_real_part_get(ed, new_name)) return 0;
printf("Set name of part: %s [new name: %s]\n", part, new_name);
return 1;
}
-EAPI unsigned char
-edje_edit_part_add(Evas_Object *obj, const char* name, unsigned char type)
+EAPI Eina_Bool
+edje_edit_part_add(Evas_Object *obj, const char* name, Edje_Part_Type type)
{
Edje_Part_Collection *pc;
Edje_Part *ep;
/* Check if part already exists */
if (_edje_real_part_get(ed, name))
- return FALSE;
+ return EINA_FALSE;
/* Alloc Edje_Part or return */
ep = _alloc(sizeof(Edje_Part));
- if (!ep) return FALSE;
+ if (!ep) return EINA_FALSE;
/* Alloc Edje_Real_Part or return */
rp = _alloc(sizeof(Edje_Real_Part));
if (!rp)
{
free(ep);
- return FALSE;
+ return EINA_FALSE;
}
/* Init Edje_Part */
edje_object_calc_force(obj);
- return TRUE;
+ return EINA_TRUE;
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_part_del(Evas_Object *obj, const char* part)
{
Edje_Part *ep;
ep = rp->part;
id = ep->id;
- if (ed->table_parts_size <= 1) return FALSE; //don't remove the last part
+ if (ed->table_parts_size <= 1) return EINA_FALSE; //don't remove the last part
/* Unlik Edje_Real_Parts that link to the removed one */
int i;
edje_object_calc_force(obj);
- return TRUE;
+ return EINA_TRUE;
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_part_exist(Evas_Object *obj, const char *part)
{
GET_RP_OR_RETURN(0);
return 1;
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_part_restack_below(Evas_Object *obj, const char* part)
{
Edje_Part_Collection *group;
return 1;
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_part_restack_above(Evas_Object *obj, const char* part)
{
Edje_Part_Collection *group;
return 1;
}
-EAPI unsigned char
+EAPI Edje_Part_Type
edje_edit_part_type_get(Evas_Object *obj, const char *part)
{
GET_RP_OR_RETURN(0);
return eina_stringshare_add(name);
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_part_selected_state_set(Evas_Object *obj, const char *part, const char *state)
{
Edje_Part_Description *pd;
return eina_stringshare_add(clip->part->name);
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_part_clip_to_set(Evas_Object *obj, const char *part, const char *clip_to)
{
Edje_Real_Part *clip;
return 1;
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_part_mouse_events_get(Evas_Object *obj, const char *part)
{
GET_RP_OR_RETURN(0);
}
EAPI void
-edje_edit_part_mouse_events_set(Evas_Object *obj, const char *part, unsigned char mouse_events)
+edje_edit_part_mouse_events_set(Evas_Object *obj, const char *part, Eina_Bool mouse_events)
{
GET_RP_OR_RETURN();
}
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_part_repeat_events_get(Evas_Object *obj, const char *part)
{
GET_RP_OR_RETURN(0);
}
EAPI void
-edje_edit_part_repeat_events_set(Evas_Object *obj, const char *part, unsigned char repeat_events)
+edje_edit_part_repeat_events_set(Evas_Object *obj, const char *part, Eina_Bool repeat_events)
{
GET_RP_OR_RETURN();
return eina_stringshare_add(rp->part->source);
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_part_source_set(Evas_Object *obj, const char *part, const char *source)
{
GET_RP_OR_RETURN(0);
pd->gradient.use_rel = 1;
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_state_exist(Evas_Object *obj, const char *part, const char *state)
{
GET_PD_OR_RETURN(0);
edje_object_calc_force(obj);
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_state_visible_get(Evas_Object *obj, const char *part, const char *state)
{
GET_PD_OR_RETURN(0);
}
EAPI void
-edje_edit_state_visible_set(Evas_Object *obj, const char *part, const char *state, unsigned char visible)
+edje_edit_state_visible_set(Evas_Object *obj, const char *part, const char *state, Eina_Bool visible)
{
GET_PD_OR_RETURN();
printf("Set state visible flag of part: %s state: %s to: %d\n", part, state, visible);
edje_object_calc_force(obj);
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_state_text_fit_x_get(Evas_Object *obj, const char *part, const char *state)
{
GET_PD_OR_RETURN(0);
}
EAPI void
-edje_edit_state_text_fit_x_set(Evas_Object *obj, const char *part, const char *state, unsigned char fit)
+edje_edit_state_text_fit_x_set(Evas_Object *obj, const char *part, const char *state, Eina_Bool fit)
{
GET_PD_OR_RETURN();
edje_object_calc_force(obj);
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_state_text_fit_y_get(Evas_Object *obj, const char *part, const char *state)
{
GET_PD_OR_RETURN(0);
}
EAPI void
-edje_edit_state_text_fit_y_set(Evas_Object *obj, const char *part, const char *state, unsigned char fit)
+edje_edit_state_text_fit_y_set(Evas_Object *obj, const char *part, const char *state, Eina_Bool fit)
{
GET_PD_OR_RETURN();
return fonts;
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_font_add(Evas_Object *obj, const char* path)
{
char buf[PATH_MAX];
edje_object_calc_force(obj);
}
-EAPI unsigned char
+EAPI Edje_Text_Effect
edje_edit_part_effect_get(Evas_Object *obj, const char *part)
{
GET_RP_OR_RETURN(0);
}
EAPI void
-edje_edit_part_effect_set(Evas_Object *obj, const char *part, unsigned char effect)
+edje_edit_part_effect_set(Evas_Object *obj, const char *part, Edje_Text_Effect effect)
{
GET_RP_OR_RETURN();
return images;
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_image_add(Evas_Object *obj, const char* path)
{
Eina_List *l;
return 1;
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_image_data_add(Evas_Object *obj, const char *name, int id)
{
Eina_List *l;
return _edje_image_id_find(obj, image_name);
}
-EAPI int
+EAPI Edje_Edit_Image_Comp
edje_edit_image_compression_type_get(Evas_Object *obj, const char *image)
{
Edje_Image_Directory_Entry *i = NULL;
return tweens;
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_state_tween_add(Evas_Object *obj, const char *part, const char *state, const char *tween)
{
Edje_Part_Image_Id *i;
return 1;
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_state_tween_del(Evas_Object *obj, const char *part, const char *state, const char *tween)
{
Eina_List *l;
return spectrum;
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_spectra_add(Evas_Object *obj, const char* name)
{
GET_ED_OR_RETURN(0);
return 1;
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_spectra_del(Evas_Object *obj, const char* spectra)
{
Edje_Spectrum_Directory_Entry *s;
return 1;
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_spectra_name_set(Evas_Object *obj, const char* spectra, const char* name)
{
Edje_Spectrum_Directory_Entry *s;
return eina_list_count(s->color_list);
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_spectra_stop_num_set(Evas_Object *obj, const char* spectra, int num)
{
Edje_Spectrum_Directory_Entry *s;
return 1;
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_spectra_stop_color_get(Evas_Object *obj, const char* spectra, int stop_number, int *r, int *g, int *b, int *a, int *d)
{
Edje_Spectrum_Directory_Entry *s;
return 1;
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_spectra_stop_color_set(Evas_Object *obj, const char* spectra, int stop_number, int r, int g, int b, int a, int d)
{
Edje_Spectrum_Directory_Entry *s;
return eina_stringshare_add(pd->gradient.type);
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_state_gradient_type_set(Evas_Object *obj, const char *part, const char *state, const char *type)
{
GET_PD_OR_RETURN(0);
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_state_gradient_use_fill_get(Evas_Object *obj, const char *part, const char *state)
{
GET_PD_OR_RETURN(-1);
return eina_stringshare_add(s->entry);
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_state_gradient_spectra_set(Evas_Object *obj, const char *part, const char *state, const char* spectra)
{
Edje_Spectrum_Directory_Entry *s;
return pd->gradient.rel2.relative_y;
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_state_gradient_rel1_relative_x_set(Evas_Object *obj, const char *part, const char *state, double val)
{
GET_PD_OR_RETURN(0);
return 1;
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_state_gradient_rel1_relative_y_set(Evas_Object *obj, const char *part, const char *state, double val)
{
GET_PD_OR_RETURN(0);
return 1;
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_state_gradient_rel2_relative_x_set(Evas_Object *obj, const char *part, const char *state, double val)
{
GET_PD_OR_RETURN(0);
return 1;
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_state_gradient_rel2_relative_y_set(Evas_Object *obj, const char *part, const char *state, double val)
{
GET_PD_OR_RETURN(0);
return pd->gradient.rel2.offset_y;
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_state_gradient_rel1_offset_x_set(Evas_Object *obj, const char *part, const char *state, int val)
{
GET_PD_OR_RETURN(0);
return 1;
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_state_gradient_rel1_offset_y_set(Evas_Object *obj, const char *part, const char *state, int val)
{
GET_PD_OR_RETURN(0);
return 1;
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_state_gradient_rel2_offset_x_set(Evas_Object *obj, const char *part, const char *state, int val)
{
GET_PD_OR_RETURN(0);
return 1;
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_state_gradient_rel2_offset_y_set(Evas_Object *obj, const char *part, const char *state, int val)
{
GET_PD_OR_RETURN(0);
return progs;
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_program_add(Evas_Object *obj, const char *name)
{
Edje_Program *epr;
return 1;
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_program_del(Evas_Object *obj, const char *prog)
{
Eina_List *l;
return 1;
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_program_exist(Evas_Object *obj, const char *prog)
{
GET_EPR_OR_RETURN(0);
return 1;
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_program_run(Evas_Object *obj, const char *prog)
{
GET_ED_OR_RETURN(0);
return 1;
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_program_name_set(Evas_Object *obj, const char *prog, const char* new_name)
{
GET_ED_OR_RETURN(0);
return eina_stringshare_add(epr->source);
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_program_source_set(Evas_Object *obj, const char *prog, const char *source)
{
GET_ED_OR_RETURN(0);
return eina_stringshare_add(epr->signal);
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_program_signal_set(Evas_Object *obj, const char *prog, const char *signal)
{
GET_ED_OR_RETURN(0);
return eina_stringshare_add(epr->state);
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_program_state_set(Evas_Object *obj, const char *prog, const char *state)
{
GET_ED_OR_RETURN(0);
return eina_stringshare_add(epr->state2);
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_program_state2_set(Evas_Object *obj, const char *prog, const char *state2)
{
GET_ED_OR_RETURN(0);
return epr->value;
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_program_value_set(Evas_Object *obj, const char *prog, double value)
{
GET_EPR_OR_RETURN(0);
return epr->value2;
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_program_value2_set(Evas_Object *obj, const char *prog, double value)
{
GET_EPR_OR_RETURN(0);
return epr->in.from;
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_program_in_from_set(Evas_Object *obj, const char *prog, double seconds)
{
GET_EPR_OR_RETURN(0);
return epr->in.range;
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_program_in_range_set(Evas_Object *obj, const char *prog, double seconds)
{
GET_EPR_OR_RETURN(0);
return 1;
}
-EAPI int
+EAPI Edje_Tween_Mode
edje_edit_program_transition_get(Evas_Object *obj, const char *prog)
{
GET_EPR_OR_RETURN(-1);
return epr->tween.mode;
}
-EAPI unsigned char
-edje_edit_program_transition_set(Evas_Object *obj, const char *prog, int transition)
+EAPI Eina_Bool
+edje_edit_program_transition_set(Evas_Object *obj, const char *prog, Edje_Tween_Mode transition)
{
GET_EPR_OR_RETURN(0);
return epr->tween.time;
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_program_transition_time_set(Evas_Object *obj, const char *prog, double seconds)
{
GET_EPR_OR_RETURN(0);
return 1;
}
-EAPI int
+EAPI Edje_Action_Type
edje_edit_program_action_get(Evas_Object *obj, const char *prog)
{
GET_EPR_OR_RETURN(-1);
return epr->action;
}
-EAPI unsigned char
-edje_edit_program_action_set(Evas_Object *obj, const char *prog, int action)
+EAPI Eina_Bool
+edje_edit_program_action_set(Evas_Object *obj, const char *prog, Edje_Action_Type action)
{
GET_EPR_OR_RETURN(0);
return targets;
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_program_targets_clear(Evas_Object *obj, const char *prog)
{
GET_EPR_OR_RETURN(0);
return 1;
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_program_target_add(Evas_Object *obj, const char *prog, const char *target)
{
int id;
return afters;
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_program_afters_clear(Evas_Object *obj, const char *prog)
{
GET_EPR_OR_RETURN(0);
return 1;
}
-EAPI unsigned char
+EAPI Eina_Bool
edje_edit_program_after_add(Evas_Object *obj, const char *prog, const char *after)
{
Edje_Program *af;