this means that missing one or changing the order most certainly cause
formatting errors.
- \@block
+ \@block
block name
- \@context
+ \@context
code sample of the block
- \@description
+ \@description
the block's description
- \@since X.X
- \@endblock
+ \@since X.X
+ \@endblock
- \@property
+ \@property
property name
- \@parameters
+ \@parameters
property's parameter list
- \@effect
+ \@effect
the property description (lol)
- \@since X.X
- \@endproperty
-*/
+ \@since X.X
+ \@endproperty
+ */
#ifdef HAVE_CONFIG_H
# include "config.h"
static Eina_Hash *desc_hash = NULL;
-struct _Edje_Cc_Handlers_Hierarchy_Info
-{ /* Struct that keeps globals value to impl hierarchy */
+struct _Edje_Cc_Handlers_Hierarchy_Info /* Struct that keeps globals value to impl hierarchy */
+{
Edje_Part_Collection_Directory_Entry *current_de;
- Edje_Part *current_part;
- Edje_Pack_Element *current_item;
- Edje_Part_Description_Common *current_desc;
- Edje_Part_Description_Common *parent_desc;
- Edje_Program *current_program;
- Edje_Part *ep;
+ Edje_Part *current_part;
+ Edje_Pack_Element *current_item;
+ Edje_Part_Description_Common *current_desc;
+ Edje_Part_Description_Common *parent_desc;
+ Edje_Program *current_program;
+ Edje_Part *ep;
};
typedef struct _Edje_Cc_Handlers_Hierarchy_Info Edje_Cc_Handlers_Hierarchy_Info;
static Eina_Array *part_hierarchy = NULL; /* stack parts,support nested parts */
-static void edje_cc_handlers_hierarchy_set(Edje_Part *src);
+static void edje_cc_handlers_hierarchy_set(Edje_Part *src);
static Edje_Part *edje_cc_handlers_hierarchy_parent_get(void);
-static void edje_cc_handlers_hierarchy_push(Edje_Part *ep, Edje_Part *cp);
-static void edje_cc_handlers_hierarchy_rename(Edje_Part *old, Edje_Part *new);
-static void edje_cc_handlers_hierarchy_pop(void);
-
-static void _program_target_add(char *name);
-static void _program_after(const char *name);
-static void _program_free(Edje_Program *pr);
-static Eina_Bool _program_remove(const char *name, Edje_Program **pgrms, unsigned int count);
-
-static void * _part_free(Edje_Part_Collection *pc, Edje_Part *ep);
-
-static void check_has_anchors(void);
-
-static void st_efl_version(void);
-static void st_externals_external(void);
-
-static void st_images_image(void);
-static void ob_images_set(void);
-static void st_images_set_name(void);
-static void ob_images_set_image(void);
-static void st_images_set_image_image(void);
-static void st_images_set_image_size(void);
-static void st_images_set_image_border(void);
-static void st_images_set_image_border_scale_by(void);
-
-static void st_models_model(void);
-
-static void st_fonts_font(void);
-
-static void st_data_item(void);
-static void st_data_file(void);
-
-static void ob_styles_style(void);
-static void st_styles_style_name(void);
-static void st_styles_style_base(void);
-static void st_styles_style_tag(void);
-
-static void ob_color_tree(void);
-
-static void ob_color_class(void);
-static void st_color_class_name(void);
-static void st_color_class_color(void);
-static void st_color_class_color2(void);
-static void st_color_class_color3(void);
-static void st_color_class_desc(void);
-
-static void ob_text_class(void);
-static void st_text_class_name(void);
-static void st_text_class_font(void);
-static void st_text_class_size(void);
-
-static void ob_size_class(void);
-static void st_size_class_name(void);
-static void st_size_class_min(void);
-static void st_size_class_max(void);
-
-static void ob_filters_filter(void);
-static void ob_filters_filter_script(void);
-static void st_filters_filter_file(void);
-static void st_filters_filter_name(void);
-
-static void ob_collections(void);
-static void st_collections_base_scale(void);
-
-static void ob_collections_group(void);
-static void st_collections_group_name(void);
-static void st_collections_group_inherit_only(void);
-static void st_collections_group_inherit(void);
-static void st_collections_group_program_source(void);
-static void st_collections_group_part_remove(void);
-static void st_collections_group_program_remove(void);
-static void st_collections_group_lua_script_only(void);
-static void st_collections_group_script_recursion(void);
-static void st_collections_group_alias(void);
-static void st_collections_group_min(void);
-static void st_collections_group_max(void);
-static void st_collections_group_scene_size(void);
-static void st_collections_group_broadcast_signal(void);
-static void st_collections_group_data_item(void);
-static void st_collections_group_orientation(void);
-static void st_collections_group_mouse_events(void);
-static void st_collections_group_use_custom_seat_names(void);
-static void st_collections_group_inherit_script(void);
-
-static void st_collections_group_limits_vertical(void);
-static void st_collections_group_limits_horizontal(void);
-
-static void ob_collections_group_script(void);
-static void ob_collections_group_lua_script(void);
-
-static void st_collections_group_parts_alias(void);
+static void edje_cc_handlers_hierarchy_push(Edje_Part *ep, Edje_Part *cp);
+static void edje_cc_handlers_hierarchy_rename(Edje_Part *old, Edje_Part *new);
+static void edje_cc_handlers_hierarchy_pop(void);
+
+static void _program_target_add(char *name);
+static void _program_after(const char *name);
+static void _program_free(Edje_Program *pr);
+static Eina_Bool _program_remove(const char *name, Edje_Program **pgrms, unsigned int count);
+
+static void *_part_free(Edje_Part_Collection *pc, Edje_Part *ep);
+
+static void check_has_anchors(void);
+
+static void st_efl_version(void);
+static void st_externals_external(void);
+
+static void st_images_image(void);
+static void ob_images_set(void);
+static void st_images_set_name(void);
+static void ob_images_set_image(void);
+static void st_images_set_image_image(void);
+static void st_images_set_image_size(void);
+static void st_images_set_image_border(void);
+static void st_images_set_image_border_scale_by(void);
+
+static void st_models_model(void);
+
+static void st_fonts_font(void);
+
+static void st_data_item(void);
+static void st_data_file(void);
+
+static void ob_styles_style(void);
+static void st_styles_style_name(void);
+static void st_styles_style_base(void);
+static void st_styles_style_tag(void);
+
+static void ob_color_tree(void);
+
+static void ob_color_class(void);
+static void st_color_class_name(void);
+static void st_color_class_color(void);
+static void st_color_class_color2(void);
+static void st_color_class_color3(void);
+static void st_color_class_desc(void);
+
+static void ob_text_class(void);
+static void st_text_class_name(void);
+static void st_text_class_font(void);
+static void st_text_class_size(void);
+
+static void ob_size_class(void);
+static void st_size_class_name(void);
+static void st_size_class_min(void);
+static void st_size_class_max(void);
+
+static void ob_filters_filter(void);
+static void ob_filters_filter_script(void);
+static void st_filters_filter_file(void);
+static void st_filters_filter_name(void);
+
+static void ob_collections(void);
+static void st_collections_base_scale(void);
+
+static void ob_collections_group(void);
+static void st_collections_group_name(void);
+static void st_collections_group_inherit_only(void);
+static void st_collections_group_inherit(void);
+static void st_collections_group_program_source(void);
+static void st_collections_group_part_remove(void);
+static void st_collections_group_program_remove(void);
+static void st_collections_group_lua_script_only(void);
+static void st_collections_group_script_recursion(void);
+static void st_collections_group_alias(void);
+static void st_collections_group_min(void);
+static void st_collections_group_max(void);
+static void st_collections_group_scene_size(void);
+static void st_collections_group_broadcast_signal(void);
+static void st_collections_group_data_item(void);
+static void st_collections_group_orientation(void);
+static void st_collections_group_mouse_events(void);
+static void st_collections_group_use_custom_seat_names(void);
+static void st_collections_group_inherit_script(void);
+
+static void st_collections_group_limits_vertical(void);
+static void st_collections_group_limits_horizontal(void);
+
+static void ob_collections_group_script(void);
+static void ob_collections_group_lua_script(void);
+
+static void st_collections_group_parts_alias(void);
static Edje_Part *edje_cc_handlers_part_make(int);
-static void ob_collections_group_parts_part(void);
-static void st_collections_group_parts_part_name(void);
-static void st_collections_group_parts_part_inherit(void);
-static void st_collections_group_parts_part_type(void);
+static void ob_collections_group_parts_part(void);
+static void st_collections_group_parts_part_name(void);
+static void st_collections_group_parts_part_inherit(void);
+static void st_collections_group_parts_part_type(void);
#ifdef HAVE_EPHYSICS
-static void st_collections_group_parts_part_physics_body(void);
+static void st_collections_group_parts_part_physics_body(void);
#endif
-static void st_collections_group_parts_part_insert_before(void);
-static void st_collections_group_parts_part_insert_after(void);
-static void st_collections_group_parts_part_effect(void);
-static void st_collections_group_parts_part_mouse_events(void);
-static void st_collections_group_parts_part_anti_alias(void);
-static void st_collections_group_parts_part_repeat_events(void);
-static void st_collections_group_parts_part_ignore_flags(void);
-static void st_collections_group_parts_part_mask_flags(void);
-static void st_collections_group_parts_part_scale(void);
-static void st_collections_group_parts_part_pointer_mode(void);
-static void st_collections_group_parts_part_precise_is_inside(void);
-static void st_collections_group_parts_part_use_alternate_font_metrics(void);
-static void st_collections_group_parts_part_clip_to_id(void);
-static void st_collections_group_parts_part_render(void);
-static void st_collections_group_parts_part_no_render(void);
-static void st_collections_group_parts_part_required(void);
-static void st_collections_group_parts_part_norequired(void);
-static void st_collections_group_parts_part_source(void);
-static void st_collections_group_parts_part_source2(void);
-static void st_collections_group_parts_part_source3(void);
-static void st_collections_group_parts_part_source4(void);
-static void st_collections_group_parts_part_source5(void);
-static void st_collections_group_parts_part_source6(void);
-static void st_collections_group_parts_part_entry_mode(void);
-static void st_collections_group_parts_part_select_mode(void);
-static void st_collections_group_parts_part_cursor_mode(void);
-static void st_collections_group_parts_part_multiline(void);
-static void st_collections_group_parts_part_access(void);
-static void st_collections_group_parts_part_dragable_x(void);
-static void st_collections_group_parts_part_dragable_y(void);
-static void st_collections_group_parts_part_dragable_confine(void);
-static void st_collections_group_parts_part_dragable_threshold(void);
-static void st_collections_group_parts_part_dragable_events(void);
-static void st_collections_group_parts_part_allowed_seats(void);
+static void st_collections_group_parts_part_insert_before(void);
+static void st_collections_group_parts_part_insert_after(void);
+static void st_collections_group_parts_part_effect(void);
+static void st_collections_group_parts_part_mouse_events(void);
+static void st_collections_group_parts_part_anti_alias(void);
+static void st_collections_group_parts_part_repeat_events(void);
+static void st_collections_group_parts_part_ignore_flags(void);
+static void st_collections_group_parts_part_mask_flags(void);
+static void st_collections_group_parts_part_scale(void);
+static void st_collections_group_parts_part_pointer_mode(void);
+static void st_collections_group_parts_part_precise_is_inside(void);
+static void st_collections_group_parts_part_use_alternate_font_metrics(void);
+static void st_collections_group_parts_part_clip_to_id(void);
+static void st_collections_group_parts_part_render(void);
+static void st_collections_group_parts_part_no_render(void);
+static void st_collections_group_parts_part_required(void);
+static void st_collections_group_parts_part_norequired(void);
+static void st_collections_group_parts_part_source(void);
+static void st_collections_group_parts_part_source2(void);
+static void st_collections_group_parts_part_source3(void);
+static void st_collections_group_parts_part_source4(void);
+static void st_collections_group_parts_part_source5(void);
+static void st_collections_group_parts_part_source6(void);
+static void st_collections_group_parts_part_entry_mode(void);
+static void st_collections_group_parts_part_select_mode(void);
+static void st_collections_group_parts_part_cursor_mode(void);
+static void st_collections_group_parts_part_multiline(void);
+static void st_collections_group_parts_part_access(void);
+static void st_collections_group_parts_part_dragable_x(void);
+static void st_collections_group_parts_part_dragable_y(void);
+static void st_collections_group_parts_part_dragable_confine(void);
+static void st_collections_group_parts_part_dragable_threshold(void);
+static void st_collections_group_parts_part_dragable_events(void);
+static void st_collections_group_parts_part_allowed_seats(void);
/* box and table items share these */
-static void ob_collections_group_parts_part_box_items_item(void);
-static void st_collections_group_parts_part_box_items_item_type(void);
-static void st_collections_group_parts_part_box_items_item_name(void);
-static void st_collections_group_parts_part_box_items_item_source(void);
-static void st_collections_group_parts_part_box_items_item_min(void);
-static void st_collections_group_parts_part_box_items_item_spread(void);
-static void st_collections_group_parts_part_box_items_item_prefer(void);
-static void st_collections_group_parts_part_box_items_item_max(void);
-static void st_collections_group_parts_part_box_items_item_padding(void);
-static void st_collections_group_parts_part_box_items_item_align(void);
-static void st_collections_group_parts_part_box_items_item_weight(void);
-static void st_collections_group_parts_part_box_items_item_aspect(void);
-static void st_collections_group_parts_part_box_items_item_aspect_mode(void);
-static void st_collections_group_parts_part_box_items_item_options(void);
+static void ob_collections_group_parts_part_box_items_item(void);
+static void st_collections_group_parts_part_box_items_item_type(void);
+static void st_collections_group_parts_part_box_items_item_name(void);
+static void st_collections_group_parts_part_box_items_item_source(void);
+static void st_collections_group_parts_part_box_items_item_min(void);
+static void st_collections_group_parts_part_box_items_item_spread(void);
+static void st_collections_group_parts_part_box_items_item_prefer(void);
+static void st_collections_group_parts_part_box_items_item_max(void);
+static void st_collections_group_parts_part_box_items_item_padding(void);
+static void st_collections_group_parts_part_box_items_item_align(void);
+static void st_collections_group_parts_part_box_items_item_weight(void);
+static void st_collections_group_parts_part_box_items_item_aspect(void);
+static void st_collections_group_parts_part_box_items_item_aspect_mode(void);
+static void st_collections_group_parts_part_box_items_item_options(void);
/* but these are only for table */
-static void st_collections_group_parts_part_table_items_item_position(void);
-static void st_collections_group_parts_part_table_items_item_span(void);
-
-static void ob_collections_group_parts_part_description(void);
-static void ob_collections_group_parts_part_desc(void);
-static void st_collections_group_parts_part_description_inherit(void);
-static void ob_collections_group_parts_part_description_link(void);
-static void st_collections_group_parts_part_description_link_base(void);
-static void st_collections_group_parts_part_description_source(void);
-static void st_collections_group_parts_part_description_state(void);
-static void st_collections_group_parts_part_description_visible(void);
-static void st_collections_group_parts_part_description_no_render(void);
-static void st_collections_group_parts_part_description_limit(void);
-static void st_collections_group_parts_part_description_align(void);
-static void st_collections_group_parts_part_description_fixed(void);
-static void st_collections_group_parts_part_description_min(void);
-static void st_collections_group_parts_part_description_minmul(void);
-static void st_collections_group_parts_part_description_max(void);
-static void st_collections_group_parts_part_description_step(void);
-static void st_collections_group_parts_part_description_aspect(void);
-static void st_collections_group_parts_part_description_aspect_preference(void);
-static void st_collections_group_parts_part_description_rel_to(void);
-static void st_collections_group_parts_part_description_rel_to_x(void);
-static void st_collections_group_parts_part_description_rel_to_y(void);
-static void st_collections_group_parts_part_description_rel1_relative(void);
-static void st_collections_group_parts_part_description_rel1_offset(void);
-static void st_collections_group_parts_part_description_rel1_to_set(const char *name);
-static void st_collections_group_parts_part_description_rel1_to(void);
-static void st_collections_group_parts_part_description_rel1_to_x(void);
-static void st_collections_group_parts_part_description_rel1_to_y(void);
-static void st_collections_group_parts_part_description_rel2_relative(void);
-static void st_collections_group_parts_part_description_rel2_offset(void);
-static void st_collections_group_parts_part_description_rel2_to_set(const char *name);
-static void st_collections_group_parts_part_description_rel2_to(void);
-static void st_collections_group_parts_part_description_rel2_to_x(void);
-static void st_collections_group_parts_part_description_rel2_to_y(void);
-static void st_collections_group_parts_part_description_anchors_top(void);
-static void st_collections_group_parts_part_description_anchors_bottom(void);
-static void st_collections_group_parts_part_description_anchors_left(void);
-static void st_collections_group_parts_part_description_anchors_right(void);
-static void st_collections_group_parts_part_description_anchors_vertical_center(void);
-static void st_collections_group_parts_part_description_anchors_horizontal_center(void);
-static void st_collections_group_parts_part_description_anchors_fill(void);
-static void st_collections_group_parts_part_description_anchors_margin(void);
-static void st_collections_group_parts_part_description_clip_to_id(void);
-static void st_collections_group_parts_part_description_size_class(void);
-static void st_collections_group_parts_part_description_image_normal(void);
-static void st_collections_group_parts_part_description_image_tween(void);
-static void st_collections_group_parts_part_description_image_border(void);
-static void st_collections_group_parts_part_description_image_middle(void);
-static void st_collections_group_parts_part_description_image_border_scale(void);
-static void st_collections_group_parts_part_description_image_border_scale_by(void);
-static void st_collections_group_parts_part_description_image_scale_hint(void);
-static void st_collections_group_parts_part_description_fill_smooth(void);
-static void st_collections_group_parts_part_description_fill_origin_relative(void);
-static void st_collections_group_parts_part_description_fill_origin_offset(void);
-static void st_collections_group_parts_part_description_fill_size_relative(void);
-static void st_collections_group_parts_part_description_fill_size_offset(void);
-static void st_collections_group_parts_part_description_fill_type(void);
-static void st_collections_group_parts_part_description_color_class(void);
-static void st_collections_group_parts_part_description_color(void);
-static void st_collections_group_parts_part_description_color2(void);
-static void st_collections_group_parts_part_description_color3(void);
-static void st_collections_group_parts_part_description_text_text(void);
-static void st_collections_group_parts_part_description_text_domain(void);
-static void st_collections_group_parts_part_description_text_text_class(void);
-static void st_collections_group_parts_part_description_text_font(void);
-static void st_collections_group_parts_part_description_text_style(void);
-static void st_collections_group_parts_part_description_text_repch(void);
-static void st_collections_group_parts_part_description_text_size(void);
-static void st_collections_group_parts_part_description_text_size_range(void);
-static void st_collections_group_parts_part_description_text_fit(void);
-static void st_collections_group_parts_part_description_text_min(void);
-static void st_collections_group_parts_part_description_text_max(void);
-static void st_collections_group_parts_part_description_text_align(void);
-static void st_collections_group_parts_part_description_text_source(void);
-static void st_collections_group_parts_part_description_text_text_source(void);
-static void st_collections_group_parts_part_description_text_ellipsis(void);
+static void st_collections_group_parts_part_table_items_item_position(void);
+static void st_collections_group_parts_part_table_items_item_span(void);
+
+static void ob_collections_group_parts_part_description(void);
+static void ob_collections_group_parts_part_desc(void);
+static void st_collections_group_parts_part_description_inherit(void);
+static void ob_collections_group_parts_part_description_link(void);
+static void st_collections_group_parts_part_description_link_base(void);
+static void st_collections_group_parts_part_description_source(void);
+static void st_collections_group_parts_part_description_state(void);
+static void st_collections_group_parts_part_description_visible(void);
+static void st_collections_group_parts_part_description_no_render(void);
+static void st_collections_group_parts_part_description_limit(void);
+static void st_collections_group_parts_part_description_align(void);
+static void st_collections_group_parts_part_description_fixed(void);
+static void st_collections_group_parts_part_description_min(void);
+static void st_collections_group_parts_part_description_minmul(void);
+static void st_collections_group_parts_part_description_max(void);
+static void st_collections_group_parts_part_description_step(void);
+static void st_collections_group_parts_part_description_aspect(void);
+static void st_collections_group_parts_part_description_aspect_preference(void);
+static void st_collections_group_parts_part_description_rel_to(void);
+static void st_collections_group_parts_part_description_rel_to_x(void);
+static void st_collections_group_parts_part_description_rel_to_y(void);
+static void st_collections_group_parts_part_description_rel1_relative(void);
+static void st_collections_group_parts_part_description_rel1_offset(void);
+static void st_collections_group_parts_part_description_rel1_to_set(const char *name);
+static void st_collections_group_parts_part_description_rel1_to(void);
+static void st_collections_group_parts_part_description_rel1_to_x(void);
+static void st_collections_group_parts_part_description_rel1_to_y(void);
+static void st_collections_group_parts_part_description_rel2_relative(void);
+static void st_collections_group_parts_part_description_rel2_offset(void);
+static void st_collections_group_parts_part_description_rel2_to_set(const char *name);
+static void st_collections_group_parts_part_description_rel2_to(void);
+static void st_collections_group_parts_part_description_rel2_to_x(void);
+static void st_collections_group_parts_part_description_rel2_to_y(void);
+static void st_collections_group_parts_part_description_anchors_top(void);
+static void st_collections_group_parts_part_description_anchors_bottom(void);
+static void st_collections_group_parts_part_description_anchors_left(void);
+static void st_collections_group_parts_part_description_anchors_right(void);
+static void st_collections_group_parts_part_description_anchors_vertical_center(void);
+static void st_collections_group_parts_part_description_anchors_horizontal_center(void);
+static void st_collections_group_parts_part_description_anchors_fill(void);
+static void st_collections_group_parts_part_description_anchors_margin(void);
+static void st_collections_group_parts_part_description_clip_to_id(void);
+static void st_collections_group_parts_part_description_size_class(void);
+static void st_collections_group_parts_part_description_image_normal(void);
+static void st_collections_group_parts_part_description_image_tween(void);
+static void st_collections_group_parts_part_description_image_border(void);
+static void st_collections_group_parts_part_description_image_middle(void);
+static void st_collections_group_parts_part_description_image_border_scale(void);
+static void st_collections_group_parts_part_description_image_border_scale_by(void);
+static void st_collections_group_parts_part_description_image_scale_hint(void);
+static void st_collections_group_parts_part_description_fill_smooth(void);
+static void st_collections_group_parts_part_description_fill_origin_relative(void);
+static void st_collections_group_parts_part_description_fill_origin_offset(void);
+static void st_collections_group_parts_part_description_fill_size_relative(void);
+static void st_collections_group_parts_part_description_fill_size_offset(void);
+static void st_collections_group_parts_part_description_fill_type(void);
+static void st_collections_group_parts_part_description_color_class(void);
+static void st_collections_group_parts_part_description_color(void);
+static void st_collections_group_parts_part_description_color2(void);
+static void st_collections_group_parts_part_description_color3(void);
+static void st_collections_group_parts_part_description_text_text(void);
+static void st_collections_group_parts_part_description_text_domain(void);
+static void st_collections_group_parts_part_description_text_text_class(void);
+static void st_collections_group_parts_part_description_text_font(void);
+static void st_collections_group_parts_part_description_text_style(void);
+static void st_collections_group_parts_part_description_text_repch(void);
+static void st_collections_group_parts_part_description_text_size(void);
+static void st_collections_group_parts_part_description_text_size_range(void);
+static void st_collections_group_parts_part_description_text_fit(void);
+static void st_collections_group_parts_part_description_text_min(void);
+static void st_collections_group_parts_part_description_text_max(void);
+static void st_collections_group_parts_part_description_text_align(void);
+static void st_collections_group_parts_part_description_text_source(void);
+static void st_collections_group_parts_part_description_text_text_source(void);
+static void st_collections_group_parts_part_description_text_ellipsis(void);
/***********************************************************************************
* TIZEN_ONLY_FEATURE: ellipsize.marquee, ellipsize.fade for TEXTBLOCK, TEXT part. *
***********************************************************************************/
-static void st_collections_group_parts_part_description_text_fade_ellipsis(void); /* Legacy */
-static void st_collections_group_parts_part_description_text_ellipsize_mode(void);
-static void st_collections_group_parts_part_description_text_ellipsize_marquee_repeat_limit(void);
-static void st_collections_group_parts_part_description_text_ellipsize_align(void);
-static void st_collections_group_parts_part_description_text_ellipsize_marquee_type(void);
-static void st_collections_group_parts_part_description_text_ellipsize_marquee_loop(void);
-static void st_collections_group_parts_part_description_text_ellipsize_marquee_loop_delay(void);
-static void st_collections_group_parts_part_description_text_ellipsize_marquee_speed(void);
-static void st_collections_group_parts_part_description_text_ellipsize_marquee_duration(void);
-static void st_collections_group_parts_part_description_text_ellipsize_normal_mode(void);
-static void st_collections_group_parts_part_description_text_ellipsize_fade_mode(void);
-static void st_collections_group_parts_part_description_text_ellipsize_marquee_mode(void);
+static void st_collections_group_parts_part_description_text_fade_ellipsis(void); /* Legacy */
+static void st_collections_group_parts_part_description_text_ellipsize_mode(void);
+static void st_collections_group_parts_part_description_text_ellipsize_marquee_repeat_limit(void);
+static void st_collections_group_parts_part_description_text_ellipsize_align(void);
+static void st_collections_group_parts_part_description_text_ellipsize_marquee_type(void);
+static void st_collections_group_parts_part_description_text_ellipsize_marquee_loop(void);
+static void st_collections_group_parts_part_description_text_ellipsize_marquee_loop_delay(void);
+static void st_collections_group_parts_part_description_text_ellipsize_marquee_speed(void);
+static void st_collections_group_parts_part_description_text_ellipsize_marquee_duration(void);
+static void st_collections_group_parts_part_description_text_ellipsize_normal_mode(void);
+static void st_collections_group_parts_part_description_text_ellipsize_fade_mode(void);
+static void st_collections_group_parts_part_description_text_ellipsize_marquee_mode(void);
/*******
* END *
*******/
-static void st_collections_group_parts_part_description_box_layout(void);
-static void st_collections_group_parts_part_description_box_align(void);
-static void st_collections_group_parts_part_description_box_padding(void);
-static void st_collections_group_parts_part_description_box_min(void);
-static void st_collections_group_parts_part_description_table_homogeneous(void);
-static void st_collections_group_parts_part_description_table_align(void);
-static void st_collections_group_parts_part_description_table_padding(void);
-static void st_collections_group_parts_part_description_table_min(void);
-static void st_collections_group_parts_part_description_proxy_source_visible(void);
-static void st_collections_group_parts_part_description_proxy_source_clip(void);
-static void st_collections_group_parts_part_description_position_point(void);
-static void st_collections_group_parts_part_description_position_space(void);
-static void st_collections_group_parts_part_description_camera_properties(void);
-static void st_collections_group_parts_part_description_properties_ambient(void);
-static void st_collections_group_parts_part_description_properties_diffuse(void);
-static void st_collections_group_parts_part_description_properties_specular(void);
-static void st_collections_group_parts_part_description_properties_material(void);
-static void st_collections_group_parts_part_description_properties_normal(void);
-static void st_collections_group_parts_part_description_properties_shininess(void);
-static void st_collections_group_parts_part_description_properties_shade(void);
-static void st_collections_group_parts_part_description_orientation_angle_axis(void);
-static void st_collections_group_parts_part_description_orientation_look1(void);
-static void st_collections_group_parts_part_description_orientation_look2(void);
-static void st_collections_group_parts_part_description_orientation_look_to(void);
-static void st_collections_group_parts_part_description_orientation_angle_axis(void);
-static void st_collections_group_parts_part_description_orientation_quaternion(void);
-static void st_collections_group_parts_part_description_scale(void);
-static void st_collections_group_parts_part_description_offset_scale(void);
-static void st_collections_group_parts_part_description_mesh_primitive(void);
-static void ob_collections_group_parts_part_description_texture(void);
-static void st_collections_group_parts_part_description_texture_image(void);
-static void st_collections_group_parts_part_description_texture_wrap1(void);
-static void st_collections_group_parts_part_description_texture_wrap2(void);
-static void st_collections_group_parts_part_description_texture_filter1(void);
-static void st_collections_group_parts_part_description_texture_filter2(void);
-static void st_collections_group_parts_part_description_mesh_assembly(void);
-static void st_collections_group_parts_part_description_mesh_geometry(void);
-static void st_collections_group_parts_part_description_mesh_frame(void);
-static void st_collections_group_parts_part_description_filter_code(void);
-static void st_collections_group_parts_part_description_filter_source(void);
-static void st_collections_group_parts_part_description_filter_data(void);
+static void st_collections_group_parts_part_description_box_layout(void);
+static void st_collections_group_parts_part_description_box_align(void);
+static void st_collections_group_parts_part_description_box_padding(void);
+static void st_collections_group_parts_part_description_box_min(void);
+static void st_collections_group_parts_part_description_table_homogeneous(void);
+static void st_collections_group_parts_part_description_table_align(void);
+static void st_collections_group_parts_part_description_table_padding(void);
+static void st_collections_group_parts_part_description_table_min(void);
+static void st_collections_group_parts_part_description_proxy_source_visible(void);
+static void st_collections_group_parts_part_description_proxy_source_clip(void);
+static void st_collections_group_parts_part_description_position_point(void);
+static void st_collections_group_parts_part_description_position_space(void);
+static void st_collections_group_parts_part_description_camera_properties(void);
+static void st_collections_group_parts_part_description_properties_ambient(void);
+static void st_collections_group_parts_part_description_properties_diffuse(void);
+static void st_collections_group_parts_part_description_properties_specular(void);
+static void st_collections_group_parts_part_description_properties_material(void);
+static void st_collections_group_parts_part_description_properties_normal(void);
+static void st_collections_group_parts_part_description_properties_shininess(void);
+static void st_collections_group_parts_part_description_properties_shade(void);
+static void st_collections_group_parts_part_description_orientation_angle_axis(void);
+static void st_collections_group_parts_part_description_orientation_look1(void);
+static void st_collections_group_parts_part_description_orientation_look2(void);
+static void st_collections_group_parts_part_description_orientation_look_to(void);
+static void st_collections_group_parts_part_description_orientation_angle_axis(void);
+static void st_collections_group_parts_part_description_orientation_quaternion(void);
+static void st_collections_group_parts_part_description_scale(void);
+static void st_collections_group_parts_part_description_offset_scale(void);
+static void st_collections_group_parts_part_description_mesh_primitive(void);
+static void ob_collections_group_parts_part_description_texture(void);
+static void st_collections_group_parts_part_description_texture_image(void);
+static void st_collections_group_parts_part_description_texture_wrap1(void);
+static void st_collections_group_parts_part_description_texture_wrap2(void);
+static void st_collections_group_parts_part_description_texture_filter1(void);
+static void st_collections_group_parts_part_description_texture_filter2(void);
+static void st_collections_group_parts_part_description_mesh_assembly(void);
+static void st_collections_group_parts_part_description_mesh_geometry(void);
+static void st_collections_group_parts_part_description_mesh_frame(void);
+static void st_collections_group_parts_part_description_filter_code(void);
+static void st_collections_group_parts_part_description_filter_source(void);
+static void st_collections_group_parts_part_description_filter_data(void);
#ifdef HAVE_EPHYSICS
-static void st_collections_group_parts_part_description_physics_mass(void);
-static void st_collections_group_parts_part_description_physics_restitution(void);
-static void st_collections_group_parts_part_description_physics_friction(void);
-static void st_collections_group_parts_part_description_physics_damping(void);
-static void st_collections_group_parts_part_description_physics_sleep(void);
-static void st_collections_group_parts_part_description_physics_material(void);
-static void st_collections_group_parts_part_description_physics_density(void);
-static void st_collections_group_parts_part_description_physics_hardness(void);
-static void st_collections_group_parts_part_description_physics_ignore_part_pos(void);
-static void st_collections_group_parts_part_description_physics_light_on(void);
-static void st_collections_group_parts_part_description_physics_z(void);
-static void st_collections_group_parts_part_description_physics_depth(void);
-static void st_collections_group_parts_part_description_physics_movement_freedom_linear(void);
-static void st_collections_group_parts_part_description_physics_movement_freedom_angular(void);
-static void st_collections_group_parts_part_description_physics_backface_cull(void);
-static void st_collections_group_parts_part_description_physics_face(void);
-static void st_collections_group_parts_part_description_physics_face_type(void);
-static void st_collections_group_parts_part_description_physics_face_source(void);
+static void st_collections_group_parts_part_description_physics_mass(void);
+static void st_collections_group_parts_part_description_physics_restitution(void);
+static void st_collections_group_parts_part_description_physics_friction(void);
+static void st_collections_group_parts_part_description_physics_damping(void);
+static void st_collections_group_parts_part_description_physics_sleep(void);
+static void st_collections_group_parts_part_description_physics_material(void);
+static void st_collections_group_parts_part_description_physics_density(void);
+static void st_collections_group_parts_part_description_physics_hardness(void);
+static void st_collections_group_parts_part_description_physics_ignore_part_pos(void);
+static void st_collections_group_parts_part_description_physics_light_on(void);
+static void st_collections_group_parts_part_description_physics_z(void);
+static void st_collections_group_parts_part_description_physics_depth(void);
+static void st_collections_group_parts_part_description_physics_movement_freedom_linear(void);
+static void st_collections_group_parts_part_description_physics_movement_freedom_angular(void);
+static void st_collections_group_parts_part_description_physics_backface_cull(void);
+static void st_collections_group_parts_part_description_physics_face(void);
+static void st_collections_group_parts_part_description_physics_face_type(void);
+static void st_collections_group_parts_part_description_physics_face_source(void);
#endif
-static void st_collections_group_parts_part_description_map_perspective(void);
-static void st_collections_group_parts_part_description_map_light(void);
-static void st_collections_group_parts_part_description_map_rotation_center(void);
-static void st_collections_group_parts_part_description_map_rotation_x(void);
-static void st_collections_group_parts_part_description_map_rotation_y(void);
-static void st_collections_group_parts_part_description_map_rotation_z(void);
-static void st_collections_group_parts_part_description_map_on(void);
-static void st_collections_group_parts_part_description_map_smooth(void);
-static void st_collections_group_parts_part_description_map_alpha(void);
-static void st_collections_group_parts_part_description_map_backface_cull(void);
-static void st_collections_group_parts_part_description_map_perspective_on(void);
-static void st_collections_group_parts_part_description_map_color(void);
-static void st_collections_group_parts_part_description_map_zoom_x(void);
-static void st_collections_group_parts_part_description_map_zoom_y(void);
-static void st_collections_group_parts_part_description_perspective_zplane(void);
-static void st_collections_group_parts_part_description_perspective_focal(void);
-static void st_collections_group_parts_part_api(void);
+static void st_collections_group_parts_part_description_map_perspective(void);
+static void st_collections_group_parts_part_description_map_light(void);
+static void st_collections_group_parts_part_description_map_rotation_center(void);
+static void st_collections_group_parts_part_description_map_rotation_x(void);
+static void st_collections_group_parts_part_description_map_rotation_y(void);
+static void st_collections_group_parts_part_description_map_rotation_z(void);
+static void st_collections_group_parts_part_description_map_on(void);
+static void st_collections_group_parts_part_description_map_smooth(void);
+static void st_collections_group_parts_part_description_map_alpha(void);
+static void st_collections_group_parts_part_description_map_backface_cull(void);
+static void st_collections_group_parts_part_description_map_perspective_on(void);
+static void st_collections_group_parts_part_description_map_color(void);
+static void st_collections_group_parts_part_description_map_zoom_x(void);
+static void st_collections_group_parts_part_description_map_zoom_y(void);
+static void st_collections_group_parts_part_description_perspective_zplane(void);
+static void st_collections_group_parts_part_description_perspective_focal(void);
+static void st_collections_group_parts_part_api(void);
/* external part parameters */
-static void st_collections_group_parts_part_description_params_int(void);
-static void st_collections_group_parts_part_description_params_double(void);
-static void st_collections_group_parts_part_description_params_string(void);
-static void st_collections_group_parts_part_description_params_bool(void);
-static void st_collections_group_parts_part_description_params_choice(void);
-static void st_collections_group_parts_part_description_params_smart(void);
-
-static void ob_collections_group_programs_program(void);
-static void st_collections_group_programs_program_name(void);
-static void st_collections_group_programs_program_signal(void);
-static void st_collections_group_programs_program_source(void);
-static void st_collections_group_programs_program_filter(void);
-static void st_collections_group_programs_program_in(void);
-static void st_collections_group_programs_program_action(void);
-static void st_collections_group_programs_program_transition(void);
-static void st_collections_group_programs_program_target(void);
-static void st_collections_group_programs_program_targets(void);
-static void st_collections_group_programs_program_target_groups(void);
-static void st_collections_group_programs_program_after(void);
-static void st_collections_group_programs_program_api(void);
-static void st_collections_group_target_group(void);
-
-static void ob_collections_group_programs_program_sequence(void);
-
-static void ob_collections_group_programs_program_script(void);
-static void st_collections_group_sound_sample_name(void);
-static void st_collections_group_sound_sample_source(void);
-static void st_collections_group_sound_tone(void);
-static void st_collections_group_vibration_sample_name(void);
-static void st_collections_group_vibration_sample_source(void);
-
-static void st_collections_group_translation_file_locale(void);
-static void st_collections_group_translation_file_source(void);
+static void st_collections_group_parts_part_description_params_int(void);
+static void st_collections_group_parts_part_description_params_double(void);
+static void st_collections_group_parts_part_description_params_string(void);
+static void st_collections_group_parts_part_description_params_bool(void);
+static void st_collections_group_parts_part_description_params_choice(void);
+static void st_collections_group_parts_part_description_params_smart(void);
+
+static void ob_collections_group_programs_program(void);
+static void st_collections_group_programs_program_name(void);
+static void st_collections_group_programs_program_signal(void);
+static void st_collections_group_programs_program_source(void);
+static void st_collections_group_programs_program_filter(void);
+static void st_collections_group_programs_program_in(void);
+static void st_collections_group_programs_program_action(void);
+static void st_collections_group_programs_program_transition(void);
+static void st_collections_group_programs_program_target(void);
+static void st_collections_group_programs_program_targets(void);
+static void st_collections_group_programs_program_target_groups(void);
+static void st_collections_group_programs_program_after(void);
+static void st_collections_group_programs_program_api(void);
+static void st_collections_group_target_group(void);
+
+static void ob_collections_group_programs_program_sequence(void);
+
+static void ob_collections_group_programs_program_script(void);
+static void st_collections_group_sound_sample_name(void);
+static void st_collections_group_sound_sample_source(void);
+static void st_collections_group_sound_tone(void);
+static void st_collections_group_vibration_sample_name(void);
+static void st_collections_group_vibration_sample_source(void);
+
+static void st_collections_group_translation_file_locale(void);
+static void st_collections_group_translation_file_source(void);
#ifdef HAVE_EPHYSICS
-static void st_collections_group_physics_world_gravity(void);
-static void st_collections_group_physics_world_rate(void);
-static void st_collections_group_physics_world_z(void);
-static void st_collections_group_physics_world_depth(void);
+static void st_collections_group_physics_world_gravity(void);
+static void st_collections_group_physics_world_rate(void);
+static void st_collections_group_physics_world_z(void);
+static void st_collections_group_physics_world_depth(void);
#endif
/* short */
-static void st_collections_group_parts_part_noscale(void);
-static void st_collections_group_parts_part_precise(void);
-static void st_collections_group_parts_part_noprecise(void);
-static void st_collections_group_parts_part_mouse(void);
-static void st_collections_group_parts_part_nomouse(void);
-static void st_collections_group_parts_part_repeat(void);
-static void st_collections_group_parts_part_norepeat(void);
-static void st_collections_group_parts_part_description_vis(void);
-static void st_collections_group_parts_part_description_hid(void);
-static void ob_collections_group_parts_part_short(void);
-
-static void st_collections_group_mouse(void);
-static void st_collections_group_nomouse(void);
-static void st_collections_group_broadcast(void);
-static void st_collections_group_nobroadcast(void);
-static void st_collections_group_noinherit_script(void);
-
-static void st_images_vector(void);
-static void _handle_vector_image(void);
+static void st_collections_group_parts_part_noscale(void);
+static void st_collections_group_parts_part_precise(void);
+static void st_collections_group_parts_part_noprecise(void);
+static void st_collections_group_parts_part_mouse(void);
+static void st_collections_group_parts_part_nomouse(void);
+static void st_collections_group_parts_part_repeat(void);
+static void st_collections_group_parts_part_norepeat(void);
+static void st_collections_group_parts_part_description_vis(void);
+static void st_collections_group_parts_part_description_hid(void);
+static void ob_collections_group_parts_part_short(void);
+
+static void st_collections_group_mouse(void);
+static void st_collections_group_nomouse(void);
+static void st_collections_group_broadcast(void);
+static void st_collections_group_nobroadcast(void);
+static void st_collections_group_noinherit_script(void);
+
+static void st_images_vector(void);
+static void _handle_vector_image(void);
// TIZEN_ONLY(20150110): Add plugin keyword.
#ifdef EDJE_TIZEN_PLUGIN
#define STRDUP(x) eina_strdup(x)
-#define IMAGE_STATEMENTS(PREFIX) \
- {PREFIX"images.image", st_images_image}, \
- {PREFIX"images.vector", st_images_vector}, \
- {PREFIX"images.set.name", st_images_set_name}, \
- {PREFIX"images.set.image.image", st_images_set_image_image}, \
- {PREFIX"images.set.image.size", st_images_set_image_size}, \
- {PREFIX"images.set.image.border", st_images_set_image_border}, \
- {PREFIX"images.set.image.scale_by", st_images_set_image_border_scale_by},
-
-#define IMAGE_SET_STATEMENTS(PREFIX) \
- {PREFIX".image", st_images_image}, /* dup */ \
- {PREFIX".set.name", st_images_set_name}, /* dup */ \
- {PREFIX".set.image.image", st_images_set_image_image}, /* dup */ \
- {PREFIX".set.image.size", st_images_set_image_size}, /* dup */ \
- {PREFIX".set.image.border", st_images_set_image_border}, /* dup */ \
- {PREFIX".set.image.scale_by", st_images_set_image_border_scale_by}, /* dup */
-
-#define FONT_STYLE_CC_STATEMENTS(PREFIX) \
- {PREFIX"fonts.font", st_fonts_font}, /* dup */ \
- {PREFIX"styles.style.name", st_styles_style_name}, /* dup */ \
- {PREFIX"styles.style.base", st_styles_style_base}, /* dup */ \
- {PREFIX"styles.style.tag", st_styles_style_tag}, /* dup */ \
- {PREFIX"color_classes.color_class.name", st_color_class_name}, /* dup */ \
- {PREFIX"color_classes.color_class.color", st_color_class_color}, /* dup */ \
- {PREFIX"color_classes.color_class.color2", st_color_class_color2}, /* dup */ \
- {PREFIX"color_classes.color_class.color3", st_color_class_color3}, /* dup */ \
- {PREFIX"color_classes.color_class.description", st_color_class_desc}, /* dup */ \
- {PREFIX"color_classes.color_class.desc", st_color_class_desc}, /* dup */
-
-#define TEXT_CLASS_STATEMENTS(PREFIX) \
- {PREFIX"text_classes.text_class.name", st_text_class_name}, /* dup */ \
- {PREFIX"text_classes.text_class.font", st_text_class_font}, /* dup */ \
- {PREFIX"text_classes.text_class.size", st_text_class_size}, /* dup */
-
-#define SIZE_CLASS_STATEMENTS(PREFIX) \
- {PREFIX"size_classes.size_class.name", st_size_class_name}, /* dup */ \
- {PREFIX"size_classes.size_class.min", st_size_class_min}, /* dup */ \
- {PREFIX"size_classes.size_class.max", st_size_class_max}, /* dup */
-
-#define PROGRAM_SEQUENCE(PREFIX, NAME, FN) \
- {PREFIX".program."NAME, FN}, /* dup */ \
- {PREFIX".program.sequence."NAME, FN}, /* dup */
-
-
-#define PROGRAM_BASE(PREFIX) \
- PROGRAM_SEQUENCE(PREFIX, "name", st_collections_group_programs_program_name) \
- PROGRAM_SEQUENCE(PREFIX, "signal", st_collections_group_programs_program_signal) \
- PROGRAM_SEQUENCE(PREFIX, "source", st_collections_group_programs_program_source) \
- PROGRAM_SEQUENCE(PREFIX, "in", st_collections_group_programs_program_in) \
- PROGRAM_SEQUENCE(PREFIX, "action", st_collections_group_programs_program_action) \
- PROGRAM_SEQUENCE(PREFIX, "transition", st_collections_group_programs_program_transition) \
- PROGRAM_SEQUENCE(PREFIX, "target", st_collections_group_programs_program_target) \
- PROGRAM_SEQUENCE(PREFIX, "target_groups", st_collections_group_programs_program_target_groups) \
- PROGRAM_SEQUENCE(PREFIX, "groups", st_collections_group_programs_program_target_groups) \
- PROGRAM_SEQUENCE(PREFIX, "targets", st_collections_group_programs_program_targets) \
- PROGRAM_SEQUENCE(PREFIX, "after", st_collections_group_programs_program_after) \
- PROGRAM_SEQUENCE(PREFIX, "api", st_collections_group_programs_program_api) \
- PROGRAM_SEQUENCE(PREFIX, "filter", st_collections_group_programs_program_filter)
-
-#define PROGRAM_STATEMENTS(PREFIX) \
- IMAGE_SET_STATEMENTS(PREFIX".programs") \
- IMAGE_STATEMENTS(PREFIX".programs.") \
- IMAGE_SET_STATEMENTS(PREFIX".programs") \
- {PREFIX".programs.font", st_fonts_font}, /* dup */ \
- {PREFIX".programs.fonts.font", st_fonts_font}, /* dup */ \
- PROGRAM_BASE(PREFIX) \
- PROGRAM_BASE(PREFIX".programs")
-
-#define SET_LOOK1(Type, type_node) \
- Edje_Part_Description_##Type *ed; \
- ed = (Edje_Part_Description_##Type*) current_desc; \
- \
- if (ed->type_node.orientation.type <= EVAS_CANVAS3D_NODE_ORIENTATION_TYPE_LOOK_AT) \
- { \
- ed->type_node.orientation.data[0] = FROM_DOUBLE(parse_float(0)); \
- ed->type_node.orientation.data[1] = FROM_DOUBLE(parse_float(1)); \
- ed->type_node.orientation.data[2] = FROM_DOUBLE(parse_float(2)); \
- ed->type_node.orientation.type = EVAS_CANVAS3D_NODE_ORIENTATION_TYPE_LOOK_AT; \
- }
-
-#define SET_LOOK2(Type, type_node) \
- Edje_Part_Description_##Type *ed; \
- ed = (Edje_Part_Description_##Type*) current_desc; \
- \
- if (ed->type_node.orientation.type <= EVAS_CANVAS3D_NODE_ORIENTATION_TYPE_LOOK_AT) \
- { \
- ed->type_node.orientation.data[3] = FROM_DOUBLE(parse_float(0)); \
- ed->type_node.orientation.data[4] = FROM_DOUBLE(parse_float(1)); \
- ed->type_node.orientation.data[5] = FROM_DOUBLE(parse_float(2)); \
- ed->type_node.orientation.type = EVAS_CANVAS3D_NODE_ORIENTATION_TYPE_LOOK_AT; \
- }
+#define IMAGE_STATEMENTS(PREFIX) \
+ {PREFIX "images.image", st_images_image}, \
+ {PREFIX "images.vector", st_images_vector}, \
+ {PREFIX "images.set.name", st_images_set_name}, \
+ {PREFIX "images.set.image.image", st_images_set_image_image}, \
+ {PREFIX "images.set.image.size", st_images_set_image_size}, \
+ {PREFIX "images.set.image.border", st_images_set_image_border}, \
+ {PREFIX "images.set.image.scale_by", st_images_set_image_border_scale_by},
+
+#define IMAGE_SET_STATEMENTS(PREFIX) \
+ {PREFIX ".image", st_images_image}, /* dup */ \
+ {PREFIX ".set.name", st_images_set_name}, /* dup */ \
+ {PREFIX ".set.image.image", st_images_set_image_image}, /* dup */ \
+ {PREFIX ".set.image.size", st_images_set_image_size}, /* dup */ \
+ {PREFIX ".set.image.border", st_images_set_image_border}, /* dup */ \
+ {PREFIX ".set.image.scale_by", st_images_set_image_border_scale_by}, /* dup */
+
+#define FONT_STYLE_CC_STATEMENTS(PREFIX) \
+ {PREFIX "fonts.font", st_fonts_font}, /* dup */ \
+ {PREFIX "styles.style.name", st_styles_style_name}, /* dup */ \
+ {PREFIX "styles.style.base", st_styles_style_base}, /* dup */ \
+ {PREFIX "styles.style.tag", st_styles_style_tag}, /* dup */ \
+ {PREFIX "color_classes.color_class.name", st_color_class_name}, /* dup */ \
+ {PREFIX "color_classes.color_class.color", st_color_class_color}, /* dup */ \
+ {PREFIX "color_classes.color_class.color2", st_color_class_color2}, /* dup */ \
+ {PREFIX "color_classes.color_class.color3", st_color_class_color3}, /* dup */ \
+ {PREFIX "color_classes.color_class.description", st_color_class_desc}, /* dup */ \
+ {PREFIX "color_classes.color_class.desc", st_color_class_desc}, /* dup */
+
+#define TEXT_CLASS_STATEMENTS(PREFIX) \
+ {PREFIX "text_classes.text_class.name", st_text_class_name}, /* dup */ \
+ {PREFIX "text_classes.text_class.font", st_text_class_font}, /* dup */ \
+ {PREFIX "text_classes.text_class.size", st_text_class_size}, /* dup */
+
+#define SIZE_CLASS_STATEMENTS(PREFIX) \
+ {PREFIX "size_classes.size_class.name", st_size_class_name}, /* dup */ \
+ {PREFIX "size_classes.size_class.min", st_size_class_min}, /* dup */ \
+ {PREFIX "size_classes.size_class.max", st_size_class_max}, /* dup */
+
+#define PROGRAM_SEQUENCE(PREFIX, NAME, FN) \
+ {PREFIX ".program."NAME, FN}, /* dup */ \
+ {PREFIX ".program.sequence."NAME, FN}, /* dup */
+
+#define PROGRAM_BASE(PREFIX) \
+ PROGRAM_SEQUENCE(PREFIX, "name", st_collections_group_programs_program_name) \
+ PROGRAM_SEQUENCE(PREFIX, "signal", st_collections_group_programs_program_signal) \
+ PROGRAM_SEQUENCE(PREFIX, "source", st_collections_group_programs_program_source) \
+ PROGRAM_SEQUENCE(PREFIX, "in", st_collections_group_programs_program_in) \
+ PROGRAM_SEQUENCE(PREFIX, "action", st_collections_group_programs_program_action) \
+ PROGRAM_SEQUENCE(PREFIX, "transition", st_collections_group_programs_program_transition) \
+ PROGRAM_SEQUENCE(PREFIX, "target", st_collections_group_programs_program_target) \
+ PROGRAM_SEQUENCE(PREFIX, "target_groups", st_collections_group_programs_program_target_groups) \
+ PROGRAM_SEQUENCE(PREFIX, "groups", st_collections_group_programs_program_target_groups) \
+ PROGRAM_SEQUENCE(PREFIX, "targets", st_collections_group_programs_program_targets) \
+ PROGRAM_SEQUENCE(PREFIX, "after", st_collections_group_programs_program_after) \
+ PROGRAM_SEQUENCE(PREFIX, "api", st_collections_group_programs_program_api) \
+ PROGRAM_SEQUENCE(PREFIX, "filter", st_collections_group_programs_program_filter)
+
+#define PROGRAM_STATEMENTS(PREFIX) \
+ IMAGE_SET_STATEMENTS(PREFIX ".programs") \
+ IMAGE_STATEMENTS(PREFIX ".programs.") \
+ IMAGE_SET_STATEMENTS(PREFIX ".programs") \
+ {PREFIX ".programs.font", st_fonts_font}, /* dup */ \
+ {PREFIX ".programs.fonts.font", st_fonts_font}, /* dup */ \
+ PROGRAM_BASE(PREFIX) \
+ PROGRAM_BASE(PREFIX ".programs")
+
+#define SET_LOOK1(Type, type_node) \
+ Edje_Part_Description_##Type * ed; \
+ ed = (Edje_Part_Description_##Type *)current_desc; \
+ \
+ if (ed->type_node.orientation.type <= EVAS_CANVAS3D_NODE_ORIENTATION_TYPE_LOOK_AT) \
+ { \
+ ed->type_node.orientation.data[0] = FROM_DOUBLE(parse_float(0)); \
+ ed->type_node.orientation.data[1] = FROM_DOUBLE(parse_float(1)); \
+ ed->type_node.orientation.data[2] = FROM_DOUBLE(parse_float(2)); \
+ ed->type_node.orientation.type = EVAS_CANVAS3D_NODE_ORIENTATION_TYPE_LOOK_AT; \
+ }
+
+#define SET_LOOK2(Type, type_node) \
+ Edje_Part_Description_##Type * ed; \
+ ed = (Edje_Part_Description_##Type *)current_desc; \
+ \
+ if (ed->type_node.orientation.type <= EVAS_CANVAS3D_NODE_ORIENTATION_TYPE_LOOK_AT) \
+ { \
+ ed->type_node.orientation.data[3] = FROM_DOUBLE(parse_float(0)); \
+ ed->type_node.orientation.data[4] = FROM_DOUBLE(parse_float(1)); \
+ ed->type_node.orientation.data[5] = FROM_DOUBLE(parse_float(2)); \
+ ed->type_node.orientation.type = EVAS_CANVAS3D_NODE_ORIENTATION_TYPE_LOOK_AT; \
+ }
#define SET_LOOK_TO(list, Type, type_node) \
- Edje_Part_Description_##Type *ed; \
- char *name; \
+ Edje_Part_Description_##Type * ed; \
+ char *name; \
\
- ed = (Edje_Part_Description_##Type*) current_desc; \
+ ed = (Edje_Part_Description_##Type *)current_desc; \
\
- if (ed->type_node.orientation.type <= EVAS_CANVAS3D_NODE_ORIENTATION_TYPE_LOOK_TO) \
- { \
- name = parse_str(0); \
- data_queue_part_lookup(list, name, &(ed->type_node.orientation.look_to)); \
- free(name); \
- ed->type_node.orientation.type = EVAS_CANVAS3D_NODE_ORIENTATION_TYPE_LOOK_TO; \
- }
-
-#define SET_ANGLE_AXIS(Type, type_node) \
- Edje_Part_Description_##Type *ed; \
- ed = (Edje_Part_Description_##Type*) current_desc; \
- \
- if (ed->type_node.orientation.type <= EVAS_CANVAS3D_NODE_ORIENTATION_TYPE_ANGLE_AXIS) \
- { \
- ed->type_node.orientation.data[0] = FROM_DOUBLE(parse_float(0)); \
- ed->type_node.orientation.data[1] = FROM_DOUBLE(parse_float(1)); \
- ed->type_node.orientation.data[2] = FROM_DOUBLE(parse_float(2)); \
- ed->type_node.orientation.data[3] = FROM_DOUBLE(parse_float(3)); \
- ed->type_node.orientation.type = EVAS_CANVAS3D_NODE_ORIENTATION_TYPE_ANGLE_AXIS; \
- }
-
-#define SET_QUATERNION(Type, type_node) \
- Edje_Part_Description_##Type *ed; \
- ed = (Edje_Part_Description_##Type*) current_desc; \
- \
- if (ed->type_node.orientation.type <= EVAS_CANVAS3D_NODE_ORIENTATION_TYPE_QUATERNION) \
- { \
- ed->type_node.orientation.data[1] = FROM_DOUBLE(parse_float(0)); \
- ed->type_node.orientation.data[2] = FROM_DOUBLE(parse_float(1)); \
- ed->type_node.orientation.data[3] = FROM_DOUBLE(parse_float(2)); \
- ed->type_node.orientation.data[0] = FROM_DOUBLE(parse_float(3)); \
- ed->type_node.orientation.type = EVAS_CANVAS3D_NODE_ORIENTATION_TYPE_QUATERNION; \
- }
-
-#define FILTERS_STATEMENTS(PREFIX) \
- {PREFIX"filters.filter.file", st_filters_filter_file}, \
- {PREFIX"filters.filter.name", st_filters_filter_name},
+ if (ed->type_node.orientation.type <= EVAS_CANVAS3D_NODE_ORIENTATION_TYPE_LOOK_TO) \
+ { \
+ name = parse_str(0); \
+ data_queue_part_lookup(list, name, &(ed->type_node.orientation.look_to)); \
+ free(name); \
+ ed->type_node.orientation.type = EVAS_CANVAS3D_NODE_ORIENTATION_TYPE_LOOK_TO; \
+ }
+
+#define SET_ANGLE_AXIS(Type, type_node) \
+ Edje_Part_Description_##Type * ed; \
+ ed = (Edje_Part_Description_##Type *)current_desc; \
+ \
+ if (ed->type_node.orientation.type <= EVAS_CANVAS3D_NODE_ORIENTATION_TYPE_ANGLE_AXIS) \
+ { \
+ ed->type_node.orientation.data[0] = FROM_DOUBLE(parse_float(0)); \
+ ed->type_node.orientation.data[1] = FROM_DOUBLE(parse_float(1)); \
+ ed->type_node.orientation.data[2] = FROM_DOUBLE(parse_float(2)); \
+ ed->type_node.orientation.data[3] = FROM_DOUBLE(parse_float(3)); \
+ ed->type_node.orientation.type = EVAS_CANVAS3D_NODE_ORIENTATION_TYPE_ANGLE_AXIS; \
+ }
+
+#define SET_QUATERNION(Type, type_node) \
+ Edje_Part_Description_##Type * ed; \
+ ed = (Edje_Part_Description_##Type *)current_desc; \
+ \
+ if (ed->type_node.orientation.type <= EVAS_CANVAS3D_NODE_ORIENTATION_TYPE_QUATERNION) \
+ { \
+ ed->type_node.orientation.data[1] = FROM_DOUBLE(parse_float(0)); \
+ ed->type_node.orientation.data[2] = FROM_DOUBLE(parse_float(1)); \
+ ed->type_node.orientation.data[3] = FROM_DOUBLE(parse_float(2)); \
+ ed->type_node.orientation.data[0] = FROM_DOUBLE(parse_float(3)); \
+ ed->type_node.orientation.type = EVAS_CANVAS3D_NODE_ORIENTATION_TYPE_QUATERNION; \
+ }
+
+#define FILTERS_STATEMENTS(PREFIX) \
+ {PREFIX "filters.filter.file", st_filters_filter_file}, \
+ {PREFIX "filters.filter.name", st_filters_filter_name},
New_Statement_Handler statement_handlers[] =
{
- {"efl_version", st_efl_version},
- {"externals.external", st_externals_external},
- IMAGE_STATEMENTS("")
- FONT_STYLE_CC_STATEMENTS("")
- TEXT_CLASS_STATEMENTS("")
- SIZE_CLASS_STATEMENTS("")
- {"data.item", st_data_item},
- {"data.file", st_data_file},
- FILTERS_STATEMENTS("")
- {"collections.externals.external", st_externals_external}, /* dup */
- IMAGE_STATEMENTS("collections.")
- IMAGE_SET_STATEMENTS("collections")
- {"collections.font", st_fonts_font}, /* dup */
- FONT_STYLE_CC_STATEMENTS("collections.")
- TEXT_CLASS_STATEMENTS("collections.")
- SIZE_CLASS_STATEMENTS("collections.")
- {"collections.base_scale", st_collections_base_scale},
+ {"efl_version", st_efl_version},
+ {"externals.external", st_externals_external},
+ IMAGE_STATEMENTS("")
+ FONT_STYLE_CC_STATEMENTS("")
+ TEXT_CLASS_STATEMENTS("")
+ SIZE_CLASS_STATEMENTS("")
+ {"data.item", st_data_item},
+ {"data.file", st_data_file},
+ FILTERS_STATEMENTS("")
+ {"collections.externals.external", st_externals_external}, /* dup */
+ IMAGE_STATEMENTS("collections.")
+ IMAGE_SET_STATEMENTS("collections")
+ {"collections.font", st_fonts_font}, /* dup */
+ FONT_STYLE_CC_STATEMENTS("collections.")
+ TEXT_CLASS_STATEMENTS("collections.")
+ SIZE_CLASS_STATEMENTS("collections.")
+ {"collections.base_scale", st_collections_base_scale},
// TIZEN_ONLY(20150110): Add plugins keyword.
#ifdef EDJE_TIZEN_PLUGIN
- {"collections.plugins.plugin.name", st_collections_plugins_plugin_name},
- {"collections.plugins.plugin.source", st_collections_plugins_plugin_source},
- {"collections.plugins.plugin.param", st_collections_plugins_plugin_param},
- {"collections.group.plugins.plugin.name", st_collections_plugins_plugin_name}, /* dup */
- {"collections.group.plugins.plugin.source", st_collections_plugins_plugin_source}, /* dup */
- {"collections.group.plugins.plugin.param", st_collections_plugins_plugin_param}, /* dup */
+ {"collections.plugins.plugin.name", st_collections_plugins_plugin_name},
+ {"collections.plugins.plugin.source", st_collections_plugins_plugin_source},
+ {"collections.plugins.plugin.param", st_collections_plugins_plugin_param},
+ {"collections.group.plugins.plugin.name", st_collections_plugins_plugin_name}, /* dup */
+ {"collections.group.plugins.plugin.source", st_collections_plugins_plugin_source}, /* dup */
+ {"collections.group.plugins.plugin.param", st_collections_plugins_plugin_param}, /* dup */
#endif
//
- {"collections.translation.file.locale", st_collections_group_translation_file_locale},
- {"collections.translation.file.source", st_collections_group_translation_file_source},
- {"collections.group.translation.file.locale", st_collections_group_translation_file_locale},
- {"collections.group.translation.file.source", st_collections_group_translation_file_source},
-
- {"collections.sounds.sample.name", st_collections_group_sound_sample_name},
- {"collections.sounds.sample.source", st_collections_group_sound_sample_source},
- {"collections.group.sounds.sample.name", st_collections_group_sound_sample_name}, /* dup */
- {"collections.group.sounds.sample.source", st_collections_group_sound_sample_source}, /* dup */
- {"collections.sounds.tone", st_collections_group_sound_tone},
- {"collections.group.sounds.tone", st_collections_group_sound_tone}, /* dup */
- {"collections.vibrations.sample.name", st_collections_group_vibration_sample_name},
- {"collections.vibrations.sample.source", st_collections_group_vibration_sample_source},
- FILTERS_STATEMENTS("collections.") /* dup */
- {"collections.group.vibrations.sample.name", st_collections_group_vibration_sample_name}, /* dup */
- {"collections.group.vibrations.sample.source", st_collections_group_vibration_sample_source}, /* dup */
- {"collections.group.name", st_collections_group_name},
- {"collections.group.program_source", st_collections_group_program_source},
- {"collections.group.inherit", st_collections_group_inherit},
- {"collections.group.inherit_only", st_collections_group_inherit_only},
- {"collections.group.use_custom_seat_names", st_collections_group_use_custom_seat_names},
- {"collections.group.target_group", st_collections_group_target_group}, /* dup */
- {"collections.group.part_remove", st_collections_group_part_remove},
- {"collections.group.program_remove", st_collections_group_program_remove},
- {"collections.group.lua_script_only", st_collections_group_lua_script_only},
- {"collections.group.script_recursion", st_collections_group_script_recursion},
- {"collections.group.alias", st_collections_group_alias},
- {"collections.group.min", st_collections_group_min},
- {"collections.group.max", st_collections_group_max},
- {"collections.group.scene_size", st_collections_group_scene_size},
- {"collections.group.broadcast_signal", st_collections_group_broadcast_signal},
- {"collections.group.orientation", st_collections_group_orientation},
- {"collections.group.mouse_events", st_collections_group_mouse_events},
- {"collections.group.inherit_script", st_collections_group_inherit_script},
- {"collections.group.data.item", st_collections_group_data_item},
- {"collections.group.limits.horizontal", st_collections_group_limits_horizontal},
- {"collections.group.limits.vertical", st_collections_group_limits_vertical},
- {"collections.group.externals.external", st_externals_external}, /* dup */
- {"collections.group.programs.target_group", st_collections_group_target_group}, /* dup */
- IMAGE_SET_STATEMENTS("collections.group")
- IMAGE_STATEMENTS("collections.group.")
- {"collections.group.models.model", st_models_model},
- {"collections.group.font", st_fonts_font}, /* dup */
- FONT_STYLE_CC_STATEMENTS("collections.group.")
- TEXT_CLASS_STATEMENTS("collections.group.")
- SIZE_CLASS_STATEMENTS("collections.group.")
- {"collections.group.parts.alias", st_collections_group_parts_alias },
- IMAGE_SET_STATEMENTS("collections.group.parts")
- IMAGE_STATEMENTS("collections.group.parts.")
- {"collections.group.parts.font", st_fonts_font}, /* dup */
- FONT_STYLE_CC_STATEMENTS("collections.group.parts.")
- TEXT_CLASS_STATEMENTS("collections.group.parts.")
- SIZE_CLASS_STATEMENTS("collections.group.parts.")
- {"collections.group.parts.target_group", st_collections_group_target_group}, /* dup */
- {"collections.group.parts.part.name", st_collections_group_parts_part_name},
- {"collections.group.parts.part.target_group", st_collections_group_target_group}, /* dup */
- {"collections.group.parts.part.inherit", st_collections_group_parts_part_inherit},
- {"collections.group.parts.part.api", st_collections_group_parts_part_api},
- {"collections.group.parts.part.type", st_collections_group_parts_part_type},
+ {"collections.translation.file.locale", st_collections_group_translation_file_locale},
+ {"collections.translation.file.source", st_collections_group_translation_file_source},
+ {"collections.group.translation.file.locale", st_collections_group_translation_file_locale},
+ {"collections.group.translation.file.source", st_collections_group_translation_file_source},
+
+ {"collections.sounds.sample.name", st_collections_group_sound_sample_name},
+ {"collections.sounds.sample.source", st_collections_group_sound_sample_source},
+ {"collections.group.sounds.sample.name", st_collections_group_sound_sample_name}, /* dup */
+ {"collections.group.sounds.sample.source", st_collections_group_sound_sample_source}, /* dup */
+ {"collections.sounds.tone", st_collections_group_sound_tone},
+ {"collections.group.sounds.tone", st_collections_group_sound_tone}, /* dup */
+ {"collections.vibrations.sample.name", st_collections_group_vibration_sample_name},
+ {"collections.vibrations.sample.source", st_collections_group_vibration_sample_source},
+ FILTERS_STATEMENTS("collections.") /* dup */
+ {"collections.group.vibrations.sample.name", st_collections_group_vibration_sample_name}, /* dup */
+ {"collections.group.vibrations.sample.source", st_collections_group_vibration_sample_source}, /* dup */
+ {"collections.group.name", st_collections_group_name},
+ {"collections.group.program_source", st_collections_group_program_source},
+ {"collections.group.inherit", st_collections_group_inherit},
+ {"collections.group.inherit_only", st_collections_group_inherit_only},
+ {"collections.group.use_custom_seat_names", st_collections_group_use_custom_seat_names},
+ {"collections.group.target_group", st_collections_group_target_group}, /* dup */
+ {"collections.group.part_remove", st_collections_group_part_remove},
+ {"collections.group.program_remove", st_collections_group_program_remove},
+ {"collections.group.lua_script_only", st_collections_group_lua_script_only},
+ {"collections.group.script_recursion", st_collections_group_script_recursion},
+ {"collections.group.alias", st_collections_group_alias},
+ {"collections.group.min", st_collections_group_min},
+ {"collections.group.max", st_collections_group_max},
+ {"collections.group.scene_size", st_collections_group_scene_size},
+ {"collections.group.broadcast_signal", st_collections_group_broadcast_signal},
+ {"collections.group.orientation", st_collections_group_orientation},
+ {"collections.group.mouse_events", st_collections_group_mouse_events},
+ {"collections.group.inherit_script", st_collections_group_inherit_script},
+ {"collections.group.data.item", st_collections_group_data_item},
+ {"collections.group.limits.horizontal", st_collections_group_limits_horizontal},
+ {"collections.group.limits.vertical", st_collections_group_limits_vertical},
+ {"collections.group.externals.external", st_externals_external}, /* dup */
+ {"collections.group.programs.target_group", st_collections_group_target_group}, /* dup */
+ IMAGE_SET_STATEMENTS("collections.group")
+ IMAGE_STATEMENTS("collections.group.")
+ {"collections.group.models.model", st_models_model},
+ {"collections.group.font", st_fonts_font}, /* dup */
+ FONT_STYLE_CC_STATEMENTS("collections.group.")
+ TEXT_CLASS_STATEMENTS("collections.group.")
+ SIZE_CLASS_STATEMENTS("collections.group.")
+ {"collections.group.parts.alias", st_collections_group_parts_alias },
+ IMAGE_SET_STATEMENTS("collections.group.parts")
+ IMAGE_STATEMENTS("collections.group.parts.")
+ {"collections.group.parts.font", st_fonts_font}, /* dup */
+ FONT_STYLE_CC_STATEMENTS("collections.group.parts.")
+ TEXT_CLASS_STATEMENTS("collections.group.parts.")
+ SIZE_CLASS_STATEMENTS("collections.group.parts.")
+ {"collections.group.parts.target_group", st_collections_group_target_group}, /* dup */
+ {"collections.group.parts.part.name", st_collections_group_parts_part_name},
+ {"collections.group.parts.part.target_group", st_collections_group_target_group}, /* dup */
+ {"collections.group.parts.part.inherit", st_collections_group_parts_part_inherit},
+ {"collections.group.parts.part.api", st_collections_group_parts_part_api},
+ {"collections.group.parts.part.type", st_collections_group_parts_part_type},
#ifdef HAVE_EPHYSICS
- {"collections.group.parts.part.physics_body", st_collections_group_parts_part_physics_body},
+ {"collections.group.parts.part.physics_body", st_collections_group_parts_part_physics_body},
#endif
- {"collections.group.parts.part.insert_before", st_collections_group_parts_part_insert_before},
- {"collections.group.parts.part.insert_after", st_collections_group_parts_part_insert_after},
- {"collections.group.parts.part.effect", st_collections_group_parts_part_effect},
- {"collections.group.parts.part.mouse_events", st_collections_group_parts_part_mouse_events},
- {"collections.group.parts.part.anti_alias", st_collections_group_parts_part_anti_alias},
- {"collections.group.parts.part.repeat_events", st_collections_group_parts_part_repeat_events},
- {"collections.group.parts.part.ignore_flags", st_collections_group_parts_part_ignore_flags},
- {"collections.group.parts.part.mask_flags", st_collections_group_parts_part_mask_flags},
- {"collections.group.parts.part.scale", st_collections_group_parts_part_scale},
- {"collections.group.parts.part.pointer_mode", st_collections_group_parts_part_pointer_mode},
- {"collections.group.parts.part.precise_is_inside", st_collections_group_parts_part_precise_is_inside},
- {"collections.group.parts.part.use_alternate_font_metrics", st_collections_group_parts_part_use_alternate_font_metrics},
- {"collections.group.parts.part.clip_to", st_collections_group_parts_part_clip_to_id},
- {"collections.group.parts.part.no_render", st_collections_group_parts_part_no_render},
- {"collections.group.parts.part.required", st_collections_group_parts_part_required},
- {"collections.group.parts.part.source", st_collections_group_parts_part_source},
- {"collections.group.parts.part.source2", st_collections_group_parts_part_source2},
- {"collections.group.parts.part.source3", st_collections_group_parts_part_source3},
- {"collections.group.parts.part.source4", st_collections_group_parts_part_source4},
- {"collections.group.parts.part.source5", st_collections_group_parts_part_source5},
- {"collections.group.parts.part.source6", st_collections_group_parts_part_source6},
- {"collections.group.parts.part.dragable.x", st_collections_group_parts_part_dragable_x},
- {"collections.group.parts.part.dragable.y", st_collections_group_parts_part_dragable_y},
- {"collections.group.parts.part.dragable.confine", st_collections_group_parts_part_dragable_confine},
- {"collections.group.parts.part.dragable.threshold", st_collections_group_parts_part_dragable_threshold},
- {"collections.group.parts.part.dragable.events", st_collections_group_parts_part_dragable_events},
- {"collections.group.parts.part.entry_mode", st_collections_group_parts_part_entry_mode},
- {"collections.group.parts.part.select_mode", st_collections_group_parts_part_select_mode},
- {"collections.group.parts.part.cursor_mode", st_collections_group_parts_part_cursor_mode},
- {"collections.group.parts.part.multiline", st_collections_group_parts_part_multiline},
- {"collections.group.parts.part.access", st_collections_group_parts_part_access},
- {"collections.group.parts.part.allowed_seats", st_collections_group_parts_part_allowed_seats},
- IMAGE_SET_STATEMENTS("collections.group.parts.part")
- IMAGE_STATEMENTS("collections.group.parts.part.")
- {"collections.group.parts.part.font", st_fonts_font}, /* dup */
- FONT_STYLE_CC_STATEMENTS("collections.group.parts.part.")
- TEXT_CLASS_STATEMENTS("collections.group.parts.part.")
- SIZE_CLASS_STATEMENTS("collections.group.parts.part.")
- {"collections.group.parts.part.box.items.item.type", st_collections_group_parts_part_box_items_item_type},
- {"collections.group.parts.part.box.items.item.name", st_collections_group_parts_part_box_items_item_name},
- {"collections.group.parts.part.box.items.item.source", st_collections_group_parts_part_box_items_item_source},
- {"collections.group.parts.part.box.items.item.min", st_collections_group_parts_part_box_items_item_min},
- {"collections.group.parts.part.box.items.item.spread", st_collections_group_parts_part_box_items_item_spread},
- {"collections.group.parts.part.box.items.item.prefer", st_collections_group_parts_part_box_items_item_prefer},
- {"collections.group.parts.part.box.items.item.max", st_collections_group_parts_part_box_items_item_max},
- {"collections.group.parts.part.box.items.item.padding", st_collections_group_parts_part_box_items_item_padding},
- {"collections.group.parts.part.box.items.item.align", st_collections_group_parts_part_box_items_item_align},
- {"collections.group.parts.part.box.items.item.weight", st_collections_group_parts_part_box_items_item_weight},
- {"collections.group.parts.part.box.items.item.aspect", st_collections_group_parts_part_box_items_item_aspect},
- {"collections.group.parts.part.box.items.item.aspect_mode", st_collections_group_parts_part_box_items_item_aspect_mode},
- {"collections.group.parts.part.box.items.item.options", st_collections_group_parts_part_box_items_item_options},
- {"collections.group.parts.part.table.items.item.type", st_collections_group_parts_part_box_items_item_type}, /* dup */
- {"collections.group.parts.part.table.items.item.name", st_collections_group_parts_part_box_items_item_name}, /* dup */
- {"collections.group.parts.part.table.items.item.source", st_collections_group_parts_part_box_items_item_source}, /* dup */
- {"collections.group.parts.part.table.items.item.min", st_collections_group_parts_part_box_items_item_min}, /* dup */
- {"collections.group.parts.part.table.items.item.spread", st_collections_group_parts_part_box_items_item_spread}, /* dup */
- {"collections.group.parts.part.table.items.item.prefer", st_collections_group_parts_part_box_items_item_prefer}, /* dup */
- {"collections.group.parts.part.table.items.item.max", st_collections_group_parts_part_box_items_item_max}, /* dup */
- {"collections.group.parts.part.table.items.item.padding", st_collections_group_parts_part_box_items_item_padding}, /* dup */
- {"collections.group.parts.part.table.items.item.align", st_collections_group_parts_part_box_items_item_align}, /* dup */
- {"collections.group.parts.part.table.items.item.weight", st_collections_group_parts_part_box_items_item_weight}, /* dup */
- {"collections.group.parts.part.table.items.item.aspect", st_collections_group_parts_part_box_items_item_aspect}, /* dup */
- {"collections.group.parts.part.table.items.item.aspect_mode", st_collections_group_parts_part_box_items_item_aspect_mode}, /* dup */
- {"collections.group.parts.part.table.items.item.options", st_collections_group_parts_part_box_items_item_options}, /* dup */
- {"collections.group.parts.part.table.items.item.position", st_collections_group_parts_part_table_items_item_position},
- {"collections.group.parts.part.table.items.item.span", st_collections_group_parts_part_table_items_item_span},
- {"collections.group.parts.part.description.target_group", st_collections_group_target_group}, /* dup */
- {"collections.group.parts.part.description.inherit", st_collections_group_parts_part_description_inherit},
- {"collections.group.parts.part.description.link.base", st_collections_group_parts_part_description_link_base},
- {"collections.group.parts.part.description.link.transition", st_collections_group_programs_program_transition},
- {"collections.group.parts.part.description.link.after", st_collections_group_programs_program_after},
- {"collections.group.parts.part.description.link.in", st_collections_group_programs_program_in},
- {"collections.group.parts.part.description.source", st_collections_group_parts_part_description_source},
- {"collections.group.parts.part.description.state", st_collections_group_parts_part_description_state},
- {"collections.group.parts.part.description.visible", st_collections_group_parts_part_description_visible},
- {"collections.group.parts.part.description.limit", st_collections_group_parts_part_description_limit},
- {"collections.group.parts.part.description.no_render", st_collections_group_parts_part_description_no_render},
- {"collections.group.parts.part.description.align", st_collections_group_parts_part_description_align},
- {"collections.group.parts.part.description.fixed", st_collections_group_parts_part_description_fixed},
- {"collections.group.parts.part.description.min", st_collections_group_parts_part_description_min},
- {"collections.group.parts.part.description.minmul", st_collections_group_parts_part_description_minmul},
- {"collections.group.parts.part.description.max", st_collections_group_parts_part_description_max},
- {"collections.group.parts.part.description.step", st_collections_group_parts_part_description_step},
- {"collections.group.parts.part.description.aspect", st_collections_group_parts_part_description_aspect},
- {"collections.group.parts.part.description.aspect_preference", st_collections_group_parts_part_description_aspect_preference},
- {"collections.group.parts.part.description.rel.to", st_collections_group_parts_part_description_rel_to},
- {"collections.group.parts.part.description.rel.to_x", st_collections_group_parts_part_description_rel_to_x},
- {"collections.group.parts.part.description.rel.to_y", st_collections_group_parts_part_description_rel_to_y},
- {"collections.group.parts.part.description.rel1.relative", st_collections_group_parts_part_description_rel1_relative},
- {"collections.group.parts.part.description.rel1.offset", st_collections_group_parts_part_description_rel1_offset},
- {"collections.group.parts.part.description.rel1.to", st_collections_group_parts_part_description_rel1_to},
- {"collections.group.parts.part.description.rel1.to_x", st_collections_group_parts_part_description_rel1_to_x},
- {"collections.group.parts.part.description.rel1.to_y", st_collections_group_parts_part_description_rel1_to_y},
- {"collections.group.parts.part.description.rel2.relative", st_collections_group_parts_part_description_rel2_relative},
- {"collections.group.parts.part.description.rel2.offset", st_collections_group_parts_part_description_rel2_offset},
- {"collections.group.parts.part.description.rel2.to", st_collections_group_parts_part_description_rel2_to},
- {"collections.group.parts.part.description.rel2.to_x", st_collections_group_parts_part_description_rel2_to_x},
- {"collections.group.parts.part.description.rel2.to_y", st_collections_group_parts_part_description_rel2_to_y},
- {"collections.group.parts.part.description.offset_scale", st_collections_group_parts_part_description_offset_scale},
- {"collections.group.parts.part.description.anchors.top", st_collections_group_parts_part_description_anchors_top},
- {"collections.group.parts.part.description.anchors.bottom", st_collections_group_parts_part_description_anchors_bottom},
- {"collections.group.parts.part.description.anchors.left", st_collections_group_parts_part_description_anchors_left},
- {"collections.group.parts.part.description.anchors.right", st_collections_group_parts_part_description_anchors_right},
- {"collections.group.parts.part.description.anchors.vertical_center", st_collections_group_parts_part_description_anchors_vertical_center},
- {"collections.group.parts.part.description.anchors.horizontal_center", st_collections_group_parts_part_description_anchors_horizontal_center},
- {"collections.group.parts.part.description.anchors.fill", st_collections_group_parts_part_description_anchors_fill},
- {"collections.group.parts.part.description.anchors.margin", st_collections_group_parts_part_description_anchors_margin},
- {"collections.group.parts.part.description.clip_to", st_collections_group_parts_part_description_clip_to_id},
- {"collections.group.parts.part.description.size_class", st_collections_group_parts_part_description_size_class},
- {"collections.group.parts.part.description.image.normal", st_collections_group_parts_part_description_image_normal},
- {"collections.group.parts.part.description.image.tween", st_collections_group_parts_part_description_image_tween},
- IMAGE_SET_STATEMENTS("collections.group.parts.part.description.image")
- IMAGE_STATEMENTS("collections.group.parts.part.description.image.")
- {"collections.group.parts.part.description.image.border", st_collections_group_parts_part_description_image_border},
- {"collections.group.parts.part.description.image.middle", st_collections_group_parts_part_description_image_middle},
- {"collections.group.parts.part.description.image.border_scale", st_collections_group_parts_part_description_image_border_scale},
- {"collections.group.parts.part.description.image.border_scale_by", st_collections_group_parts_part_description_image_border_scale_by},
- {"collections.group.parts.part.description.image.scale_hint", st_collections_group_parts_part_description_image_scale_hint},
- {"collections.group.parts.part.description.fill.smooth", st_collections_group_parts_part_description_fill_smooth},
- {"collections.group.parts.part.description.fill.origin.relative", st_collections_group_parts_part_description_fill_origin_relative},
- {"collections.group.parts.part.description.fill.origin.offset", st_collections_group_parts_part_description_fill_origin_offset},
- {"collections.group.parts.part.description.fill.size.relative", st_collections_group_parts_part_description_fill_size_relative},
- {"collections.group.parts.part.description.fill.size.offset", st_collections_group_parts_part_description_fill_size_offset},
- {"collections.group.parts.part.description.fill.type", st_collections_group_parts_part_description_fill_type},
- {"collections.group.parts.part.description.color_class", st_collections_group_parts_part_description_color_class},
- {"collections.group.parts.part.description.color", st_collections_group_parts_part_description_color},
- {"collections.group.parts.part.description.color2", st_collections_group_parts_part_description_color2},
- {"collections.group.parts.part.description.color3", st_collections_group_parts_part_description_color3},
- {"collections.group.parts.part.description.text.text", st_collections_group_parts_part_description_text_text},
- {"collections.group.parts.part.description.text.domain", st_collections_group_parts_part_description_text_domain},
- {"collections.group.parts.part.description.text.text_class", st_collections_group_parts_part_description_text_text_class},
- {"collections.group.parts.part.description.text.font", st_collections_group_parts_part_description_text_font},
- {"collections.group.parts.part.description.text.style", st_collections_group_parts_part_description_text_style},
- {"collections.group.parts.part.description.text.repch", st_collections_group_parts_part_description_text_repch},
- {"collections.group.parts.part.description.text.size", st_collections_group_parts_part_description_text_size},
- {"collections.group.parts.part.description.text.size_range", st_collections_group_parts_part_description_text_size_range},
- {"collections.group.parts.part.description.text.fit", st_collections_group_parts_part_description_text_fit},
- {"collections.group.parts.part.description.text.min", st_collections_group_parts_part_description_text_min},
- {"collections.group.parts.part.description.text.max", st_collections_group_parts_part_description_text_max},
- {"collections.group.parts.part.description.text.align", st_collections_group_parts_part_description_text_align},
- {"collections.group.parts.part.description.text.source", st_collections_group_parts_part_description_text_source},
- {"collections.group.parts.part.description.text.text_source", st_collections_group_parts_part_description_text_text_source},
- {"collections.group.parts.part.description.text.font", st_fonts_font}, /* dup */
- {"collections.group.parts.part.description.text.fonts.font", st_fonts_font}, /* dup */
- {"collections.group.parts.part.description.text.elipsis", st_collections_group_parts_part_description_text_ellipsis},
- {"collections.group.parts.part.description.text.ellipsis", st_collections_group_parts_part_description_text_ellipsis},
- {"collections.group.parts.part.description.text.filter", st_collections_group_parts_part_description_filter_code}, /* dup */
- /***********************************************************************************
- * TIZEN_ONLY_FEATURE: ellipsize.marquee, ellipsize.fade for TEXTBLOCK, TEXT part. *
- ***********************************************************************************/
- {"collections.group.parts.part.description.text.ellipsize.mode", st_collections_group_parts_part_description_text_ellipsize_mode},
- {"collections.group.parts.part.description.text.ellipsize.marquee_repeat_limit", st_collections_group_parts_part_description_text_ellipsize_marquee_repeat_limit},
- {"collections.group.parts.part.description.text.ellipsize.align", st_collections_group_parts_part_description_text_ellipsize_align},
- {"collections.group.parts.part.description.text.ellipsize.marquee.type", st_collections_group_parts_part_description_text_ellipsize_marquee_type},
- {"collections.group.parts.part.description.text.ellipsize.marquee.loop", st_collections_group_parts_part_description_text_ellipsize_marquee_loop},
- {"collections.group.parts.part.description.text.ellipsize.marquee.loop_delay", st_collections_group_parts_part_description_text_ellipsize_marquee_loop_delay},
- {"collections.group.parts.part.description.text.ellipsize.marquee.speed", st_collections_group_parts_part_description_text_ellipsize_marquee_speed},
- {"collections.group.parts.part.description.text.ellipsize.marquee.duration", st_collections_group_parts_part_description_text_ellipsize_marquee_duration},
- {"collections.group.parts.part.description.text.ellipsize.normal.mode", st_collections_group_parts_part_description_text_ellipsize_normal_mode},
- {"collections.group.parts.part.description.text.ellipsize.fade.mode", st_collections_group_parts_part_description_text_ellipsize_fade_mode},
- {"collections.group.parts.part.description.text.ellipsize.marquee.mode", st_collections_group_parts_part_description_text_ellipsize_marquee_mode},
- {"collections.group.parts.part.description.text.fade_ellipsis", st_collections_group_parts_part_description_text_fade_ellipsis}, /* Legacy */
- /*******
- * END *
- *******/
- {"collections.group.parts.part.description.box.layout", st_collections_group_parts_part_description_box_layout},
- {"collections.group.parts.part.description.box.align", st_collections_group_parts_part_description_box_align},
- {"collections.group.parts.part.description.box.padding", st_collections_group_parts_part_description_box_padding},
- {"collections.group.parts.part.description.box.min", st_collections_group_parts_part_description_box_min},
- {"collections.group.parts.part.description.table.homogeneous", st_collections_group_parts_part_description_table_homogeneous},
- {"collections.group.parts.part.description.table.align", st_collections_group_parts_part_description_table_align},
- {"collections.group.parts.part.description.table.padding", st_collections_group_parts_part_description_table_padding},
- {"collections.group.parts.part.description.table.min", st_collections_group_parts_part_description_table_min},
- {"collections.group.parts.part.description.proxy.source_visible", st_collections_group_parts_part_description_proxy_source_visible},
- {"collections.group.parts.part.description.proxy.source_clip", st_collections_group_parts_part_description_proxy_source_clip},
- {"collections.group.parts.part.description.position.point", st_collections_group_parts_part_description_position_point},
- {"collections.group.parts.part.description.position.space", st_collections_group_parts_part_description_position_space},
- {"collections.group.parts.part.description.properties.perspective", st_collections_group_parts_part_description_camera_properties},
- {"collections.group.parts.part.description.properties.ambient", st_collections_group_parts_part_description_properties_ambient},
- {"collections.group.parts.part.description.properties.diffuse", st_collections_group_parts_part_description_properties_diffuse},
- {"collections.group.parts.part.description.properties.specular", st_collections_group_parts_part_description_properties_specular},
- {"collections.group.parts.part.description.properties.material", st_collections_group_parts_part_description_properties_material},
- {"collections.group.parts.part.description.properties.normal", st_collections_group_parts_part_description_properties_normal},
- {"collections.group.parts.part.description.properties.shininess", st_collections_group_parts_part_description_properties_shininess},
- {"collections.group.parts.part.description.properties.shade", st_collections_group_parts_part_description_properties_shade},
- {"collections.group.parts.part.description.mesh.primitive", st_collections_group_parts_part_description_mesh_primitive},
- {"collections.group.parts.part.description.orientation.look1", st_collections_group_parts_part_description_orientation_look1},
- {"collections.group.parts.part.description.orientation.look2", st_collections_group_parts_part_description_orientation_look2},
- {"collections.group.parts.part.description.orientation.look_to", st_collections_group_parts_part_description_orientation_look_to},
- {"collections.group.parts.part.description.orientation.angle_axis", st_collections_group_parts_part_description_orientation_angle_axis},
- {"collections.group.parts.part.description.orientation.quaternion", st_collections_group_parts_part_description_orientation_quaternion},
- {"collections.group.parts.part.description.scale", st_collections_group_parts_part_description_scale},
- {"collections.group.parts.part.description.texture.image", st_collections_group_parts_part_description_texture_image},
- {"collections.group.parts.part.description.texture.wrap1", st_collections_group_parts_part_description_texture_wrap1},
- {"collections.group.parts.part.description.texture.wrap2", st_collections_group_parts_part_description_texture_wrap2},
- {"collections.group.parts.part.description.texture.filter1", st_collections_group_parts_part_description_texture_filter1},
- {"collections.group.parts.part.description.texture.filter2", st_collections_group_parts_part_description_texture_filter2},
- {"collections.group.parts.part.description.mesh.assembly", st_collections_group_parts_part_description_mesh_assembly},
- {"collections.group.parts.part.description.mesh.geometry", st_collections_group_parts_part_description_mesh_geometry},
- {"collections.group.parts.part.description.mesh.frame", st_collections_group_parts_part_description_mesh_frame},
- {"collections.group.parts.part.description.filter.code", st_collections_group_parts_part_description_filter_code},
- {"collections.group.parts.part.description.filter.source", st_collections_group_parts_part_description_filter_source},
- {"collections.group.parts.part.description.filter.data", st_collections_group_parts_part_description_filter_data},
+ {"collections.group.parts.part.insert_before", st_collections_group_parts_part_insert_before},
+ {"collections.group.parts.part.insert_after", st_collections_group_parts_part_insert_after},
+ {"collections.group.parts.part.effect", st_collections_group_parts_part_effect},
+ {"collections.group.parts.part.mouse_events", st_collections_group_parts_part_mouse_events},
+ {"collections.group.parts.part.anti_alias", st_collections_group_parts_part_anti_alias},
+ {"collections.group.parts.part.repeat_events", st_collections_group_parts_part_repeat_events},
+ {"collections.group.parts.part.ignore_flags", st_collections_group_parts_part_ignore_flags},
+ {"collections.group.parts.part.mask_flags", st_collections_group_parts_part_mask_flags},
+ {"collections.group.parts.part.scale", st_collections_group_parts_part_scale},
+ {"collections.group.parts.part.pointer_mode", st_collections_group_parts_part_pointer_mode},
+ {"collections.group.parts.part.precise_is_inside", st_collections_group_parts_part_precise_is_inside},
+ {"collections.group.parts.part.use_alternate_font_metrics", st_collections_group_parts_part_use_alternate_font_metrics},
+ {"collections.group.parts.part.clip_to", st_collections_group_parts_part_clip_to_id},
+ {"collections.group.parts.part.no_render", st_collections_group_parts_part_no_render},
+ {"collections.group.parts.part.required", st_collections_group_parts_part_required},
+ {"collections.group.parts.part.source", st_collections_group_parts_part_source},
+ {"collections.group.parts.part.source2", st_collections_group_parts_part_source2},
+ {"collections.group.parts.part.source3", st_collections_group_parts_part_source3},
+ {"collections.group.parts.part.source4", st_collections_group_parts_part_source4},
+ {"collections.group.parts.part.source5", st_collections_group_parts_part_source5},
+ {"collections.group.parts.part.source6", st_collections_group_parts_part_source6},
+ {"collections.group.parts.part.dragable.x", st_collections_group_parts_part_dragable_x},
+ {"collections.group.parts.part.dragable.y", st_collections_group_parts_part_dragable_y},
+ {"collections.group.parts.part.dragable.confine", st_collections_group_parts_part_dragable_confine},
+ {"collections.group.parts.part.dragable.threshold", st_collections_group_parts_part_dragable_threshold},
+ {"collections.group.parts.part.dragable.events", st_collections_group_parts_part_dragable_events},
+ {"collections.group.parts.part.entry_mode", st_collections_group_parts_part_entry_mode},
+ {"collections.group.parts.part.select_mode", st_collections_group_parts_part_select_mode},
+ {"collections.group.parts.part.cursor_mode", st_collections_group_parts_part_cursor_mode},
+ {"collections.group.parts.part.multiline", st_collections_group_parts_part_multiline},
+ {"collections.group.parts.part.access", st_collections_group_parts_part_access},
+ {"collections.group.parts.part.allowed_seats", st_collections_group_parts_part_allowed_seats},
+ IMAGE_SET_STATEMENTS("collections.group.parts.part")
+ IMAGE_STATEMENTS("collections.group.parts.part.")
+ {"collections.group.parts.part.font", st_fonts_font}, /* dup */
+ FONT_STYLE_CC_STATEMENTS("collections.group.parts.part.")
+ TEXT_CLASS_STATEMENTS("collections.group.parts.part.")
+ SIZE_CLASS_STATEMENTS("collections.group.parts.part.")
+ {"collections.group.parts.part.box.items.item.type", st_collections_group_parts_part_box_items_item_type},
+ {"collections.group.parts.part.box.items.item.name", st_collections_group_parts_part_box_items_item_name},
+ {"collections.group.parts.part.box.items.item.source", st_collections_group_parts_part_box_items_item_source},
+ {"collections.group.parts.part.box.items.item.min", st_collections_group_parts_part_box_items_item_min},
+ {"collections.group.parts.part.box.items.item.spread", st_collections_group_parts_part_box_items_item_spread},
+ {"collections.group.parts.part.box.items.item.prefer", st_collections_group_parts_part_box_items_item_prefer},
+ {"collections.group.parts.part.box.items.item.max", st_collections_group_parts_part_box_items_item_max},
+ {"collections.group.parts.part.box.items.item.padding", st_collections_group_parts_part_box_items_item_padding},
+ {"collections.group.parts.part.box.items.item.align", st_collections_group_parts_part_box_items_item_align},
+ {"collections.group.parts.part.box.items.item.weight", st_collections_group_parts_part_box_items_item_weight},
+ {"collections.group.parts.part.box.items.item.aspect", st_collections_group_parts_part_box_items_item_aspect},
+ {"collections.group.parts.part.box.items.item.aspect_mode", st_collections_group_parts_part_box_items_item_aspect_mode},
+ {"collections.group.parts.part.box.items.item.options", st_collections_group_parts_part_box_items_item_options},
+ {"collections.group.parts.part.table.items.item.type", st_collections_group_parts_part_box_items_item_type}, /* dup */
+ {"collections.group.parts.part.table.items.item.name", st_collections_group_parts_part_box_items_item_name}, /* dup */
+ {"collections.group.parts.part.table.items.item.source", st_collections_group_parts_part_box_items_item_source}, /* dup */
+ {"collections.group.parts.part.table.items.item.min", st_collections_group_parts_part_box_items_item_min}, /* dup */
+ {"collections.group.parts.part.table.items.item.spread", st_collections_group_parts_part_box_items_item_spread}, /* dup */
+ {"collections.group.parts.part.table.items.item.prefer", st_collections_group_parts_part_box_items_item_prefer}, /* dup */
+ {"collections.group.parts.part.table.items.item.max", st_collections_group_parts_part_box_items_item_max}, /* dup */
+ {"collections.group.parts.part.table.items.item.padding", st_collections_group_parts_part_box_items_item_padding}, /* dup */
+ {"collections.group.parts.part.table.items.item.align", st_collections_group_parts_part_box_items_item_align}, /* dup */
+ {"collections.group.parts.part.table.items.item.weight", st_collections_group_parts_part_box_items_item_weight}, /* dup */
+ {"collections.group.parts.part.table.items.item.aspect", st_collections_group_parts_part_box_items_item_aspect}, /* dup */
+ {"collections.group.parts.part.table.items.item.aspect_mode", st_collections_group_parts_part_box_items_item_aspect_mode}, /* dup */
+ {"collections.group.parts.part.table.items.item.options", st_collections_group_parts_part_box_items_item_options}, /* dup */
+ {"collections.group.parts.part.table.items.item.position", st_collections_group_parts_part_table_items_item_position},
+ {"collections.group.parts.part.table.items.item.span", st_collections_group_parts_part_table_items_item_span},
+ {"collections.group.parts.part.description.target_group", st_collections_group_target_group}, /* dup */
+ {"collections.group.parts.part.description.inherit", st_collections_group_parts_part_description_inherit},
+ {"collections.group.parts.part.description.link.base", st_collections_group_parts_part_description_link_base},
+ {"collections.group.parts.part.description.link.transition", st_collections_group_programs_program_transition},
+ {"collections.group.parts.part.description.link.after", st_collections_group_programs_program_after},
+ {"collections.group.parts.part.description.link.in", st_collections_group_programs_program_in},
+ {"collections.group.parts.part.description.source", st_collections_group_parts_part_description_source},
+ {"collections.group.parts.part.description.state", st_collections_group_parts_part_description_state},
+ {"collections.group.parts.part.description.visible", st_collections_group_parts_part_description_visible},
+ {"collections.group.parts.part.description.limit", st_collections_group_parts_part_description_limit},
+ {"collections.group.parts.part.description.no_render", st_collections_group_parts_part_description_no_render},
+ {"collections.group.parts.part.description.align", st_collections_group_parts_part_description_align},
+ {"collections.group.parts.part.description.fixed", st_collections_group_parts_part_description_fixed},
+ {"collections.group.parts.part.description.min", st_collections_group_parts_part_description_min},
+ {"collections.group.parts.part.description.minmul", st_collections_group_parts_part_description_minmul},
+ {"collections.group.parts.part.description.max", st_collections_group_parts_part_description_max},
+ {"collections.group.parts.part.description.step", st_collections_group_parts_part_description_step},
+ {"collections.group.parts.part.description.aspect", st_collections_group_parts_part_description_aspect},
+ {"collections.group.parts.part.description.aspect_preference", st_collections_group_parts_part_description_aspect_preference},
+ {"collections.group.parts.part.description.rel.to", st_collections_group_parts_part_description_rel_to},
+ {"collections.group.parts.part.description.rel.to_x", st_collections_group_parts_part_description_rel_to_x},
+ {"collections.group.parts.part.description.rel.to_y", st_collections_group_parts_part_description_rel_to_y},
+ {"collections.group.parts.part.description.rel1.relative", st_collections_group_parts_part_description_rel1_relative},
+ {"collections.group.parts.part.description.rel1.offset", st_collections_group_parts_part_description_rel1_offset},
+ {"collections.group.parts.part.description.rel1.to", st_collections_group_parts_part_description_rel1_to},
+ {"collections.group.parts.part.description.rel1.to_x", st_collections_group_parts_part_description_rel1_to_x},
+ {"collections.group.parts.part.description.rel1.to_y", st_collections_group_parts_part_description_rel1_to_y},
+ {"collections.group.parts.part.description.rel2.relative", st_collections_group_parts_part_description_rel2_relative},
+ {"collections.group.parts.part.description.rel2.offset", st_collections_group_parts_part_description_rel2_offset},
+ {"collections.group.parts.part.description.rel2.to", st_collections_group_parts_part_description_rel2_to},
+ {"collections.group.parts.part.description.rel2.to_x", st_collections_group_parts_part_description_rel2_to_x},
+ {"collections.group.parts.part.description.rel2.to_y", st_collections_group_parts_part_description_rel2_to_y},
+ {"collections.group.parts.part.description.offset_scale", st_collections_group_parts_part_description_offset_scale},
+ {"collections.group.parts.part.description.anchors.top", st_collections_group_parts_part_description_anchors_top},
+ {"collections.group.parts.part.description.anchors.bottom", st_collections_group_parts_part_description_anchors_bottom},
+ {"collections.group.parts.part.description.anchors.left", st_collections_group_parts_part_description_anchors_left},
+ {"collections.group.parts.part.description.anchors.right", st_collections_group_parts_part_description_anchors_right},
+ {"collections.group.parts.part.description.anchors.vertical_center", st_collections_group_parts_part_description_anchors_vertical_center},
+ {"collections.group.parts.part.description.anchors.horizontal_center", st_collections_group_parts_part_description_anchors_horizontal_center},
+ {"collections.group.parts.part.description.anchors.fill", st_collections_group_parts_part_description_anchors_fill},
+ {"collections.group.parts.part.description.anchors.margin", st_collections_group_parts_part_description_anchors_margin},
+ {"collections.group.parts.part.description.clip_to", st_collections_group_parts_part_description_clip_to_id},
+ {"collections.group.parts.part.description.size_class", st_collections_group_parts_part_description_size_class},
+ {"collections.group.parts.part.description.image.normal", st_collections_group_parts_part_description_image_normal},
+ {"collections.group.parts.part.description.image.tween", st_collections_group_parts_part_description_image_tween},
+ IMAGE_SET_STATEMENTS("collections.group.parts.part.description.image")
+ IMAGE_STATEMENTS("collections.group.parts.part.description.image.")
+ {"collections.group.parts.part.description.image.border", st_collections_group_parts_part_description_image_border},
+ {"collections.group.parts.part.description.image.middle", st_collections_group_parts_part_description_image_middle},
+ {"collections.group.parts.part.description.image.border_scale", st_collections_group_parts_part_description_image_border_scale},
+ {"collections.group.parts.part.description.image.border_scale_by", st_collections_group_parts_part_description_image_border_scale_by},
+ {"collections.group.parts.part.description.image.scale_hint", st_collections_group_parts_part_description_image_scale_hint},
+ {"collections.group.parts.part.description.fill.smooth", st_collections_group_parts_part_description_fill_smooth},
+ {"collections.group.parts.part.description.fill.origin.relative", st_collections_group_parts_part_description_fill_origin_relative},
+ {"collections.group.parts.part.description.fill.origin.offset", st_collections_group_parts_part_description_fill_origin_offset},
+ {"collections.group.parts.part.description.fill.size.relative", st_collections_group_parts_part_description_fill_size_relative},
+ {"collections.group.parts.part.description.fill.size.offset", st_collections_group_parts_part_description_fill_size_offset},
+ {"collections.group.parts.part.description.fill.type", st_collections_group_parts_part_description_fill_type},
+ {"collections.group.parts.part.description.color_class", st_collections_group_parts_part_description_color_class},
+ {"collections.group.parts.part.description.color", st_collections_group_parts_part_description_color},
+ {"collections.group.parts.part.description.color2", st_collections_group_parts_part_description_color2},
+ {"collections.group.parts.part.description.color3", st_collections_group_parts_part_description_color3},
+ {"collections.group.parts.part.description.text.text", st_collections_group_parts_part_description_text_text},
+ {"collections.group.parts.part.description.text.domain", st_collections_group_parts_part_description_text_domain},
+ {"collections.group.parts.part.description.text.text_class", st_collections_group_parts_part_description_text_text_class},
+ {"collections.group.parts.part.description.text.font", st_collections_group_parts_part_description_text_font},
+ {"collections.group.parts.part.description.text.style", st_collections_group_parts_part_description_text_style},
+ {"collections.group.parts.part.description.text.repch", st_collections_group_parts_part_description_text_repch},
+ {"collections.group.parts.part.description.text.size", st_collections_group_parts_part_description_text_size},
+ {"collections.group.parts.part.description.text.size_range", st_collections_group_parts_part_description_text_size_range},
+ {"collections.group.parts.part.description.text.fit", st_collections_group_parts_part_description_text_fit},
+ {"collections.group.parts.part.description.text.min", st_collections_group_parts_part_description_text_min},
+ {"collections.group.parts.part.description.text.max", st_collections_group_parts_part_description_text_max},
+ {"collections.group.parts.part.description.text.align", st_collections_group_parts_part_description_text_align},
+ {"collections.group.parts.part.description.text.source", st_collections_group_parts_part_description_text_source},
+ {"collections.group.parts.part.description.text.text_source", st_collections_group_parts_part_description_text_text_source},
+ {"collections.group.parts.part.description.text.font", st_fonts_font}, /* dup */
+ {"collections.group.parts.part.description.text.fonts.font", st_fonts_font}, /* dup */
+ {"collections.group.parts.part.description.text.elipsis", st_collections_group_parts_part_description_text_ellipsis},
+ {"collections.group.parts.part.description.text.ellipsis", st_collections_group_parts_part_description_text_ellipsis},
+ {"collections.group.parts.part.description.text.filter", st_collections_group_parts_part_description_filter_code}, /* dup */
+ /***********************************************************************************
+ * TIZEN_ONLY_FEATURE: ellipsize.marquee, ellipsize.fade for TEXTBLOCK, TEXT part. *
+ ***********************************************************************************/
+ {"collections.group.parts.part.description.text.ellipsize.mode", st_collections_group_parts_part_description_text_ellipsize_mode},
+ {"collections.group.parts.part.description.text.ellipsize.marquee_repeat_limit", st_collections_group_parts_part_description_text_ellipsize_marquee_repeat_limit},
+ {"collections.group.parts.part.description.text.ellipsize.align", st_collections_group_parts_part_description_text_ellipsize_align},
+ {"collections.group.parts.part.description.text.ellipsize.marquee.type", st_collections_group_parts_part_description_text_ellipsize_marquee_type},
+ {"collections.group.parts.part.description.text.ellipsize.marquee.loop", st_collections_group_parts_part_description_text_ellipsize_marquee_loop},
+ {"collections.group.parts.part.description.text.ellipsize.marquee.loop_delay", st_collections_group_parts_part_description_text_ellipsize_marquee_loop_delay},
+ {"collections.group.parts.part.description.text.ellipsize.marquee.speed", st_collections_group_parts_part_description_text_ellipsize_marquee_speed},
+ {"collections.group.parts.part.description.text.ellipsize.marquee.duration", st_collections_group_parts_part_description_text_ellipsize_marquee_duration},
+ {"collections.group.parts.part.description.text.ellipsize.normal.mode", st_collections_group_parts_part_description_text_ellipsize_normal_mode},
+ {"collections.group.parts.part.description.text.ellipsize.fade.mode", st_collections_group_parts_part_description_text_ellipsize_fade_mode},
+ {"collections.group.parts.part.description.text.ellipsize.marquee.mode", st_collections_group_parts_part_description_text_ellipsize_marquee_mode},
+ {"collections.group.parts.part.description.text.fade_ellipsis", st_collections_group_parts_part_description_text_fade_ellipsis}, /* Legacy */
+ /*******
+ * END *
+ *******/
+ {"collections.group.parts.part.description.box.layout", st_collections_group_parts_part_description_box_layout},
+ {"collections.group.parts.part.description.box.align", st_collections_group_parts_part_description_box_align},
+ {"collections.group.parts.part.description.box.padding", st_collections_group_parts_part_description_box_padding},
+ {"collections.group.parts.part.description.box.min", st_collections_group_parts_part_description_box_min},
+ {"collections.group.parts.part.description.table.homogeneous", st_collections_group_parts_part_description_table_homogeneous},
+ {"collections.group.parts.part.description.table.align", st_collections_group_parts_part_description_table_align},
+ {"collections.group.parts.part.description.table.padding", st_collections_group_parts_part_description_table_padding},
+ {"collections.group.parts.part.description.table.min", st_collections_group_parts_part_description_table_min},
+ {"collections.group.parts.part.description.proxy.source_visible", st_collections_group_parts_part_description_proxy_source_visible},
+ {"collections.group.parts.part.description.proxy.source_clip", st_collections_group_parts_part_description_proxy_source_clip},
+ {"collections.group.parts.part.description.position.point", st_collections_group_parts_part_description_position_point},
+ {"collections.group.parts.part.description.position.space", st_collections_group_parts_part_description_position_space},
+ {"collections.group.parts.part.description.properties.perspective", st_collections_group_parts_part_description_camera_properties},
+ {"collections.group.parts.part.description.properties.ambient", st_collections_group_parts_part_description_properties_ambient},
+ {"collections.group.parts.part.description.properties.diffuse", st_collections_group_parts_part_description_properties_diffuse},
+ {"collections.group.parts.part.description.properties.specular", st_collections_group_parts_part_description_properties_specular},
+ {"collections.group.parts.part.description.properties.material", st_collections_group_parts_part_description_properties_material},
+ {"collections.group.parts.part.description.properties.normal", st_collections_group_parts_part_description_properties_normal},
+ {"collections.group.parts.part.description.properties.shininess", st_collections_group_parts_part_description_properties_shininess},
+ {"collections.group.parts.part.description.properties.shade", st_collections_group_parts_part_description_properties_shade},
+ {"collections.group.parts.part.description.mesh.primitive", st_collections_group_parts_part_description_mesh_primitive},
+ {"collections.group.parts.part.description.orientation.look1", st_collections_group_parts_part_description_orientation_look1},
+ {"collections.group.parts.part.description.orientation.look2", st_collections_group_parts_part_description_orientation_look2},
+ {"collections.group.parts.part.description.orientation.look_to", st_collections_group_parts_part_description_orientation_look_to},
+ {"collections.group.parts.part.description.orientation.angle_axis", st_collections_group_parts_part_description_orientation_angle_axis},
+ {"collections.group.parts.part.description.orientation.quaternion", st_collections_group_parts_part_description_orientation_quaternion},
+ {"collections.group.parts.part.description.scale", st_collections_group_parts_part_description_scale},
+ {"collections.group.parts.part.description.texture.image", st_collections_group_parts_part_description_texture_image},
+ {"collections.group.parts.part.description.texture.wrap1", st_collections_group_parts_part_description_texture_wrap1},
+ {"collections.group.parts.part.description.texture.wrap2", st_collections_group_parts_part_description_texture_wrap2},
+ {"collections.group.parts.part.description.texture.filter1", st_collections_group_parts_part_description_texture_filter1},
+ {"collections.group.parts.part.description.texture.filter2", st_collections_group_parts_part_description_texture_filter2},
+ {"collections.group.parts.part.description.mesh.assembly", st_collections_group_parts_part_description_mesh_assembly},
+ {"collections.group.parts.part.description.mesh.geometry", st_collections_group_parts_part_description_mesh_geometry},
+ {"collections.group.parts.part.description.mesh.frame", st_collections_group_parts_part_description_mesh_frame},
+ {"collections.group.parts.part.description.filter.code", st_collections_group_parts_part_description_filter_code},
+ {"collections.group.parts.part.description.filter.source", st_collections_group_parts_part_description_filter_source},
+ {"collections.group.parts.part.description.filter.data", st_collections_group_parts_part_description_filter_data},
#ifdef HAVE_EPHYSICS
- {"collections.group.parts.part.description.physics.mass", st_collections_group_parts_part_description_physics_mass},
- {"collections.group.parts.part.description.physics.restitution", st_collections_group_parts_part_description_physics_restitution},
- {"collections.group.parts.part.description.physics.friction", st_collections_group_parts_part_description_physics_friction},
- {"collections.group.parts.part.description.physics.damping", st_collections_group_parts_part_description_physics_damping},
- {"collections.group.parts.part.description.physics.sleep", st_collections_group_parts_part_description_physics_sleep},
- {"collections.group.parts.part.description.physics.material", st_collections_group_parts_part_description_physics_material},
- {"collections.group.parts.part.description.physics.density", st_collections_group_parts_part_description_physics_density},
- {"collections.group.parts.part.description.physics.hardness", st_collections_group_parts_part_description_physics_hardness},
- {"collections.group.parts.part.description.physics.movement_freedom.linear", st_collections_group_parts_part_description_physics_movement_freedom_linear},
- {"collections.group.parts.part.description.physics.movement_freedom.angular", st_collections_group_parts_part_description_physics_movement_freedom_angular},
- {"collections.group.parts.part.description.physics.ignore_part_pos", st_collections_group_parts_part_description_physics_ignore_part_pos},
- {"collections.group.parts.part.description.physics.light_on", st_collections_group_parts_part_description_physics_light_on},
- {"collections.group.parts.part.description.physics.z", st_collections_group_parts_part_description_physics_z},
- {"collections.group.parts.part.description.physics.depth", st_collections_group_parts_part_description_physics_depth},
- {"collections.group.parts.part.description.physics.backface_cull", st_collections_group_parts_part_description_physics_backface_cull},
- {"collections.group.parts.part.description.physics.faces.face.type", st_collections_group_parts_part_description_physics_face_type},
- {"collections.group.parts.part.description.physics.faces.face.source", st_collections_group_parts_part_description_physics_face_source},
+ {"collections.group.parts.part.description.physics.mass", st_collections_group_parts_part_description_physics_mass},
+ {"collections.group.parts.part.description.physics.restitution", st_collections_group_parts_part_description_physics_restitution},
+ {"collections.group.parts.part.description.physics.friction", st_collections_group_parts_part_description_physics_friction},
+ {"collections.group.parts.part.description.physics.damping", st_collections_group_parts_part_description_physics_damping},
+ {"collections.group.parts.part.description.physics.sleep", st_collections_group_parts_part_description_physics_sleep},
+ {"collections.group.parts.part.description.physics.material", st_collections_group_parts_part_description_physics_material},
+ {"collections.group.parts.part.description.physics.density", st_collections_group_parts_part_description_physics_density},
+ {"collections.group.parts.part.description.physics.hardness", st_collections_group_parts_part_description_physics_hardness},
+ {"collections.group.parts.part.description.physics.movement_freedom.linear", st_collections_group_parts_part_description_physics_movement_freedom_linear},
+ {"collections.group.parts.part.description.physics.movement_freedom.angular", st_collections_group_parts_part_description_physics_movement_freedom_angular},
+ {"collections.group.parts.part.description.physics.ignore_part_pos", st_collections_group_parts_part_description_physics_ignore_part_pos},
+ {"collections.group.parts.part.description.physics.light_on", st_collections_group_parts_part_description_physics_light_on},
+ {"collections.group.parts.part.description.physics.z", st_collections_group_parts_part_description_physics_z},
+ {"collections.group.parts.part.description.physics.depth", st_collections_group_parts_part_description_physics_depth},
+ {"collections.group.parts.part.description.physics.backface_cull", st_collections_group_parts_part_description_physics_backface_cull},
+ {"collections.group.parts.part.description.physics.faces.face.type", st_collections_group_parts_part_description_physics_face_type},
+ {"collections.group.parts.part.description.physics.faces.face.source", st_collections_group_parts_part_description_physics_face_source},
#endif
- {"collections.group.parts.part.description.map.perspective", st_collections_group_parts_part_description_map_perspective},
- {"collections.group.parts.part.description.map.light", st_collections_group_parts_part_description_map_light},
- {"collections.group.parts.part.description.map.rotation.center", st_collections_group_parts_part_description_map_rotation_center},
- {"collections.group.parts.part.description.map.rotation.x", st_collections_group_parts_part_description_map_rotation_x},
- {"collections.group.parts.part.description.map.rotation.y", st_collections_group_parts_part_description_map_rotation_y},
- {"collections.group.parts.part.description.map.rotation.z", st_collections_group_parts_part_description_map_rotation_z},
- {"collections.group.parts.part.description.map.on", st_collections_group_parts_part_description_map_on},
- {"collections.group.parts.part.description.map.smooth", st_collections_group_parts_part_description_map_smooth},
- {"collections.group.parts.part.description.map.alpha", st_collections_group_parts_part_description_map_alpha},
- {"collections.group.parts.part.description.map.backface_cull", st_collections_group_parts_part_description_map_backface_cull},
- {"collections.group.parts.part.description.map.perspective_on", st_collections_group_parts_part_description_map_perspective_on},
- {"collections.group.parts.part.description.map.color", st_collections_group_parts_part_description_map_color},
- {"collections.group.parts.part.description.map.zoom.x", st_collections_group_parts_part_description_map_zoom_x},
- {"collections.group.parts.part.description.map.zoom.y", st_collections_group_parts_part_description_map_zoom_y},
- {"collections.group.parts.part.description.perspective.zplane", st_collections_group_parts_part_description_perspective_zplane},
- {"collections.group.parts.part.description.perspective.focal", st_collections_group_parts_part_description_perspective_focal},
- {"collections.group.parts.part.description.params.int", st_collections_group_parts_part_description_params_int},
- {"collections.group.parts.part.description.params.double", st_collections_group_parts_part_description_params_double},
- {"collections.group.parts.part.description.params.string", st_collections_group_parts_part_description_params_string},
- {"collections.group.parts.part.description.params.bool", st_collections_group_parts_part_description_params_bool},
- {"collections.group.parts.part.description.params.choice", st_collections_group_parts_part_description_params_choice},
- {"collections.group.parts.part.description.params.*", st_collections_group_parts_part_description_params_smart},
- IMAGE_STATEMENTS("collections.group.parts.part.description.")
- {"collections.group.parts.part.description.font", st_fonts_font}, /* dup */
- FONT_STYLE_CC_STATEMENTS("collections.group.parts.part.description.")
- TEXT_CLASS_STATEMENTS("collections.group.parts.part.description.")
- SIZE_CLASS_STATEMENTS("collections.group.parts.part.description.")
+ {"collections.group.parts.part.description.map.perspective", st_collections_group_parts_part_description_map_perspective},
+ {"collections.group.parts.part.description.map.light", st_collections_group_parts_part_description_map_light},
+ {"collections.group.parts.part.description.map.rotation.center", st_collections_group_parts_part_description_map_rotation_center},
+ {"collections.group.parts.part.description.map.rotation.x", st_collections_group_parts_part_description_map_rotation_x},
+ {"collections.group.parts.part.description.map.rotation.y", st_collections_group_parts_part_description_map_rotation_y},
+ {"collections.group.parts.part.description.map.rotation.z", st_collections_group_parts_part_description_map_rotation_z},
+ {"collections.group.parts.part.description.map.on", st_collections_group_parts_part_description_map_on},
+ {"collections.group.parts.part.description.map.smooth", st_collections_group_parts_part_description_map_smooth},
+ {"collections.group.parts.part.description.map.alpha", st_collections_group_parts_part_description_map_alpha},
+ {"collections.group.parts.part.description.map.backface_cull", st_collections_group_parts_part_description_map_backface_cull},
+ {"collections.group.parts.part.description.map.perspective_on", st_collections_group_parts_part_description_map_perspective_on},
+ {"collections.group.parts.part.description.map.color", st_collections_group_parts_part_description_map_color},
+ {"collections.group.parts.part.description.map.zoom.x", st_collections_group_parts_part_description_map_zoom_x},
+ {"collections.group.parts.part.description.map.zoom.y", st_collections_group_parts_part_description_map_zoom_y},
+ {"collections.group.parts.part.description.perspective.zplane", st_collections_group_parts_part_description_perspective_zplane},
+ {"collections.group.parts.part.description.perspective.focal", st_collections_group_parts_part_description_perspective_focal},
+ {"collections.group.parts.part.description.params.int", st_collections_group_parts_part_description_params_int},
+ {"collections.group.parts.part.description.params.double", st_collections_group_parts_part_description_params_double},
+ {"collections.group.parts.part.description.params.string", st_collections_group_parts_part_description_params_string},
+ {"collections.group.parts.part.description.params.bool", st_collections_group_parts_part_description_params_bool},
+ {"collections.group.parts.part.description.params.choice", st_collections_group_parts_part_description_params_choice},
+ {"collections.group.parts.part.description.params.*", st_collections_group_parts_part_description_params_smart},
+ IMAGE_STATEMENTS("collections.group.parts.part.description.")
+ {
+ "collections.group.parts.part.description.font", st_fonts_font
+ }, /* dup */
+ FONT_STYLE_CC_STATEMENTS("collections.group.parts.part.description.")
+ TEXT_CLASS_STATEMENTS("collections.group.parts.part.description.")
+ SIZE_CLASS_STATEMENTS("collections.group.parts.part.description.")
#ifdef HAVE_EPHYSICS
- {"collections.group.physics.world.gravity", st_collections_group_physics_world_gravity},
- {"collections.group.physics.world.rate", st_collections_group_physics_world_rate},
- {"collections.group.physics.world.z", st_collections_group_physics_world_z},
- {"collections.group.physics.world.depth", st_collections_group_physics_world_depth},
+ {
+ "collections.group.physics.world.gravity", st_collections_group_physics_world_gravity
+ },
+ {"collections.group.physics.world.rate", st_collections_group_physics_world_rate},
+ {"collections.group.physics.world.z", st_collections_group_physics_world_z},
+ {"collections.group.physics.world.depth", st_collections_group_physics_world_depth},
#endif
- FILTERS_STATEMENTS("collections.group.") /* dup */
- PROGRAM_STATEMENTS("collections.group.parts.part.description")
- PROGRAM_STATEMENTS("collections.group.parts.part")
- PROGRAM_STATEMENTS("collections.group.parts")
- PROGRAM_STATEMENTS("collections.group")
+ FILTERS_STATEMENTS("collections.group.") /* dup */
+ PROGRAM_STATEMENTS("collections.group.parts.part.description")
+ PROGRAM_STATEMENTS("collections.group.parts.part")
+ PROGRAM_STATEMENTS("collections.group.parts")
+ PROGRAM_STATEMENTS("collections.group")
};
/** @edcsection{lazedc,
if a block name is the same as an existing EDC keyword.
@since 1.10
@endblock
-*/
+ */
/** @edcsubsection{lazedc_synonyms,
* LazEDC Synonyms} */
These statements on the left are identical to their original keywords on the right.
@since 1.10
@endblock
-*/
-
+ */
New_Statement_Handler statement_handlers_short[] =
{
- {"collections.group.parts.part.before", st_collections_group_parts_part_insert_before},
- {"collections.group.parts.part.after", st_collections_group_parts_part_insert_after},
- {"collections.group.parts.part.ignore", st_collections_group_parts_part_ignore_flags},
- {"collections.group.parts.part.mask", st_collections_group_parts_part_mask_flags},
- {"collections.group.parts.part.pointer", st_collections_group_parts_part_pointer_mode},
- {"collections.group.parts.part.alt_font", st_collections_group_parts_part_use_alternate_font_metrics},
- {"collections.group.parts.part.clip", st_collections_group_parts_part_clip_to_id},
- {"collections.group.parts.part.description.clip", st_collections_group_parts_part_description_clip_to_id},
+ {"collections.group.parts.part.before", st_collections_group_parts_part_insert_before},
+ {"collections.group.parts.part.after", st_collections_group_parts_part_insert_after},
+ {"collections.group.parts.part.ignore", st_collections_group_parts_part_ignore_flags},
+ {"collections.group.parts.part.mask", st_collections_group_parts_part_mask_flags},
+ {"collections.group.parts.part.pointer", st_collections_group_parts_part_pointer_mode},
+ {"collections.group.parts.part.alt_font", st_collections_group_parts_part_use_alternate_font_metrics},
+ {"collections.group.parts.part.clip", st_collections_group_parts_part_clip_to_id},
+ {"collections.group.parts.part.description.clip", st_collections_group_parts_part_description_clip_to_id},
};
/** @edcsubsection{lazedc_shorthand,
but they are shorter.
@since 1.10
@endblock
-*/
+ */
New_Statement_Handler statement_handlers_short_single[] =
{
- {"collections.group.parts.part.mouse", st_collections_group_parts_part_mouse},
- {"collections.group.parts.part.nomouse", st_collections_group_parts_part_nomouse},
- {"collections.group.parts.part.repeat", st_collections_group_parts_part_repeat},
- {"collections.group.parts.part.norepeat", st_collections_group_parts_part_norepeat},
- {"collections.group.parts.part.precise", st_collections_group_parts_part_precise},
- {"collections.group.parts.part.noprecise", st_collections_group_parts_part_noprecise},
- {"collections.group.parts.part.scale", st_collections_group_parts_part_scale},
- {"collections.group.parts.part.noscale", st_collections_group_parts_part_noscale},
- {"collections.group.parts.part.render", st_collections_group_parts_part_render},
- {"collections.group.parts.part.norender", st_collections_group_parts_part_no_render},
- {"collections.group.parts.part.required", st_collections_group_parts_part_required},
- {"collections.group.parts.part.norequired", st_collections_group_parts_part_norequired},
- {"collections.group.parts.part.description.vis", st_collections_group_parts_part_description_vis},
- {"collections.group.parts.part.description.hid", st_collections_group_parts_part_description_hid},
- {"collections.group.parts.part.description.offscale", st_collections_group_parts_part_description_offset_scale},
- {"collections.group.mouse", st_collections_group_mouse},
- {"collections.group.nomouse", st_collections_group_nomouse},
- {"collections.group.broadcast", st_collections_group_broadcast},
- {"collections.group.nobroadcast", st_collections_group_nobroadcast},
- {"collections.group.inherit_script", st_collections_group_inherit_script},
- {"collections.group.noinherit_script", st_collections_group_noinherit_script},
- {"collections.group.parts.part.description.inherit", st_collections_group_parts_part_description_inherit},
+ {"collections.group.parts.part.mouse", st_collections_group_parts_part_mouse},
+ {"collections.group.parts.part.nomouse", st_collections_group_parts_part_nomouse},
+ {"collections.group.parts.part.repeat", st_collections_group_parts_part_repeat},
+ {"collections.group.parts.part.norepeat", st_collections_group_parts_part_norepeat},
+ {"collections.group.parts.part.precise", st_collections_group_parts_part_precise},
+ {"collections.group.parts.part.noprecise", st_collections_group_parts_part_noprecise},
+ {"collections.group.parts.part.scale", st_collections_group_parts_part_scale},
+ {"collections.group.parts.part.noscale", st_collections_group_parts_part_noscale},
+ {"collections.group.parts.part.render", st_collections_group_parts_part_render},
+ {"collections.group.parts.part.norender", st_collections_group_parts_part_no_render},
+ {"collections.group.parts.part.required", st_collections_group_parts_part_required},
+ {"collections.group.parts.part.norequired", st_collections_group_parts_part_norequired},
+ {"collections.group.parts.part.description.vis", st_collections_group_parts_part_description_vis},
+ {"collections.group.parts.part.description.hid", st_collections_group_parts_part_description_hid},
+ {"collections.group.parts.part.description.offscale", st_collections_group_parts_part_description_offset_scale},
+ {"collections.group.mouse", st_collections_group_mouse},
+ {"collections.group.nomouse", st_collections_group_nomouse},
+ {"collections.group.broadcast", st_collections_group_broadcast},
+ {"collections.group.nobroadcast", st_collections_group_nobroadcast},
+ {"collections.group.inherit_script", st_collections_group_inherit_script},
+ {"collections.group.noinherit_script", st_collections_group_noinherit_script},
+ {"collections.group.parts.part.description.inherit", st_collections_group_parts_part_description_inherit},
};
/** @edcsubsection{lazedc_external_params,
String without quotes except for 'true' or 'false' is considered as a choice.
@since 1.18
@endblock
-*/
+ */
static Edje_External_Param_Type
_parse_external_param_type(char *token)
{
exit(-1);
}
- ed = (Edje_Part_Description_External*) current_desc;
+ ed = (Edje_Part_Description_External *)current_desc;
last = eina_list_last_data_get(stack);
if (!strncmp(last, "params.", strlen("params.")))
switch (param->type)
{
case EDJE_EXTERNAL_PARAM_TYPE_BOOL:
- if (!strcmp(token, "true"))
- param->i = 1;
- else if (!strcmp(token, "false"))
- param->i = 0;
- break;
+ if (!strcmp(token, "true"))
+ param->i = 1;
+ else if (!strcmp(token, "false"))
+ param->i = 0;
+ break;
+
case EDJE_EXTERNAL_PARAM_TYPE_INT:
- param->i = parse_int(0);
- break;
+ param->i = parse_int(0);
+ break;
+
case EDJE_EXTERNAL_PARAM_TYPE_DOUBLE:
- param->d = parse_float(0);
- break;
+ param->d = parse_float(0);
+ break;
+
case EDJE_EXTERNAL_PARAM_TYPE_CHOICE:
case EDJE_EXTERNAL_PARAM_TYPE_STRING:
- param->s = parse_str(0);
- break;
+ param->s = parse_str(0);
+ break;
+
default:
- ERR("parse error %s:%i. Invalid param type.",
- file_in, line - 1);
- break;
+ ERR("parse error %s:%i. Invalid param type.",
+ file_in, line - 1);
+ break;
}
if (!found)
free(token);
}
-#define PROGRAM_OBJECTS(PREFIX) \
- {PREFIX".program", ob_collections_group_programs_program}, /* dup */ \
- {PREFIX".program.script", ob_collections_group_programs_program_script}, /* dup */ \
- {PREFIX".program.sequence.script", ob_collections_group_programs_program_script}, /* dup */ \
- {PREFIX".program.sequence", ob_collections_group_programs_program_sequence}, /* dup */ \
- {PREFIX".programs", NULL}, /* dup */ \
- {PREFIX".programs.set", ob_images_set}, /* dup */ \
- {PREFIX".programs.set.image", ob_images_set_image}, /* dup */ \
- {PREFIX".programs.images", NULL}, /* dup */ \
- {PREFIX".programs.images.set", ob_images_set}, /* dup */ \
- {PREFIX".programs.images.set.image", ob_images_set_image}, /* dup */ \
- {PREFIX".programs.fonts", NULL}, /* dup */ \
- {PREFIX".programs.program", ob_collections_group_programs_program}, /* dup */ \
- {PREFIX".programs.program.script", ob_collections_group_programs_program_script}, /* dup */ \
- {PREFIX".programs.program.sequence", ob_collections_group_programs_program_sequence}, /* dup */ \
- {PREFIX".programs.program.sequence.script", ob_collections_group_programs_program_script}, /* dup */ \
- {PREFIX".programs.script", ob_collections_group_script}, /* dup */ \
- {PREFIX".script", ob_collections_group_script}, /* dup */
+#define PROGRAM_OBJECTS(PREFIX) \
+ {PREFIX ".program", ob_collections_group_programs_program}, /* dup */ \
+ {PREFIX ".program.script", ob_collections_group_programs_program_script}, /* dup */ \
+ {PREFIX ".program.sequence.script", ob_collections_group_programs_program_script}, /* dup */ \
+ {PREFIX ".program.sequence", ob_collections_group_programs_program_sequence}, /* dup */ \
+ {PREFIX ".programs", NULL}, /* dup */ \
+ {PREFIX ".programs.set", ob_images_set}, /* dup */ \
+ {PREFIX ".programs.set.image", ob_images_set_image}, /* dup */ \
+ {PREFIX ".programs.images", NULL}, /* dup */ \
+ {PREFIX ".programs.images.set", ob_images_set}, /* dup */ \
+ {PREFIX ".programs.images.set.image", ob_images_set_image}, /* dup */ \
+ {PREFIX ".programs.fonts", NULL}, /* dup */ \
+ {PREFIX ".programs.program", ob_collections_group_programs_program}, /* dup */ \
+ {PREFIX ".programs.program.script", ob_collections_group_programs_program_script}, /* dup */ \
+ {PREFIX ".programs.program.sequence", ob_collections_group_programs_program_sequence}, /* dup */ \
+ {PREFIX ".programs.program.sequence.script", ob_collections_group_programs_program_script}, /* dup */ \
+ {PREFIX ".programs.script", ob_collections_group_script}, /* dup */ \
+ {PREFIX ".script", ob_collections_group_script}, /* dup */
New_Object_Handler object_handlers[] =
{
- {"externals", NULL},
- {"images", NULL},
- {"images.set", ob_images_set},
- {"images.set.image", ob_images_set_image},
- {"fonts", NULL},
- {"data", NULL},
- {"styles", NULL},
- {"styles.style", ob_styles_style},
- {"color_tree", ob_color_tree},
- {"color_classes", NULL},
- {"color_classes.color_class", ob_color_class},
- {"text_classes", NULL},
- {"text_classes.text_class", ob_text_class},
- {"size_classes", NULL},
- {"size_classes.size_class", ob_size_class},
- {"spectra", NULL},
- {"filters", NULL},
- {"filters.filter", ob_filters_filter},
- {"filters.filter.script", ob_filters_filter_script},
- {"collections", ob_collections},
- {"collections.externals", NULL}, /* dup */
- {"collections.set", ob_images_set}, /* dup */
- {"collections.set.image", ob_images_set_image}, /* dup */
- {"collections.images", NULL}, /* dup */
- {"collections.images.set", ob_images_set}, /* dup */
- {"collections.images.set.image", ob_images_set_image}, /* dup */
- {"collections.fonts", NULL}, /* dup */
- {"collections.styles", NULL}, /* dup */
- {"collections.styles.style", ob_styles_style}, /* dup */
- {"collections.color_tree", ob_color_tree}, /* dup */
- {"collections.color_classes", NULL}, /* dup */
- {"collections.color_classes.color_class", ob_color_class}, /* dup */
- {"collections.text_classes", NULL},
- {"collections.text_classes.text_class", ob_text_class}, /* dup */
- {"collections.size_classes", NULL}, /* dup */
- {"collections.size_classes.size_class", ob_size_class}, /* dup */
+ {"externals", NULL},
+ {"images", NULL},
+ {"images.set", ob_images_set},
+ {"images.set.image", ob_images_set_image},
+ {"fonts", NULL},
+ {"data", NULL},
+ {"styles", NULL},
+ {"styles.style", ob_styles_style},
+ {"color_tree", ob_color_tree},
+ {"color_classes", NULL},
+ {"color_classes.color_class", ob_color_class},
+ {"text_classes", NULL},
+ {"text_classes.text_class", ob_text_class},
+ {"size_classes", NULL},
+ {"size_classes.size_class", ob_size_class},
+ {"spectra", NULL},
+ {"filters", NULL},
+ {"filters.filter", ob_filters_filter},
+ {"filters.filter.script", ob_filters_filter_script},
+ {"collections", ob_collections},
+ {"collections.externals", NULL}, /* dup */
+ {"collections.set", ob_images_set}, /* dup */
+ {"collections.set.image", ob_images_set_image}, /* dup */
+ {"collections.images", NULL}, /* dup */
+ {"collections.images.set", ob_images_set}, /* dup */
+ {"collections.images.set.image", ob_images_set_image}, /* dup */
+ {"collections.fonts", NULL}, /* dup */
+ {"collections.styles", NULL}, /* dup */
+ {"collections.styles.style", ob_styles_style}, /* dup */
+ {"collections.color_tree", ob_color_tree}, /* dup */
+ {"collections.color_classes", NULL}, /* dup */
+ {"collections.color_classes.color_class", ob_color_class}, /* dup */
+ {"collections.text_classes", NULL},
+ {"collections.text_classes.text_class", ob_text_class}, /* dup */
+ {"collections.size_classes", NULL}, /* dup */
+ {"collections.size_classes.size_class", ob_size_class}, /* dup */
// TIZEN_ONLY(20150110): Add plugins keyword.
#ifdef EDJE_TIZEN_PLUGIN
- {"collections.plugins", NULL}, /* dup */
- {"collections.plugins.plugin", ob_plugins_plug}, /* dup */
- {"collections.group.plugins", NULL}, /* dup */
- {"collections.group.plugins.plugin", ob_plugins_plug}, /* dup */
+ {"collections.plugins", NULL}, /* dup */
+ {"collections.plugins.plugin", ob_plugins_plug}, /* dup */
+ {"collections.group.plugins", NULL}, /* dup */
+ {"collections.group.plugins.plugin", ob_plugins_plug}, /* dup */
#endif
//
- {"collections.sounds", NULL},
- {"collections.group.sounds", NULL}, /* dup */
- {"collections.sounds.sample", NULL},
- {"collections.translation", NULL},
- {"collections.translation.file", NULL},
- {"collections.group.translation", NULL},/*dup*/
- {"collections.group.translation.file", NULL},/*dup*/
- {"collections.group.sounds.sample", NULL}, /* dup */
- {"collections.vibrations", NULL},
- {"collections.group.vibrations", NULL}, /* dup */
- {"collections.vibrations.sample", NULL},
- {"collections.filters", NULL},
- {"collections.filters.filter", ob_filters_filter}, /* dup */
- {"collections.filters.filter.script", ob_filters_filter_script}, /* dup */
- {"collections.group.vibrations.sample", NULL}, /* dup */
- {"collections.group", ob_collections_group},
- {"collections.group.data", NULL},
- {"collections.group.limits", NULL},
- {"collections.group.script", ob_collections_group_script},
- {"collections.group.lua_script", ob_collections_group_lua_script},
- {"collections.group.externals", NULL}, /* dup */
- {"collections.group.set", ob_images_set}, /* dup */
- {"collections.group.set.image", ob_images_set_image}, /* dup */
- {"collections.group.images", NULL}, /* dup */
- {"collections.group.models", NULL}, /* dup */
- {"collections.group.images.set", ob_images_set}, /* dup */
- {"collections.group.images.set.image", ob_images_set_image}, /* dup */
- {"collections.group.fonts", NULL}, /* dup */
- {"collections.group.styles", NULL}, /* dup */
- {"collections.group.styles.style", ob_styles_style}, /* dup */
- {"collections.group.color_tree", ob_color_tree}, /* dup */
- {"collections.group.color_classes", NULL}, /* dup */
- {"collections.group.color_classes.color_class", ob_color_class}, /* dup */
- {"collections.group.text_classes", NULL},
- {"collections.group.text_classes.text_class", ob_text_class}, /* dup */
- {"collections.group.size_classes", NULL}, /* dup */
- {"collections.group.size_classes.size_class", ob_size_class}, /* dup */
- {"collections.group.filters", NULL},
- {"collections.group.filters.filter", ob_filters_filter}, /* dup */
- {"collections.group.filters.filter.script", ob_filters_filter_script}, /* dup */
- {"collections.group.parts", NULL},
- {"collections.group.parts.set", ob_images_set}, /* dup */
- {"collections.group.parts.set.image", ob_images_set_image}, /* dup */
- {"collections.group.parts.images", NULL}, /* dup */
- {"collections.group.parts.images.set", ob_images_set}, /* dup */
- {"collections.group.parts.images.set.image", ob_images_set_image}, /* dup */
- {"collections.group.parts.fonts", NULL}, /* dup */
- {"collections.group.parts.styles", NULL}, /* dup */
- {"collections.group.parts.styles.style", ob_styles_style}, /* dup */
- {"collections.group.parts.color_classes", NULL}, /* dup */
- {"collections.group.parts.color_classes.color_class", ob_color_class}, /* dup */
- {"collections.group.parts.text_classes", NULL},
- {"collections.group.parts.text_classes.text_class", ob_text_class}, /* dup */
- {"collections.group.parts.size_classes", NULL}, /* dup */
- {"collections.group.parts.size_classes.size_class", ob_size_class}, /* dup */
- {"collections.group.parts.part", ob_collections_group_parts_part},
- {"collections.group.parts.part.dragable", NULL},
- {"collections.group.parts.part.set", ob_images_set}, /* dup */
- {"collections.group.parts.part.set.image", ob_images_set_image}, /* dup */
- {"collections.group.parts.part.images", NULL}, /* dup */
- {"collections.group.parts.part.images.set", ob_images_set}, /* dup */
- {"collections.group.parts.part.images.set.image", ob_images_set_image}, /* dup */
- {"collections.group.parts.part.fonts", NULL}, /* dup */
- {"collections.group.parts.part.styles", NULL}, /* dup */
- {"collections.group.parts.part.styles.style", ob_styles_style}, /* dup */
- {"collections.group.parts.part.color_classes", NULL}, /* dup */
- {"collections.group.parts.part.color_classes.color_class", ob_color_class}, /* dup */
- {"collections.group.parts.part.text_classes", NULL},
- {"collections.group.parts.part.text_classes.text_class", ob_text_class}, /* dup */
- {"collections.group.parts.part.size_classes", NULL}, /* dup */
- {"collections.group.parts.part.size_classes.size_class", ob_size_class}, /* dup */
- {"collections.group.parts.part.box", NULL},
- {"collections.group.parts.part.box.items", NULL},
- {"collections.group.parts.part.box.items.item", ob_collections_group_parts_part_box_items_item},
- {"collections.group.parts.part.table", NULL},
- {"collections.group.parts.part.table.items", NULL},
- {"collections.group.parts.part.table.items.item", ob_collections_group_parts_part_box_items_item}, /* dup */
- {"collections.group.parts.part.description", ob_collections_group_parts_part_description},
- {"collections.group.parts.part.description.link", ob_collections_group_parts_part_description_link},
- {"collections.group.parts.part.description.rel1", NULL},
- {"collections.group.parts.part.description.rel2", NULL},
- {"collections.group.parts.part.description.anchors", NULL},
- {"collections.group.parts.part.description.image", NULL}, /* dup */
- {"collections.group.parts.part.description.image.set", ob_images_set}, /* dup */
- {"collections.group.parts.part.description.image.set.image", ob_images_set_image}, /* dup */
- {"collections.group.parts.part.description.image.images", NULL}, /* dup */
- {"collections.group.parts.part.description.image.images.set", ob_images_set}, /* dup */
- {"collections.group.parts.part.description.image.images.set.image", ob_images_set_image}, /* dup */
- {"collections.group.parts.part.description.fill", NULL},
- {"collections.group.parts.part.description.fill.origin", NULL},
- {"collections.group.parts.part.description.fill.size", NULL},
- {"collections.group.parts.part.description.text", NULL},
- {"collections.group.parts.part.description.text.fonts", NULL}, /* dup */
- /***********************************************************************************
- * TIZEN_ONLY_FEATURE: ellipsize.marquee, ellipsize.fade for TEXTBLOCK, TEXT part. *
- ***********************************************************************************/
- {"collections.group.parts.part.description.text.ellipsize", NULL},
- {"collections.group.parts.part.description.text.ellipsize.marquee", NULL},
- {"collections.group.parts.part.description.text.ellipsize.normal", NULL},
- {"collections.group.parts.part.description.text.ellipsize.fade", NULL},
- /*******
- * END *
- *******/
- {"collections.group.parts.part.description.images", NULL}, /* dup */
- {"collections.group.parts.part.description.images.set", ob_images_set}, /* dup */
- {"collections.group.parts.part.description.images.set.image", ob_images_set_image}, /* dup */
- {"collections.group.parts.part.description.fonts", NULL}, /* dup */
- {"collections.group.parts.part.description.styles", NULL}, /* dup */
- {"collections.group.parts.part.description.styles.style", ob_styles_style}, /* dup */
- {"collections.group.parts.part.description.box", NULL},
- {"collections.group.parts.part.description.table", NULL},
- {"collections.group.parts.part.description.position", NULL},
- {"collections.group.parts.part.description.properties", NULL},
- {"collections.group.parts.part.description.orientation", NULL},
- {"collections.group.parts.part.description.texture", ob_collections_group_parts_part_description_texture},
- {"collections.group.parts.part.description.mesh", NULL},
- {"collections.group.parts.part.description.filter", NULL},
- {"collections.group.parts.part.description.proxy", NULL},
+ {"collections.sounds", NULL},
+ {"collections.group.sounds", NULL}, /* dup */
+ {"collections.sounds.sample", NULL},
+ {"collections.translation", NULL},
+ {"collections.translation.file", NULL},
+ {"collections.group.translation", NULL},/*dup*/
+ {"collections.group.translation.file", NULL},/*dup*/
+ {"collections.group.sounds.sample", NULL}, /* dup */
+ {"collections.vibrations", NULL},
+ {"collections.group.vibrations", NULL}, /* dup */
+ {"collections.vibrations.sample", NULL},
+ {"collections.filters", NULL},
+ {"collections.filters.filter", ob_filters_filter}, /* dup */
+ {"collections.filters.filter.script", ob_filters_filter_script}, /* dup */
+ {"collections.group.vibrations.sample", NULL}, /* dup */
+ {"collections.group", ob_collections_group},
+ {"collections.group.data", NULL},
+ {"collections.group.limits", NULL},
+ {"collections.group.script", ob_collections_group_script},
+ {"collections.group.lua_script", ob_collections_group_lua_script},
+ {"collections.group.externals", NULL}, /* dup */
+ {"collections.group.set", ob_images_set}, /* dup */
+ {"collections.group.set.image", ob_images_set_image}, /* dup */
+ {"collections.group.images", NULL}, /* dup */
+ {"collections.group.models", NULL}, /* dup */
+ {"collections.group.images.set", ob_images_set}, /* dup */
+ {"collections.group.images.set.image", ob_images_set_image}, /* dup */
+ {"collections.group.fonts", NULL}, /* dup */
+ {"collections.group.styles", NULL}, /* dup */
+ {"collections.group.styles.style", ob_styles_style}, /* dup */
+ {"collections.group.color_tree", ob_color_tree}, /* dup */
+ {"collections.group.color_classes", NULL}, /* dup */
+ {"collections.group.color_classes.color_class", ob_color_class}, /* dup */
+ {"collections.group.text_classes", NULL},
+ {"collections.group.text_classes.text_class", ob_text_class}, /* dup */
+ {"collections.group.size_classes", NULL}, /* dup */
+ {"collections.group.size_classes.size_class", ob_size_class}, /* dup */
+ {"collections.group.filters", NULL},
+ {"collections.group.filters.filter", ob_filters_filter}, /* dup */
+ {"collections.group.filters.filter.script", ob_filters_filter_script}, /* dup */
+ {"collections.group.parts", NULL},
+ {"collections.group.parts.set", ob_images_set}, /* dup */
+ {"collections.group.parts.set.image", ob_images_set_image}, /* dup */
+ {"collections.group.parts.images", NULL}, /* dup */
+ {"collections.group.parts.images.set", ob_images_set}, /* dup */
+ {"collections.group.parts.images.set.image", ob_images_set_image}, /* dup */
+ {"collections.group.parts.fonts", NULL}, /* dup */
+ {"collections.group.parts.styles", NULL}, /* dup */
+ {"collections.group.parts.styles.style", ob_styles_style}, /* dup */
+ {"collections.group.parts.color_classes", NULL}, /* dup */
+ {"collections.group.parts.color_classes.color_class", ob_color_class}, /* dup */
+ {"collections.group.parts.text_classes", NULL},
+ {"collections.group.parts.text_classes.text_class", ob_text_class}, /* dup */
+ {"collections.group.parts.size_classes", NULL}, /* dup */
+ {"collections.group.parts.size_classes.size_class", ob_size_class}, /* dup */
+ {"collections.group.parts.part", ob_collections_group_parts_part},
+ {"collections.group.parts.part.dragable", NULL},
+ {"collections.group.parts.part.set", ob_images_set}, /* dup */
+ {"collections.group.parts.part.set.image", ob_images_set_image}, /* dup */
+ {"collections.group.parts.part.images", NULL}, /* dup */
+ {"collections.group.parts.part.images.set", ob_images_set}, /* dup */
+ {"collections.group.parts.part.images.set.image", ob_images_set_image}, /* dup */
+ {"collections.group.parts.part.fonts", NULL}, /* dup */
+ {"collections.group.parts.part.styles", NULL}, /* dup */
+ {"collections.group.parts.part.styles.style", ob_styles_style}, /* dup */
+ {"collections.group.parts.part.color_classes", NULL}, /* dup */
+ {"collections.group.parts.part.color_classes.color_class", ob_color_class}, /* dup */
+ {"collections.group.parts.part.text_classes", NULL},
+ {"collections.group.parts.part.text_classes.text_class", ob_text_class}, /* dup */
+ {"collections.group.parts.part.size_classes", NULL}, /* dup */
+ {"collections.group.parts.part.size_classes.size_class", ob_size_class}, /* dup */
+ {"collections.group.parts.part.box", NULL},
+ {"collections.group.parts.part.box.items", NULL},
+ {"collections.group.parts.part.box.items.item", ob_collections_group_parts_part_box_items_item},
+ {"collections.group.parts.part.table", NULL},
+ {"collections.group.parts.part.table.items", NULL},
+ {"collections.group.parts.part.table.items.item", ob_collections_group_parts_part_box_items_item}, /* dup */
+ {"collections.group.parts.part.description", ob_collections_group_parts_part_description},
+ {"collections.group.parts.part.description.link", ob_collections_group_parts_part_description_link},
+ {"collections.group.parts.part.description.rel1", NULL},
+ {"collections.group.parts.part.description.rel2", NULL},
+ {"collections.group.parts.part.description.anchors", NULL},
+ {"collections.group.parts.part.description.image", NULL}, /* dup */
+ {"collections.group.parts.part.description.image.set", ob_images_set}, /* dup */
+ {"collections.group.parts.part.description.image.set.image", ob_images_set_image}, /* dup */
+ {"collections.group.parts.part.description.image.images", NULL}, /* dup */
+ {"collections.group.parts.part.description.image.images.set", ob_images_set}, /* dup */
+ {"collections.group.parts.part.description.image.images.set.image", ob_images_set_image}, /* dup */
+ {"collections.group.parts.part.description.fill", NULL},
+ {"collections.group.parts.part.description.fill.origin", NULL},
+ {"collections.group.parts.part.description.fill.size", NULL},
+ {"collections.group.parts.part.description.text", NULL},
+ {"collections.group.parts.part.description.text.fonts", NULL}, /* dup */
+ /***********************************************************************************
+ * TIZEN_ONLY_FEATURE: ellipsize.marquee, ellipsize.fade for TEXTBLOCK, TEXT part. *
+ ***********************************************************************************/
+ {"collections.group.parts.part.description.text.ellipsize", NULL},
+ {"collections.group.parts.part.description.text.ellipsize.marquee", NULL},
+ {"collections.group.parts.part.description.text.ellipsize.normal", NULL},
+ {"collections.group.parts.part.description.text.ellipsize.fade", NULL},
+ /*******
+ * END *
+ *******/
+ {"collections.group.parts.part.description.images", NULL}, /* dup */
+ {"collections.group.parts.part.description.images.set", ob_images_set}, /* dup */
+ {"collections.group.parts.part.description.images.set.image", ob_images_set_image}, /* dup */
+ {"collections.group.parts.part.description.fonts", NULL}, /* dup */
+ {"collections.group.parts.part.description.styles", NULL}, /* dup */
+ {"collections.group.parts.part.description.styles.style", ob_styles_style}, /* dup */
+ {"collections.group.parts.part.description.box", NULL},
+ {"collections.group.parts.part.description.table", NULL},
+ {"collections.group.parts.part.description.position", NULL},
+ {"collections.group.parts.part.description.properties", NULL},
+ {"collections.group.parts.part.description.orientation", NULL},
+ {"collections.group.parts.part.description.texture", ob_collections_group_parts_part_description_texture},
+ {"collections.group.parts.part.description.mesh", NULL},
+ {"collections.group.parts.part.description.filter", NULL},
+ {"collections.group.parts.part.description.proxy", NULL},
#ifdef HAVE_EPHYSICS
- {"collections.group.parts.part.description.physics", NULL},
- {"collections.group.parts.part.description.physics.movement_freedom", NULL},
- {"collections.group.parts.part.description.physics.faces", NULL},
- {"collections.group.parts.part.description.physics.faces.face", st_collections_group_parts_part_description_physics_face},
+ {"collections.group.parts.part.description.physics", NULL},
+ {"collections.group.parts.part.description.physics.movement_freedom", NULL},
+ {"collections.group.parts.part.description.physics.faces", NULL},
+ {"collections.group.parts.part.description.physics.faces.face", st_collections_group_parts_part_description_physics_face},
#endif
- {"collections.group.parts.part.description.map", NULL},
- {"collections.group.parts.part.description.map.rotation", NULL},
- {"collections.group.parts.part.description.map.zoom", NULL},
- {"collections.group.parts.part.description.perspective", NULL},
- {"collections.group.parts.part.description.params", NULL},
- {"collections.group.parts.part.description.color_classes", NULL}, /* dup */
- {"collections.group.parts.part.description.color_classes.color_class", ob_color_class}, /* dup */
- {"collections.group.parts.part.description.text_classes", NULL}, /* dup */
- {"collections.group.parts.part.description.text_classes.text_class", ob_text_class}, /* dup */
- {"collections.group.parts.part.description.size_classes", NULL}, /* dup */
- {"collections.group.parts.part.description.size_classes.size_class", ob_size_class}, /* dup */
+ {"collections.group.parts.part.description.map", NULL},
+ {"collections.group.parts.part.description.map.rotation", NULL},
+ {"collections.group.parts.part.description.map.zoom", NULL},
+ {"collections.group.parts.part.description.perspective", NULL},
+ {"collections.group.parts.part.description.params", NULL},
+ {"collections.group.parts.part.description.color_classes", NULL}, /* dup */
+ {"collections.group.parts.part.description.color_classes.color_class", ob_color_class}, /* dup */
+ {"collections.group.parts.part.description.text_classes", NULL}, /* dup */
+ {"collections.group.parts.part.description.text_classes.text_class", ob_text_class}, /* dup */
+ {"collections.group.parts.part.description.size_classes", NULL}, /* dup */
+ {"collections.group.parts.part.description.size_classes.size_class", ob_size_class}, /* dup */
#ifdef HAVE_EPHYSICS
- {"collections.group.physics", NULL},
- {"collections.group.physics.world", NULL},
+ {"collections.group.physics", NULL},
+ {"collections.group.physics.world", NULL},
#endif
- PROGRAM_OBJECTS("collections.group.parts.part.description")
- PROGRAM_OBJECTS("collections.group.parts.part")
- PROGRAM_OBJECTS("collections.group.parts")
- PROGRAM_OBJECTS("collections.group")
+ PROGRAM_OBJECTS("collections.group.parts.part.description")
+ PROGRAM_OBJECTS("collections.group.parts.part")
+ PROGRAM_OBJECTS("collections.group.parts")
+ PROGRAM_OBJECTS("collections.group")
};
/** @edcsubsection{lazedc_blocks,
@description
Lowercase part types can be specified as blocks with the same effect as part { type: TYPE; }
The "description" block can also be shortened to "desc".
-
+
@since 1.10
@endblock
-*/
+ */
New_Object_Handler object_handlers_short[] =
{
- {"collections.group.parts.rect", ob_collections_group_parts_part_short},
- {"collections.group.parts.text", ob_collections_group_parts_part_short},
- {"collections.group.parts.image", ob_collections_group_parts_part_short},
- {"collections.group.parts.swallow", ob_collections_group_parts_part_short},
- {"collections.group.parts.textblock", ob_collections_group_parts_part_short},
- {"collections.group.parts.group", ob_collections_group_parts_part_short},
- {"collections.group.parts.box", ob_collections_group_parts_part_short},
- {"collections.group.parts.table", ob_collections_group_parts_part_short},
- {"collections.group.parts.external", ob_collections_group_parts_part_short},
- {"collections.group.parts.proxy", ob_collections_group_parts_part_short},
- {"collections.group.parts.spacer", ob_collections_group_parts_part_short},
- {"collections.group.parts.snapshot", ob_collections_group_parts_part_short},
- {"collections.group.parts.part.desc", ob_collections_group_parts_part_desc},
- {"collections.group.parts.vector", ob_collections_group_parts_part_short},
+ {"collections.group.parts.rect", ob_collections_group_parts_part_short},
+ {"collections.group.parts.text", ob_collections_group_parts_part_short},
+ {"collections.group.parts.image", ob_collections_group_parts_part_short},
+ {"collections.group.parts.swallow", ob_collections_group_parts_part_short},
+ {"collections.group.parts.textblock", ob_collections_group_parts_part_short},
+ {"collections.group.parts.group", ob_collections_group_parts_part_short},
+ {"collections.group.parts.box", ob_collections_group_parts_part_short},
+ {"collections.group.parts.table", ob_collections_group_parts_part_short},
+ {"collections.group.parts.external", ob_collections_group_parts_part_short},
+ {"collections.group.parts.proxy", ob_collections_group_parts_part_short},
+ {"collections.group.parts.spacer", ob_collections_group_parts_part_short},
+ {"collections.group.parts.snapshot", ob_collections_group_parts_part_short},
+ {"collections.group.parts.part.desc", ob_collections_group_parts_part_desc},
+ {"collections.group.parts.vector", ob_collections_group_parts_part_short},
};
New_Nested_Handler nested_handlers[] = {
- {"collections.group.parts", "part", NULL, edje_cc_handlers_hierarchy_pop }
+ {"collections.group.parts", "part", NULL, edje_cc_handlers_hierarchy_pop }
};
New_Nested_Handler nested_handlers_short[] = {
- {"collections.group.parts", "rect", NULL, edje_cc_handlers_hierarchy_pop },
- {"collections.group.parts", "text", NULL, edje_cc_handlers_hierarchy_pop },
- {"collections.group.parts", "image", NULL, edje_cc_handlers_hierarchy_pop },
- {"collections.group.parts", "swallow", NULL, edje_cc_handlers_hierarchy_pop },
- {"collections.group.parts", "textblock", NULL, edje_cc_handlers_hierarchy_pop },
- {"collections.group.parts", "group", NULL, edje_cc_handlers_hierarchy_pop },
- {"collections.group.parts", "box", NULL, edje_cc_handlers_hierarchy_pop },
- {"collections.group.parts", "table", NULL, edje_cc_handlers_hierarchy_pop },
- {"collections.group.parts", "external", NULL, edje_cc_handlers_hierarchy_pop },
- {"collections.group.parts", "proxy", NULL, edje_cc_handlers_hierarchy_pop },
- {"collections.group.parts", "spacer", NULL, edje_cc_handlers_hierarchy_pop },
- {"collections.group.parts", "vector", NULL, edje_cc_handlers_hierarchy_pop },
+ {"collections.group.parts", "rect", NULL, edje_cc_handlers_hierarchy_pop },
+ {"collections.group.parts", "text", NULL, edje_cc_handlers_hierarchy_pop },
+ {"collections.group.parts", "image", NULL, edje_cc_handlers_hierarchy_pop },
+ {"collections.group.parts", "swallow", NULL, edje_cc_handlers_hierarchy_pop },
+ {"collections.group.parts", "textblock", NULL, edje_cc_handlers_hierarchy_pop },
+ {"collections.group.parts", "group", NULL, edje_cc_handlers_hierarchy_pop },
+ {"collections.group.parts", "box", NULL, edje_cc_handlers_hierarchy_pop },
+ {"collections.group.parts", "table", NULL, edje_cc_handlers_hierarchy_pop },
+ {"collections.group.parts", "external", NULL, edje_cc_handlers_hierarchy_pop },
+ {"collections.group.parts", "proxy", NULL, edje_cc_handlers_hierarchy_pop },
+ {"collections.group.parts", "spacer", NULL, edje_cc_handlers_hierarchy_pop },
+ {"collections.group.parts", "vector", NULL, edje_cc_handlers_hierarchy_pop },
};
/*****/
if (ep->type != EDJE_PART_TYPE_IMAGE)
return;
- ed = (Edje_Part_Description_Image*) ep->default_desc;
+ ed = (Edje_Part_Description_Image *)ep->default_desc;
_edje_part_description_image_remove(ed);
for (j = 0; j < ep->other.desc_count; j++)
{
- ed = (Edje_Part_Description_Image*) ep->other.desc[j];
+ ed = (Edje_Part_Description_Image *)ep->other.desc[j];
_edje_part_description_image_remove(ed);
}
}
case EDJE_PART_TYPE_RECTANGLE:
case EDJE_PART_TYPE_SWALLOW:
case EDJE_PART_TYPE_GROUP:
- result = mem_alloc(SZ(Edje_Part_Description_Common));
- break;
+ result = mem_alloc(SZ(Edje_Part_Description_Common));
+ break;
+
case EDJE_PART_TYPE_TEXT:
case EDJE_PART_TYPE_TEXTBLOCK:
- {
- Edje_Part_Description_Text *ed;
-
- ed = mem_alloc(SZ(Edje_Part_Description_Text));
-
- ed->text.color3.r = 0;
- ed->text.color3.g = 0;
- ed->text.color3.b = 0;
- ed->text.color3.a = 128;
- ed->text.align.x = FROM_DOUBLE(0.5);
- ed->text.align.y = FROM_DOUBLE(0.5);
- ed->text.id_source = -1;
- ed->text.id_text_source = -1;
- /* TIZEN_ONLY_FEATURE: ellipsize.marquee, ellipsize.fade for TEXTBLOCK, TEXT part. */
- ed->text.fade_ellipsis = FROM_DOUBLE(0.0); /* Legacy */
- ed->text.ellipsize.marquee_repeat_limit = -1;
- /* END */
-
- result = &ed->common;
- break;
- }
+ {
+ Edje_Part_Description_Text *ed;
+
+ ed = mem_alloc(SZ(Edje_Part_Description_Text));
+
+ ed->text.color3.r = 0;
+ ed->text.color3.g = 0;
+ ed->text.color3.b = 0;
+ ed->text.color3.a = 128;
+ ed->text.align.x = FROM_DOUBLE(0.5);
+ ed->text.align.y = FROM_DOUBLE(0.5);
+ ed->text.id_source = -1;
+ ed->text.id_text_source = -1;
+ /* TIZEN_ONLY_FEATURE: ellipsize.marquee, ellipsize.fade for TEXTBLOCK, TEXT part. */
+ ed->text.fade_ellipsis = FROM_DOUBLE(0.0); /* Legacy */
+ ed->text.ellipsize.marquee_repeat_limit = -1;
+ /* END */
+
+ result = &ed->common;
+ break;
+ }
case EDJE_PART_TYPE_IMAGE:
- {
- Edje_Part_Description_Image *ed;
+ {
+ Edje_Part_Description_Image *ed;
- ed = mem_alloc(SZ(Edje_Part_Description_Image));
+ ed = mem_alloc(SZ(Edje_Part_Description_Image));
- ed->image.id = -1;
+ ed->image.id = -1;
- _edje_part_description_fill(&ed->image.fill);
+ _edje_part_description_fill(&ed->image.fill);
+
+ result = &ed->common;
+ break;
+ }
- result = &ed->common;
- break;
- }
case EDJE_PART_TYPE_SNAPSHOT:
- {
- Edje_Part_Description_Snapshot *ed;
+ {
+ Edje_Part_Description_Snapshot *ed;
- ed = mem_alloc(SZ(Edje_Part_Description_Snapshot));
+ ed = mem_alloc(SZ(Edje_Part_Description_Snapshot));
+
+ result = &ed->common;
+ break;
+ }
- result = &ed->common;
- break;
- }
case EDJE_PART_TYPE_PROXY:
- {
- Edje_Part_Description_Proxy *ed;
+ {
+ Edje_Part_Description_Proxy *ed;
- ed = mem_alloc(SZ(Edje_Part_Description_Proxy));
+ ed = mem_alloc(SZ(Edje_Part_Description_Proxy));
- ed->proxy.id = -1;
- ed->proxy.source_visible = EINA_TRUE;
- ed->proxy.source_clip = EINA_TRUE;
- _edje_part_description_fill(&ed->proxy.fill);
+ ed->proxy.id = -1;
+ ed->proxy.source_visible = EINA_TRUE;
+ ed->proxy.source_clip = EINA_TRUE;
+ _edje_part_description_fill(&ed->proxy.fill);
+
+ result = &ed->common;
+ break;
+ }
- result = &ed->common;
- break;
- }
case EDJE_PART_TYPE_BOX:
- {
- Edje_Part_Description_Box *ed;
+ {
+ Edje_Part_Description_Box *ed;
- ed = mem_alloc(SZ(Edje_Part_Description_Box));
+ ed = mem_alloc(SZ(Edje_Part_Description_Box));
- ed->box.layout = NULL;
- ed->box.alt_layout = NULL;
- ed->box.align.x = FROM_DOUBLE(0.5);
- ed->box.align.y = FROM_DOUBLE(0.5);
- ed->box.padding.x = 0;
- ed->box.padding.y = 0;
+ ed->box.layout = NULL;
+ ed->box.alt_layout = NULL;
+ ed->box.align.x = FROM_DOUBLE(0.5);
+ ed->box.align.y = FROM_DOUBLE(0.5);
+ ed->box.padding.x = 0;
+ ed->box.padding.y = 0;
+
+ result = &ed->common;
+ break;
+ }
- result = &ed->common;
- break;
- }
case EDJE_PART_TYPE_TABLE:
- {
- Edje_Part_Description_Table *ed;
+ {
+ Edje_Part_Description_Table *ed;
- ed = mem_alloc(SZ(Edje_Part_Description_Table));
+ ed = mem_alloc(SZ(Edje_Part_Description_Table));
- ed->table.homogeneous = EDJE_OBJECT_TABLE_HOMOGENEOUS_NONE;
- ed->table.align.x = FROM_DOUBLE(0.5);
- ed->table.align.y = FROM_DOUBLE(0.5);
- ed->table.padding.x = 0;
- ed->table.padding.y = 0;
+ ed->table.homogeneous = EDJE_OBJECT_TABLE_HOMOGENEOUS_NONE;
+ ed->table.align.x = FROM_DOUBLE(0.5);
+ ed->table.align.y = FROM_DOUBLE(0.5);
+ ed->table.padding.x = 0;
+ ed->table.padding.y = 0;
+
+ result = &ed->common;
+ break;
+ }
- result = &ed->common;
- break;
- }
case EDJE_PART_TYPE_EXTERNAL:
- {
- Edje_Part_Description_External *ed;
+ {
+ Edje_Part_Description_External *ed;
- ed = mem_alloc(SZ(Edje_Part_Description_External));
+ ed = mem_alloc(SZ(Edje_Part_Description_External));
- ed->external_params = NULL;
+ ed->external_params = NULL;
+
+ result = &ed->common;
+ break;
+ }
- result = &ed->common;
- break;
- }
case EDJE_PART_TYPE_MESH_NODE:
- {
- Edje_Part_Description_Mesh_Node *ed;
-
- ed = mem_alloc(SZ(Edje_Part_Description_Mesh_Node));
-
- ed->mesh_node.mesh.id = -1;
- ed->mesh_node.mesh.primitive = 0;
- ed->mesh_node.mesh.assembly = 1;
- ed->mesh_node.mesh.frame = 0;
-
- ed->mesh_node.texture.id = -1;
- ed->mesh_node.texture.wrap1 = 0;
- ed->mesh_node.texture.wrap2 = 0;
- ed->mesh_node.texture.filter1 = 0;
- ed->mesh_node.texture.filter2 = 0;
-
- ed->mesh_node.properties.shade = EVAS_CANVAS3D_SHADER_MODE_VERTEX_COLOR;
- ed->mesh_node.properties.ambient.r = 50;
- ed->mesh_node.properties.ambient.g = 50;
- ed->mesh_node.properties.ambient.b = 50;
- ed->mesh_node.properties.ambient.a = 255;
- ed->mesh_node.properties.diffuse.r = 255;
- ed->mesh_node.properties.diffuse.g = 255;
- ed->mesh_node.properties.diffuse.b = 255;
- ed->mesh_node.properties.diffuse.a = 255;
- ed->mesh_node.properties.specular.r = 255;
- ed->mesh_node.properties.specular.g = 255;
- ed->mesh_node.properties.specular.b = 255;
- ed->mesh_node.properties.specular.a = 255;
-
- ed->mesh_node.properties.material_attrib = 1;
- ed->mesh_node.properties.normal = 1;
- ed->mesh_node.properties.shininess = 50;
-
- ed->mesh_node.aabb1.relative.x = -1.0;
- ed->mesh_node.aabb1.relative.y = -1.0;
- ed->mesh_node.aabb1.relative.z = -1.0;
- ed->mesh_node.aabb1.offset.x = 0;
- ed->mesh_node.aabb1.offset.y = 0;
- ed->mesh_node.aabb1.offset.z = 0;
- ed->mesh_node.aabb1.rel_to = -1;
- ed->mesh_node.aabb2.relative.x = 1.0;
- ed->mesh_node.aabb2.relative.y = 1.0;
- ed->mesh_node.aabb2.relative.z = 1.0;
- ed->mesh_node.aabb2.offset.x = 0;
- ed->mesh_node.aabb2.offset.y = 0;
- ed->mesh_node.aabb2.offset.z = 0;
- ed->mesh_node.aabb2.rel_to = -1;
-
- ed->mesh_node.orientation.type = EVAS_CANVAS3D_NODE_ORIENTATION_TYPE_NONE;
- /* x1 is angle for angle_axis and cosine of half angle for quternion,
- x2, x3, x4 define axis for angle_axis and quaternion,
- x1, x2, x3 are coordinates of point to look at for look_at,
- x4, x5, x6 define a vector that indicates the angle at which
- the subject is looking at the target for look_at and look_to */
- ed->mesh_node.orientation.data[0] = 1.0;
- ed->mesh_node.orientation.data[1] = 0.0;
- ed->mesh_node.orientation.data[2] = 0.0;
- ed->mesh_node.orientation.data[3] = 0.0;
- ed->mesh_node.orientation.data[4] = 1.0;
- ed->mesh_node.orientation.data[5] = 0.0;
- ed->mesh_node.orientation.look_to = -1;
-
- ed->mesh_node.scale_3d.x = 1.0;
- ed->mesh_node.scale_3d.y = 1.0;
- ed->mesh_node.scale_3d.z = 1.0;
-
- ed->mesh_node.position.point.x = 0.0;
- ed->mesh_node.position.point.y = 0.0;
- ed->mesh_node.position.point.z = 0.0;
- ed->mesh_node.position.space = EVAS_CANVAS3D_SPACE_PARENT;
-
- result = &ed->common;
- break;
- }
+ {
+ Edje_Part_Description_Mesh_Node *ed;
+
+ ed = mem_alloc(SZ(Edje_Part_Description_Mesh_Node));
+
+ ed->mesh_node.mesh.id = -1;
+ ed->mesh_node.mesh.primitive = 0;
+ ed->mesh_node.mesh.assembly = 1;
+ ed->mesh_node.mesh.frame = 0;
+
+ ed->mesh_node.texture.id = -1;
+ ed->mesh_node.texture.wrap1 = 0;
+ ed->mesh_node.texture.wrap2 = 0;
+ ed->mesh_node.texture.filter1 = 0;
+ ed->mesh_node.texture.filter2 = 0;
+
+ ed->mesh_node.properties.shade = EVAS_CANVAS3D_SHADER_MODE_VERTEX_COLOR;
+ ed->mesh_node.properties.ambient.r = 50;
+ ed->mesh_node.properties.ambient.g = 50;
+ ed->mesh_node.properties.ambient.b = 50;
+ ed->mesh_node.properties.ambient.a = 255;
+ ed->mesh_node.properties.diffuse.r = 255;
+ ed->mesh_node.properties.diffuse.g = 255;
+ ed->mesh_node.properties.diffuse.b = 255;
+ ed->mesh_node.properties.diffuse.a = 255;
+ ed->mesh_node.properties.specular.r = 255;
+ ed->mesh_node.properties.specular.g = 255;
+ ed->mesh_node.properties.specular.b = 255;
+ ed->mesh_node.properties.specular.a = 255;
+
+ ed->mesh_node.properties.material_attrib = 1;
+ ed->mesh_node.properties.normal = 1;
+ ed->mesh_node.properties.shininess = 50;
+
+ ed->mesh_node.aabb1.relative.x = -1.0;
+ ed->mesh_node.aabb1.relative.y = -1.0;
+ ed->mesh_node.aabb1.relative.z = -1.0;
+ ed->mesh_node.aabb1.offset.x = 0;
+ ed->mesh_node.aabb1.offset.y = 0;
+ ed->mesh_node.aabb1.offset.z = 0;
+ ed->mesh_node.aabb1.rel_to = -1;
+ ed->mesh_node.aabb2.relative.x = 1.0;
+ ed->mesh_node.aabb2.relative.y = 1.0;
+ ed->mesh_node.aabb2.relative.z = 1.0;
+ ed->mesh_node.aabb2.offset.x = 0;
+ ed->mesh_node.aabb2.offset.y = 0;
+ ed->mesh_node.aabb2.offset.z = 0;
+ ed->mesh_node.aabb2.rel_to = -1;
+
+ ed->mesh_node.orientation.type = EVAS_CANVAS3D_NODE_ORIENTATION_TYPE_NONE;
+ /* x1 is angle for angle_axis and cosine of half angle for quternion,
+ x2, x3, x4 define axis for angle_axis and quaternion,
+ x1, x2, x3 are coordinates of point to look at for look_at,
+ x4, x5, x6 define a vector that indicates the angle at which
+ the subject is looking at the target for look_at and look_to */
+ ed->mesh_node.orientation.data[0] = 1.0;
+ ed->mesh_node.orientation.data[1] = 0.0;
+ ed->mesh_node.orientation.data[2] = 0.0;
+ ed->mesh_node.orientation.data[3] = 0.0;
+ ed->mesh_node.orientation.data[4] = 1.0;
+ ed->mesh_node.orientation.data[5] = 0.0;
+ ed->mesh_node.orientation.look_to = -1;
+
+ ed->mesh_node.scale_3d.x = 1.0;
+ ed->mesh_node.scale_3d.y = 1.0;
+ ed->mesh_node.scale_3d.z = 1.0;
+
+ ed->mesh_node.position.point.x = 0.0;
+ ed->mesh_node.position.point.y = 0.0;
+ ed->mesh_node.position.point.z = 0.0;
+ ed->mesh_node.position.space = EVAS_CANVAS3D_SPACE_PARENT;
+
+ result = &ed->common;
+ break;
+ }
+
case EDJE_PART_TYPE_LIGHT:
- {
- Edje_Part_Description_Light *ed;
-
- ed = mem_alloc(SZ(Edje_Part_Description_Light));
-
- ed->light.properties.ambient.r = 50;
- ed->light.properties.ambient.g = 50;
- ed->light.properties.ambient.b = 50;
- ed->light.properties.ambient.a = 255;
- ed->light.properties.diffuse.r = 255;
- ed->light.properties.diffuse.g = 255;
- ed->light.properties.diffuse.b = 255;
- ed->light.properties.diffuse.a = 255;
- ed->light.properties.specular.r = 255;
- ed->light.properties.specular.g = 255;
- ed->light.properties.specular.b = 255;
- ed->light.properties.specular.a = 255;
-
- ed->light.position.point.x = 0.0;
- ed->light.position.point.y = 0.0;
- ed->light.position.point.z = 1.0;
- ed->light.position.space = EVAS_CANVAS3D_SPACE_PARENT;
-
- ed->light.orientation.type = EVAS_CANVAS3D_NODE_ORIENTATION_TYPE_NONE;
- /* x1 is angle for angle_axis and cosine of half angle for quternion,
- x2, x3, x4 define axis for angle_axis and quaternion,
- x1, x2, x3 are coordinates of point to look at for look_at,
- x4, x5, x6 define a vector that indicates the angle at which
- the subject is looking at the target for look_at and look_to */
- ed->light.orientation.data[0] = 1.0;
- ed->light.orientation.data[1] = 0.0;
- ed->light.orientation.data[2] = 0.0;
- ed->light.orientation.data[3] = 0.0;
- ed->light.orientation.data[4] = 1.0;
- ed->light.orientation.data[5] = 0.0;
- ed->light.orientation.look_to = -1;
-
- result = &ed->common;
- break;
- }
+ {
+ Edje_Part_Description_Light *ed;
+
+ ed = mem_alloc(SZ(Edje_Part_Description_Light));
+
+ ed->light.properties.ambient.r = 50;
+ ed->light.properties.ambient.g = 50;
+ ed->light.properties.ambient.b = 50;
+ ed->light.properties.ambient.a = 255;
+ ed->light.properties.diffuse.r = 255;
+ ed->light.properties.diffuse.g = 255;
+ ed->light.properties.diffuse.b = 255;
+ ed->light.properties.diffuse.a = 255;
+ ed->light.properties.specular.r = 255;
+ ed->light.properties.specular.g = 255;
+ ed->light.properties.specular.b = 255;
+ ed->light.properties.specular.a = 255;
+
+ ed->light.position.point.x = 0.0;
+ ed->light.position.point.y = 0.0;
+ ed->light.position.point.z = 1.0;
+ ed->light.position.space = EVAS_CANVAS3D_SPACE_PARENT;
+
+ ed->light.orientation.type = EVAS_CANVAS3D_NODE_ORIENTATION_TYPE_NONE;
+ /* x1 is angle for angle_axis and cosine of half angle for quternion,
+ x2, x3, x4 define axis for angle_axis and quaternion,
+ x1, x2, x3 are coordinates of point to look at for look_at,
+ x4, x5, x6 define a vector that indicates the angle at which
+ the subject is looking at the target for look_at and look_to */
+ ed->light.orientation.data[0] = 1.0;
+ ed->light.orientation.data[1] = 0.0;
+ ed->light.orientation.data[2] = 0.0;
+ ed->light.orientation.data[3] = 0.0;
+ ed->light.orientation.data[4] = 1.0;
+ ed->light.orientation.data[5] = 0.0;
+ ed->light.orientation.look_to = -1;
+
+ result = &ed->common;
+ break;
+ }
+
case EDJE_PART_TYPE_CAMERA:
- {
- Edje_Part_Description_Camera *ed;
-
- ed = mem_alloc(SZ(Edje_Part_Description_Camera));
-
- ed->camera.camera.fovy = 60.0;
- ed->camera.camera.aspect = 1.0;
- ed->camera.camera.frustum_near = 2.0;
- ed->camera.camera.frustum_far = 50.0;
-
- ed->camera.position.point.x = 0.0;
- ed->camera.position.point.y = 0.0;
- ed->camera.position.point.z = 5.0;
-
- ed->camera.position.space = EVAS_CANVAS3D_SPACE_PARENT;
-
- ed->camera.orientation.type = EVAS_CANVAS3D_NODE_ORIENTATION_TYPE_NONE;
- /* x1 is angle for angle_axis and cosine of half angle for quternion,
- x2, x3, x4 define axis for angle_axis and quaternion,
- x1, x2, x3 are coordinates of point to look at for look_at,
- x4, x5, x6 define a vector that indicates the angle at which
- the subject is looking at the target for look_at and look_to */
- ed->camera.orientation.data[0] = 1.0;
- ed->camera.orientation.data[1] = 0.0;
- ed->camera.orientation.data[2] = 0.0;
- ed->camera.orientation.data[3] = 0.0;
- ed->camera.orientation.data[4] = 1.0;
- ed->camera.orientation.data[5] = 0.0;
- ed->camera.orientation.look_to = -1;
-
- result = &ed->common;
- break;
- }
+ {
+ Edje_Part_Description_Camera *ed;
+
+ ed = mem_alloc(SZ(Edje_Part_Description_Camera));
+
+ ed->camera.camera.fovy = 60.0;
+ ed->camera.camera.aspect = 1.0;
+ ed->camera.camera.frustum_near = 2.0;
+ ed->camera.camera.frustum_far = 50.0;
+
+ ed->camera.position.point.x = 0.0;
+ ed->camera.position.point.y = 0.0;
+ ed->camera.position.point.z = 5.0;
+
+ ed->camera.position.space = EVAS_CANVAS3D_SPACE_PARENT;
+
+ ed->camera.orientation.type = EVAS_CANVAS3D_NODE_ORIENTATION_TYPE_NONE;
+ /* x1 is angle for angle_axis and cosine of half angle for quternion,
+ x2, x3, x4 define axis for angle_axis and quaternion,
+ x1, x2, x3 are coordinates of point to look at for look_at,
+ x4, x5, x6 define a vector that indicates the angle at which
+ the subject is looking at the target for look_at and look_to */
+ ed->camera.orientation.data[0] = 1.0;
+ ed->camera.orientation.data[1] = 0.0;
+ ed->camera.orientation.data[2] = 0.0;
+ ed->camera.orientation.data[3] = 0.0;
+ ed->camera.orientation.data[4] = 1.0;
+ ed->camera.orientation.data[5] = 0.0;
+ ed->camera.orientation.look_to = -1;
+
+ result = &ed->common;
+ break;
+ }
+
case EDJE_PART_TYPE_VECTOR:
- {
- Edje_Part_Description_Vector *ed;
+ {
+ Edje_Part_Description_Vector *ed;
- ed = mem_alloc(SZ(Edje_Part_Description_Vector));
+ ed = mem_alloc(SZ(Edje_Part_Description_Vector));
- result = &ed->common;
- break;
- }
+ result = &ed->common;
+ break;
+ }
}
if (!result)
for (i = 0; i < count; ++i)
if (pgrms[i]->name)
if (pgrms[i] != me && (!strcmp(name, pgrms[i]->name)))
- {
+ {
epp = (Edje_Program_Parser *)pgrms[i];
if (!epp->can_override)
{
epp->can_override = EINA_FALSE;
return;
}
- }
+ }
}
static void
EINA_LIST_FOREACH(ep2->targets, l, et2)
{
- name = (char*) (et2 + 1);
+ name = (char *)(et2 + 1);
et = mem_alloc(SZ(Edje_Program_Target) + strlen(name) + 1);
ep->targets = eina_list_append(ep->targets, et);
- copy = (char*) (et + 1);
+ copy = (char *)(et + 1);
memcpy(copy, name, strlen(name) + 1);
else
data_queue_copied_part_lookup(pc, &(et2->id), &(et->id));
break;
+
case EDJE_ACTION_TYPE_ACTION_STOP:
case EDJE_ACTION_TYPE_SCRIPT:
if (current_group_inherit)
else
data_queue_copied_program_lookup(pc, &(et2->id), &(et->id));
break;
+
default:
ERR("parse error %s:%i. target may only be used after action",
file_in, line - 1);
EINA_LIST_FOREACH(ep2->after, l, pa2)
{
- name = (char*) (pa2 + 1);
+ name = (char *)(pa2 + 1);
pa = mem_alloc(SZ(Edje_Program_After) + strlen(name) + 1);
ep->after = eina_list_append(ep->after, pa);
- copy = (char*) (pa + 1);
+ copy = (char *)(pa + 1);
memcpy(copy, name, strlen(name) + 1);
if (!data_queue_copied_program_lookup(pc, &(pa2->id), &(pa->id)))
data_queue_program_lookup(pc, copy, &(pa->id));
ex = mem_alloc(SZ(External));
ex->name = parse_str(0);
- {
- Eina_List *l;
- External *lex;
+ {
+ Eina_List *l;
+ External *lex;
- EINA_LIST_FOREACH(externals, l, lex)
- {
- if (!strcmp(lex->name, ex->name))
- {
- free(ex->name);
- free(ex);
- return;
- }
- }
- }
+ EINA_LIST_FOREACH(externals, l, lex)
+ {
+ if (!strcmp(lex->name, ex->name))
+ {
+ free(ex->name);
+ free(ex);
+ return;
+ }
+ }
+ }
externals = eina_list_append(externals, ex);
if (edje_file->external_dir)
{
Edje_External_Directory_Entry *entries;
-
- edje_file->external_dir->entries_count++;
+
+ edje_file->external_dir->entries_count++;
entries = realloc(edje_file->external_dir->entries,
sizeof (Edje_External_Directory_Entry) * edje_file->external_dir->entries_count);
if (!entries)
{
- ERR("not enough memory");
+ ERR("not enough memory");
exit(-1);
}
- edje_file->external_dir->entries = entries;
- memset(edje_file->external_dir->entries + edje_file->external_dir->entries_count - 1,
- 0, sizeof (Edje_External_Directory_Entry));
+ edje_file->external_dir->entries = entries;
+ memset(edje_file->external_dir->entries + edje_file->external_dir->entries_count - 1,
+ 0, sizeof (Edje_External_Directory_Entry));
- edje_file->external_dir->entries[edje_file->external_dir->entries_count - 1].entry = mem_strdup(ex->name);
+ edje_file->external_dir->entries[edje_file->external_dir->entries_count - 1].entry = mem_strdup(ex->name);
}
}
for (i = 0; i < edje_file->image_dir->entries_count; ++i)
if (!strcmp(edje_file->image_dir->entries[i].entry, tmp))
{
- free((char*) tmp);
- return;
+ free((char *)tmp);
+ return;
}
edje_file->image_dir->entries_count++;
}
edje_file->image_dir->entries = img;
memset(edje_file->image_dir->entries + edje_file->image_dir->entries_count - 1,
- 0, sizeof (Edje_Image_Directory_Entry));
+ 0, sizeof (Edje_Image_Directory_Entry));
img = edje_file->image_dir->entries + edje_file->image_dir->entries_count - 1;
"LOSSY_ETC1", 3,
"LOSSY_ETC2", 4,
"USER", 5,
- NULL);
+ NULL);
if (v == 0)
{
- img->source_type = EDJE_IMAGE_SOURCE_TYPE_INLINE_PERFECT;
- img->source_param = 0;
+ img->source_type = EDJE_IMAGE_SOURCE_TYPE_INLINE_PERFECT;
+ img->source_param = 0;
}
else if (v == 1)
{
- img->source_type = EDJE_IMAGE_SOURCE_TYPE_INLINE_PERFECT;
- img->source_param = 1;
+ img->source_type = EDJE_IMAGE_SOURCE_TYPE_INLINE_PERFECT;
+ img->source_param = 1;
}
else if (v == 2)
{
}
else if (v == 5)
{
- img->source_type = EDJE_IMAGE_SOURCE_TYPE_USER;
- img->source_param = 0;
+ img->source_type = EDJE_IMAGE_SOURCE_TYPE_USER;
+ img->source_param = 0;
}
if ((img->source_type < EDJE_IMAGE_SOURCE_TYPE_INLINE_LOSSY) ||
(img->source_type > EDJE_IMAGE_SOURCE_TYPE_INLINE_LOSSY_ETC2))
- check_arg_count(2);
+ check_arg_count(2);
else
{
if (check_range_arg_count(2, 3) > 2)
}
}
-
static void
_handle_vector_image(void)
{
unsigned int i = 0;
char *name;
- ed = (Edje_Part_Description_Vector*) current_desc;
+ ed = (Edje_Part_Description_Vector *)current_desc;
name = parse_str(0);
for (i = 0; i < edje_file->image_dir->vectors_count; ++i)
if (!strcmp(edje_file->image_dir->vectors[i].entry, tmp))
{
- free((char*) tmp);
+ free((char *)tmp);
return;
}
edje_file->image_dir->vectors_count++;
vector = realloc(edje_file->image_dir->vectors,
- sizeof (Edje_Vector_Directory_Entry) * edje_file->image_dir->vectors_count);
+ sizeof (Edje_Vector_Directory_Entry) * edje_file->image_dir->vectors_count);
if (!vector)
{
ERR("No enough memory.");
}
edje_file->image_dir->vectors = vector;
memset(edje_file->image_dir->vectors + edje_file->image_dir->vectors_count - 1,
- 0, sizeof (Edje_Vector_Directory_Entry));
+ 0, sizeof (Edje_Vector_Directory_Entry));
vector = edje_file->image_dir->vectors + edje_file->image_dir->vectors_count - 1;
vector->id = edje_file->image_dir->vectors_count - 1;
}
-
/**
@edcsubsection{toplevel_models,model}
*/
for (i = 0; i < edje_file->model_dir->entries_count; ++i)
if (!strcmp(edje_file->model_dir->entries[i].entry, tmp))
{
- free((char*) tmp);
+ free((char *)tmp);
return;
}
ob_images_set(void)
{
Edje_Image_Directory_Set *sets;
-
+
if (!edje_file->image_dir)
edje_file->image_dir = mem_alloc(SZ(Edje_Image_Directory));
}
edje_file->image_dir->sets = sets;
memset(edje_file->image_dir->sets + edje_file->image_dir->sets_count - 1,
- 0, sizeof (Edje_Image_Directory_Set));
-
+ 0, sizeof (Edje_Image_Directory_Set));
+
edje_file->image_dir->sets[edje_file->image_dir->sets_count - 1].id = edje_file->image_dir->sets_count - 1;
}
@effect
Define the name that refer to this image description.
@endproperty
-*/
+ */
static void
st_images_set_name(void)
{
The "image" block inside a "set" block define the characteristic of an image.
Every block will describe one image and the size rule to use it.
@endblock
-**/
+ **/
static void
ob_images_set_image(void)
{
Defaults: compression level for lossy methods is 90.
@endproperty
-**/
+ **/
static void
st_images_set_image_image(void)
{
for (i = 0; i < edje_file->image_dir->entries_count; ++i)
if (!strcmp(edje_file->image_dir->entries[i].entry, entry->name))
{
- entry->id = i;
- return;
+ entry->id = i;
+ return;
}
}
Defaults: 0 0 0 0
@endproperty
-*/
+ */
static void
st_images_set_image_size(void)
{
if (entry->size.min.w > entry->size.max.w
|| entry->size.min.h > entry->size.max.h)
{
- ERR("parse error %s:%i. Image min and max size are not in the right order ([%i, %i] < [%i, %i])",
- file_in, line - 1,
- entry->size.min.w, entry->size.min.h,
- entry->size.max.w, entry->size.max.h);
- exit(-1);
+ ERR("parse error %s:%i. Image min and max size are not in the right order ([%i, %i] < [%i, %i])",
+ file_in, line - 1,
+ entry->size.min.w, entry->size.min.h,
+ entry->size.max.w, entry->size.max.h);
+ exit(-1);
}
}
Defaults: 0 0 0 0
@since 1.8
@endproperty
-*/
+ */
static void
st_images_set_image_border(void)
{
Defaults: 0.0
@since 1.8
@endproperty
-*/
+ */
static void
st_images_set_image_border_scale_by(void)
{
exit(-1);
}
- ed = (Edje_Part_Description_Image*) current_desc;
+ ed = (Edje_Part_Description_Image *)current_desc;
ed->image.border.scale_by = FROM_DOUBLE(parse_float_range(0, 0.0, 999999999.0));
}
if (eina_hash_find(edje_file->fonts, fn->name))
{
- free(fn->file);
- free(fn->name);
- free(fn);
- return;
+ free(fn->file);
+ free(fn->name);
+ free(fn);
+ return;
}
eina_hash_direct_add(edje_file->fonts, fn->name, fn);
snprintf(path, sizeof(path), "%s/%s", dir, filename);
fd = open(path, O_RDONLY | O_BINARY, S_IRUSR | S_IWUSR);
if (fd >= 0)
- break;
+ break;
}
if (fd < 0)
if (fstat(fd, &buf))
{
ERR("%s:%i when stating file \"%s\": \"%s\"",
- file_in, line, filename, strerror(errno));
+ file_in, line, filename, strerror(errno));
exit(-1);
}
if (data == MAP_FAILED)
{
ERR("%s:%i when mapping file \"%s\": \"%s\"",
- file_in, line, filename, strerror(errno));
+ file_in, line, filename, strerror(errno));
exit(-1);
}
value = malloc(sizeof (char) * buf.st_size + 1);
snprintf(value, buf.st_size + 1, "%s", data);
- munmap((void*)data, buf.st_size);
+ munmap((void *)data, buf.st_size);
close(fd);
es->str = value;
Each node block begins with the name of color class and enclosed with braces.
Node block can be placed within another node block.
@endblock
-*/
+ */
static void
ob_color_tree(void)
{
group of colors to be used in the theme, the application can use that
name to alter the color values at runtime.
@endblock
-*/
+ */
static void
ob_color_class(void)
{
Sets the name for the color class, used as reference by both the theme
and the application.
@endproperty
-*/
+ */
static void
st_color_class_name(void)
{
cc->name = parse_str(0);
EINA_LIST_FOREACH(edje_file->color_classes, l, tcc)
{
- if ((cc != tcc) && (!strcmp(cc->name, tcc->name)))
- {
- ERR("parse error %s:%i. There is already a color class named \"%s\"",
- file_in, line - 1, cc->name);
- exit(-1);
- }
+ if ((cc != tcc) && (!strcmp(cc->name, tcc->name)))
+ {
+ ERR("parse error %s:%i. There is already a color class named \"%s\"",
+ file_in, line - 1, cc->name);
+ exit(-1);
+ }
}
}
switch (get_arg_count() - first_arg)
{
case 1:
- str = parse_str(first_arg);
- convert_color_code(str, &r, &g, &b, &a);
- color->r = r;
- color->g = g;
- color->b = b;
- color->a = a;
- break;
+ str = parse_str(first_arg);
+ convert_color_code(str, &r, &g, &b, &a);
+ color->r = r;
+ color->g = g;
+ color->b = b;
+ color->a = a;
+ break;
+
case 4:
- color->r = parse_int_range(first_arg + 0, 0, 255);
- color->g = parse_int_range(first_arg + 1, 0, 255);
- color->b = parse_int_range(first_arg + 2, 0, 255);
- color->a = parse_int_range(first_arg + 3, 0, 255);
- break;
+ color->r = parse_int_range(first_arg + 0, 0, 255);
+ color->g = parse_int_range(first_arg + 1, 0, 255);
+ color->b = parse_int_range(first_arg + 2, 0, 255);
+ color->a = parse_int_range(first_arg + 3, 0, 255);
+ break;
+
default:
- ERR("%s:%i. color code should be a string or a set of 4 integers.",
- file_in, line - 1);
- exit(-1);
+ ERR("%s:%i. color code should be a string or a set of 4 integers.",
+ file_in, line - 1);
+ exit(-1);
}
}
Defaults: 255 255 255 255
@endproperty
-*/
+ */
static void
st_color_class_color(void)
{
Defaults: 255 255 255 255
@endproperty
-*/
+ */
static void
st_color_class_color2(void)
{
Defaults: 255 255 255 255
@endproperty
-*/
+ */
static void
st_color_class_color3(void)
{
Provides a descriptive name for the effect of the color class
@since 1.14
@endproperty
-*/
+ */
static void
st_color_class_desc(void)
{
"style" block is used to create style \<tags\> for advanced TEXTBLOCK
formatting.
@endblock
-*/
+ */
static void
ob_styles_style(void)
{
if (stl->name && tstl->name && (stl != tstl) && (!strcmp(stl->name, tstl->name)))
{
ERR("parse error %s:%i. There is already a style named \"%s\"",
- file_in, line - 1, stl->name);
+ file_in, line - 1, stl->name);
exit(-1);
}
}
@effect
The name of the style to be used as reference later in the theme.
@endproperty
-*/
+ */
static void
st_styles_style_name(void)
{
The default style properties that will be applied to the complete
text.
@endproperty
-*/
+ */
static void
st_styles_style_base(void)
{
If the second part (\</bold\>) is also defined, a '-' should be prepended to it's style properties.
This only applies to paired tags; Single tags, like \<tab\>, must not include a starting '+'.
@endproperty
-*/
+ */
static void
st_styles_style_tag(void)
{
group of font and size to be used in the theme, the application can
use that name to alter the font and its size at runtime.
@endblock
-*/
+ */
static void
ob_text_class(void)
{
Sets the name for the text class, used as reference by both the theme
and the application.
@endproperty
-*/
+ */
static void
st_text_class_name(void)
{
@effect
Sets the font family for the text class.
@endproperty
-*/
+ */
static void
st_text_class_font(void)
{
Defaults: 0
@endproperty
-*/
+ */
static void
st_text_class_size(void)
{
group of size to be used in the theme, the application can use that
name to alter the min and max size values at runtime.
@endblock
-*/
+ */
static void
ob_size_class(void)
{
Sets the name for the size class, used as reference by both the theme
and the application.
@endproperty
-*/
+ */
static void
st_size_class_name(void)
{
Defaults: 0 0
@endproperty
-*/
+ */
static void
st_size_class_min(void)
{
Defaults: -1 -1
@endproperty
-*/
+ */
static void
st_size_class_max(void)
{
names. The "sounds" block comprises of all sound definitions. The "vibrations"
block compriese all vibration definitions.
@endblock
-*/
+ */
static void
ob_collections(void)
{
Defaults: 1.0
@since 1.11
@endproperty
-*/
+ */
static void
st_collections_base_scale(void)
{
@description
The "sounds" block contains a list of one or more sound sample and tones items.
@endblock
-*/
+ */
/**
@page edcref
int value;
check_arg_count(2);
-
+
if (!edje_file->sound_dir)
edje_file->sound_dir = mem_alloc(SZ(Edje_Sound_Directory));
-
+
tmp = parse_str(0);
/* Audible range 20 to 20KHz */
value = parse_int_range(1, 20, 20000);
-
+
/* Check for Tone duplication */
for (i = 0; i < edje_file->sound_dir->tones_count; i++)
{
}
edje_file->sound_dir->tones_count++;
tone = realloc(edje_file->sound_dir->tones,
- sizeof (Edje_Sound_Tone) *
+ sizeof (Edje_Sound_Tone) *
edje_file->sound_dir->tones_count);
if (!tone)
{
exit(-1);
}
edje_file->sound_dir->tones = tone;
-
+
tone = edje_file->sound_dir->tones + edje_file->sound_dir->tones_count - 1;
memset(tone, 0, sizeof (Edje_Sound_Tone));
-
+
tone->name = tmp;
tone->value = value;
tone->id = edje_file->sound_dir->tones_count - 1;
Edje_Sound_Sample *sample;
const char *tmp;
unsigned int i;
-
+
if (!edje_file->sound_dir)
edje_file->sound_dir = mem_alloc(SZ(Edje_Sound_Directory));
-
+
tmp = parse_str(0);
-
+
for (i = 0; i < edje_file->sound_dir->samples_count; i++)
{
if (!strcmp(edje_file->sound_dir->samples[i].name, tmp))
return;
}
}
-
+
edje_file->sound_dir->samples_count++;
sample = realloc(edje_file->sound_dir->samples,
- sizeof(Edje_Sound_Sample) *
+ sizeof(Edje_Sound_Sample) *
edje_file->sound_dir->samples_count);
if (!sample)
{
edje_file->sound_dir->samples +
edje_file->sound_dir->samples_count - 1;
memset(sample, 0, sizeof (Edje_Sound_Sample));
-
+
sample->name = tmp;
sample->id = edje_file->sound_dir->samples_count - 1;
sample->compression = parse_enum(1,
"LOSSY", EDJE_SOUND_SOURCE_TYPE_INLINE_LOSSY,
"AS_IS", EDJE_SOUND_SOURCE_TYPE_INLINE_AS_IS,
NULL);
-
+
if (sample->compression == EDJE_SOUND_SOURCE_TYPE_INLINE_LOSSY)
{
sample->quality = parse_float_range(2, 45.0, 1000.0);
}
else
check_arg_count(2);
-
}
/**
ERR("Invalid sound sample source definition.");
exit(-1);
}
-
- sample =
+
+ sample =
edje_file->sound_dir->samples +
edje_file->sound_dir->samples_count - 1;
sample->snd_src = parse_str(0);
check_arg_count(1);
}
-
/** @edcsubsection{collections_vibrations,
* Vibrations} */
The "vibrations" block contains a list of one or more vibration sample.
@since 1.10
@endblock
-*/
+ */
/** @edcsubsection{collections_vibrations_sample,
* Vibrations.Sample} */
@property
name
@parameters
- [locale name]
+ [locale name]
@effect
Used to include each po or mo file. The full path to the directory holding
the po or mo file can be defined later with edje_cc's "-md" option.
check_arg_count(1);
if (!edje_file->mo_dir)
- edje_file->mo_dir = mem_alloc(SZ(Edje_Mo_Directory));
+ edje_file->mo_dir = mem_alloc(SZ(Edje_Mo_Directory));
tmp = parse_str(0);
if (fabs(ell->ed->state.value - el->ed->state.value) > DBL_EPSILON) continue;
if ((!!ell->ed->state.name) != (!!el->ed->state.name))
{
- if (((!!ell->ed->state.name) && strcmp(ell->ed->state.name, "default")) ||
- ((!!el->ed->state.name) && strcmp(el->ed->state.name, "default")))
- continue;
+ if (((!!ell->ed->state.name) && strcmp(ell->ed->state.name, "default")) ||
+ ((!!el->ed->state.name) && strcmp(el->ed->state.name, "default")))
+ continue;
}
else if (ell->ed->state.name && strcmp(ell->ed->state.name, el->ed->state.name))
continue;
- eina_list_move_list(&combine, (Eina_List**)&tup->data, l);
+ eina_list_move_list(&combine, (Eina_List **)&tup->data, l);
}
current_program = el->pr;
if (!el->epp->common.name)
A "group" block contains the list of parts and programs that compose a
given Edje Object.
@endblock
-*/
+ */
static void
ob_collections_group(void)
{
Only a single name statement is valid for group, use alias instead if
you want to give additional names.
@endproperty
-*/
+ */
static void
st_collections_group_name(void)
{
switch (type)
{
case EDJE_PART_TYPE_RECTANGLE:
- current_de->count.RECTANGLE += inc;
- break;
+ current_de->count.RECTANGLE += inc;
+ break;
+
case EDJE_PART_TYPE_TEXT:
- current_de->count.TEXT += inc;
- break;
+ current_de->count.TEXT += inc;
+ break;
+
case EDJE_PART_TYPE_IMAGE:
- current_de->count.IMAGE += inc;
- break;
+ current_de->count.IMAGE += inc;
+ break;
+
case EDJE_PART_TYPE_SWALLOW:
- current_de->count.SWALLOW += inc;
- break;
+ current_de->count.SWALLOW += inc;
+ break;
+
case EDJE_PART_TYPE_TEXTBLOCK:
- current_de->count.TEXTBLOCK += inc;
- break;
+ current_de->count.TEXTBLOCK += inc;
+ break;
+
case EDJE_PART_TYPE_GROUP:
- current_de->count.GROUP += inc;
- break;
+ current_de->count.GROUP += inc;
+ break;
+
case EDJE_PART_TYPE_BOX:
- current_de->count.BOX += inc;
- break;
+ current_de->count.BOX += inc;
+ break;
+
case EDJE_PART_TYPE_TABLE:
- current_de->count.TABLE += inc;
- break;
+ current_de->count.TABLE += inc;
+ break;
+
case EDJE_PART_TYPE_EXTERNAL:
- current_de->count.EXTERNAL += inc;
- break;
+ current_de->count.EXTERNAL += inc;
+ break;
+
case EDJE_PART_TYPE_PROXY:
- current_de->count.PROXY += inc;
- break;
+ current_de->count.PROXY += inc;
+ break;
+
case EDJE_PART_TYPE_MESH_NODE:
- current_de->count.MESH_NODE += inc;
- break;
+ current_de->count.MESH_NODE += inc;
+ break;
+
case EDJE_PART_TYPE_LIGHT:
- current_de->count.LIGHT += inc;
- break;
+ current_de->count.LIGHT += inc;
+ break;
+
case EDJE_PART_TYPE_CAMERA:
- current_de->count.CAMERA += inc;
- break;
+ current_de->count.CAMERA += inc;
+ break;
+
case EDJE_PART_TYPE_SPACER:
- current_de->count.SPACER += inc;
- break;
+ current_de->count.SPACER += inc;
+ break;
+
case EDJE_PART_TYPE_SNAPSHOT:
- current_de->count.SNAPSHOT += inc;
- break;
+ current_de->count.SNAPSHOT += inc;
+ break;
+
case EDJE_PART_TYPE_VECTOR:
- current_de->count.VECTOR += inc;
- break;
+ current_de->count.VECTOR += inc;
+ break;
}
current_de->count.part += inc;
}
epp->reorder.insert_after = STRDUP(epp2->reorder.insert_after);
epp->can_override = EINA_TRUE;
- for (j = 0 ; j < ep2->items_count ; j++)
+ for (j = 0; j < ep2->items_count; j++)
{
ob_collections_group_parts_part_box_items_item();
item = ep->items[j];
ob_collections_group_parts_part_description();
ed = ep->default_desc;
parent_desc = ed2 = ep2->default_desc;
- free((void*)ed->state.name);
+ free((void *)ed->state.name);
ed->state.name = STRDUP(ed2->state.name);
ed->state.value = ed2->state.value;
st_collections_group_parts_part_description_inherit();
parent_desc = NULL;
// copy other description
- for (j = 0 ; j < ep2->other.desc_count ; j++)
+ for (j = 0; j < ep2->other.desc_count; j++)
{
ob_collections_group_parts_part_description();
ed = ep->other.desc[j];
Defaults: 0
@since 1.10
@endproperty
-*/
+ */
static void
st_collections_group_inherit_only(void)
{
Defaults: 0
@since 1.19
@endproperty
-*/
+ */
static void
st_collections_group_use_custom_seat_names(void)
{
parts is not allowed.
@since 1.10
@endproperty
-*/
+ */
static void
st_collections_group_part_remove(void)
{
This will break program sequences if a program in the middle of the sequence is removed.
@since 1.10
@endproperty
-*/
+ */
static void
st_collections_group_program_remove(void)
{
}
}
-
/**
@page edcref
@property
group added as targets.
@since 1.10
@endproperty
-*/
+ */
static void
st_collections_group_target_group(void)
{
if (!strcmp(tg->name, name))
{
ERR("parse error %s:%i. There is already a target_group with the name '%s'",
- file_in, line - 1, name);
+ file_in, line - 1, name);
exit(-1);
}
tg = malloc(sizeof(Edje_Target_Group));
pc->target_groups = eina_list_append(pc->target_groups, tg);
tg->name = name;
argc = get_arg_count();
- tg->targets = calloc(argc, sizeof(char*));
+ tg->targets = calloc(argc, sizeof(char *));
for (n = 1; n < argc; n++)
tg->targets[n - 1] = parse_str(n);
allowed.
@since 1.10
@endproperty
-*/
+ */
static void
st_collections_group_inherit(void)
{
memset(&fdata, 0, sizeof(Edje_List_Foreach_Data));
eina_hash_foreach(pc2->data,
- _edje_data_item_list_foreach, &fdata);
+ _edje_data_item_list_foreach, &fdata);
if (!pc->data) pc->data = eina_hash_string_small_new(free);
EINA_LIST_FREE(fdata.list, key)
memset(&fdata, 0, sizeof(Edje_List_Foreach_Data));
eina_hash_foreach(pc2->alias,
- _edje_data_item_list_foreach, &fdata);
+ _edje_data_item_list_foreach, &fdata);
if (!pc->alias) pc->alias = eina_hash_string_small_new(free);
EINA_LIST_FREE(fdata.list, key)
{
}
offset = pc->parts_count;
- for (i = 0 ; i < pc2->parts_count ; i++)
+ for (i = 0; i < pc2->parts_count; i++)
{
// copy the part
edje_cc_handlers_part_make(-1);
}
//copy programs
- for (j = 0 ; j < pc2->programs.fnmatch_count ; j++)
+ for (j = 0; j < pc2->programs.fnmatch_count; j++)
{
ob_collections_group_programs_program();
_edje_program_copy(current_program, pc2->programs.fnmatch[j]);
}
- for (j = 0 ; j < pc2->programs.strcmp_count ; j++)
+ for (j = 0; j < pc2->programs.strcmp_count; j++)
{
ob_collections_group_programs_program();
_edje_program_copy(current_program, pc2->programs.strcmp[j]);
}
- for (j = 0 ; j < pc2->programs.strncmp_count ; j++)
+ for (j = 0; j < pc2->programs.strncmp_count; j++)
{
ob_collections_group_programs_program();
_edje_program_copy(current_program, pc2->programs.strncmp[j]);
}
- for (j = 0 ; j < pc2->programs.strrncmp_count ; j++)
+ for (j = 0; j < pc2->programs.strrncmp_count; j++)
{
ob_collections_group_programs_program();
_edje_program_copy(current_program, pc2->programs.strrncmp[j]);
}
- for (j = 0 ; j < pc2->programs.nocmp_count ; j++)
+ for (j = 0; j < pc2->programs.nocmp_count; j++)
{
ob_collections_group_programs_program();
_edje_program_copy(current_program, pc2->programs.nocmp[j]);
Defaults: off
@endproperty
-*/
+ */
static void
st_collections_group_lua_script_only(void)
{
Defaults: 0
@since 1.10
@endproperty
-*/
+ */
static void
st_collections_group_script_recursion(void)
{
Additional name to serve as identifier. Defining multiple aliases is
supported.
@endproperty
-*/
+ */
static void
st_collections_group_alias(void)
{
Defaults: 0 0
@endproperty
-*/
+ */
static void
st_collections_group_min(void)
{
Defaults: 0 0
@endproperty
-*/
+ */
static void
st_collections_group_max(void)
{
Defaults: 0.0 0.0
@endproperty
-*/
+ */
static void
st_collections_group_scene_size(void)
{
Defaults: true
@since 1.1
@endproperty
-*/
+ */
static void
st_collections_group_broadcast_signal(void)
{
Defaults: AUTO
@endproperty
-*/
+ */
static void
st_collections_group_orientation(void)
{
pc = eina_list_data_get(eina_list_last(edje_collections));
pc->prop.orientation = parse_enum(0,
- "AUTO", EDJE_ORIENTATION_AUTO,
- "LTR", EDJE_ORIENTATION_LTR,
- "RTL", EDJE_ORIENTATION_RTL,
- NULL);
+ "AUTO", EDJE_ORIENTATION_AUTO,
+ "LTR", EDJE_ORIENTATION_LTR,
+ "RTL", EDJE_ORIENTATION_RTL,
+ NULL);
}
/**
eina_list_free(pcp->base_codes);
}
-
/**
@page edcref
@property
"description" block, it will be executed once at load time, in the
load order.
@endblock
-*/
+ */
static void
ob_collections_group_script(void)
{
if (!is_verbatim()) track_verbatim(1);
else
{
- char *s;
+ char *s;
- s = get_verbatim();
- if (s)
- {
- cd->l1 = get_verbatim_line1();
- cd->l2 = get_verbatim_line2();
- if (cd->shared)
- {
+ s = get_verbatim();
+ if (s)
+ {
+ cd->l1 = get_verbatim_line1();
+ cd->l2 = get_verbatim_line2();
+ if (cd->shared)
+ {
if (script_is_replaceable)
{
free(cd->shared);
file_in, line - 1);
exit(-1);
}
- }
- cd->shared = s;
+ }
+ cd->shared = s;
cd->original = strdup(s);
- cd->is_lua = 0;
- set_verbatim(NULL, 0, 0);
- }
+ cd->is_lua = 0;
+ set_verbatim(NULL, 0, 0);
+ }
}
}
if (!is_verbatim()) track_verbatim(1);
else
{
- char *s;
+ char *s;
- s = get_verbatim();
- if (s)
- {
- cd->l1 = get_verbatim_line1();
- cd->l2 = get_verbatim_line2();
- if (cd->shared)
- {
- ERR("parse error %s:%i. There is already an existing script section for the group",
- file_in, line - 1);
- exit(-1);
- }
- cd->shared = s;
- cd->is_lua = 1;
- set_verbatim(NULL, 0, 0);
- }
+ s = get_verbatim();
+ if (s)
+ {
+ cd->l1 = get_verbatim_line1();
+ cd->l2 = get_verbatim_line2();
+ if (cd->shared)
+ {
+ ERR("parse error %s:%i. There is already an existing script section for the group",
+ file_in, line - 1);
+ exit(-1);
+ }
+ cd->shared = s;
+ cd->is_lua = 1;
+ set_verbatim(NULL, 0, 0);
+ }
}
}
Defines a new parameter, the value will be the string specified next to
it.
@endproperty
-*/
+ */
static void
st_collections_group_data_item(void)
Includes an external file to define a new Lua script used for filtering.
The file must be in the data path passed to edje_cc (-dd argument).
@endproperty
-*/
+ */
static Edje_Gfx_Filter *current_filter = NULL;
exit(-1);
}
- current_filter->script = (char*)eina_memdup((unsigned char*)script, sz, 1);
+ current_filter->script = (char *)eina_memdup((unsigned char *)script, sz, 1);
eina_file_map_free(f, script);
eina_file_close(f);
it pass below that limit.
This limit will be applied on the y absis and is expressed in pixels.
@endproperty
-*/
+ */
static void
st_collections_group_limits_vertical(void)
{
pc = eina_list_data_get(eina_list_last(edje_collections));
pc->limits.vertical_count++;
elp = realloc(pc->limits.vertical,
- pc->limits.vertical_count * sizeof (Edje_Limit *));
+ pc->limits.vertical_count * sizeof (Edje_Limit *));
if (!elp)
{
ERR("Not enough memory.");
exit(-1);
}
pc->limits.vertical = elp;
-
+
el = mem_alloc(SZ(Edje_Limit));
if (!el)
{
it pass below that limit.
This limit will be applied on the x axis and is expressed in pixels.
@endproperty
-*/
+ */
static void
st_collections_group_limits_horizontal(void)
{
"real_part_path" in the "somegroup" group.
@endproperty
@endblock
-*/
+ */
static void
st_collections_group_parts_alias(void)
{
theme, for example, a part can represent a line in a border or a label
on a button.
@endblock
-*/
+ */
static Edje_Part *
edje_cc_handlers_part_make(int id)
{ /* Doing ob_collections_group_parts_part() job, without hierarchy */
- Edje_Part_Collection *pc;
- Edje_Part_Collection_Parser *pcp;
- Edje_Part *ep;
- Edje_Part_Parser *epp;
-
- ep = mem_alloc(SZ(Edje_Part_Parser));
-
- pc = eina_list_data_get(eina_list_last(edje_collections));
- if (id < 0)
- {
- pc->parts_count++;
- pc->parts = realloc(pc->parts, pc->parts_count * sizeof (Edje_Part *));
- if (!pc->parts)
- {
- ERR("Not enough memory.");
- exit(-1);
- }
- id = pc->parts_count - 1;
- }
-
- current_part = pc->parts[id] = ep;
- pcp = (Edje_Part_Collection_Parser *)pc;
-
- ep->id = id;
- ep->type = EDJE_PART_TYPE_IMAGE;
- ep->mouse_events = pcp->default_mouse_events;
- ep->anti_alias = 1;
- ep->repeat_events = 0;
- ep->ignore_flags = EVAS_EVENT_FLAG_NONE;
- ep->mask_flags = EVAS_EVENT_FLAG_NONE;
- ep->scale = 0;
- ep->pointer_mode = EVAS_OBJECT_POINTER_MODE_AUTOGRAB;
- ep->precise_is_inside = 0;
- ep->use_alternate_font_metrics = 0;
- ep->access = 0;
- ep->clip_to_id = -1;
- ep->no_render = 0;
- ep->required = 0;
- ep->dragable.confine_id = -1;
- ep->dragable.threshold_id = -1;
- ep->dragable.event_id = -1;
- ep->items = NULL;
- ep->nested_children_count = 0;
-
- ep->allowed_seats = NULL;
- ep->allowed_seats_count = 0;
-
- epp = (Edje_Part_Parser *)ep;
- epp->reorder.insert_before = NULL;
- epp->reorder.insert_after = NULL;
- epp->reorder.before = NULL;
- epp->reorder.after = NULL;
- epp->reorder.linked_prev = 0;
- epp->reorder.linked_next = 0;
- epp->reorder.done = EINA_FALSE;
- epp->can_override = EINA_FALSE;
+ Edje_Part_Collection *pc;
+ Edje_Part_Collection_Parser *pcp;
+ Edje_Part *ep;
+ Edje_Part_Parser *epp;
+
+ ep = mem_alloc(SZ(Edje_Part_Parser));
+
+ pc = eina_list_data_get(eina_list_last(edje_collections));
+ if (id < 0)
+ {
+ pc->parts_count++;
+ pc->parts = realloc(pc->parts, pc->parts_count * sizeof (Edje_Part *));
+ if (!pc->parts)
+ {
+ ERR("Not enough memory.");
+ exit(-1);
+ }
+ id = pc->parts_count - 1;
+ }
- return ep;
+ current_part = pc->parts[id] = ep;
+ pcp = (Edje_Part_Collection_Parser *)pc;
+
+ ep->id = id;
+ ep->type = EDJE_PART_TYPE_IMAGE;
+ ep->mouse_events = pcp->default_mouse_events;
+ ep->anti_alias = 1;
+ ep->repeat_events = 0;
+ ep->ignore_flags = EVAS_EVENT_FLAG_NONE;
+ ep->mask_flags = EVAS_EVENT_FLAG_NONE;
+ ep->scale = 0;
+ ep->pointer_mode = EVAS_OBJECT_POINTER_MODE_AUTOGRAB;
+ ep->precise_is_inside = 0;
+ ep->use_alternate_font_metrics = 0;
+ ep->access = 0;
+ ep->clip_to_id = -1;
+ ep->no_render = 0;
+ ep->required = 0;
+ ep->dragable.confine_id = -1;
+ ep->dragable.threshold_id = -1;
+ ep->dragable.event_id = -1;
+ ep->items = NULL;
+ ep->nested_children_count = 0;
+
+ ep->allowed_seats = NULL;
+ ep->allowed_seats_count = 0;
+
+ epp = (Edje_Part_Parser *)ep;
+ epp->reorder.insert_before = NULL;
+ epp->reorder.insert_after = NULL;
+ epp->reorder.before = NULL;
+ epp->reorder.after = NULL;
+ epp->reorder.linked_prev = 0;
+ epp->reorder.linked_next = 0;
+ epp->reorder.done = EINA_FALSE;
+ epp->can_override = EINA_FALSE;
+
+ return ep;
}
static void *
case EDJE_PART_TYPE_RECTANGLE:
case EDJE_PART_TYPE_SWALLOW:
case EDJE_PART_TYPE_GROUP:
- /* Nothing todo, this part only have a common description. */
- break;
+ /* Nothing todo, this part only have a common description. */
+ break;
+
case EDJE_PART_TYPE_BOX:
case EDJE_PART_TYPE_TABLE:
case EDJE_PART_TYPE_IMAGE:
case EDJE_PART_TYPE_SNAPSHOT:
case EDJE_PART_TYPE_VECTOR:
- /* Nothing todo here */
- break;
+ /* Nothing todo here */
+ break;
+
case EDJE_PART_TYPE_TEXT:
case EDJE_PART_TYPE_TEXTBLOCK:
- {
- Edje_Part_Description_Text *ted = (Edje_Part_Description_Text*) ed;
+ {
+ Edje_Part_Description_Text *ted = (Edje_Part_Description_Text *)ed;
+
+ part_lookup_del(pc, &(ted->text.id_source));
+ part_lookup_del(pc, &(ted->text.id_text_source));
+ break;
+ }
- part_lookup_del(pc, &(ted->text.id_source));
- part_lookup_del(pc, &(ted->text.id_text_source));
- break;
- }
case EDJE_PART_TYPE_PROXY:
- {
- Edje_Part_Description_Proxy *ped = (Edje_Part_Description_Proxy*) ed;
+ {
+ Edje_Part_Description_Proxy *ped = (Edje_Part_Description_Proxy *)ed;
- part_lookup_del(pc, &(ped->proxy.id));
- break;
- }
+ part_lookup_del(pc, &(ped->proxy.id));
+ break;
+ }
}
- free((void*)ed->state.name);
+ free((void *)ed->state.name);
free(ed);
return NULL;
}
edje_cc_handlers_hierarchy_push(ep, cp);
prnt = edje_cc_handlers_hierarchy_parent_get();
- if (prnt) /* This is the child of parent in stack */
+ if (prnt) /* This is the child of parent in stack */
prnt->nested_children_count++;
}
unsigned int type;
type = parse_enum(-1,
- "none", EDJE_PART_TYPE_NONE,
- "rect", EDJE_PART_TYPE_RECTANGLE,
- "text", EDJE_PART_TYPE_TEXT,
- "image", EDJE_PART_TYPE_IMAGE,
- "swallow", EDJE_PART_TYPE_SWALLOW,
- "textblock", EDJE_PART_TYPE_TEXTBLOCK,
- "group", EDJE_PART_TYPE_GROUP,
- "box", EDJE_PART_TYPE_BOX,
- "table", EDJE_PART_TYPE_TABLE,
- "external", EDJE_PART_TYPE_EXTERNAL,
- "proxy", EDJE_PART_TYPE_PROXY,
- "spacer", EDJE_PART_TYPE_SPACER,
- "snapshot", EDJE_PART_TYPE_SNAPSHOT,
- "vector", EDJE_PART_TYPE_VECTOR,
- NULL);
+ "none", EDJE_PART_TYPE_NONE,
+ "rect", EDJE_PART_TYPE_RECTANGLE,
+ "text", EDJE_PART_TYPE_TEXT,
+ "image", EDJE_PART_TYPE_IMAGE,
+ "swallow", EDJE_PART_TYPE_SWALLOW,
+ "textblock", EDJE_PART_TYPE_TEXTBLOCK,
+ "group", EDJE_PART_TYPE_GROUP,
+ "box", EDJE_PART_TYPE_BOX,
+ "table", EDJE_PART_TYPE_TABLE,
+ "external", EDJE_PART_TYPE_EXTERNAL,
+ "proxy", EDJE_PART_TYPE_PROXY,
+ "spacer", EDJE_PART_TYPE_SPACER,
+ "snapshot", EDJE_PART_TYPE_SNAPSHOT,
+ "vector", EDJE_PART_TYPE_VECTOR,
+ NULL);
stack_replace_quick("part");
_part_create();
static void *
_part_free(Edje_Part_Collection *pc, Edje_Part *ep)
{
- Edje_Part_Parser *epp = (Edje_Part_Parser*)ep;
+ Edje_Part_Parser *epp = (Edje_Part_Parser *)ep;
unsigned int j;
part_lookup_del(pc, &(ep->clip_to_id));
part_lookup_del(pc, &(ep->dragable.event_id));
_part_desc_free(pc, ep, ep->default_desc);
- for (j = 0 ; j < ep->other.desc_count ; j++)
+ for (j = 0; j < ep->other.desc_count; j++)
_part_desc_free(pc, ep, ep->other.desc[j]);
- for (j = 0 ; j < ep->items_count ; j++)
+ for (j = 0; j < ep->items_count; j++)
free(ep->items[j]);
free(ep->items);
- for (j = 0 ; j < ep->allowed_seats_count; j++)
+ for (j = 0; j < ep->allowed_seats_count; j++)
{
- free((void*)(ep->allowed_seats[j]->name));
+ free((void *)(ep->allowed_seats[j]->name));
free(ep->allowed_seats[j]);
}
free(ep->allowed_seats);
- free((void*)ep->name);
- free((void*)ep->source);
- free((void*)ep->source2);
- free((void*)ep->source3);
- free((void*)ep->source4);
- free((void*)ep->source5);
- free((void*)ep->source6);
+ free((void *)ep->name);
+ free((void *)ep->source);
+ free((void *)ep->source2);
+ free((void *)ep->source3);
+ free((void *)ep->source4);
+ free((void *)ep->source5);
+ free((void *)ep->source6);
- free((void*)epp->reorder.insert_before);
- free((void*)epp->reorder.insert_after);
+ free((void *)epp->reorder.insert_before);
+ free((void *)epp->reorder.insert_after);
- free((void*)ep->api.name);
- free((void*)ep->api.description);
+ free((void *)ep->api.name);
+ free((void *)ep->api.description);
free(ep->other.desc);
free(ep);
allowed.
@since 1.10
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_inherit(void)
{
current_part = _part_free(pc, current_part);
edje_cc_handlers_part_make(id);
_part_copy(current_part, pc->parts[i]);
- free((void*)current_part->name);
+ free((void *)current_part->name);
current_part->name = pname;
free(name);
return;
pc = eina_list_last_data_get(edje_collections);
- free((void*)pr->name);
- free((void*)pr->signal);
- free((void*)pr->source);
- free((void*)pr->filter.part);
- free((void*)pr->filter.state);
- free((void*)pr->seat);
- free((void*)pr->state);
- free((void*)pr->state2);
- free((void*)pr->sample_name);
- free((void*)pr->tone_name);
+ free((void *)pr->name);
+ free((void *)pr->signal);
+ free((void *)pr->source);
+ free((void *)pr->filter.part);
+ free((void *)pr->filter.state);
+ free((void *)pr->seat);
+ free((void *)pr->state);
+ free((void *)pr->state2);
+ free((void *)pr->sample_name);
+ free((void *)pr->tone_name);
EINA_LIST_FREE(pr->targets, prt)
{
part_lookup_del(pc, &prt->id);
free(prt);
}
EINA_LIST_FREE(pr->after, pa)
- free(pa);
+ free(pa);
free(pr);
}
return EINA_FALSE;
}
-
static Eina_Bool
_part_name_check(void)
{
for (i = 0; i < (pc->parts_count - 1); i++)
{ /* Compare name only if did NOT updated ep from hircy pop */
- if ((ep != pc->parts[i]) &&
- (pc->parts[i]->name &&
- (!strcmp(pc->parts[i]->name, ep->name))))
- {
- Edje_Part_Parser *epp;
+ if ((ep != pc->parts[i]) &&
+ (pc->parts[i]->name &&
+ (!strcmp(pc->parts[i]->name, ep->name))))
+ {
+ Edje_Part_Parser *epp;
- epp = (Edje_Part_Parser *)pc->parts[i];
- if (!epp->can_override)
- {
- ERR("parse error %s:%i. There is already a part of the name %s",
- file_in, line - 1, ep->name);
- exit(-1);
- }
- else
- {
- pc->parts_count--;
- pc->parts = realloc(pc->parts, pc->parts_count * sizeof (Edje_Part *));
- current_part = pc->parts[i];
- edje_cc_handlers_hierarchy_rename(ep, current_part);
- free(ep);
- epp->can_override = EINA_FALSE;
- break;
- }
- }
+ epp = (Edje_Part_Parser *)pc->parts[i];
+ if (!epp->can_override)
+ {
+ ERR("parse error %s:%i. There is already a part of the name %s",
+ file_in, line - 1, ep->name);
+ exit(-1);
+ }
+ else
+ {
+ pc->parts_count--;
+ pc->parts = realloc(pc->parts, pc->parts_count * sizeof (Edje_Part *));
+ current_part = pc->parts[i];
+ edje_cc_handlers_hierarchy_rename(ep, current_part);
+ free(ep);
+ epp->can_override = EINA_FALSE;
+ break;
+ }
+ }
}
return EINA_TRUE;
}
positioning system, by programs and in some cases by the application.
It must be unique within the group.
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_name(void)
{
Defaults: IMAGE
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_type(void)
{
Defaults: NONE
@since 1.8
@endproperty
-*/
+ */
#ifdef HAVE_EPHYSICS
static void
st_collections_group_parts_part_physics_body(void)
pc->physics_enabled = 1;
}
}
+
#endif
/**
You must define parent part name before adding nested parts.
@since 1.7
@endproperty
-*/
+ */
/**
@page edcref
more than one by insert_before.
@since 1.1
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_insert_before(void)
{
more than one by insert_after.
@since 1.1
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_insert_after(void)
{
Defaults: group.mouse_events
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_mouse_events(void)
{
Defaults: 1
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_anti_alias(void)
{
Defaults: 0
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_repeat_events(void)
{
Defaults: NONE
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_ignore_flags(void)
{
check_min_arg_count(1);
current_part->ignore_flags = parse_flags(0,
- "NONE", EVAS_EVENT_FLAG_NONE,
- "ON_HOLD", EVAS_EVENT_FLAG_ON_HOLD,
- NULL);
+ "NONE", EVAS_EVENT_FLAG_NONE,
+ "ON_HOLD", EVAS_EVENT_FLAG_ON_HOLD,
+ NULL);
}
/**
Defaults: NONE
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_mask_flags(void)
{
check_min_arg_count(1);
current_part->mask_flags = parse_flags(0,
- "NONE", EVAS_EVENT_FLAG_NONE,
- "ON_HOLD", EVAS_EVENT_FLAG_ON_HOLD,
- NULL);
+ "NONE", EVAS_EVENT_FLAG_NONE,
+ "ON_HOLD", EVAS_EVENT_FLAG_ON_HOLD,
+ NULL);
}
/**
Defaults: 0
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_scale(void)
{
Defaults: AUTOGRAB
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_pointer_mode(void)
{
check_arg_count(1);
current_part->pointer_mode = parse_enum(0,
- "AUTOGRAB", EVAS_OBJECT_POINTER_MODE_AUTOGRAB,
- "NOGRAB", EVAS_OBJECT_POINTER_MODE_NOGRAB,
- NULL);
+ "AUTOGRAB", EVAS_OBJECT_POINTER_MODE_AUTOGRAB,
+ "NOGRAB", EVAS_OBJECT_POINTER_MODE_NOGRAB,
+ NULL);
}
/**
Defaults: 0
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_precise_is_inside(void)
{
Defaults: 0
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_use_alternate_font_metrics(void)
{
container. Overflowing content will not be displayed. Note that
the part being clipped to can only be a rectangle part.
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_clip_to_id(void)
{
check_arg_count(1);
pc = eina_list_data_get(eina_list_last(edje_collections));
- {
- char *name;
+ {
+ char *name;
- name = parse_str(0);
- data_queue_part_lookup(pc, name, &(current_part->clip_to_id));
- free(name);
- }
+ name = parse_str(0);
+ data_queue_part_lookup(pc, name, &(current_part->clip_to_id));
+ free(name);
+ }
}
/**
Defaults: 0
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_no_render(void)
{
Defaults: 0
@since 1.18
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_required(void)
{
@parameters
[another group's name]
@effect
- Only available to GROUP or TEXTBLOCK parts. Swallows the specified
+ Only available to GROUP or TEXTBLOCK parts. Swallows the specified
group into the part's container if a GROUP. If TEXTBLOCK it is used
for the group to be loaded and used for selection display UNDER the
selected text. source2 is used for on top of the selected text, if
source2 is specified.
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_source(void)
{
@parameters
[another group's name]
@effect
- Only available to TEXTBLOCK parts. It is used for the group to be
+ Only available to TEXTBLOCK parts. It is used for the group to be
loaded and used for selection display OVER the selected text. source
is used for under of the selected text, if source is specified.
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_source2(void)
{
@parameters
[another group's name]
@effect
- Only available to TEXTBLOCK parts. It is used for the group to be
+ Only available to TEXTBLOCK parts. It is used for the group to be
loaded and used for cursor display UNDER the cursor position. source4
is used for over the cursor text, if source4 is specified.
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_source3(void)
{
@parameters
[another group's name]
@effect
- Only available to TEXTBLOCK parts. It is used for the group to be
+ Only available to TEXTBLOCK parts. It is used for the group to be
loaded and used for cursor display OVER the cursor position. source3
is used for under the cursor text, if source4 is specified.
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_source4(void)
{
@parameters
[another group's name]
@effect
- Only available to TEXTBLOCK parts. It is used for the group to be
+ Only available to TEXTBLOCK parts. It is used for the group to be
loaded and used for anchors display UNDER the anchor position. source6
is used for over the anchors text, if source6 is specified.
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_source5(void)
{
@parameters
[another group's name]
@effect
- Only available to TEXTBLOCK parts. It is used for the group to be
+ Only available to TEXTBLOCK parts. It is used for the group to be
loaded and used for anchor display OVER the anchor position. source5
is used for under the anchor text, if source6 is specified.
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_source6(void)
{
Defaults: PLAIN
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_effect(void)
{
check_min_arg_count(1);
current_part->effect = parse_enum(0,
- "NONE", EDJE_TEXT_EFFECT_NONE,
- "PLAIN", EDJE_TEXT_EFFECT_PLAIN,
- "OUTLINE", EDJE_TEXT_EFFECT_OUTLINE,
- "SOFT_OUTLINE", EDJE_TEXT_EFFECT_SOFT_OUTLINE,
- "SHADOW", EDJE_TEXT_EFFECT_SHADOW,
- "SOFT_SHADOW", EDJE_TEXT_EFFECT_SOFT_SHADOW,
- "OUTLINE_SHADOW", EDJE_TEXT_EFFECT_OUTLINE_SHADOW,
- "OUTLINE_SOFT_SHADOW", EDJE_TEXT_EFFECT_OUTLINE_SOFT_SHADOW,
- "FAR_SHADOW", EDJE_TEXT_EFFECT_FAR_SHADOW,
- "FAR_SOFT_SHADOW", EDJE_TEXT_EFFECT_FAR_SOFT_SHADOW,
- "GLOW", EDJE_TEXT_EFFECT_GLOW,
- NULL);
+ "NONE", EDJE_TEXT_EFFECT_NONE,
+ "PLAIN", EDJE_TEXT_EFFECT_PLAIN,
+ "OUTLINE", EDJE_TEXT_EFFECT_OUTLINE,
+ "SOFT_OUTLINE", EDJE_TEXT_EFFECT_SOFT_OUTLINE,
+ "SHADOW", EDJE_TEXT_EFFECT_SHADOW,
+ "SOFT_SHADOW", EDJE_TEXT_EFFECT_SOFT_SHADOW,
+ "OUTLINE_SHADOW", EDJE_TEXT_EFFECT_OUTLINE_SHADOW,
+ "OUTLINE_SOFT_SHADOW", EDJE_TEXT_EFFECT_OUTLINE_SOFT_SHADOW,
+ "FAR_SHADOW", EDJE_TEXT_EFFECT_FAR_SHADOW,
+ "FAR_SOFT_SHADOW", EDJE_TEXT_EFFECT_FAR_SOFT_SHADOW,
+ "GLOW", EDJE_TEXT_EFFECT_GLOW,
+ NULL);
if (get_arg_count() >= 2)
{
unsigned char shadow;
-
+
shadow = parse_enum(1,
- "BOTTOM_RIGHT", EDJE_TEXT_EFFECT_SHADOW_DIRECTION_BOTTOM_RIGHT,
- "BOTTOM", EDJE_TEXT_EFFECT_SHADOW_DIRECTION_BOTTOM,
- "BOTTOM_LEFT", EDJE_TEXT_EFFECT_SHADOW_DIRECTION_BOTTOM_LEFT,
- "LEFT", EDJE_TEXT_EFFECT_SHADOW_DIRECTION_LEFT,
- "TOP_LEFT", EDJE_TEXT_EFFECT_SHADOW_DIRECTION_TOP_LEFT,
- "TOP", EDJE_TEXT_EFFECT_SHADOW_DIRECTION_TOP,
- "TOP_RIGHT", EDJE_TEXT_EFFECT_SHADOW_DIRECTION_TOP_RIGHT,
- "RIGHT", EDJE_TEXT_EFFECT_SHADOW_DIRECTION_RIGHT,
- NULL);
+ "BOTTOM_RIGHT", EDJE_TEXT_EFFECT_SHADOW_DIRECTION_BOTTOM_RIGHT,
+ "BOTTOM", EDJE_TEXT_EFFECT_SHADOW_DIRECTION_BOTTOM,
+ "BOTTOM_LEFT", EDJE_TEXT_EFFECT_SHADOW_DIRECTION_BOTTOM_LEFT,
+ "LEFT", EDJE_TEXT_EFFECT_SHADOW_DIRECTION_LEFT,
+ "TOP_LEFT", EDJE_TEXT_EFFECT_SHADOW_DIRECTION_TOP_LEFT,
+ "TOP", EDJE_TEXT_EFFECT_SHADOW_DIRECTION_TOP,
+ "TOP_RIGHT", EDJE_TEXT_EFFECT_SHADOW_DIRECTION_TOP_RIGHT,
+ "RIGHT", EDJE_TEXT_EFFECT_SHADOW_DIRECTION_RIGHT,
+ NULL);
EDJE_TEXT_EFFECT_SHADOW_DIRECTION_SET(current_part->effect, shadow);
}
}
Defaults: NONE
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_entry_mode(void)
{
check_arg_count(1);
current_part->entry_mode = parse_enum(0,
- "NONE", EDJE_ENTRY_EDIT_MODE_NONE,
- "PLAIN", EDJE_ENTRY_EDIT_MODE_SELECTABLE,
- "EDITABLE", EDJE_ENTRY_EDIT_MODE_EDITABLE,
- "PASSWORD", EDJE_ENTRY_EDIT_MODE_PASSWORD,
- NULL);
+ "NONE", EDJE_ENTRY_EDIT_MODE_NONE,
+ "PLAIN", EDJE_ENTRY_EDIT_MODE_SELECTABLE,
+ "EDITABLE", EDJE_ENTRY_EDIT_MODE_EDITABLE,
+ "PASSWORD", EDJE_ENTRY_EDIT_MODE_PASSWORD,
+ NULL);
}
/**
controlling the edje object has to explicitly begin and end selection
modes, and the selection itself is draggable at both ends.
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_select_mode(void)
{
check_arg_count(1);
current_part->select_mode = parse_enum(0,
- "DEFAULT", EDJE_ENTRY_SELECTION_MODE_DEFAULT,
- "EXPLICIT", EDJE_ENTRY_SELECTION_MODE_EXPLICIT,
- NULL);
+ "DEFAULT", EDJE_ENTRY_SELECTION_MODE_DEFAULT,
+ "EXPLICIT", EDJE_ENTRY_SELECTION_MODE_EXPLICIT,
+ NULL);
}
/**
Defaults: UNDER
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_cursor_mode(void)
{
check_arg_count(1);
current_part->cursor_mode = parse_enum(0,
- "UNDER", EDJE_ENTRY_CURSOR_MODE_UNDER,
- "BEFORE", EDJE_ENTRY_CURSOR_MODE_BEFORE,
- NULL);
+ "UNDER", EDJE_ENTRY_CURSOR_MODE_UNDER,
+ "BEFORE", EDJE_ENTRY_CURSOR_MODE_BEFORE,
+ NULL);
}
/**
Defaults: 0
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_multiline(void)
{
/**
@page edcref
@property
- access
+ access
@parameters
[1 or 0]
@effect
Defaults: 0
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_access(void)
{
Defaults: 0 0 0
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_dragable_x(void)
{
Defaults: 0 0 0
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_dragable_y(void)
{
container. When you use confine don't forget to set a min size for the
part, or the draggie will not show up.
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_dragable_confine(void)
{
check_arg_count(1);
pc = eina_list_data_get(eina_list_last(edje_collections));
- {
- char *name;
+ {
+ char *name;
- name = parse_str(0);
- data_queue_part_lookup(pc, name, &(current_part->dragable.confine_id));
- free(name);
- }
+ name = parse_str(0);
+ data_queue_part_lookup(pc, name, &(current_part->dragable.confine_id));
+ free(name);
+ }
}
/**
When set, the movement of the dragged part can only start when it get
moved enough to be outside of the threshold part.
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_dragable_threshold(void)
{
check_arg_count(1);
pc = eina_list_data_get(eina_list_last(edje_collections));
- {
- char *name;
+ {
+ char *name;
- name = parse_str(0);
- data_queue_part_lookup(pc, name, &(current_part->dragable.threshold_id));
- free(name);
- }
+ name = parse_str(0);
+ data_queue_part_lookup(pc, name, &(current_part->dragable.threshold_id));
+ free(name);
+ }
}
/**
It causes the part to forward the drag events to another part, thus
ignoring them for itself.
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_dragable_events(void)
{
check_arg_count(1);
pc = eina_list_data_get(eina_list_last(edje_collections));
- {
- char *name;
+ {
+ char *name;
- name = parse_str(0);
- data_queue_part_lookup(pc, name, &(current_part->dragable.event_id));
- free(name);
- }
+ name = parse_str(0);
+ data_queue_part_lookup(pc, name, &(current_part->dragable.event_id));
+ free(name);
+ }
}
/**
Also it won't be able to focus this part.
@since 1.19
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_allowed_seats(void)
{
as elements of the box. These can be mixed with external objects set
by the application through the edje_object_part_box_* API.
@endblock
-*/
-static void ob_collections_group_parts_part_box_items_item(void)
+ */
+static void
+ob_collections_group_parts_part_box_items_item(void)
{
Edje_Part *ep;
Edje_Pack_Element *item;
}
ep->items_count++;
- ep->items = realloc(ep->items, sizeof (Edje_Pack_Element*) * ep->items_count);
+ ep->items = realloc(ep->items, sizeof (Edje_Pack_Element *) * ep->items_count);
if (!ep->items)
{
ERR("Not enough memory.");
pitem->can_override = EINA_FALSE;
}
-#define CURRENT_ITEM_CHECK \
- if (!current_item) \
- { \
- ERR("parse error %s:%i. Item not defined at this stage.", \
- file_in, line - 1); \
- exit(-1); \
+#define CURRENT_ITEM_CHECK \
+ if (!current_item) \
+ { \
+ ERR("parse error %s:%i. Item not defined at this stage.", \
+ file_in, line - 1); \
+ exit(-1); \
}
/**
Supported types are:
@li GROUP
@endproperty
-*/
-static void st_collections_group_parts_part_box_items_item_type(void)
+ */
+static void
+st_collections_group_parts_part_box_items_item_type(void)
{
CURRENT_ITEM_CHECK;
check_arg_count(1);
- {
- char *s;
+ {
+ char *s;
- s = parse_str(0);
- if (strcmp(s, "GROUP"))
- {
- ERR("parse error %s:%i. token %s not one of: GROUP.",
- file_in, line - 1, s);
- free(s);
- exit(-1);
- }
- free(s);
- /* FIXME: handle the enum, once everything else is supported */
- current_item->type = EDJE_PART_TYPE_GROUP;
- }
+ s = parse_str(0);
+ if (strcmp(s, "GROUP"))
+ {
+ ERR("parse error %s:%i. token %s not one of: GROUP.",
+ file_in, line - 1, s);
+ free(s);
+ exit(-1);
+ }
+ free(s);
+ /* FIXME: handle the enum, once everything else is supported */
+ current_item->type = EDJE_PART_TYPE_GROUP;
+ }
}
/**
@effect
Sets the name of the object via evas_object_name_set().
@endproperty
-*/
-static void st_collections_group_parts_part_box_items_item_name(void)
+ */
+static void
+st_collections_group_parts_part_box_items_item_name(void)
{
Edje_Part *ep;
Edje_Pack_Element *item;
item->name = parse_str(0);
- {
- unsigned int i;
+ {
+ unsigned int i;
- for (i = 0; i < ep->items_count - 1; ++i)
- {
- if (ep->items[i]->name && (!strcmp(ep->items[i]->name, item->name)))
- {
- pitem = (Edje_Pack_Element_Parser *)ep->items[i];
- if (!pitem->can_override)
- {
- ERR("parse error %s:%i. There is already a item of the name %s",
- file_in, line - 1, item->name);
- exit(-1);
- }
- else
- {
- free(item);
- ep->items_count--;
- ep->items = realloc(ep->items, ep->items_count * sizeof (Edje_Pack_Element *));
- current_item = ep->items[i];
- pitem->can_override = EINA_FALSE;
- break;
- }
- }
- }
- }
+ for (i = 0; i < ep->items_count - 1; ++i)
+ {
+ if (ep->items[i]->name && (!strcmp(ep->items[i]->name, item->name)))
+ {
+ pitem = (Edje_Pack_Element_Parser *)ep->items[i];
+ if (!pitem->can_override)
+ {
+ ERR("parse error %s:%i. There is already a item of the name %s",
+ file_in, line - 1, item->name);
+ exit(-1);
+ }
+ else
+ {
+ free(item);
+ ep->items_count--;
+ ep->items = realloc(ep->items, ep->items_count * sizeof (Edje_Pack_Element *));
+ current_item = ep->items[i];
+ pitem->can_override = EINA_FALSE;
+ break;
+ }
+ }
+ }
+ }
}
/**
@effect
Sets the group this object will be made from.
@endproperty
-*/
-static void st_collections_group_parts_part_box_items_item_source(void)
+ */
+static void
+st_collections_group_parts_part_box_items_item_source(void)
{
CURRENT_ITEM_CHECK;
Defaults: 0 0
@endproperty
-*/
-static void st_collections_group_parts_part_box_items_item_min(void)
+ */
+static void
+st_collections_group_parts_part_box_items_item_min(void)
{
CURRENT_ITEM_CHECK;
Defaults: 1 1
@endproperty
-*/
-static void st_collections_group_parts_part_box_items_item_spread(void)
+ */
+static void
+st_collections_group_parts_part_box_items_item_spread(void)
{
CURRENT_ITEM_CHECK;
Defaults: 0 0
@endproperty
-*/
-static void st_collections_group_parts_part_box_items_item_prefer(void)
+ */
+static void
+st_collections_group_parts_part_box_items_item_prefer(void)
{
CURRENT_ITEM_CHECK;
current_item->prefer.w = parse_int_range(0, 0, 0x7ffffff);
current_item->prefer.h = parse_int_range(1, 0, 0x7ffffff);
}
+
/**
@page edcref
@property
Defaults: -1 -1
@endproperty
-*/
-static void st_collections_group_parts_part_box_items_item_max(void)
+ */
+static void
+st_collections_group_parts_part_box_items_item_max(void)
{
CURRENT_ITEM_CHECK;
Defaults: 0 0 0 0
@endproperty
-*/
-static void st_collections_group_parts_part_box_items_item_padding(void)
+ */
+static void
+st_collections_group_parts_part_box_items_item_padding(void)
{
CURRENT_ITEM_CHECK;
Defaults: 0.5
@endproperty
-*/
-static void st_collections_group_parts_part_box_items_item_align(void)
+ */
+static void
+st_collections_group_parts_part_box_items_item_align(void)
{
CURRENT_ITEM_CHECK;
Defaults: 0.0 0.0
@endproperty
-*/
-static void st_collections_group_parts_part_box_items_item_weight(void)
+ */
+static void
+st_collections_group_parts_part_box_items_item_weight(void)
{
CURRENT_ITEM_CHECK;
Defaults: 0 0
@endproperty
-*/
-static void st_collections_group_parts_part_box_items_item_aspect(void)
+ */
+static void
+st_collections_group_parts_part_box_items_item_aspect(void)
{
CURRENT_ITEM_CHECK;
Defaults: NONE
@endproperty
-*/
-static void st_collections_group_parts_part_box_items_item_aspect_mode(void)
+ */
+static void
+st_collections_group_parts_part_box_items_item_aspect_mode(void)
{
CURRENT_ITEM_CHECK;
check_arg_count(1);
current_item->aspect.mode = parse_enum(0,
- "NONE", EDJE_ASPECT_CONTROL_NONE,
- "NEITHER", EDJE_ASPECT_CONTROL_NEITHER,
- "HORIZONTAL", EDJE_ASPECT_CONTROL_HORIZONTAL,
- "VERTICAL", EDJE_ASPECT_CONTROL_VERTICAL,
- "BOTH", EDJE_ASPECT_CONTROL_BOTH,
- NULL);
+ "NONE", EDJE_ASPECT_CONTROL_NONE,
+ "NEITHER", EDJE_ASPECT_CONTROL_NEITHER,
+ "HORIZONTAL", EDJE_ASPECT_CONTROL_HORIZONTAL,
+ "VERTICAL", EDJE_ASPECT_CONTROL_VERTICAL,
+ "BOTH", EDJE_ASPECT_CONTROL_BOTH,
+ NULL);
}
/**
@effect
Sets extra options for the object. Unused for now.
@endproperty
-*/
-static void st_collections_group_parts_part_box_items_item_options(void)
+ */
+static void
+st_collections_group_parts_part_box_items_item_options(void)
{
CURRENT_ITEM_CHECK;
Sets the position this item will have in the table.
This is required for parts of type TABLE.
@endproperty
-*/
-static void st_collections_group_parts_part_table_items_item_position(void)
+ */
+static void
+st_collections_group_parts_part_table_items_item_position(void)
{
CURRENT_ITEM_CHECK;
Defaults: 1 1
@endproperty
-*/
-static void st_collections_group_parts_part_table_items_item_span(void)
+ */
+static void
+st_collections_group_parts_part_table_items_item_span(void)
{
CURRENT_ITEM_CHECK;
used to define style and layout properties of a part in a given
"state".
@endblock
-*/
+ */
static void
ob_collections_group_parts_part_description(void)
{ /* Allocate and set desc, set relative part hierarchy if needed */
- Edje_Part_Collection *pc;
- Edje_Part *ep;
- Edje_Part_Description_Common *ed;
-
- pc = eina_list_data_get(eina_list_last(edje_collections));
- ep = current_part;
-
- ed = _edje_part_description_alloc(ep->type, pc->part, ep->name);
- eina_hash_add(desc_hash, &ed, ep);
-
- ed->rel1.id_x = -1;
- ed->rel1.id_y = -1;
- ed->rel2.id_x = -1;
- ed->rel2.id_y = -1;
- ed->clip_to_id = -1;
-
- if (!ep->default_desc)
- {
- current_desc = ep->default_desc = ed;
- ed->state.name = strdup("default");
+ Edje_Part_Collection *pc;
+ Edje_Part *ep;
+ Edje_Part_Description_Common *ed;
+
+ pc = eina_list_data_get(eina_list_last(edje_collections));
+ ep = current_part;
+
+ ed = _edje_part_description_alloc(ep->type, pc->part, ep->name);
+ eina_hash_add(desc_hash, &ed, ep);
+
+ ed->rel1.id_x = -1;
+ ed->rel1.id_y = -1;
+ ed->rel2.id_x = -1;
+ ed->rel2.id_y = -1;
+ ed->clip_to_id = -1;
+
+ if (!ep->default_desc)
+ {
+ current_desc = ep->default_desc = ed;
+ ed->state.name = strdup("default");
+
+ { /* Get the ptr of the part above current part in hierarchy */
+ Edje_Part *node = edje_cc_handlers_hierarchy_parent_get();
+ if (node) /* Make relative according to part hierarchy */
+ edje_cc_handlers_hierarchy_set(node);
+ }
+ }
+ else
+ {
+ ep->other.desc_count++;
+ ep->other.desc = realloc(ep->other.desc,
+ sizeof (Edje_Part_Description_Common *) * ep->other.desc_count);
+ current_desc = ep->other.desc[ep->other.desc_count - 1] = ed;
+ }
- { /* Get the ptr of the part above current part in hierarchy */
- Edje_Part *node = edje_cc_handlers_hierarchy_parent_get();
- if (node) /* Make relative according to part hierarchy */
- edje_cc_handlers_hierarchy_set(node);
- }
- }
- else
- {
- ep->other.desc_count++;
- ep->other.desc = realloc(ep->other.desc,
- sizeof (Edje_Part_Description_Common*) * ep->other.desc_count);
- current_desc = ep->other.desc[ep->other.desc_count - 1] = ed;
- }
-
- ed->visible = 1;
- ed->limit = 0;
- ed->no_render = 0;
- ed->align.x = FROM_DOUBLE(0.5);
- ed->align.y = FROM_DOUBLE(0.5);
- ed->min.w = 0;
- ed->min.h = 0;
- ed->fixed.w = 0;
- ed->fixed.h = 0;
- ed->max.w = -1;
- ed->max.h = -1;
- ed->size_class = NULL;
- ed->rel1.relative_x = FROM_DOUBLE(0.0);
- ed->rel1.relative_y = FROM_DOUBLE(0.0);
- ed->rel1.offset_x = 0;
- ed->rel1.offset_y = 0;
- ed->rel2.relative_x = FROM_DOUBLE(1.0);
- ed->rel2.relative_y = FROM_DOUBLE(1.0);
- ed->rel2.offset_x = -1;
- ed->rel2.offset_y = -1;
- ed->color_class = NULL;
- ed->color.r = 255;
- ed->color.g = 255;
- ed->color.b = 255;
- ed->color.a = 255;
- ed->color2.r = 0;
- ed->color2.g = 0;
- ed->color2.b = 0;
- ed->color2.a = 255;
- ed->map.id_persp = -1;
- ed->map.id_light = -1;
- ed->map.rot.id_center = -1;
- ed->map.rot.x = FROM_DOUBLE(0.0);
- ed->map.rot.y = FROM_DOUBLE(0.0);
- ed->map.rot.z = FROM_DOUBLE(0.0);
- ed->map.on = 0;
- ed->map.smooth = 1;
- ed->map.alpha = 1;
- ed->map.backcull = 0;
- ed->map.persp_on = 0;
- ed->map.colors = NULL;
- ed->map.zoom.x = FROM_DOUBLE(1.0);
- ed->map.zoom.y = FROM_DOUBLE(1.0);
- ed->persp.zplane = 0;
- ed->persp.focal = 1000;
- ed->minmul.have = 1;
- ed->minmul.w = FROM_DOUBLE(1.0);
- ed->minmul.h = FROM_DOUBLE(1.0);
- ed->align_3d.x = FROM_DOUBLE(0.5);
- ed->align_3d.y = FROM_DOUBLE(0.5);
- ed->align_3d.z = FROM_DOUBLE(0.5);
+ ed->visible = 1;
+ ed->limit = 0;
+ ed->no_render = 0;
+ ed->align.x = FROM_DOUBLE(0.5);
+ ed->align.y = FROM_DOUBLE(0.5);
+ ed->min.w = 0;
+ ed->min.h = 0;
+ ed->fixed.w = 0;
+ ed->fixed.h = 0;
+ ed->max.w = -1;
+ ed->max.h = -1;
+ ed->size_class = NULL;
+ ed->rel1.relative_x = FROM_DOUBLE(0.0);
+ ed->rel1.relative_y = FROM_DOUBLE(0.0);
+ ed->rel1.offset_x = 0;
+ ed->rel1.offset_y = 0;
+ ed->rel2.relative_x = FROM_DOUBLE(1.0);
+ ed->rel2.relative_y = FROM_DOUBLE(1.0);
+ ed->rel2.offset_x = -1;
+ ed->rel2.offset_y = -1;
+ ed->color_class = NULL;
+ ed->color.r = 255;
+ ed->color.g = 255;
+ ed->color.b = 255;
+ ed->color.a = 255;
+ ed->color2.r = 0;
+ ed->color2.g = 0;
+ ed->color2.b = 0;
+ ed->color2.a = 255;
+ ed->map.id_persp = -1;
+ ed->map.id_light = -1;
+ ed->map.rot.id_center = -1;
+ ed->map.rot.x = FROM_DOUBLE(0.0);
+ ed->map.rot.y = FROM_DOUBLE(0.0);
+ ed->map.rot.z = FROM_DOUBLE(0.0);
+ ed->map.on = 0;
+ ed->map.smooth = 1;
+ ed->map.alpha = 1;
+ ed->map.backcull = 0;
+ ed->map.persp_on = 0;
+ ed->map.colors = NULL;
+ ed->map.zoom.x = FROM_DOUBLE(1.0);
+ ed->map.zoom.y = FROM_DOUBLE(1.0);
+ ed->persp.zplane = 0;
+ ed->persp.focal = 1000;
+ ed->minmul.have = 1;
+ ed->minmul.w = FROM_DOUBLE(1.0);
+ ed->minmul.h = FROM_DOUBLE(1.0);
+ ed->align_3d.x = FROM_DOUBLE(0.5);
+ ed->align_3d.y = FROM_DOUBLE(0.5);
+ ed->align_3d.z = FROM_DOUBLE(0.5);
}
static void
simple state changes. Note: inheritance in Edje is single level only.
@since 1.14 omitting both the description name and index will inherit the default 0.0 description.
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_inherit(void)
{
case 0:
parent_name = strdup("default");
break;
+
case 2:
parent_val = parse_float_range(1, 0.0, 1.0);
EINA_FALLTHROUGH;
+
case 1:
parent_name = parse_str(0);
break;
+
default:
ERR("parse error %s:%i. too many parameters",
file_in, line - 1);
exit(-1);
}
- if (!strcmp (parent_name, "default") && parent_val == 0.0)
+ if (!strcmp(parent_name, "default") && parent_val == 0.0)
parent = ep->default_desc;
else
{
{
d = ep->other.desc[i];
- if (!strcmp (d->state.name, parent_name))
+ if (!strcmp(d->state.name, parent_name))
{
-
double dst;
dst = ABS(d->state.value - parent_val);
}
}
- if (min_dst)
- {
+ if (min_dst)
+ {
WRN("%s:%i: couldn't find an exact match in part '%s' when looking for '%s' %lf. Falling back to nearest one '%s' %lf.",
file_in, line - 1, ep->name, parent_name, parent_val, parent ? parent->state.name : NULL, parent ? parent->state.value : 0);
}
case EDJE_PART_TYPE_RECTANGLE:
case EDJE_PART_TYPE_SWALLOW:
case EDJE_PART_TYPE_GROUP:
- /* Nothing todo, this part only have a common description. */
- break;
+ /* Nothing todo, this part only have a common description. */
+ break;
+
case EDJE_PART_TYPE_TEXT:
case EDJE_PART_TYPE_TEXTBLOCK:
- {
- Edje_Part_Description_Text *ted = (Edje_Part_Description_Text*) ed;
- Edje_Part_Description_Text *tparent = (Edje_Part_Description_Text*) parent;
+ {
+ Edje_Part_Description_Text *ted = (Edje_Part_Description_Text *)ed;
+ Edje_Part_Description_Text *tparent = (Edje_Part_Description_Text *)parent;
- ted->text = tparent->text;
+ ted->text = tparent->text;
- ted->text.text.str = STRDUP(ted->text.text.str);
- ted->text.domain = STRDUP(ted->text.domain);
- ted->text.text_class = STRDUP(ted->text.text_class);
- ted->text.font.str = STRDUP(ted->text.font.str);
+ ted->text.text.str = STRDUP(ted->text.text.str);
+ ted->text.domain = STRDUP(ted->text.domain);
+ ted->text.text_class = STRDUP(ted->text.text_class);
+ ted->text.font.str = STRDUP(ted->text.font.str);
- _filter_copy(&ted->filter, &tparent->filter);
- data_queue_copied_part_nest_lookup(pc, &(tparent->text.id_source), &(ted->text.id_source), &ted->text.id_source_part);
- data_queue_copied_part_nest_lookup(pc, &(tparent->text.id_text_source), &(ted->text.id_text_source), &ted->text.id_text_source_part);
- /* TIZEN_ONLY_FEATURE: ellipsize.marquee, ellipsize.fade for TEXTBLOCK, TEXT part. */
- ted->text.fade_ellipsis = tparent->text.fade_ellipsis;
- /* END */
+ _filter_copy(&ted->filter, &tparent->filter);
+ data_queue_copied_part_nest_lookup(pc, &(tparent->text.id_source), &(ted->text.id_source), &ted->text.id_source_part);
+ data_queue_copied_part_nest_lookup(pc, &(tparent->text.id_text_source), &(ted->text.id_text_source), &ted->text.id_text_source_part);
+ /* TIZEN_ONLY_FEATURE: ellipsize.marquee, ellipsize.fade for TEXTBLOCK, TEXT part. */
+ ted->text.fade_ellipsis = tparent->text.fade_ellipsis;
+ /* END */
+
+ break;
+ }
- break;
- }
case EDJE_PART_TYPE_IMAGE:
- {
- Edje_Part_Description_Image *ied = (Edje_Part_Description_Image *) ed;
- Edje_Part_Description_Image *iparent = (Edje_Part_Description_Image *) parent;
- unsigned int i;
+ {
+ Edje_Part_Description_Image *ied = (Edje_Part_Description_Image *)ed;
+ Edje_Part_Description_Image *iparent = (Edje_Part_Description_Image *)parent;
+ unsigned int i;
- ied->image = iparent->image;
+ ied->image = iparent->image;
- data_queue_image_remove(&ied->image.id, &ied->image.set);
- data_queue_copied_image_lookup(&iparent->image.id, &ied->image.id, &ied->image.set);
+ data_queue_image_remove(&ied->image.id, &ied->image.set);
+ data_queue_copied_image_lookup(&iparent->image.id, &ied->image.id, &ied->image.set);
- ied->image.tweens = calloc(iparent->image.tweens_count,
- sizeof (Edje_Part_Image_Id*));
- for (i = 0; i < iparent->image.tweens_count; i++)
- {
- Edje_Part_Image_Id *iid_new;
+ ied->image.tweens = calloc(iparent->image.tweens_count,
+ sizeof (Edje_Part_Image_Id *));
+ for (i = 0; i < iparent->image.tweens_count; i++)
+ {
+ Edje_Part_Image_Id *iid_new;
- iid = iparent->image.tweens[i];
+ iid = iparent->image.tweens[i];
- iid_new = mem_alloc(SZ(Edje_Part_Image_Id));
- data_queue_image_remove(&ied->image.id, &ied->image.set);
- data_queue_copied_image_lookup(&(iid->id), &(iid_new->id), &(iid_new->set));
- ied->image.tweens[i] = iid_new;
- }
+ iid_new = mem_alloc(SZ(Edje_Part_Image_Id));
+ data_queue_image_remove(&ied->image.id, &ied->image.set);
+ data_queue_copied_image_lookup(&(iid->id), &(iid_new->id), &(iid_new->set));
+ ied->image.tweens[i] = iid_new;
+ }
- _filter_copy(&ied->filter, &iparent->filter);
+ _filter_copy(&ied->filter, &iparent->filter);
+
+ break;
+ }
- break;
- }
case EDJE_PART_TYPE_SNAPSHOT:
- {
- Edje_Part_Description_Snapshot *sed = (Edje_Part_Description_Snapshot*) ed;
- Edje_Part_Description_Snapshot *sparent = (Edje_Part_Description_Snapshot*) parent;
+ {
+ Edje_Part_Description_Snapshot *sed = (Edje_Part_Description_Snapshot *)ed;
+ Edje_Part_Description_Snapshot *sparent = (Edje_Part_Description_Snapshot *)parent;
- _filter_copy(&sed->filter, &sparent->filter);
+ _filter_copy(&sed->filter, &sparent->filter);
+
+ break;
+ }
- break;
- }
case EDJE_PART_TYPE_PROXY:
- {
- Edje_Part_Description_Proxy *ped = (Edje_Part_Description_Proxy*) ed;
- Edje_Part_Description_Proxy *pparent = (Edje_Part_Description_Proxy*) parent;
+ {
+ Edje_Part_Description_Proxy *ped = (Edje_Part_Description_Proxy *)ed;
+ Edje_Part_Description_Proxy *pparent = (Edje_Part_Description_Proxy *)parent;
- data_queue_copied_part_lookup(pc, &(pparent->proxy.id), &(ped->proxy.id));
- ped->proxy.source_clip = pparent->proxy.source_clip;
- ped->proxy.source_visible = pparent->proxy.source_visible;
- _filter_copy(&ped->filter, &pparent->filter);
+ data_queue_copied_part_lookup(pc, &(pparent->proxy.id), &(ped->proxy.id));
+ ped->proxy.source_clip = pparent->proxy.source_clip;
+ ped->proxy.source_visible = pparent->proxy.source_visible;
+ _filter_copy(&ped->filter, &pparent->filter);
+
+ break;
+ }
- break;
- }
case EDJE_PART_TYPE_BOX:
- {
- Edje_Part_Description_Box *bed = (Edje_Part_Description_Box *) ed;
- Edje_Part_Description_Box *bparent = (Edje_Part_Description_Box *) parent;
+ {
+ Edje_Part_Description_Box *bed = (Edje_Part_Description_Box *)ed;
+ Edje_Part_Description_Box *bparent = (Edje_Part_Description_Box *)parent;
- bed->box = bparent->box;
+ bed->box = bparent->box;
+
+ break;
+ }
- break;
- }
case EDJE_PART_TYPE_TABLE:
- {
- Edje_Part_Description_Table *ted = (Edje_Part_Description_Table *) ed;
- Edje_Part_Description_Table *tparent = (Edje_Part_Description_Table *) parent;
+ {
+ Edje_Part_Description_Table *ted = (Edje_Part_Description_Table *)ed;
+ Edje_Part_Description_Table *tparent = (Edje_Part_Description_Table *)parent;
- ted->table = tparent->table;
+ ted->table = tparent->table;
+
+ break;
+ }
- break;
- }
case EDJE_PART_TYPE_EXTERNAL:
+ {
+ Edje_Part_Description_External *eed = (Edje_Part_Description_External *)ed;
+ Edje_Part_Description_External *eparent = (Edje_Part_Description_External *)parent;
+
+ if (eparent->external_params)
{
- Edje_Part_Description_External *eed = (Edje_Part_Description_External *) ed;
- Edje_Part_Description_External *eparent = (Edje_Part_Description_External *) parent;
+ Eina_List *l;
+ Edje_External_Param *param, *new_param;
- if (eparent->external_params)
+ eed->external_params = NULL;
+ EINA_LIST_FOREACH(eparent->external_params, l, param)
{
- Eina_List *l;
- Edje_External_Param *param, *new_param;
-
- eed->external_params = NULL;
- EINA_LIST_FOREACH(eparent->external_params, l, param)
- {
- new_param = mem_alloc(SZ(Edje_External_Param));
- *new_param = *param;
- eed->external_params = eina_list_append(eed->external_params, new_param);
- }
+ new_param = mem_alloc(SZ(Edje_External_Param));
+ *new_param = *param;
+ eed->external_params = eina_list_append(eed->external_params, new_param);
}
- break;
}
+ break;
+ }
+
case EDJE_PART_TYPE_CAMERA:
- {
- Edje_Part_Description_Camera *ced = (Edje_Part_Description_Camera *) ed;
- Edje_Part_Description_Camera *cparent = (Edje_Part_Description_Camera *) parent;
+ {
+ Edje_Part_Description_Camera *ced = (Edje_Part_Description_Camera *)ed;
+ Edje_Part_Description_Camera *cparent = (Edje_Part_Description_Camera *)parent;
- ced->camera = cparent->camera;
+ ced->camera = cparent->camera;
- data_queue_copied_part_lookup(pc, &(cparent->camera.orientation.look_to), &(ced->camera.orientation.look_to));
+ data_queue_copied_part_lookup(pc, &(cparent->camera.orientation.look_to), &(ced->camera.orientation.look_to));
+
+ break;
+ }
- break;
- }
case EDJE_PART_TYPE_LIGHT:
- {
- Edje_Part_Description_Light *led = (Edje_Part_Description_Light *) ed;
- Edje_Part_Description_Light *lparent = (Edje_Part_Description_Light *) parent;
+ {
+ Edje_Part_Description_Light *led = (Edje_Part_Description_Light *)ed;
+ Edje_Part_Description_Light *lparent = (Edje_Part_Description_Light *)parent;
- led->light = lparent->light;
+ led->light = lparent->light;
- data_queue_copied_part_lookup(pc, &(lparent->light.orientation.look_to), &(led->light.orientation.look_to));
+ data_queue_copied_part_lookup(pc, &(lparent->light.orientation.look_to), &(led->light.orientation.look_to));
+
+ break;
+ }
- break;
- }
case EDJE_PART_TYPE_MESH_NODE:
- {
- Edje_Part_Description_Mesh_Node *med = (Edje_Part_Description_Mesh_Node *) ed;
- Edje_Part_Description_Mesh_Node *mparent = (Edje_Part_Description_Mesh_Node *) parent;
+ {
+ Edje_Part_Description_Mesh_Node *med = (Edje_Part_Description_Mesh_Node *)ed;
+ Edje_Part_Description_Mesh_Node *mparent = (Edje_Part_Description_Mesh_Node *)parent;
- med->mesh_node = mparent->mesh_node;
+ med->mesh_node = mparent->mesh_node;
- data_queue_model_remove(&med->mesh_node.mesh.id, &med->mesh_node.mesh.set);
- data_queue_copied_model_lookup(&mparent->mesh_node.mesh.id, &med->mesh_node.mesh.id, &med->mesh_node.mesh.set);
+ data_queue_model_remove(&med->mesh_node.mesh.id, &med->mesh_node.mesh.set);
+ data_queue_copied_model_lookup(&mparent->mesh_node.mesh.id, &med->mesh_node.mesh.id, &med->mesh_node.mesh.set);
- data_queue_image_remove(&med->mesh_node.texture.id, &med->mesh_node.texture.set);
- data_queue_copied_model_lookup(&mparent->mesh_node.texture.id, &med->mesh_node.texture.id, &med->mesh_node.texture.set);
+ data_queue_image_remove(&med->mesh_node.texture.id, &med->mesh_node.texture.set);
+ data_queue_copied_model_lookup(&mparent->mesh_node.texture.id, &med->mesh_node.texture.id, &med->mesh_node.texture.set);
- data_queue_copied_part_lookup(pc, &(mparent->mesh_node.orientation.look_to), &(med->mesh_node.orientation.look_to));
+ data_queue_copied_part_lookup(pc, &(mparent->mesh_node.orientation.look_to), &(med->mesh_node.orientation.look_to));
+
+ break;
+ }
- break;
- }
case EDJE_PART_TYPE_VECTOR:
- {
- Edje_Part_Description_Vector *ied = (Edje_Part_Description_Vector *) ed;
- Edje_Part_Description_Vector *iparent = (Edje_Part_Description_Vector *) parent;
- ied->vg.set = iparent->vg.set;
- ied->vg.id = iparent->vg.id;
- break;
- }
+ {
+ Edje_Part_Description_Vector *ied = (Edje_Part_Description_Vector *)ed;
+ Edje_Part_Description_Vector *iparent = (Edje_Part_Description_Vector *)parent;
+ ied->vg.set = iparent->vg.set;
+ ied->vg.id = iparent->vg.id;
+ break;
+ }
}
}
Causes the part to use another part content as the content of this part.
Only work with PROXY part.
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_source(void)
{
exit(-1);
}
- ed = (Edje_Part_Description_Proxy*) current_desc;
+ ed = (Edje_Part_Description_Proxy *)current_desc;
name = parse_str(0);
(!ep->default_desc->state.name && !strcmp(ed->state.name, "default") && ed->state.value == ep->default_desc->state.value))
{
if (ep->type == EDJE_PART_TYPE_IMAGE)
- _edje_part_description_image_remove((Edje_Part_Description_Image*) ed);
+ _edje_part_description_image_remove((Edje_Part_Description_Image *)ed);
free(ed);
ep->other.desc_count--;
ep->other.desc = realloc(ep->other.desc,
- sizeof (Edje_Part_Description_Common*) * ep->other.desc_count);
+ sizeof (Edje_Part_Description_Common *) * ep->other.desc_count);
current_desc = ep->default_desc;
}
else if (ep->other.desc_count)
if (!strcmp(ed->state.name, ep->other.desc[i]->state.name) && ed->state.value == ep->other.desc[i]->state.value)
{
if (ep->type == EDJE_PART_TYPE_IMAGE)
- _edje_part_description_image_remove((Edje_Part_Description_Image*) ed);
+ _edje_part_description_image_remove((Edje_Part_Description_Image *)ed);
free(ed);
ep->other.desc_count--;
ep->other.desc = realloc(ep->other.desc,
- sizeof (Edje_Part_Description_Common*) * ep->other.desc_count);
+ sizeof (Edje_Part_Description_Common *) * ep->other.desc_count);
current_desc = ep->other.desc[i];
break;
}
Defaults: "default" 0.0
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_state(void)
{
ep = current_part;
s = parse_str(0);
- if (!strcmp (s, "custom"))
+ if (!strcmp(s, "custom"))
{
ERR("parse error %s:%i. invalid state name: '%s'.",
file_in, line - 1, s);
Defaults: 1
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_visible(void)
{
if (current_part->type == EDJE_PART_TYPE_SPACER)
{
- ERR("parse error %s:%i. SPACER part can't have a visibility defined",
- file_in, line - 1);
- exit(-1);
+ ERR("parse error %s:%i. SPACER part can't have a visibility defined",
+ file_in, line - 1);
+ exit(-1);
}
current_desc->visible = parse_bool(0);
if (current_part->type == EDJE_PART_TYPE_SPACER)
{
- ERR("parse error %s:%i. SPACER part can't have a visibility defined",
- file_in, line - 1);
- exit(-1);
+ ERR("parse error %s:%i. SPACER part can't have a visibility defined",
+ file_in, line - 1);
+ exit(-1);
}
current_desc->visible = 1;
if (current_part->type == EDJE_PART_TYPE_SPACER)
{
- ERR("parse error %s:%i. SPACER part can't have a visibility defined",
- file_in, line - 1);
- exit(-1);
+ ERR("parse error %s:%i. SPACER part can't have a visibility defined",
+ file_in, line - 1);
+ exit(-1);
}
current_desc->visible = 0;
Defaults: 0
@since 1.19
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_no_render(void)
{
if (current_part->type == EDJE_PART_TYPE_SPACER)
{
- ERR("parse error %s:%i. SPACER part can't be marked as no_render",
- file_in, line - 1);
- exit(-1);
+ ERR("parse error %s:%i. SPACER part can't be marked as no_render",
+ file_in, line - 1);
+ exit(-1);
}
if (check_range_arg_count(0, 1) == 1)
Defaults: NONE
@since 1.7
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_limit(void)
{
check_arg_count(1);
current_desc->limit = parse_enum(0,
- "NONE", 0,
- "WIDTH", 1,
- "HEIGHT", 2,
- "BOTH", 3);
+ "NONE", 0,
+ "WIDTH", 1,
+ "HEIGHT", 2,
+ "BOTH", 3);
if (current_desc->limit)
{
pc = eina_list_data_get(eina_list_last(edje_collections));
count = pc->limits.parts_count++;
- pc->limits.parts = realloc(pc->limits.parts,
- pc->limits.parts_count * sizeof (Edje_Part_Limit));
- data_queue_part_reallocated_lookup(pc, current_part->name,
- (unsigned char**) &(pc->limits.parts),
- (unsigned char*) &pc->limits.parts[count].part - (unsigned char*) pc->limits.parts); //fixme
+ pc->limits.parts = realloc(pc->limits.parts,
+ pc->limits.parts_count * sizeof (Edje_Part_Limit));
+ data_queue_part_reallocated_lookup(pc, current_part->name,
+ (unsigned char **)&(pc->limits.parts),
+ (unsigned char *)&pc->limits.parts[count].part - (unsigned char *)pc->limits.parts); //fixme
}
}
Defaults: 0.5 0.5 (0.5)
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_align(void)
{
Defaults: 0 0
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_fixed(void)
{
Defaults: 0 0
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_min(void)
{
check_min_arg_count(1);
- if (is_param(1)) {
- current_desc->min.w = parse_int_range(0, 0, 0x7fffffff);
- current_desc->min.h = parse_int_range(1, 0, 0x7fffffff);
- } else {
- char *tmp;
+ if (is_param(1))
+ {
+ current_desc->min.w = parse_int_range(0, 0, 0x7fffffff);
+ current_desc->min.h = parse_int_range(1, 0, 0x7fffffff);
+ }
+ else
+ {
+ char *tmp;
- tmp = parse_str(0);
- if ((current_part->type != EDJE_PART_TYPE_IMAGE && current_part->type != EDJE_PART_TYPE_GROUP) ||
- !tmp || strcmp(tmp, "SOURCE") != 0)
- {
- free(tmp);
- ERR("parse error %s:%i. "
- "Only IMAGE and GROUP part can have a min: SOURCE; defined",
- file_in, line - 1);
- exit(-1);
- }
- free(tmp);
+ tmp = parse_str(0);
+ if ((current_part->type != EDJE_PART_TYPE_IMAGE && current_part->type != EDJE_PART_TYPE_GROUP) ||
+ !tmp || strcmp(tmp, "SOURCE") != 0)
+ {
+ free(tmp);
+ ERR("parse error %s:%i. "
+ "Only IMAGE and GROUP part can have a min: SOURCE; defined",
+ file_in, line - 1);
+ exit(-1);
+ }
+ free(tmp);
- current_desc->min.limit = EINA_TRUE;
- }
+ current_desc->min.limit = EINA_TRUE;
+ }
}
/**
Defaults: 1.0 1.0
@since 1.2
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_minmul(void)
{
Defaults: -1 -1
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_max(void)
{
check_min_arg_count(1);
- if (is_param(1)) {
- current_desc->max.w = parse_int_range(0, -1, 0x7fffffff);
- current_desc->max.h = parse_int_range(1, -1, 0x7fffffff);
- } else {
- char *tmp;
+ if (is_param(1))
+ {
+ current_desc->max.w = parse_int_range(0, -1, 0x7fffffff);
+ current_desc->max.h = parse_int_range(1, -1, 0x7fffffff);
+ }
+ else
+ {
+ char *tmp;
- tmp = parse_str(0);
- if (current_part->type != EDJE_PART_TYPE_IMAGE ||
- !tmp || strcmp(tmp, "SOURCE") != 0)
- {
- free(tmp);
- ERR("parse error %s:%i. "
- "Only IMAGE part can have a max: SOURCE; defined",
- file_in, line - 1);
- exit(-1);
- }
- free(tmp);
+ tmp = parse_str(0);
+ if (current_part->type != EDJE_PART_TYPE_IMAGE ||
+ !tmp || strcmp(tmp, "SOURCE") != 0)
+ {
+ free(tmp);
+ ERR("parse error %s:%i. "
+ "Only IMAGE part can have a max: SOURCE; defined",
+ file_in, line - 1);
+ exit(-1);
+ }
+ free(tmp);
- current_desc->max.limit = EINA_TRUE;
- }
+ current_desc->max.limit = EINA_TRUE;
+ }
}
/**
"min" and "max" property in description can be overridden by the size class
at runtime.
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_size_class(void)
{
Defaults: 0.0 0.0
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_step(void)
{
Defaults: 0.0 0.0
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_aspect(void)
{
Defaults: NONE
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_aspect_preference(void)
{
check_arg_count(1);
- current_desc->aspect.prefer = parse_enum(0,
- "NONE", EDJE_ASPECT_PREFER_NONE,
- "VERTICAL", EDJE_ASPECT_PREFER_VERTICAL,
- "HORIZONTAL", EDJE_ASPECT_PREFER_HORIZONTAL,
- "BOTH", EDJE_ASPECT_PREFER_BOTH,
- "SOURCE", EDJE_ASPECT_PREFER_SOURCE,
- NULL);
+ current_desc->aspect.prefer = parse_enum(0,
+ "NONE", EDJE_ASPECT_PREFER_NONE,
+ "VERTICAL", EDJE_ASPECT_PREFER_VERTICAL,
+ "HORIZONTAL", EDJE_ASPECT_PREFER_HORIZONTAL,
+ "BOTH", EDJE_ASPECT_PREFER_BOTH,
+ "SOURCE", EDJE_ASPECT_PREFER_SOURCE,
+ NULL);
}
/**
values can be modified by the "color", "color2" and "color3"
properties set below.
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_color_class(void)
{
if (current_part->type == EDJE_PART_TYPE_SPACER)
{
- ERR("parse error %s:%i. SPACER part can't have a color defined",
- file_in, line - 1);
- exit(-1);
+ ERR("parse error %s:%i. SPACER part can't have a color defined",
+ file_in, line - 1);
+ exit(-1);
}
current_desc->color_class = parse_str(0);
Defaults: 255 255 255 255
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_color(void)
{
if (current_part->type == EDJE_PART_TYPE_SPACER)
{
- ERR("parse error %s:%i. SPACER part can't have a color defined",
- file_in, line - 1);
- exit(-1);
+ ERR("parse error %s:%i. SPACER part can't have a color defined",
+ file_in, line - 1);
+ exit(-1);
}
parse_color(0, &(current_desc->color.r));
Defaults: 0 0 0 255
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_color2(void)
{
if (current_part->type == EDJE_PART_TYPE_SPACER)
{
- ERR("parse error %s:%i. SPACER part can't have a color defined",
- file_in, line - 1);
- exit(-1);
+ ERR("parse error %s:%i. SPACER part can't have a color defined",
+ file_in, line - 1);
+ exit(-1);
}
parse_color(0, &(current_desc->color2.r));
Defaults: 0 0 0 128
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_color3(void)
{
exit(-1);
}
- ed = (Edje_Part_Description_Text*)current_desc;
+ ed = (Edje_Part_Description_Text *)current_desc;
parse_color(0, &(ed->text.color3.r));
}
happen at the end of the animation, when the new state is finally set
(this is similar to the 'visible' flag).
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_clip_to_id(void)
{
check_arg_count(1);
pc = eina_list_data_get(eina_list_last(edje_collections));
- {
- char *name;
+ {
+ char *name;
- name = parse_str(0);
- data_queue_part_lookup(pc, name, &(current_desc->clip_to_id));
- free(name);
- }
+ name = parse_str(0);
+ data_queue_part_lookup(pc, name, &(current_desc->clip_to_id));
+ free(name);
+ }
}
/**
Defaults: 0
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_offset_scale(void)
{
@li rel1.relative: 0.0 0.0
@li rel2.relative: 1.0 1.0
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_rel1_relative(void)
{
@li rel1.offset: 0 0
@li rel2.offset: -1 -1
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_rel1_offset(void)
{
container. Setting to "" will unset this value for inherited
parts.
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_rel1_to_set(const char *name)
{
part's container. Simply put affects the first parameter of "relative".
Setting to "" will unset this value for inherited parts.
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_rel_to_x(void)
{
part's container. Simply put, affects the second parameter of
"relative". Setting to "" will unset this value for inherited parts.
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_rel_to_y(void)
{
Moves an edge of the part to the position of the edge of given part or
whole edje group. (GROUP means edje group that the part belong to)
@endproperty
-*/
+ */
static void
check_has_anchors(void)
The second parameter of position enumeration can be omitted. (Default
value is BOTTOM, but TOP when the part is anchored to edje group)
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_anchors_top(void)
{
The second parameter of position enumeration can be omitted. (Default
value is TOP, but BOTTOM when the part is anchored to edje group)
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_anchors_bottom(void)
{
The second parameter of position enumeration can be omitted. (Default
value is RIGHT, but LEFT when the part is anchored to edje group)
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_anchors_left(void)
{
The second parameter of position enumeration can be omitted. (Default
value is LEFT, but RIGHT when the part is anchored to edje group)
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_anchors_right(void)
{
The second parameter of position enumeration can be omitted. (Default
value is VERTICAL_CENTER)
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_anchors_vertical_center(void)
{
The second parameter of position enumeration can be omitted. (Default
value is HORIZONTAL_CENTER)
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_anchors_horizontal_center(void)
{
The second parameter of direction enumeration can be omitted. (Default
value is BOTH)
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_anchors_fill(void)
{
switch (current_anchors->fill.base.fill)
{
case EDJE_PART_ANCHOR_FILL_BOTH:
- if (strcmp("GROUP", name) || param_had_quote(0))
- {
- data_queue_part_lookup(pc, name, &(current_desc->rel1.id_x));
- data_queue_part_lookup(pc, name, &(current_desc->rel2.id_x));
- data_queue_part_lookup(pc, name, &(current_desc->rel1.id_y));
- data_queue_part_lookup(pc, name, &(current_desc->rel2.id_y));
- }
- current_desc->align.x = 0.5;
- current_desc->align.y = 0.5;
- current_desc->fixed.w = 0;
- current_desc->fixed.h = 0;
- break;
+ if (strcmp("GROUP", name) || param_had_quote(0))
+ {
+ data_queue_part_lookup(pc, name, &(current_desc->rel1.id_x));
+ data_queue_part_lookup(pc, name, &(current_desc->rel2.id_x));
+ data_queue_part_lookup(pc, name, &(current_desc->rel1.id_y));
+ data_queue_part_lookup(pc, name, &(current_desc->rel2.id_y));
+ }
+ current_desc->align.x = 0.5;
+ current_desc->align.y = 0.5;
+ current_desc->fixed.w = 0;
+ current_desc->fixed.h = 0;
+ break;
+
case EDJE_PART_ANCHOR_FILL_HORIZONTAL:
- if (strcmp("GROUP", name) || param_had_quote(0))
- {
- data_queue_part_lookup(pc, name, &(current_desc->rel1.id_x));
- data_queue_part_lookup(pc, name, &(current_desc->rel2.id_x));
- }
- current_desc->align.x = 0.5;
- current_desc->fixed.w = 0;
- break;
+ if (strcmp("GROUP", name) || param_had_quote(0))
+ {
+ data_queue_part_lookup(pc, name, &(current_desc->rel1.id_x));
+ data_queue_part_lookup(pc, name, &(current_desc->rel2.id_x));
+ }
+ current_desc->align.x = 0.5;
+ current_desc->fixed.w = 0;
+ break;
+
case EDJE_PART_ANCHOR_FILL_VERTICAL:
- if (strcmp("GROUP", name) || param_had_quote(0))
- {
- data_queue_part_lookup(pc, name, &(current_desc->rel1.id_y));
- data_queue_part_lookup(pc, name, &(current_desc->rel2.id_y));
- }
- current_desc->align.y = 0.5;
- current_desc->fixed.h = 0;
- break;
+ if (strcmp("GROUP", name) || param_had_quote(0))
+ {
+ data_queue_part_lookup(pc, name, &(current_desc->rel1.id_y));
+ data_queue_part_lookup(pc, name, &(current_desc->rel2.id_y));
+ }
+ current_desc->align.y = 0.5;
+ current_desc->fixed.h = 0;
+ break;
}
free(name);
Affects the edge position a fixed number of pixels along each direction.
Margins will scale its size with an edje scaling factor.
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_anchors_margin(void)
{
In an animation, this is the first and last image displayed. It's
required in any image part
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_image_normal(void)
{
exit(-1);
}
- ed = (Edje_Part_Description_Image*) current_desc;
+ ed = (Edje_Part_Description_Image *)current_desc;
{
char *name;
the order they are listed, during the transition to the state they are
declared in; the "normal" image is the final state.
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_image_tween(void)
{
exit(-1);
}
- ed = (Edje_Part_Description_Image*) current_desc;
+ ed = (Edje_Part_Description_Image *)current_desc;
{
char *name;
iid = mem_alloc(SZ(Edje_Part_Image_Id));
ed->image.tweens_count++;
ed->image.tweens = realloc(ed->image.tweens,
- sizeof (Edje_Part_Image_Id*) * ed->image.tweens_count);
+ sizeof (Edje_Part_Image_Id *) * ed->image.tweens_count);
ed->image.tweens[ed->image.tweens_count - 1] = iid;
name = parse_str(0);
data_queue_image_remove(&(iid->id), &(iid->set));
Defaults: 0 0 0 0
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_image_border(void)
{
exit(-1);
}
- ed = (Edje_Part_Description_Image*) current_desc;
+ ed = (Edje_Part_Description_Image *)current_desc;
ed->image.border.l = parse_int_range(0, 0, 0x7fffffff);
ed->image.border.r = parse_int_range(1, 0, 0x7fffffff);
@li 1 or DEFAULT
@li SOLID
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_image_middle(void)
{
exit(-1);
}
- ed = (Edje_Part_Description_Image*) current_desc;
+ ed = (Edje_Part_Description_Image *)current_desc;
- ed->image.border.no_fill = parse_enum(0,
- "1", 0,
- "DEFAULT", 0,
- "0", 1,
- "NONE", 1,
- "SOLID", 2,
- NULL);
+ ed->image.border.no_fill = parse_enum(0,
+ "1", 0,
+ "DEFAULT", 0,
+ "0", 1,
+ "NONE", 1,
+ "SOLID", 2,
+ NULL);
}
/**
Defaults: 0.0
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_image_border_scale_by(void)
{
exit(-1);
}
- ed = (Edje_Part_Description_Image*) current_desc;
+ ed = (Edje_Part_Description_Image *)current_desc;
ed->image.border.scale_by = FROM_DOUBLE(parse_float_range(0, 0.0, 999999999.0));
}
Defaults: 0
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_image_border_scale(void)
{
exit(-1);
}
- ed = (Edje_Part_Description_Image*) current_desc;
+ ed = (Edje_Part_Description_Image *)current_desc;
- ed->image.border.scale = parse_bool(0);
+ ed->image.border.scale = parse_bool(0);
}
/**
Defaults: NONE
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_image_scale_hint(void)
{
exit(-1);
}
- ed = (Edje_Part_Description_Image*) current_desc;
+ ed = (Edje_Part_Description_Image *)current_desc;
- ed->image.scale_hint = parse_enum(0,
- "NONE", EVAS_IMAGE_SCALE_HINT_NONE,
- "DYNAMIC", EVAS_IMAGE_SCALE_HINT_DYNAMIC,
- "STATIC", EVAS_IMAGE_SCALE_HINT_STATIC,
- "0", EVAS_IMAGE_SCALE_HINT_NONE,
- NULL);
+ ed->image.scale_hint = parse_enum(0,
+ "NONE", EVAS_IMAGE_SCALE_HINT_NONE,
+ "DYNAMIC", EVAS_IMAGE_SCALE_HINT_DYNAMIC,
+ "STATIC", EVAS_IMAGE_SCALE_HINT_STATIC,
+ "0", EVAS_IMAGE_SCALE_HINT_NONE,
+ NULL);
}
/** @edcsubsection{collections_group_parts_description_fill,
Defaults: 1
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_fill_smooth(void)
{
switch (current_part->type)
{
case EDJE_PART_TYPE_IMAGE:
- {
- Edje_Part_Description_Image *ed;
+ {
+ Edje_Part_Description_Image *ed;
- ed = (Edje_Part_Description_Image*) current_desc;
+ ed = (Edje_Part_Description_Image *)current_desc;
+
+ fill = &ed->image.fill;
+ break;
+ }
- fill = &ed->image.fill;
- break;
- }
case EDJE_PART_TYPE_PROXY:
- {
- Edje_Part_Description_Proxy *ed;
+ {
+ Edje_Part_Description_Proxy *ed;
- ed = (Edje_Part_Description_Proxy*) current_desc;
+ ed = (Edje_Part_Description_Proxy *)current_desc;
+
+ fill = &ed->proxy.fill;
+ break;
+ }
- fill = &ed->proxy.fill;
- break;
- }
default:
- {
- ERR("parse error %s:%i. "
- "image and proxy attributes in non-IMAGE, non-PROXY `%s` part (%i).",
- file_in, line - 1, current_part->name, current_part->type);
- exit(-1);
- }
+ {
+ ERR("parse error %s:%i. "
+ "image and proxy attributes in non-IMAGE, non-PROXY `%s` part (%i).",
+ file_in, line - 1, current_part->name, current_part->type);
+ exit(-1);
+ }
}
fill->smooth = parse_bool(0);
Defaults: SCALE
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_fill_type(void)
{
switch (current_part->type)
{
case EDJE_PART_TYPE_IMAGE:
- {
- Edje_Part_Description_Image *ed;
+ {
+ Edje_Part_Description_Image *ed;
- ed = (Edje_Part_Description_Image*) current_desc;
+ ed = (Edje_Part_Description_Image *)current_desc;
+
+ fill = &ed->image.fill;
+ break;
+ }
- fill = &ed->image.fill;
- break;
- }
case EDJE_PART_TYPE_PROXY:
- {
- Edje_Part_Description_Proxy *ed;
+ {
+ Edje_Part_Description_Proxy *ed;
- ed = (Edje_Part_Description_Proxy*) current_desc;
+ ed = (Edje_Part_Description_Proxy *)current_desc;
+
+ fill = &ed->proxy.fill;
+ break;
+ }
- fill = &ed->proxy.fill;
- break;
- }
default:
- {
- ERR("parse error %s:%i. "
- "image and proxy attributes in non-IMAGE, non-PROXY part.",
- file_in, line - 1);
- exit(-1);
- }
+ {
+ ERR("parse error %s:%i. "
+ "image and proxy attributes in non-IMAGE, non-PROXY part.",
+ file_in, line - 1);
+ exit(-1);
+ }
}
fill->type = parse_enum(0,
Defaults: 0.0 0.0
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_fill_origin_relative(void)
{
switch (current_part->type)
{
case EDJE_PART_TYPE_IMAGE:
- {
- Edje_Part_Description_Image *ed;
+ {
+ Edje_Part_Description_Image *ed;
- ed = (Edje_Part_Description_Image*) current_desc;
+ ed = (Edje_Part_Description_Image *)current_desc;
+
+ fill = &ed->image.fill;
+ break;
+ }
- fill = &ed->image.fill;
- break;
- }
case EDJE_PART_TYPE_PROXY:
- {
- Edje_Part_Description_Proxy *ed;
+ {
+ Edje_Part_Description_Proxy *ed;
+
+ ed = (Edje_Part_Description_Proxy *)current_desc;
- ed = (Edje_Part_Description_Proxy*) current_desc;
+ fill = &ed->proxy.fill;
+ break;
+ }
- fill = &ed->proxy.fill;
- break;
- }
default:
- {
- ERR("parse error %s:%i. "
- "image and proxy attributes in non-IMAGE, non-PROXY part.",
- file_in, line - 1);
- exit(-1);
- }
+ {
+ ERR("parse error %s:%i. "
+ "image and proxy attributes in non-IMAGE, non-PROXY part.",
+ file_in, line - 1);
+ exit(-1);
+ }
}
fill->pos_rel_x = FROM_DOUBLE(parse_float_range(0, -999999999.0, 999999999.0));
Defaults: 0 0
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_fill_origin_offset(void)
{
switch (current_part->type)
{
case EDJE_PART_TYPE_IMAGE:
- {
- Edje_Part_Description_Image *ed;
+ {
+ Edje_Part_Description_Image *ed;
- ed = (Edje_Part_Description_Image*) current_desc;
+ ed = (Edje_Part_Description_Image *)current_desc;
+
+ fill = &ed->image.fill;
+ break;
+ }
- fill = &ed->image.fill;
- break;
- }
case EDJE_PART_TYPE_PROXY:
- {
- Edje_Part_Description_Proxy *ed;
+ {
+ Edje_Part_Description_Proxy *ed;
- ed = (Edje_Part_Description_Proxy*) current_desc;
+ ed = (Edje_Part_Description_Proxy *)current_desc;
+
+ fill = &ed->proxy.fill;
+ break;
+ }
- fill = &ed->proxy.fill;
- break;
- }
default:
- {
- ERR("parse error %s:%i. "
- "image and proxy attributes in non-IMAGE, non-PROXY part.",
- file_in, line - 1);
- exit(-1);
- }
+ {
+ ERR("parse error %s:%i. "
+ "image and proxy attributes in non-IMAGE, non-PROXY part.",
+ file_in, line - 1);
+ exit(-1);
+ }
}
fill->pos_abs_x = parse_int(0);
Defaults: 1.0 1.0
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_fill_size_relative(void)
{
switch (current_part->type)
{
case EDJE_PART_TYPE_IMAGE:
- {
- Edje_Part_Description_Image *ed;
+ {
+ Edje_Part_Description_Image *ed;
- ed = (Edje_Part_Description_Image*) current_desc;
+ ed = (Edje_Part_Description_Image *)current_desc;
+
+ fill = &ed->image.fill;
+ break;
+ }
- fill = &ed->image.fill;
- break;
- }
case EDJE_PART_TYPE_PROXY:
- {
- Edje_Part_Description_Proxy *ed;
+ {
+ Edje_Part_Description_Proxy *ed;
- ed = (Edje_Part_Description_Proxy*) current_desc;
+ ed = (Edje_Part_Description_Proxy *)current_desc;
+
+ fill = &ed->proxy.fill;
+ break;
+ }
- fill = &ed->proxy.fill;
- break;
- }
default:
- {
- ERR("parse error %s:%i. "
- "image and proxy attributes in non-IMAGE, non-PROXY part.",
- file_in, line - 1);
- exit(-1);
- }
+ {
+ ERR("parse error %s:%i. "
+ "image and proxy attributes in non-IMAGE, non-PROXY part.",
+ file_in, line - 1);
+ exit(-1);
+ }
}
fill->rel_x = FROM_DOUBLE(parse_float_range(0, 0.0, 999999999.0));
Defaults: 0 0
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_fill_size_offset(void)
{
switch (current_part->type)
{
case EDJE_PART_TYPE_IMAGE:
- {
- Edje_Part_Description_Image *ed;
+ {
+ Edje_Part_Description_Image *ed;
- ed = (Edje_Part_Description_Image*) current_desc;
+ ed = (Edje_Part_Description_Image *)current_desc;
+
+ fill = &ed->image.fill;
+ break;
+ }
- fill = &ed->image.fill;
- break;
- }
case EDJE_PART_TYPE_PROXY:
- {
- Edje_Part_Description_Proxy *ed;
+ {
+ Edje_Part_Description_Proxy *ed;
- ed = (Edje_Part_Description_Proxy*) current_desc;
+ ed = (Edje_Part_Description_Proxy *)current_desc;
+
+ fill = &ed->proxy.fill;
+ break;
+ }
- fill = &ed->proxy.fill;
- break;
- }
default:
- {
- ERR("parse error %s:%i. "
- "image and proxy attributes in non-IMAGE, non-PROXY part.",
- file_in, line - 1);
- exit(-1);
- }
+ {
+ ERR("parse error %s:%i. "
+ "image and proxy attributes in non-IMAGE, non-PROXY part.",
+ file_in, line - 1);
+ exit(-1);
+ }
}
fill->abs_x = parse_int(0);
fill->abs_y = parse_int(1);
}
-
/** @edcsubsection{collections_group_parts_description_text,
* Group.Parts.Part.Description.Text} */
Sets the default content of a text part, normally the application is
the one changing its value.
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_text_text(void)
{
exit(-1);
}
- ed = (Edje_Part_Description_Text*) current_desc;
+ ed = (Edje_Part_Description_Text *)current_desc;
- for (i = 0; ;i++)
+ for (i = 0;; i++)
{
- char *s;
+ char *s;
- if (!is_param(i)) break;
- s = parse_str(i);
- if (!str) str = s;
- else
- {
- str = realloc(str, strlen(str) + strlen(s) + 1);
- strcat(str, s);
- free(s);
- }
+ if (!is_param(i)) break;
+ s = parse_str(i);
+ if (!str) str = s;
+ else
+ {
+ str = realloc(str, strlen(str) + strlen(s) + 1);
+ strcat(str, s);
+ free(s);
+ }
}
ed->text.text.str = str;
}
This is the domain name of the .mo file which has to be checked
for translation.
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_text_domain(void)
{
(current_part->type != EDJE_PART_TYPE_TEXTBLOCK))
{
ERR("parse error %s:%i. text attributes in non-TEXT part.",
- file_in, line - 1);
+ file_in, line - 1);
exit(-1);
}
- ed = (Edje_Part_Description_Text*) current_desc;
+ ed = (Edje_Part_Description_Text *)current_desc;
ed->text.domain = parse_str(0);
}
Similar to color_class, this is the name used by the application
to alter the font family and size at runtime.
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_text_text_class(void)
{
exit(-1);
}
- ed = (Edje_Part_Description_Text*) current_desc;
+ ed = (Edje_Part_Description_Text *)current_desc;
ed->text.text_class = parse_str(0);
}
This sets the font family to one of the aliases set up in the "fonts"
block. Can be overridden by the application.
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_text_font(void)
{
exit(-1);
}
- ed = (Edje_Part_Description_Text*) current_desc;
+ ed = (Edje_Part_Description_Text *)current_desc;
ed->text.font.str = parse_str(0);
}
Causes the part to use the default style and tags defined in the
"style" block with the specified name.
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_text_style(void)
{
exit(-1);
}
- ed = (Edje_Part_Description_Text*) current_desc;
+ ed = (Edje_Part_Description_Text *)current_desc;
ed->text.style.str = parse_str(0);
}
to replace every character to hide the details of the entry. Normally
you would use a "*", but you can use anything you like.
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_text_repch(void)
{
exit(-1);
}
- ed = (Edje_Part_Description_Text*) current_desc;
+ ed = (Edje_Part_Description_Text *)current_desc;
ed->text.repch.str = parse_str(0);
}
Defaults: 0
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_text_size(void)
{
exit(-1);
}
- ed = (Edje_Part_Description_Text*)current_desc;
+ ed = (Edje_Part_Description_Text *)current_desc;
ed->text.size = parse_int_range(0, 0, 255);
}
Defaults: 0 0
@since 1.1
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_text_size_range(void)
{
exit(-1);
}
- ed = (Edje_Part_Description_Text*) current_desc;
+ ed = (Edje_Part_Description_Text *)current_desc;
ed->text.size_range_min = parse_int_range(0, 0, 255);
ed->text.size_range_max = parse_int_range(1, 0, 255);
Defaults: 0 0
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_text_fit(void)
{
exit(-1);
}
- ed = (Edje_Part_Description_Text*) current_desc;
+ ed = (Edje_Part_Description_Text *)current_desc;
ed->text.fit_x = parse_bool(0);
ed->text.fit_y = parse_bool(1);
Defaults: 0 0
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_text_min(void)
{
exit(-1);
}
- ed = (Edje_Part_Description_Text*)current_desc;
+ ed = (Edje_Part_Description_Text *)current_desc;
ed->text.min_x = parse_bool(0);
ed->text.min_y = parse_bool(1);
Defaults: 0 0
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_text_max(void)
{
exit(-1);
}
- ed = (Edje_Part_Description_Text*) current_desc;
+ ed = (Edje_Part_Description_Text *)current_desc;
ed->text.max_x = parse_bool(0);
ed->text.max_y = parse_bool(1);
Defaults: 0.5 0.5
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_text_align(void)
{
exit(-1);
}
- ed = (Edje_Part_Description_Text*) current_desc;
+ ed = (Edje_Part_Description_Text *)current_desc;
ed->text.align.x = FROM_DOUBLE(parse_float_range(0, -1.0, 1.0));
ed->text.align.y = FROM_DOUBLE(parse_float_range(1, 0.0, 1.0));
Causes the part to use the text properties (like font and size) of
another part and update them as they change.
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_text_source(void)
{
exit(-1);
}
- ed = (Edje_Part_Description_Text*) current_desc;
+ ed = (Edje_Part_Description_Text *)current_desc;
{
char *name;
Causes the part to display the text content of another part and update
them as they change.
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_text_text_source(void)
{
exit(-1);
}
- ed = (Edje_Part_Description_Text*) current_desc;
+ ed = (Edje_Part_Description_Text *)current_desc;
{
char *name;
Defaults: 0.0
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_text_ellipsis(void)
{
exit(-1);
}
- ed = (Edje_Part_Description_Text*) current_desc;
+ ed = (Edje_Part_Description_Text *)current_desc;
ed->text.ellipsis = parse_float_range(0, -1.0, 1.0);
}
Defaults: "horizontal"
@endproperty
-*/
-static void st_collections_group_parts_part_description_box_layout(void)
+ */
+static void
+st_collections_group_parts_part_description_box_layout(void)
{
Edje_Part_Description_Box *ed;
exit(-1);
}
- ed = (Edje_Part_Description_Box*) current_desc;
+ ed = (Edje_Part_Description_Box *)current_desc;
ed->box.layout = parse_str(0);
if (is_param(1))
Defaults: 0.5 0.5
@endproperty
-*/
-static void st_collections_group_parts_part_description_box_align(void)
+ */
+static void
+st_collections_group_parts_part_description_box_align(void)
{
Edje_Part_Description_Box *ed;
exit(-1);
}
- ed = (Edje_Part_Description_Box*) current_desc;
+ ed = (Edje_Part_Description_Box *)current_desc;
ed->box.align.x = FROM_DOUBLE(parse_float_range(0, -1.0, 1.0));
ed->box.align.y = FROM_DOUBLE(parse_float_range(1, -1.0, 1.0));
Defaults: 0 0
@endproperty
-*/
-static void st_collections_group_parts_part_description_box_padding(void)
+ */
+static void
+st_collections_group_parts_part_description_box_padding(void)
{
Edje_Part_Description_Box *ed;
exit(-1);
}
- ed = (Edje_Part_Description_Box*) current_desc;
+ ed = (Edje_Part_Description_Box *)current_desc;
ed->box.padding.x = parse_int_range(0, 0, 0x7fffffff);
ed->box.padding.y = parse_int_range(1, 0, 0x7fffffff);
Defaults: 0 0
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_box_min(void)
{
exit(-1);
}
- ed = (Edje_Part_Description_Box*) current_desc;
+ ed = (Edje_Part_Description_Box *)current_desc;
ed->box.min.h = parse_bool(0);
ed->box.min.v = parse_bool(1);
}
-
/** @edcsubsection{collections_group_parts_description_table,
* Group.Parts.Part.Description.Table} */
Defaults: NONE
@endproperty
-*/
-static void st_collections_group_parts_part_description_table_homogeneous(void)
+ */
+static void
+st_collections_group_parts_part_description_table_homogeneous(void)
{
Edje_Part_Description_Table *ed;
exit(-1);
}
- ed = (Edje_Part_Description_Table*) current_desc;
+ ed = (Edje_Part_Description_Table *)current_desc;
ed->table.homogeneous = parse_enum(0,
- "NONE", EDJE_OBJECT_TABLE_HOMOGENEOUS_NONE,
- "TABLE", EDJE_OBJECT_TABLE_HOMOGENEOUS_TABLE,
- "ITEM", EDJE_OBJECT_TABLE_HOMOGENEOUS_ITEM,
- NULL);
+ "NONE", EDJE_OBJECT_TABLE_HOMOGENEOUS_NONE,
+ "TABLE", EDJE_OBJECT_TABLE_HOMOGENEOUS_TABLE,
+ "ITEM", EDJE_OBJECT_TABLE_HOMOGENEOUS_ITEM,
+ NULL);
}
/**
Defaults: 0.5 0.5
@endproperty
-*/
-static void st_collections_group_parts_part_description_table_align(void)
+ */
+static void
+st_collections_group_parts_part_description_table_align(void)
{
Edje_Part_Description_Table *ed;
exit(-1);
}
- ed = (Edje_Part_Description_Table*) current_desc;
+ ed = (Edje_Part_Description_Table *)current_desc;
ed->table.align.x = FROM_DOUBLE(parse_float_range(0, -1.0, 1.0));
ed->table.align.y = FROM_DOUBLE(parse_float_range(1, -1.0, 1.0));
Defaults: 0 0
@endproperty
-*/
-static void st_collections_group_parts_part_description_table_padding(void)
+ */
+static void
+st_collections_group_parts_part_description_table_padding(void)
{
Edje_Part_Description_Table *ed;
exit(-1);
}
- ed = (Edje_Part_Description_Table*) current_desc;
+ ed = (Edje_Part_Description_Table *)current_desc;
ed->table.padding.x = parse_int_range(0, 0, 0x7fffffff);
ed->table.padding.y = parse_int_range(1, 0, 0x7fffffff);
Defaults: 0 0
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_table_min(void)
{
exit(-1);
}
- ed = (Edje_Part_Description_Table*) current_desc;
+ ed = (Edje_Part_Description_Table *)current_desc;
ed->table.min.h = parse_bool(0);
ed->table.min.v = parse_bool(1);
Defaults: 1
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_proxy_source_clip(void)
{
exit(-1);
}
- ed = (Edje_Part_Description_Proxy*) current_desc;
+ ed = (Edje_Part_Description_Proxy *)current_desc;
ed->proxy.source_clip = parse_bool(0);
}
exit(-1);
}
- ed = (Edje_Part_Description_Proxy*) current_desc;
+ ed = (Edje_Part_Description_Proxy *)current_desc;
ed->proxy.source_visible = parse_bool(0);
}
@effect
Sets the point of CAMERA, LIGHT or MESH_NODE centre.
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_position_point(void)
{
switch (current_part->type)
{
case EDJE_PART_TYPE_CAMERA:
- {
- Edje_Part_Description_Camera *ed;
+ {
+ Edje_Part_Description_Camera *ed;
- ed = (Edje_Part_Description_Camera*) current_desc;
+ ed = (Edje_Part_Description_Camera *)current_desc;
+
+ ed->camera.position.point.x = FROM_DOUBLE(parse_float(0));
+ ed->camera.position.point.y = FROM_DOUBLE(parse_float(1));
+ ed->camera.position.point.z = FROM_DOUBLE(parse_float(2));
+ break;
+ }
- ed->camera.position.point.x = FROM_DOUBLE(parse_float(0));
- ed->camera.position.point.y = FROM_DOUBLE(parse_float(1));
- ed->camera.position.point.z = FROM_DOUBLE(parse_float(2));
- break;
- }
case EDJE_PART_TYPE_LIGHT:
- {
- Edje_Part_Description_Light *ed;
+ {
+ Edje_Part_Description_Light *ed;
- ed = (Edje_Part_Description_Light*) current_desc;
+ ed = (Edje_Part_Description_Light *)current_desc;
+
+ ed->light.position.point.x = FROM_DOUBLE(parse_float(0));
+ ed->light.position.point.y = FROM_DOUBLE(parse_float(1));
+ ed->light.position.point.z = FROM_DOUBLE(parse_float(2));
+ break;
+ }
- ed->light.position.point.x = FROM_DOUBLE(parse_float(0));
- ed->light.position.point.y = FROM_DOUBLE(parse_float(1));
- ed->light.position.point.z = FROM_DOUBLE(parse_float(2));
- break;
- }
case EDJE_PART_TYPE_MESH_NODE:
- {
- Edje_Part_Description_Mesh_Node *ed;
+ {
+ Edje_Part_Description_Mesh_Node *ed;
- ed = (Edje_Part_Description_Mesh_Node*) current_desc;
+ ed = (Edje_Part_Description_Mesh_Node *)current_desc;
+
+ ed->mesh_node.position.point.x = FROM_DOUBLE(parse_float(0));
+ ed->mesh_node.position.point.y = FROM_DOUBLE(parse_float(1));
+ ed->mesh_node.position.point.z = FROM_DOUBLE(parse_float(2));
+ break;
+ }
- ed->mesh_node.position.point.x = FROM_DOUBLE(parse_float(0));
- ed->mesh_node.position.point.y = FROM_DOUBLE(parse_float(1));
- ed->mesh_node.position.point.z = FROM_DOUBLE(parse_float(2));
- break;
- }
default:
- {
- ERR("parse error %s:%i. camera and light attributes in non-CAMERA, non-LIGHT, and non-MESH_NODE part.",
- file_in, line - 1);
- exit(-1);
- }
+ {
+ ERR("parse error %s:%i. camera and light attributes in non-CAMERA, non-LIGHT, and non-MESH_NODE part.",
+ file_in, line - 1);
+ exit(-1);
+ }
}
}
@li PARENT
@li WORLD
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_position_space(void)
{
check_arg_count(1);
space = parse_enum(0,
- "LOCAL", EVAS_CANVAS3D_SPACE_LOCAL,
- "PARENT", EVAS_CANVAS3D_SPACE_PARENT,
- "WORLD", EVAS_CANVAS3D_SPACE_WORLD,
- NULL);
+ "LOCAL", EVAS_CANVAS3D_SPACE_LOCAL,
+ "PARENT", EVAS_CANVAS3D_SPACE_PARENT,
+ "WORLD", EVAS_CANVAS3D_SPACE_WORLD,
+ NULL);
switch (current_part->type)
{
case EDJE_PART_TYPE_CAMERA:
- {
- Edje_Part_Description_Camera *ed;
+ {
+ Edje_Part_Description_Camera *ed;
- ed = (Edje_Part_Description_Camera*) current_desc;
+ ed = (Edje_Part_Description_Camera *)current_desc;
+
+ ed->camera.position.space = space;
+ break;
+ }
- ed->camera.position.space = space;
- break;
- }
case EDJE_PART_TYPE_LIGHT:
- {
- Edje_Part_Description_Light *ed;
+ {
+ Edje_Part_Description_Light *ed;
- ed = (Edje_Part_Description_Light*) current_desc;
+ ed = (Edje_Part_Description_Light *)current_desc;
+
+ ed->light.position.space = space;
+ break;
+ }
- ed->light.position.space = space;
- break;
- }
case EDJE_PART_TYPE_MESH_NODE:
- {
- Edje_Part_Description_Mesh_Node *ed;
+ {
+ Edje_Part_Description_Mesh_Node *ed;
- ed = (Edje_Part_Description_Mesh_Node*) current_desc;
+ ed = (Edje_Part_Description_Mesh_Node *)current_desc;
+
+ ed->mesh_node.position.space = space;
+ break;
+ }
- ed->mesh_node.position.space = space;
- break;
- }
default:
- {
- ERR("parse error %s:%i. camera and light attributes in non-CAMERA, non-LIGHT, and non-MESH_NODE part.",
- file_in, line - 1);
- exit(-1);
- }
+ {
+ ERR("parse error %s:%i. camera and light attributes in non-CAMERA, non-LIGHT, and non-MESH_NODE part.",
+ file_in, line - 1);
+ exit(-1);
+ }
}
}
@effect
Specifies the basic attributes of the camera.
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_camera_properties(void)
{
{
Edje_Part_Description_Camera *ed;
- ed = (Edje_Part_Description_Camera*) current_desc;
+ ed = (Edje_Part_Description_Camera *)current_desc;
ed->camera.camera.fovy = FROM_DOUBLE(parse_float(0));
ed->camera.camera.aspect = FROM_DOUBLE(parse_float(1));
{
Edje_Part_Description_Light *ed;
- ed = (Edje_Part_Description_Light*) current_desc;
+ ed = (Edje_Part_Description_Light *)current_desc;
ed->light.light.fovy = FROM_DOUBLE(parse_float(0));
ed->light.light.aspect = FROM_DOUBLE(parse_float(1));
Defaults: 50 50 50 255
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_properties_ambient(void)
{
switch (current_part->type)
{
case EDJE_PART_TYPE_LIGHT:
- {
- Edje_Part_Description_Light *ed;
+ {
+ Edje_Part_Description_Light *ed;
- ed = (Edje_Part_Description_Light*) current_desc;
+ ed = (Edje_Part_Description_Light *)current_desc;
+
+ parse_color(0, &(ed->light.properties.ambient));
+ break;
+ }
- parse_color(0, &(ed->light.properties.ambient));
- break;
- }
case EDJE_PART_TYPE_MESH_NODE:
- {
- Edje_Part_Description_Mesh_Node *ed;
+ {
+ Edje_Part_Description_Mesh_Node *ed;
- ed = (Edje_Part_Description_Mesh_Node*) current_desc;
+ ed = (Edje_Part_Description_Mesh_Node *)current_desc;
+
+ parse_color(0, &(ed->mesh_node.properties.ambient));
+ break;
+ }
- parse_color(0, &(ed->mesh_node.properties.ambient));
- break;
- }
default:
- {
- ERR("parse error %s:%i. light and mesh_node attributes in non-LIGHT and non-MESH_NODE part.",
- file_in, line - 1);
- exit(-1);
- }
+ {
+ ERR("parse error %s:%i. light and mesh_node attributes in non-LIGHT and non-MESH_NODE part.",
+ file_in, line - 1);
+ exit(-1);
+ }
}
}
Defaults: 255 255 255 255
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_properties_diffuse(void)
{
switch (current_part->type)
{
case EDJE_PART_TYPE_LIGHT:
- {
- Edje_Part_Description_Light *ed;
+ {
+ Edje_Part_Description_Light *ed;
- ed = (Edje_Part_Description_Light*) current_desc;
+ ed = (Edje_Part_Description_Light *)current_desc;
+
+ parse_color(0, &(ed->light.properties.diffuse));
+ break;
+ }
- parse_color(0, &(ed->light.properties.diffuse));
- break;
- }
case EDJE_PART_TYPE_MESH_NODE:
- {
- Edje_Part_Description_Mesh_Node *ed;
+ {
+ Edje_Part_Description_Mesh_Node *ed;
- ed = (Edje_Part_Description_Mesh_Node*) current_desc;
+ ed = (Edje_Part_Description_Mesh_Node *)current_desc;
+
+ parse_color(0, &(ed->mesh_node.properties.diffuse));
+ break;
+ }
- parse_color(0, &(ed->mesh_node.properties.diffuse));
- break;
- }
default:
- {
- ERR("parse error %s:%i. light and mesh_node attributes in non-LIGHT and non-MESH_NODE part.",
- file_in, line - 1);
- exit(-1);
- }
+ {
+ ERR("parse error %s:%i. light and mesh_node attributes in non-LIGHT and non-MESH_NODE part.",
+ file_in, line - 1);
+ exit(-1);
+ }
}
}
Defaults: 255 255 255 255
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_properties_specular(void)
{
switch (current_part->type)
{
case EDJE_PART_TYPE_LIGHT:
- {
- Edje_Part_Description_Light *ed;
+ {
+ Edje_Part_Description_Light *ed;
- ed = (Edje_Part_Description_Light*) current_desc;
+ ed = (Edje_Part_Description_Light *)current_desc;
+
+ parse_color(0, &(ed->light.properties.specular));
+ break;
+ }
- parse_color(0, &(ed->light.properties.specular));
- break;
- }
case EDJE_PART_TYPE_MESH_NODE:
- {
- Edje_Part_Description_Mesh_Node *ed;
+ {
+ Edje_Part_Description_Mesh_Node *ed;
- ed = (Edje_Part_Description_Mesh_Node*) current_desc;
+ ed = (Edje_Part_Description_Mesh_Node *)current_desc;
+
+ parse_color(0, &(ed->mesh_node.properties.specular));
+ break;
+ }
- parse_color(0, &(ed->mesh_node.properties.specular));
- break;
- }
default:
- {
- ERR("parse error %s:%i. light and mesh_node attributes in non-LIGHT and non-MESH_NODE part.",
- file_in, line - 1);
- exit(-1);
- }
+ {
+ ERR("parse error %s:%i. light and mesh_node attributes in non-LIGHT and non-MESH_NODE part.",
+ file_in, line - 1);
+ exit(-1);
+ }
}
}
@li EMISSION
@li NORMAL
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_properties_material(void)
{
check_arg_count(1);
material_attrib = parse_enum(0,
- "AMBIENT", EVAS_CANVAS3D_MATERIAL_ATTRIB_AMBIENT,
- "DIFFUSE", EVAS_CANVAS3D_MATERIAL_ATTRIB_DIFFUSE,
- "SPECULAR", EVAS_CANVAS3D_MATERIAL_ATTRIB_SPECULAR,
- "EMISSION", EVAS_CANVAS3D_MATERIAL_ATTRIB_EMISSION,
- "NORMAL", EVAS_CANVAS3D_MATERIAL_ATTRIB_NORMAL,
- NULL);
+ "AMBIENT", EVAS_CANVAS3D_MATERIAL_ATTRIB_AMBIENT,
+ "DIFFUSE", EVAS_CANVAS3D_MATERIAL_ATTRIB_DIFFUSE,
+ "SPECULAR", EVAS_CANVAS3D_MATERIAL_ATTRIB_SPECULAR,
+ "EMISSION", EVAS_CANVAS3D_MATERIAL_ATTRIB_EMISSION,
+ "NORMAL", EVAS_CANVAS3D_MATERIAL_ATTRIB_NORMAL,
+ NULL);
if (current_part->type == EDJE_PART_TYPE_MESH_NODE)
{
Edje_Part_Description_Mesh_Node *ed;
- ed = (Edje_Part_Description_Mesh_Node*) current_desc;
+ ed = (Edje_Part_Description_Mesh_Node *)current_desc;
ed->mesh_node.properties.material_attrib = material_attrib;
}
@effect
Sets the material attribute enable flag of the given material.
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_properties_normal(void)
{
{
Edje_Part_Description_Mesh_Node *ed;
- ed = (Edje_Part_Description_Mesh_Node*) current_desc;
+ ed = (Edje_Part_Description_Mesh_Node *)current_desc;
ed->mesh_node.properties.normal = parse_bool(0);
}
@effect
Sets the shininess of the given material.
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_properties_shininess(void)
{
{
Edje_Part_Description_Mesh_Node *ed;
- ed = (Edje_Part_Description_Mesh_Node*) current_desc;
+ ed = (Edje_Part_Description_Mesh_Node *)current_desc;
ed->mesh_node.properties.shininess = FROM_DOUBLE(parse_float(0));
}
@li MAP
@li RENDER
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_properties_shade(void)
check_arg_count(1);
shade = parse_enum(0,
- "VERTEX_COLOR", EVAS_CANVAS3D_SHADER_MODE_VERTEX_COLOR,
- "PARENT", EVAS_CANVAS3D_SHADER_MODE_DIFFUSE,
- "WORLD", EVAS_CANVAS3D_SHADER_MODE_FLAT,
- "PHONG", EVAS_CANVAS3D_SHADER_MODE_PHONG,
- "NORMAL_MAP", EVAS_CANVAS3D_SHADER_MODE_NORMAL_MAP,
- "RENDER", EVAS_CANVAS3D_SHADER_MODE_SHADOW_MAP_RENDER,
- NULL);
+ "VERTEX_COLOR", EVAS_CANVAS3D_SHADER_MODE_VERTEX_COLOR,
+ "PARENT", EVAS_CANVAS3D_SHADER_MODE_DIFFUSE,
+ "WORLD", EVAS_CANVAS3D_SHADER_MODE_FLAT,
+ "PHONG", EVAS_CANVAS3D_SHADER_MODE_PHONG,
+ "NORMAL_MAP", EVAS_CANVAS3D_SHADER_MODE_NORMAL_MAP,
+ "RENDER", EVAS_CANVAS3D_SHADER_MODE_SHADOW_MAP_RENDER,
+ NULL);
if (current_part->type == EDJE_PART_TYPE_MESH_NODE)
{
Edje_Part_Description_Mesh_Node *ed;
- ed = (Edje_Part_Description_Mesh_Node*) current_desc;
+ ed = (Edje_Part_Description_Mesh_Node *)current_desc;
ed->mesh_node.properties.shade = shade;
}
Indicates a target point for CAMERA and MESH_NODE or for LIGHT to see or
to illuminate.
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_orientation_look1(void)
{
switch (current_part->type)
{
case EDJE_PART_TYPE_CAMERA:
- {
- SET_LOOK1(Camera, camera);
- break;
- }
+ {
+ SET_LOOK1(Camera, camera);
+ break;
+ }
+
case EDJE_PART_TYPE_LIGHT:
- {
- SET_LOOK1(Light, light);
- break;
- }
+ {
+ SET_LOOK1(Light, light);
+ break;
+ }
+
case EDJE_PART_TYPE_MESH_NODE:
- {
- SET_LOOK1(Mesh_Node, mesh_node);
- break;
- }
+ {
+ SET_LOOK1(Mesh_Node, mesh_node);
+ break;
+ }
+
default:
- {
- ERR("parse error %s:%i. camera, light and mesh_node attributes in non-CAMERA, non-LIGHT and non-MESH_NODE part.",
- file_in, line - 1);
- exit(-1);
- }
+ {
+ ERR("parse error %s:%i. camera, light and mesh_node attributes in non-CAMERA, non-LIGHT and non-MESH_NODE part.",
+ file_in, line - 1);
+ exit(-1);
+ }
}
}
@effect
Specifies the angle at which the target point will be caught.
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_orientation_look2(void)
{
switch (current_part->type)
{
case EDJE_PART_TYPE_CAMERA:
- {
- SET_LOOK2(Camera, camera);
- break;
- }
+ {
+ SET_LOOK2(Camera, camera);
+ break;
+ }
+
case EDJE_PART_TYPE_LIGHT:
- {
- SET_LOOK2(Light, light);
- break;
- }
+ {
+ SET_LOOK2(Light, light);
+ break;
+ }
+
case EDJE_PART_TYPE_MESH_NODE:
- {
- SET_LOOK2(Mesh_Node, mesh_node);
- break;
- }
+ {
+ SET_LOOK2(Mesh_Node, mesh_node);
+ break;
+ }
+
default:
- {
- ERR("parse error %s:%i. camera, light and mesh_node attributes in non-CAMERA, non-LIGHT and non-MESH_NODE part.",
- file_in, line - 1);
- exit(-1);
- }
+ {
+ ERR("parse error %s:%i. camera, light and mesh_node attributes in non-CAMERA, non-LIGHT and non-MESH_NODE part.",
+ file_in, line - 1);
+ exit(-1);
+ }
}
}
Indicates another part to make target of CAMERA, LIGHT or MESH_NODE
or LIGHT.
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_orientation_look_to(void)
{
switch (current_part->type)
{
case EDJE_PART_TYPE_CAMERA:
- {
- SET_LOOK_TO(pc, Camera, camera);
- break;
- }
+ {
+ SET_LOOK_TO(pc, Camera, camera);
+ break;
+ }
+
case EDJE_PART_TYPE_LIGHT:
- {
- SET_LOOK_TO(pc, Light, light);
- break;
- }
+ {
+ SET_LOOK_TO(pc, Light, light);
+ break;
+ }
+
case EDJE_PART_TYPE_MESH_NODE:
- {
- SET_LOOK_TO(pc, Mesh_Node, mesh_node);
- break;
- }
+ {
+ SET_LOOK_TO(pc, Mesh_Node, mesh_node);
+ break;
+ }
+
default:
- {
- ERR("parse error %s:%i. camera, light and mesh_node attributes in non-CAMERA, non-LIGHT and non-MESH_NODE part.",
- file_in, line - 1);
- exit(-1);
- }
+ {
+ ERR("parse error %s:%i. camera, light and mesh_node attributes in non-CAMERA, non-LIGHT and non-MESH_NODE part.",
+ file_in, line - 1);
+ exit(-1);
+ }
}
}
@effect
Specifies the angle and indicates what proportions the MESH_NODE rotates in.
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_orientation_angle_axis(void)
{
}
}
-
/**
@page edcref
@property
@effect
Specifies the axis and arccosinus of half angle to rotate on the MESH_NODE, CAMERA or LIGHT.
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_orientation_quaternion(void)
{
@effect
Specifies the scale parameter for MESH_NODE.
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_scale(void)
{
{
Edje_Part_Description_Mesh_Node *ed;
- ed = (Edje_Part_Description_Mesh_Node*) current_desc;
+ ed = (Edje_Part_Description_Mesh_Node *)current_desc;
ed->mesh_node.scale_3d.x = FROM_DOUBLE(parse_float_range(0, 0.0, 1000.0));
ed->mesh_node.scale_3d.y = FROM_DOUBLE(parse_float_range(1, 0.0, 1000.0));
A texture block is used to set texture, this texture will be imposed on
MESH_NODE model.
@endblock
-*/
+ */
static void
ob_collections_group_parts_part_description_texture(void)
{
Edje_Part_Description_Mesh_Node *ed;
-
if (current_part->type == EDJE_PART_TYPE_MESH_NODE)
{
- ed = (Edje_Part_Description_Mesh_Node*) current_desc;
+ ed = (Edje_Part_Description_Mesh_Node *)current_desc;
ed->mesh_node.texture.need_texture = EINA_TRUE;
}
ERR("parse error %s:%i. "
"mesh_node attributes in non-MESH_NODE part.",
file_in, line - 1);
- exit(-1);
- }
-}
-
- /**
- @page edcref
- @property
- shade
- image
- @parameters
- [SHADE]
- [texture's filename]
- @effect
- Sets the shade mode for MESH_NODE. Valid shade modes:
- @li COLOR
- @li DIFFUSE
- @li FLAT
- @li PHONG
- @li MAP
- @li RENDER
- Name of image to be used as previously declared in the image block.
- It's required in any mesh_node part.
- @endproperty
+ exit(-1);
+ }
+}
+
+/**
+ @page edcref
+ @property
+ shade
+ image
+ @parameters
+ [SHADE]
+ [texture's filename]
+ @effect
+ Sets the shade mode for MESH_NODE. Valid shade modes:
+ @li COLOR
+ @li DIFFUSE
+ @li FLAT
+ @li PHONG
+ @li MAP
+ @li RENDER
+ Name of image to be used as previously declared in the image block.
+ It's required in any mesh_node part.
+ @endproperty
*/
static void
st_collections_group_parts_part_description_texture_image(void)
if (current_part->type == EDJE_PART_TYPE_MESH_NODE)
{
char *name;
- ed = (Edje_Part_Description_Mesh_Node*) current_desc;
+ ed = (Edje_Part_Description_Mesh_Node *)current_desc;
ed->mesh_node.texture.textured = EINA_TRUE;
@li REPEAT
@li REFLECT
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_texture_wrap1(void)
{
check_arg_count(1);
wrap1 = parse_enum(0,
- "CLAMP", EVAS_CANVAS3D_WRAP_MODE_CLAMP,
- "REPEAT", EVAS_CANVAS3D_WRAP_MODE_REPEAT,
- "REFLECT", EVAS_CANVAS3D_WRAP_MODE_REFLECT,
- NULL);
+ "CLAMP", EVAS_CANVAS3D_WRAP_MODE_CLAMP,
+ "REPEAT", EVAS_CANVAS3D_WRAP_MODE_REPEAT,
+ "REFLECT", EVAS_CANVAS3D_WRAP_MODE_REFLECT,
+ NULL);
if (current_part->type == EDJE_PART_TYPE_MESH_NODE)
{
Edje_Part_Description_Mesh_Node *ed;
- ed = (Edje_Part_Description_Mesh_Node*) current_desc;
+ ed = (Edje_Part_Description_Mesh_Node *)current_desc;
ed->mesh_node.texture.wrap1 = wrap1;
}
@li REPEAT
@li REFLECT
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_texture_wrap2(void)
{
check_arg_count(1);
wrap2 = parse_enum(0,
- "CLAMP", EVAS_CANVAS3D_WRAP_MODE_CLAMP,
- "REPEAT", EVAS_CANVAS3D_WRAP_MODE_REPEAT,
- "REFLECT", EVAS_CANVAS3D_WRAP_MODE_REFLECT,
- NULL);
+ "CLAMP", EVAS_CANVAS3D_WRAP_MODE_CLAMP,
+ "REPEAT", EVAS_CANVAS3D_WRAP_MODE_REPEAT,
+ "REFLECT", EVAS_CANVAS3D_WRAP_MODE_REFLECT,
+ NULL);
if (current_part->type == EDJE_PART_TYPE_MESH_NODE)
{
Edje_Part_Description_Mesh_Node *ed;
- ed = (Edje_Part_Description_Mesh_Node*) current_desc;
+ ed = (Edje_Part_Description_Mesh_Node *)current_desc;
ed->mesh_node.texture.wrap2 = wrap2;
}
@li LINEAR_MIPMAP_NEAREST
@li NEAREST_MIPMAP_LINEAR
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_texture_filter1(void)
{
check_arg_count(1);
filter1 = parse_enum(0,
- "NEAREST", EVAS_CANVAS3D_TEXTURE_FILTER_NEAREST,
- "LINEAR", EVAS_CANVAS3D_TEXTURE_FILTER_LINEAR,
- "NEAREST_NEAREST", EVAS_CANVAS3D_TEXTURE_FILTER_NEAREST_MIPMAP_NEAREST,
- "LINEAR_NEAREST", EVAS_CANVAS3D_TEXTURE_FILTER_LINEAR_MIPMAP_NEAREST,
- "NEAREST_LINEAR", EVAS_CANVAS3D_TEXTURE_FILTER_NEAREST_MIPMAP_LINEAR,
- "LINEAR_LINEAR", EVAS_CANVAS3D_TEXTURE_FILTER_LINEAR_MIPMAP_LINEAR,
- NULL);
+ "NEAREST", EVAS_CANVAS3D_TEXTURE_FILTER_NEAREST,
+ "LINEAR", EVAS_CANVAS3D_TEXTURE_FILTER_LINEAR,
+ "NEAREST_NEAREST", EVAS_CANVAS3D_TEXTURE_FILTER_NEAREST_MIPMAP_NEAREST,
+ "LINEAR_NEAREST", EVAS_CANVAS3D_TEXTURE_FILTER_LINEAR_MIPMAP_NEAREST,
+ "NEAREST_LINEAR", EVAS_CANVAS3D_TEXTURE_FILTER_NEAREST_MIPMAP_LINEAR,
+ "LINEAR_LINEAR", EVAS_CANVAS3D_TEXTURE_FILTER_LINEAR_MIPMAP_LINEAR,
+ NULL);
if (current_part->type == EDJE_PART_TYPE_MESH_NODE)
{
Edje_Part_Description_Mesh_Node *ed;
- ed = (Edje_Part_Description_Mesh_Node*) current_desc;
+ ed = (Edje_Part_Description_Mesh_Node *)current_desc;
ed->mesh_node.texture.filter1 = filter1;
}
@li LINEAR_MIPMAP_NEAREST
@li NEAREST_MIPMAP_LINEAR
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_texture_filter2(void)
{
check_arg_count(1);
filter2 = parse_enum(0,
- "NEAREST", EVAS_CANVAS3D_TEXTURE_FILTER_NEAREST,
- "LINEAR", EVAS_CANVAS3D_TEXTURE_FILTER_LINEAR,
- "NEAREST_NEAREST", EVAS_CANVAS3D_TEXTURE_FILTER_NEAREST_MIPMAP_NEAREST,
- "LINEAR_NEAREST", EVAS_CANVAS3D_TEXTURE_FILTER_LINEAR_MIPMAP_NEAREST,
- "NEAREST_LINEAR", EVAS_CANVAS3D_TEXTURE_FILTER_NEAREST_MIPMAP_LINEAR,
- "LINEAR_LINEAR", EVAS_CANVAS3D_TEXTURE_FILTER_LINEAR_MIPMAP_LINEAR,
- NULL);
+ "NEAREST", EVAS_CANVAS3D_TEXTURE_FILTER_NEAREST,
+ "LINEAR", EVAS_CANVAS3D_TEXTURE_FILTER_LINEAR,
+ "NEAREST_NEAREST", EVAS_CANVAS3D_TEXTURE_FILTER_NEAREST_MIPMAP_NEAREST,
+ "LINEAR_NEAREST", EVAS_CANVAS3D_TEXTURE_FILTER_LINEAR_MIPMAP_NEAREST,
+ "NEAREST_LINEAR", EVAS_CANVAS3D_TEXTURE_FILTER_NEAREST_MIPMAP_LINEAR,
+ "LINEAR_LINEAR", EVAS_CANVAS3D_TEXTURE_FILTER_LINEAR_MIPMAP_LINEAR,
+ NULL);
if (current_part->type == EDJE_PART_TYPE_MESH_NODE)
{
Edje_Part_Description_Mesh_Node *ed;
- ed = (Edje_Part_Description_Mesh_Node*) current_desc;
+ ed = (Edje_Part_Description_Mesh_Node *)current_desc;
ed->mesh_node.texture.filter2 = filter2;
}
@li CUBE
@li SPHERE
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_mesh_primitive(void)
{
check_arg_count(1);
primitive = parse_enum(0,
- "NONE", EVAS_CANVAS3D_MESH_PRIMITIVE_NONE,
- "CUBE", EVAS_CANVAS3D_MESH_PRIMITIVE_CUBE,
- "SPHERE", EVAS_CANVAS3D_MESH_PRIMITIVE_SPHERE,
- NULL);
+ "NONE", EVAS_CANVAS3D_MESH_PRIMITIVE_NONE,
+ "CUBE", EVAS_CANVAS3D_MESH_PRIMITIVE_CUBE,
+ "SPHERE", EVAS_CANVAS3D_MESH_PRIMITIVE_SPHERE,
+ NULL);
if (current_part->type == EDJE_PART_TYPE_MESH_NODE)
{
Edje_Part_Description_Mesh_Node *ed;
- ed = (Edje_Part_Description_Mesh_Node*) current_desc;
+ ed = (Edje_Part_Description_Mesh_Node *)current_desc;
ed->mesh_node.mesh.primitive = primitive;
}
@li TRIANGLE_STRIP
@li TRIANGLE_FAN
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_mesh_assembly(void)
{
check_arg_count(1);
assembly = parse_enum(0,
- "POINTS", EVAS_CANVAS3D_VERTEX_ASSEMBLY_POINTS,
- "LINES", EVAS_CANVAS3D_VERTEX_ASSEMBLY_LINES,
- "LINE_STRIP", EVAS_CANVAS3D_VERTEX_ASSEMBLY_LINE_STRIP,
- "LINE_LOOP", EVAS_CANVAS3D_VERTEX_ASSEMBLY_LINE_LOOP,
- "TRIANGLES", EVAS_CANVAS3D_VERTEX_ASSEMBLY_TRIANGLES,
- "TRIANGLE_STRIP", EVAS_CANVAS3D_VERTEX_ASSEMBLY_TRIANGLE_STRIP,
- "TRIANGLE_FAN", EVAS_CANVAS3D_VERTEX_ASSEMBLY_TRIANGLE_FAN,
- NULL);
+ "POINTS", EVAS_CANVAS3D_VERTEX_ASSEMBLY_POINTS,
+ "LINES", EVAS_CANVAS3D_VERTEX_ASSEMBLY_LINES,
+ "LINE_STRIP", EVAS_CANVAS3D_VERTEX_ASSEMBLY_LINE_STRIP,
+ "LINE_LOOP", EVAS_CANVAS3D_VERTEX_ASSEMBLY_LINE_LOOP,
+ "TRIANGLES", EVAS_CANVAS3D_VERTEX_ASSEMBLY_TRIANGLES,
+ "TRIANGLE_STRIP", EVAS_CANVAS3D_VERTEX_ASSEMBLY_TRIANGLE_STRIP,
+ "TRIANGLE_FAN", EVAS_CANVAS3D_VERTEX_ASSEMBLY_TRIANGLE_FAN,
+ NULL);
if (current_part->type == EDJE_PART_TYPE_MESH_NODE)
{
Edje_Part_Description_Mesh_Node *ed;
- ed = (Edje_Part_Description_Mesh_Node*) current_desc;
+ ed = (Edje_Part_Description_Mesh_Node *)current_desc;
ed->mesh_node.mesh.assembly = assembly;
}
Name of model to be used as previously declared in the model block.
It's required in any mesh_node part.
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_mesh_geometry(void)
{
if (current_part->type == EDJE_PART_TYPE_MESH_NODE)
{
char *name;
- ed = (Edje_Part_Description_Mesh_Node*) current_desc;
+ ed = (Edje_Part_Description_Mesh_Node *)current_desc;
name = parse_str(0);
if (!ecore_file_exists(name))
{
check_arg_count(1);
-
if (current_part->type == EDJE_PART_TYPE_MESH_NODE)
{
Edje_Part_Description_Mesh_Node *ed;
- ed = (Edje_Part_Description_Mesh_Node*) current_desc;
+ ed = (Edje_Part_Description_Mesh_Node *)current_desc;
ed->mesh_node.mesh.frame = parse_int(0);
}
so it will be immovable, static.
@since 1.8
@endproperty
-*/
+ */
#ifdef HAVE_EPHYSICS
static void
current_desc->physics.mass = parse_float(0);
}
+
#endif
/**
@since 1.8
@endproperty
-*/
+ */
#ifdef HAVE_EPHYSICS
static void
current_desc->physics.restitution = parse_float(0);
}
+
#endif
/**
@since 1.8
@endproperty
-*/
+ */
#ifdef HAVE_EPHYSICS
static void
current_desc->physics.friction = parse_float(0);
}
+
#endif
/**
Default is 1 (enabled).
@since 1.8
@endproperty
-*/
+ */
#ifdef HAVE_EPHYSICS
static void
st_collections_group_parts_part_description_physics_ignore_part_pos(void)
current_desc->physics.ignore_part_pos = parse_bool(0);
}
+
#endif
/**
Values should be between 0.0 and 1.0, and are set to 0 by default.
@since 1.8
@endproperty
-*/
+ */
#ifdef HAVE_EPHYSICS
static void
st_collections_group_parts_part_description_physics_damping(void)
current_desc->physics.damping.linear = parse_float_range(0, 0, 1.0);
current_desc->physics.damping.angular = parse_float_range(1, 0, 1.0);
}
+
#endif
/**
57.29 degrees / sec (1 rad/sec).
@since 1.8
@endproperty
-*/
+ */
#ifdef HAVE_EPHYSICS
static void
st_collections_group_parts_part_description_physics_sleep(void)
current_desc->physics.sleep.linear = parse_float(0);
current_desc->physics.sleep.angular = parse_float(1);
}
+
#endif
/**
@since 1.8
@endproperty
-*/
+ */
#ifdef HAVE_EPHYSICS
static void
st_collections_group_parts_part_description_physics_material(void)
check_arg_count(1);
current_desc->physics.material = parse_enum(0,
- "CUSTOM", EPHYSICS_BODY_MATERIAL_CUSTOM,
- "CONCRETE", EPHYSICS_BODY_MATERIAL_CONCRETE,
- "IRON", EPHYSICS_BODY_MATERIAL_IRON,
- "PLASTIC", EPHYSICS_BODY_MATERIAL_PLASTIC,
- "POLYSTYRENE", EPHYSICS_BODY_MATERIAL_POLYSTYRENE,
- "RUBBER", EPHYSICS_BODY_MATERIAL_RUBBER,
- "WOOD", EPHYSICS_BODY_MATERIAL_WOOD,
- NULL);
+ "CUSTOM", EPHYSICS_BODY_MATERIAL_CUSTOM,
+ "CONCRETE", EPHYSICS_BODY_MATERIAL_CONCRETE,
+ "IRON", EPHYSICS_BODY_MATERIAL_IRON,
+ "PLASTIC", EPHYSICS_BODY_MATERIAL_PLASTIC,
+ "POLYSTYRENE", EPHYSICS_BODY_MATERIAL_POLYSTYRENE,
+ "RUBBER", EPHYSICS_BODY_MATERIAL_RUBBER,
+ "WOOD", EPHYSICS_BODY_MATERIAL_WOOD,
+ NULL);
}
+
#endif
/**
When a mass is explicitely set the density will be unset.
@since 1.8
@endproperty
-*/
+ */
#ifdef HAVE_EPHYSICS
static void
st_collections_group_parts_part_description_physics_density(void)
current_desc->physics.density = parse_float(0);
}
+
#endif
/**
Valid values vary from 0.0 to 1.0. Only works on soft bodies and cloths.
@since 1.8
@endproperty
-*/
+ */
#ifdef HAVE_EPHYSICS
static void
st_collections_group_parts_part_description_physics_hardness(void)
current_desc->physics.hardness = parse_float_range(0, 0, 1.0);
}
+
#endif
/**
Disabled by default (0).
@since 1.8
@endproperty
-*/
+ */
#ifdef HAVE_EPHYSICS
static void
st_collections_group_parts_part_description_physics_light_on(void)
current_desc->physics.light_on = parse_bool(0);
}
+
#endif
/**
Defines body position in z axis. It's set to -15 by default.
@since 1.8
@endproperty
-*/
+ */
#ifdef HAVE_EPHYSICS
static void
st_collections_group_parts_part_description_physics_z(void)
current_desc->physics.z = parse_int(0);
}
+
#endif
/**
Defines body's depth (z axis). It's set to 30 by default.
@since 1.8
@endproperty
-*/
+ */
#ifdef HAVE_EPHYSICS
static void
st_collections_group_parts_part_description_physics_depth(void)
current_desc->physics.depth = parse_int(0);
}
+
#endif
/**
This means that the object will be hidden when "backface culled".
@since 1.8
@endproperty
-*/
+ */
#ifdef HAVE_EPHYSICS
static void
st_collections_group_parts_part_description_physics_backface_cull(void)
current_desc->physics.backcull = parse_bool(0);
}
+
#endif
/** @edcsubsection{collections_group_parts_description_physics_movement_freedom,
Axes x and y are enabled by default.
@since 1.8
@endproperty
-*/
+ */
#ifdef HAVE_EPHYSICS
static void
st_collections_group_parts_part_description_physics_movement_freedom_linear(void)
current_desc->physics.mov_freedom.lin.y = parse_bool(1);
current_desc->physics.mov_freedom.lin.z = parse_bool(2);
}
+
#endif
/**
Z axis is enabled by default.
@since 1.8
@endproperty
-*/
+ */
#ifdef HAVE_EPHYSICS
static void
st_collections_group_parts_part_description_physics_movement_freedom_angular(void)
current_desc->physics.mov_freedom.ang.y = parse_bool(1);
current_desc->physics.mov_freedom.ang.z = parse_bool(2);
}
+
#endif
/** @edcsubsection{collections_group_parts_description_physics_faces,
Only the "faces" block declared in the "default" description
will be considered.
@endblock
-*/
+ */
#ifdef HAVE_EPHYSICS
static void
st_collections_group_parts_part_description_physics_face(void)
pface->type = 0;
pface->source = NULL;
}
+
#endif
/**
@li SPHERE_FRONT
@li SPHERE_BACK
@endproperty
-*/
+ */
#ifdef HAVE_EPHYSICS
static void
st_collections_group_parts_part_description_physics_face_type(void)
pface = eina_list_data_get(eina_list_last(current_desc->physics.faces));
pface->type = parse_enum(0,
- "BOX_MIDDLE_FRONT", EPHYSICS_BODY_BOX_FACE_MIDDLE_FRONT,
- "BOX_MIDDLE_BACK", EPHYSICS_BODY_BOX_FACE_MIDDLE_BACK,
- "BOX_FRONT", EPHYSICS_BODY_BOX_FACE_FRONT,
- "BOX_BACK", EPHYSICS_BODY_BOX_FACE_BACK,
- "BOX_LEFT", EPHYSICS_BODY_BOX_FACE_LEFT,
- "BOX_RIGHT", EPHYSICS_BODY_BOX_FACE_RIGHT,
- "BOX_TOP", EPHYSICS_BODY_BOX_FACE_TOP,
- "BOX_BOTTOM", EPHYSICS_BODY_BOX_FACE_BOTTOM,
- "CLOTH_FRONT", EPHYSICS_BODY_CLOTH_FACE_FRONT,
- "CLOTH_BACK", EPHYSICS_BODY_CLOTH_FACE_BACK,
- "CYLINDER_MIDDLE_FRONT", EPHYSICS_BODY_CYLINDER_FACE_MIDDLE_FRONT,
- "CYLINDER_MIDDLE_BACK", EPHYSICS_BODY_CYLINDER_FACE_MIDDLE_BACK,
- "CYLINDER_FRONT", EPHYSICS_BODY_CYLINDER_FACE_FRONT,
- "CYLINDER_BACK", EPHYSICS_BODY_CYLINDER_FACE_BACK,
- "CYLINDER_CURVED", EPHYSICS_BODY_CYLINDER_FACE_CURVED,
- "SPHERE_FRONT", EPHYSICS_BODY_SPHERE_FACE_FRONT,
- "SPHERE_BACK", EPHYSICS_BODY_SPHERE_FACE_BACK,
- NULL);
+ "BOX_MIDDLE_FRONT", EPHYSICS_BODY_BOX_FACE_MIDDLE_FRONT,
+ "BOX_MIDDLE_BACK", EPHYSICS_BODY_BOX_FACE_MIDDLE_BACK,
+ "BOX_FRONT", EPHYSICS_BODY_BOX_FACE_FRONT,
+ "BOX_BACK", EPHYSICS_BODY_BOX_FACE_BACK,
+ "BOX_LEFT", EPHYSICS_BODY_BOX_FACE_LEFT,
+ "BOX_RIGHT", EPHYSICS_BODY_BOX_FACE_RIGHT,
+ "BOX_TOP", EPHYSICS_BODY_BOX_FACE_TOP,
+ "BOX_BOTTOM", EPHYSICS_BODY_BOX_FACE_BOTTOM,
+ "CLOTH_FRONT", EPHYSICS_BODY_CLOTH_FACE_FRONT,
+ "CLOTH_BACK", EPHYSICS_BODY_CLOTH_FACE_BACK,
+ "CYLINDER_MIDDLE_FRONT", EPHYSICS_BODY_CYLINDER_FACE_MIDDLE_FRONT,
+ "CYLINDER_MIDDLE_BACK", EPHYSICS_BODY_CYLINDER_FACE_MIDDLE_BACK,
+ "CYLINDER_FRONT", EPHYSICS_BODY_CYLINDER_FACE_FRONT,
+ "CYLINDER_BACK", EPHYSICS_BODY_CYLINDER_FACE_BACK,
+ "CYLINDER_CURVED", EPHYSICS_BODY_CYLINDER_FACE_CURVED,
+ "SPHERE_FRONT", EPHYSICS_BODY_SPHERE_FACE_FRONT,
+ "SPHERE_BACK", EPHYSICS_BODY_SPHERE_FACE_BACK,
+ NULL);
EINA_LIST_FOREACH(current_desc->physics.faces, l, pface2)
{
- if ((pface != pface2) && (pface->type == pface2->type))
- {
- ERR("parse error %s:%i. There is already a face of type \"%i\"",
- file_in, line - 1, pface->type);
- exit(-1);
- }
+ if ((pface != pface2) && (pface->type == pface2->type))
+ {
+ ERR("parse error %s:%i. There is already a face of type \"%i\"",
+ file_in, line - 1, pface->type);
+ exit(-1);
+ }
}
}
+
#endif
/**
This sets the group that is used as the object representing the physics
body face.
@endproperty
-*/
+ */
#ifdef HAVE_EPHYSICS
static void
st_collections_group_parts_part_description_physics_face_source(void)
pface->source = parse_str(0);
data_queue_face_group_lookup(pface->source);
}
+
#endif
/** @edcsubsection{collections_group_parts_description_map,
This also implicitly enables perspective transforms (see the on
parameter for the map section).
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_map_perspective(void)
{
the ambient lighting when calculating brightness (alpha also not
used).
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_map_light(void)
{
Defaults: 0
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_map_on(void)
{
Defaults: 1
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_map_smooth(void)
{
Defaults: 1
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_map_alpha(void)
{
Defaults: 0
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_map_backface_cull(void)
{
Defaults: 0
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_map_perspective_on(void)
{
Defaults: 255 255 255 255
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_map_color(void)
{
*color = tmp;
current_desc->map.colors_count++;
current_desc->map.colors =
- realloc(current_desc->map.colors,
- sizeof(Edje_Map_Color*) * current_desc->map.colors_count);
+ realloc(current_desc->map.colors,
+ sizeof(Edje_Map_Color *) * current_desc->map.colors_count);
current_desc->map.colors[current_desc->map.colors_count - 1] = color;
}
Defaults: 1.0
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_map_zoom_x(void)
{
Defaults: 1.0
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_map_zoom_y(void)
{
@description
Rotates the part, optionally with the center on another part.
@endblock
-
+
@property
center
@parameters
x, y and z axes. If no center is given, the parts original center
itself is used for the rotation center.
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_map_rotation_center(void)
{
Defaults: 0.0
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_map_rotation_x(void)
{
Defaults: 0.0
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_map_rotation_y(void)
{
Defaults: 0.0
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_map_rotation_z(void)
{
Adds focal and plane perspective to the part. Active if perspective_on is true.
Must be provided if the part is being used by other part as it's perspective target.
@endblock
-
+
@property
zplane
@parameters
Defaults: 0
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_perspective_zplane(void)
{
current_desc->persp.zplane = parse_int(0);
}
-
/**
@page edcref
@property
Defaults: 1000
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_perspective_focal(void)
{
current_desc->persp.focal = parse_int_range(0, 1, 0x7fffffff);
}
-
/** @edcsubsection{collections_group_parts_description_filter,
* Group.Parts.Part.Description.Filter} */
@ref evasfiltersref "here" or a filter name defined in the
@ref sec_collections_group_filters "Filters" section.
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_filter_code(void)
{
exit(-1);
}
- free((void*) filter->code);
+ free((void *)filter->code);
filter->code = parse_str(0);
}
text or image filter operation. Optionally, a buffer name may be
specified, so the same filter code can be used with different sources.
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_filter_source(void)
{
int args;
static const char allowed_name_chars[] =
- "abcdefghijklmnopqrstuvwxyzABCDEFGHJIKLMNOPQRSTUVWXYZ0123456789_";
+ "abcdefghijklmnopqrstuvwxyzABCDEFGHJIKLMNOPQRSTUVWXYZ0123456789_";
if (current_part->type == EDJE_PART_TYPE_TEXT)
filter = &(((Edje_Part_Description_Text *)current_desc)->filter);
mycc = { r = 255, g = 0, b, a, r2, g2, b2, a2, r3, g3, b3, a3 }
@endcode
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_filter_data(void)
{
Set parameters for EXTERNAL parts. The value overwrites previous
definitions with the same name.
@endblock
-*/
+ */
static void
_st_collections_group_parts_part_description_params(Edje_External_Param_Type type)
{
exit(-1);
}
- ed = (Edje_Part_Description_External*) current_desc;
+ ed = (Edje_Part_Description_External *)current_desc;
name = parse_str(0);
/* if a param with this name already exists, overwrite it */
EINA_LIST_FOREACH(ed->external_params, l, param)
{
- if (!strcmp(param->name, name))
- {
- found = 1;
+ if (!strcmp(param->name, name))
+ {
+ found = 1;
free(name);
- break;
- }
+ break;
+ }
}
if (!found)
{
- param = mem_alloc(SZ(Edje_External_Param));
- param->name = name;
+ param = mem_alloc(SZ(Edje_External_Param));
+ param->name = name;
}
param->type = type;
switch (type)
{
case EDJE_EXTERNAL_PARAM_TYPE_BOOL:
- param->i = parse_bool(1);
- break;
+ param->i = parse_bool(1);
+ break;
+
case EDJE_EXTERNAL_PARAM_TYPE_INT:
- param->i = parse_int(1);
- break;
+ param->i = parse_int(1);
+ break;
+
case EDJE_EXTERNAL_PARAM_TYPE_DOUBLE:
- param->d = parse_float(1);
- break;
+ param->d = parse_float(1);
+ break;
+
case EDJE_EXTERNAL_PARAM_TYPE_CHOICE:
case EDJE_EXTERNAL_PARAM_TYPE_STRING:
- param->s = parse_str(1);
- break;
+ param->s = parse_str(1);
+ break;
+
default:
- ERR("parse error %s:%i. Invalid param type.",
- file_in, line - 1);
- break;
+ ERR("parse error %s:%i. Invalid param type.",
+ file_in, line - 1);
+ break;
}
if (!found)
@effect
Adds an integer parameter for an external object
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_params_int(void)
{
@effect
Adds a double parameter for an external object
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_params_double(void)
{
@effect
Adds a string parameter for an external object
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_params_string(void)
{
@effect
Adds an boolean parameter for an external object.
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_params_bool(void)
{
choice values are defined by external type at their register time
and will be validated at runtime.
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_params_choice(void)
{
signal: "edje,signal"; source: "edje";
@since 1.10
@endblock
-*/
+ */
static void
ob_collections_group_parts_part_description_link(void)
{
const char *nm;
pcp = eina_list_last_data_get(edje_collections);
- epp = (Edje_Part_Parser*)current_part;
+ epp = (Edje_Part_Parser *)current_part;
ob_collections_group_programs_program();
- _edje_program_remove((Edje_Part_Collection*)pcp, current_program);
+ _edje_program_remove((Edje_Part_Collection *)pcp, current_program);
el = mem_alloc(SZ(Edje_Part_Description_Link));
el->pr = current_program;
el->ed = current_desc;
default value if it is not provided.
@since 1.10
@endproperty
-*/
+ */
static void
st_collections_group_parts_part_description_link_base(void)
{
el = eina_list_last_data_get(pcp->links);
if ((!el) || (el->pr != current_program) ||
- (el->ed != current_desc) || (el->epp != (Edje_Part_Parser*)current_part) ||
+ (el->ed != current_desc) || (el->epp != (Edje_Part_Parser *)current_part) ||
el->pr->source)
ob_collections_group_parts_part_description_link();
el = eina_list_last_data_get(pcp->links);
if (current_program->signal && pcp->link_hash)
{
snprintf(buf, sizeof(buf), "%s\"\"\"%s", current_program->signal,
- current_program->source ? current_program->source: "");
+ current_program->source ? current_program->source : "");
eina_hash_list_remove(pcp->link_hash, buf, el);
}
if (!pcp->link_hash)
pcp->link_hash = eina_hash_string_superfast_new((Eina_Free_Cb)eina_list_free);
- free((void*)current_program->signal);
+ free((void *)current_program->signal);
current_program->signal = name;
if (get_arg_count() == 2)
{
name = parse_str(1);
- free((void*)current_program->source);
+ free((void *)current_program->source);
current_program->source = name;
}
snprintf(buf, sizeof(buf), "%s\"\"\"%s", current_program->signal,
@description
The programs group contain one ore more program.
@endblock
-*/
+ */
static void
_program_sequence_check(void)
{
if (sequencing != current_program) return;
ERR("parse error %s:%i. cannot set sequence parent program attributes within sequence block",
- file_in, line - 1);
+ file_in, line - 1);
exit(-1);
}
EINA_LIST_FOREACH(ep->after, l, pa2)
{
- if (!strcmp(name, (char*) (pa2 + 1)))
+ if (!strcmp(name, (char *)(pa2 + 1)))
return;
}
pa = mem_alloc(SZ(Edje_Program_After) + strlen(name) + 1);
pa->id = -1;
ep->after = eina_list_append(ep->after, pa);
- copy = (char*)(pa + 1);
+ copy = (char *)(pa + 1);
memcpy(copy, name, strlen(name) + 1);
pl = data_queue_program_lookup(pc, name, &(pa->id));
if (pl)
Programs can change the state of parts, react to events or trigger
other events.
@endblock
-*/
+ */
static void
ob_collections_group_programs_program(void)
{
@effect
Symbolic name of program as a unique identifier.
@endproperty
-*/
+ */
static void
st_collections_group_programs_program_name(void)
{
- focus,part,in;
- focus,part,out.
@endproperty
-*/
+ */
static void
st_collections_group_programs_program_signal(void)
{
keyword per program may be used. ex: source: "button-*"; (Signals from
any part or program named "button-*" are accepted).
@endproperty
-*/
+ */
static void
st_collections_group_programs_program_source(void)
{
pc = eina_list_data_get(eina_list_last(edje_collections));
_edje_program_remove(pc, current_program);
- free((void*)current_program->source);
+ free((void *)current_program->source);
current_program->source = parse_str(0);
_edje_program_insert(pc, current_program);
}
Only one filter per program can be used. If [part] is not given, the source of
the event will be used instead.
@endproperty
-*/
+ */
static void
st_collections_group_programs_program_filter(void)
{
_program_sequence_check();
- if(is_param(1)) {
- current_program->filter.part = parse_str(0);
- current_program->filter.state = parse_str(1);
- } else {
- current_program->filter.state = parse_str(0);
- }
+ if (is_param(1))
+ {
+ current_program->filter.part = parse_str(0);
+ current_program->filter.state = parse_str(1);
+ }
+ else
+ {
+ current_program->filter.state = parse_str(0);
+ }
}
/**
Defaults: 0.0 0.0
@endproperty
-*/
+ */
static void
st_collections_group_programs_program_in(void)
{
@li ALERT
@endproperty
-*/
+ */
static void
st_collections_group_programs_program_action(void)
{
NULL);
if (ep->action == EDJE_ACTION_TYPE_STATE_SET)
{
- ep->state = parse_str(1);
- if (get_arg_count() == 2)
- ep->value = 0.0;
- else
- ep->value = parse_float_range(2, 0.0, 1.0);
+ ep->state = parse_str(1);
+ if (get_arg_count() == 2)
+ ep->value = 0.0;
+ else
+ ep->value = parse_float_range(2, 0.0, 1.0);
}
else if ((ep->action == EDJE_ACTION_TYPE_FOCUS_SET) ||
(ep->action == EDJE_ACTION_TYPE_FOCUS_OBJECT))
}
else if (ep->action == EDJE_ACTION_TYPE_SIGNAL_EMIT)
{
- ep->state = parse_str(1);
- ep->state2 = parse_str(2);
+ ep->state = parse_str(1);
+ ep->state2 = parse_str(2);
}
else if (ep->action == EDJE_ACTION_TYPE_SOUND_SAMPLE)
{
}
else if (ep->action == EDJE_ACTION_TYPE_DRAG_VAL_SET)
{
- ep->value = parse_float(1);
- ep->value2 = parse_float(2);
+ ep->value = parse_float(1);
+ ep->value2 = parse_float(2);
}
else if (ep->action == EDJE_ACTION_TYPE_DRAG_VAL_STEP)
{
- ep->value = parse_float(1);
- ep->value2 = parse_float(2);
+ ep->value = parse_float(1);
+ ep->value2 = parse_float(2);
}
else if (ep->action == EDJE_ACTION_TYPE_DRAG_VAL_PAGE)
{
- ep->value = parse_float(1);
- ep->value2 = parse_float(2);
+ ep->value = parse_float(1);
+ ep->value2 = parse_float(2);
}
else if (ep->action == EDJE_ACTION_TYPE_PARAM_COPY)
{
- char *src_part, *dst_part;
-
- src_part = parse_str(1);
- ep->state = parse_str(2);
- dst_part = parse_str(3);
- ep->state2 = parse_str(4);
-
- data_queue_part_lookup(pc, src_part, &(ep->param.src));
- data_queue_part_lookup(pc, dst_part, &(ep->param.dst));
-
- free(src_part);
- free(dst_part);
+ char *src_part, *dst_part;
+
+ src_part = parse_str(1);
+ ep->state = parse_str(2);
+ dst_part = parse_str(3);
+ ep->state2 = parse_str(4);
+
+ data_queue_part_lookup(pc, src_part, &(ep->param.src));
+ data_queue_part_lookup(pc, dst_part, &(ep->param.dst));
+
+ free(src_part);
+ free(dst_part);
}
else if (ep->action == EDJE_ACTION_TYPE_PARAM_SET)
{
- char *part;
-
- part = parse_str(1);
- ep->state = parse_str(2);
- ep->state2 = parse_str(3);
-
- data_queue_part_lookup(pc, part, &(ep->param.dst));
- free(part);
+ char *part;
+
+ part = parse_str(1);
+ ep->state = parse_str(2);
+ ep->state2 = parse_str(3);
+
+ data_queue_part_lookup(pc, part, &(ep->param.dst));
+ free(part);
}
#ifdef HAVE_EPHYSICS
else if ((ep->action == EDJE_ACTION_TYPE_PHYSICS_IMPULSE) ||
switch (ep->action)
{
case EDJE_ACTION_TYPE_SCRIPT:
- /* this is implicitly set by script {} so this is here just for
- * completeness */
- break;
+ /* this is implicitly set by script {} so this is here just for
+ * completeness */
+ break;
+
case EDJE_ACTION_TYPE_ACTION_STOP:
case EDJE_ACTION_TYPE_PHYSICS_FORCES_CLEAR:
case EDJE_ACTION_TYPE_PHYSICS_STOP:
check_arg_count(1);
break;
+
case EDJE_ACTION_TYPE_PARAM_SET:
case EDJE_ACTION_TYPE_PHYSICS_IMPULSE:
case EDJE_ACTION_TYPE_PHYSICS_TORQUE_IMPULSE:
case EDJE_ACTION_TYPE_PHYSICS_ANG_VEL_SET:
check_arg_count(4);
break;
+
case EDJE_ACTION_TYPE_PARAM_COPY:
case EDJE_ACTION_TYPE_PHYSICS_ROT_SET:
check_arg_count(5);
break;
+
case EDJE_ACTION_TYPE_SOUND_SAMPLE:
case EDJE_ACTION_TYPE_VIBRATION_SAMPLE:
break;
+
case EDJE_ACTION_TYPE_STATE_SET:
check_min_arg_count(2);
break;
+
case EDJE_ACTION_TYPE_FOCUS_SET:
case EDJE_ACTION_TYPE_FOCUS_OBJECT:
check_min_arg_count(1);
#endif
//
default:
- check_arg_count(3);
+ check_arg_count(3);
}
}
@li BOUNCE
@li SPRING
@li CUBIC_BEZIER
-
+
ACCEL_FAC, DECEL_FAC and SIN_FAC need the extra optional
"interp val 1" to determine the "factor" of curviness. 1.0 is the same
as their non-factor counterparts, where 0.0 is equal to linear.
Numbers higher than one make the curve angles steeper with a more
pronounced curve point.
-
+
DIVIS, BOUNCE and SPRING also require "interp val 2" in addition
to "interp val 1".
-
+
DIVIS uses val 1 as the initial gradient start
(0.0 is horizontal, 1.0 is diagonal (linear), 2.0 is twice the
gradient of linear etc.). val 2 is interpreted as an integer factor
defining how much the value swings "outside" the gradient only to come
back to the final resting spot at the end. 0.0 for val 2 is equivalent
to linear interpolation. Note that DIVIS can exceed 1.0
-
+
BOUNCE uses val 2 as the number of bounces (so its rounded down to
the nearest integer value), with val 1 determining how much the
bounce decays, with 0.0 giving linear decay per bounce, and higher
Can be used as the last parameter of any transition type. (since 1.1.0)
@endproperty
-*/
+ */
static void
st_collections_group_programs_program_transition(void)
{
_program_sequence_check();
current_program->tween.v1 = current_program->tween.v2 =
- current_program->tween.v3 = current_program->tween.v4 = 0.0;
+ current_program->tween.v3 = current_program->tween.v4 = 0.0;
current_program->tween.mode = parse_enum(0,
- // short names
- "LIN", EDJE_TWEEN_MODE_LINEAR,
- "SIN", EDJE_TWEEN_MODE_SINUSOIDAL,
- "ACCEL", EDJE_TWEEN_MODE_ACCELERATE,
- "DECEL", EDJE_TWEEN_MODE_DECELERATE,
- "ACCEL_FAC", EDJE_TWEEN_MODE_ACCELERATE_FACTOR,
- "DECEL_FAC", EDJE_TWEEN_MODE_DECELERATE_FACTOR,
- "SIN_FAC", EDJE_TWEEN_MODE_SINUSOIDAL_FACTOR,
- "DIVIS", EDJE_TWEEN_MODE_DIVISOR_INTERP,
-
- // long/full names
- "LINEAR", EDJE_TWEEN_MODE_LINEAR,
- "SINUSOIDAL", EDJE_TWEEN_MODE_SINUSOIDAL,
- "CUBIC_BEZIER", EDJE_TWEEN_MODE_CUBIC_BEZIER,
- "ACCELERATE", EDJE_TWEEN_MODE_ACCELERATE,
- "DECELERATE", EDJE_TWEEN_MODE_DECELERATE,
- "ACCELERATE_FACTOR", EDJE_TWEEN_MODE_ACCELERATE_FACTOR,
- "DECELERATE_FACTOR", EDJE_TWEEN_MODE_DECELERATE_FACTOR,
- "SINUSOIDAL_FACTOR", EDJE_TWEEN_MODE_SINUSOIDAL_FACTOR,
- "DIVISOR_INTERP", EDJE_TWEEN_MODE_DIVISOR_INTERP,
-
- // long/full is short enough
- "BOUNCE", EDJE_TWEEN_MODE_BOUNCE,
- "SPRING", EDJE_TWEEN_MODE_SPRING,
- NULL);
+ // short names
+ "LIN", EDJE_TWEEN_MODE_LINEAR,
+ "SIN", EDJE_TWEEN_MODE_SINUSOIDAL,
+ "ACCEL", EDJE_TWEEN_MODE_ACCELERATE,
+ "DECEL", EDJE_TWEEN_MODE_DECELERATE,
+ "ACCEL_FAC", EDJE_TWEEN_MODE_ACCELERATE_FACTOR,
+ "DECEL_FAC", EDJE_TWEEN_MODE_DECELERATE_FACTOR,
+ "SIN_FAC", EDJE_TWEEN_MODE_SINUSOIDAL_FACTOR,
+ "DIVIS", EDJE_TWEEN_MODE_DIVISOR_INTERP,
+
+ // long/full names
+ "LINEAR", EDJE_TWEEN_MODE_LINEAR,
+ "SINUSOIDAL", EDJE_TWEEN_MODE_SINUSOIDAL,
+ "CUBIC_BEZIER", EDJE_TWEEN_MODE_CUBIC_BEZIER,
+ "ACCELERATE", EDJE_TWEEN_MODE_ACCELERATE,
+ "DECELERATE", EDJE_TWEEN_MODE_DECELERATE,
+ "ACCELERATE_FACTOR", EDJE_TWEEN_MODE_ACCELERATE_FACTOR,
+ "DECELERATE_FACTOR", EDJE_TWEEN_MODE_DECELERATE_FACTOR,
+ "SINUSOIDAL_FACTOR", EDJE_TWEEN_MODE_SINUSOIDAL_FACTOR,
+ "DIVISOR_INTERP", EDJE_TWEEN_MODE_DIVISOR_INTERP,
+
+ // long/full is short enough
+ "BOUNCE", EDJE_TWEEN_MODE_BOUNCE,
+ "SPRING", EDJE_TWEEN_MODE_SPRING,
+ NULL);
current_program->tween.time = FROM_DOUBLE(parse_float_range(1, 0.0, 999999999.0));
- //Check the index of params not related to tweenmode's param
- //This index use for count of the tweenmode's param
+ //Check the index of params not related to tweenmode's param
+ //This index use for count of the tweenmode's param
if ((index = get_param_index("USE_DURATION_FACTOR")) != -1)
{
current_program->tween.use_duration_factor = parse_bool(index + 1);
index = current;
required_args++;
}
- switch(current_program->tween.mode)
- {
- case EDJE_TWEEN_MODE_LINEAR:
- case EDJE_TWEEN_MODE_SINUSOIDAL:
- case EDJE_TWEEN_MODE_ACCELERATE:
- case EDJE_TWEEN_MODE_DECELERATE:
- {
- required_args += 2;
- check_arg_count(required_args);
- }
- break;
-
- // the following need v1
- case EDJE_TWEEN_MODE_ACCELERATE_FACTOR:
- case EDJE_TWEEN_MODE_DECELERATE_FACTOR:
- case EDJE_TWEEN_MODE_SINUSOIDAL_FACTOR:
- {
- required_args += 3;
- check_arg_count(required_args);
- if (index == -1 || index > 2)
- {
- current_program->tween.v1 =
- FROM_DOUBLE(parse_float_range(2, -999999999.0, 999999999.0));
- break;
- }
- else
- {
- ERR("parse error %s:%i. Need 3rd parameter to set factor",
+ switch (current_program->tween.mode)
+ {
+ case EDJE_TWEEN_MODE_LINEAR:
+ case EDJE_TWEEN_MODE_SINUSOIDAL:
+ case EDJE_TWEEN_MODE_ACCELERATE:
+ case EDJE_TWEEN_MODE_DECELERATE:
+ {
+ required_args += 2;
+ check_arg_count(required_args);
+ }
+ break;
+
+ // the following need v1
+ case EDJE_TWEEN_MODE_ACCELERATE_FACTOR:
+ case EDJE_TWEEN_MODE_DECELERATE_FACTOR:
+ case EDJE_TWEEN_MODE_SINUSOIDAL_FACTOR:
+ {
+ required_args += 3;
+ check_arg_count(required_args);
+ if (index == -1 || index > 2)
+ {
+ current_program->tween.v1 =
+ FROM_DOUBLE(parse_float_range(2, -999999999.0, 999999999.0));
+ break;
+ }
+ else
+ {
+ ERR("parse error %s:%i. Need 3rd parameter to set factor",
file_in, line - 1);
- exit(-1);
- }
- }
- case EDJE_TWEEN_MODE_DIVISOR_INTERP:
- case EDJE_TWEEN_MODE_BOUNCE:
- case EDJE_TWEEN_MODE_SPRING:
- {
- required_args += 4;
- check_arg_count(required_args);
- if (index == -1 || index > 3)
- {
- current_program->tween.v1 =
- FROM_DOUBLE(parse_float_range(2, -999999999.0, 999999999.0));
- current_program->tween.v2 =
- FROM_DOUBLE(parse_float_range(3, -999999999.0, 999999999.0));
- break;
- }
- else
- {
- ERR("parse error %s:%i. "
+ exit(-1);
+ }
+ }
+
+ case EDJE_TWEEN_MODE_DIVISOR_INTERP:
+ case EDJE_TWEEN_MODE_BOUNCE:
+ case EDJE_TWEEN_MODE_SPRING:
+ {
+ required_args += 4;
+ check_arg_count(required_args);
+ if (index == -1 || index > 3)
+ {
+ current_program->tween.v1 =
+ FROM_DOUBLE(parse_float_range(2, -999999999.0, 999999999.0));
+ current_program->tween.v2 =
+ FROM_DOUBLE(parse_float_range(3, -999999999.0, 999999999.0));
+ break;
+ }
+ else
+ {
+ ERR("parse error %s:%i. "
"Need 3rd and 4th parameters to set factor and counts",
file_in, line - 1);
- exit(-1);
- }
- }
- case EDJE_TWEEN_MODE_CUBIC_BEZIER:
- {
- required_args += 6;
- check_arg_count(required_args);
- if (index == -1 || index > 5)
- {
- current_program->tween.v1 =
- FROM_DOUBLE(parse_float_range(2, -999999999.0, 999999999.0));
- current_program->tween.v2 =
- FROM_DOUBLE(parse_float_range(3, -999999999.0, 999999999.0));
- current_program->tween.v3 =
- FROM_DOUBLE(parse_float_range(4, -999999999.0, 999999999.0));
- current_program->tween.v4 =
- FROM_DOUBLE(parse_float_range(5, -999999999.0, 999999999.0));
- break;
- }
- else
- {
- ERR("parse error %s:%i. "
+ exit(-1);
+ }
+ }
+
+ case EDJE_TWEEN_MODE_CUBIC_BEZIER:
+ {
+ required_args += 6;
+ check_arg_count(required_args);
+ if (index == -1 || index > 5)
+ {
+ current_program->tween.v1 =
+ FROM_DOUBLE(parse_float_range(2, -999999999.0, 999999999.0));
+ current_program->tween.v2 =
+ FROM_DOUBLE(parse_float_range(3, -999999999.0, 999999999.0));
+ current_program->tween.v3 =
+ FROM_DOUBLE(parse_float_range(4, -999999999.0, 999999999.0));
+ current_program->tween.v4 =
+ FROM_DOUBLE(parse_float_range(5, -999999999.0, 999999999.0));
+ break;
+ }
+ else
+ {
+ ERR("parse error %s:%i. "
"Need 3rd, 4th, 5th and 6th parameters to set x1, y1, x2 and y2",
file_in, line - 1);
- exit(-1);
- }
- }
- }
- if (current > 0)
- current_program->tween.mode |= EDJE_TWEEN_MODE_OPT_FROM_CURRENT;
+ exit(-1);
+ }
+ }
+ }
+ if (current > 0)
+ current_program->tween.mode |= EDJE_TWEEN_MODE_OPT_FROM_CURRENT;
}
static void
EINA_LIST_FOREACH(ep->targets, l, etw)
{
- if (!strcmp(name, (char*) (etw + 1)))
+ if (!strcmp(name, (char *)(etw + 1)))
{
free(name);
return;
et = mem_alloc(SZ(Edje_Program_Target) + strlen(name) + 1);
ep->targets = eina_list_append(ep->targets, et);
- copy = (char*) (et + 1);
+ copy = (char *)(et + 1);
memcpy(copy, name, strlen(name) + 1);
switch (ep->action)
{
case EDJE_ACTION_TYPE_ACTION_STOP:
- data_queue_program_lookup(pc, name, &(et->id));
- break;
+ data_queue_program_lookup(pc, name, &(et->id));
+ break;
+
case EDJE_ACTION_TYPE_STATE_SET:
case EDJE_ACTION_TYPE_SIGNAL_EMIT:
case EDJE_ACTION_TYPE_DRAG_VAL_SET:
case EDJE_ACTION_TYPE_PHYSICS_STOP:
case EDJE_ACTION_TYPE_PHYSICS_ROT_SET:
#endif
- data_queue_part_lookup(pc, name, &(et->id));
- break;
+ data_queue_part_lookup(pc, name, &(et->id));
+ break;
+
default:
- ERR("parse error %s:%i. target may only be used after action",
- file_in, line - 1);
- exit(-1);
+ ERR("parse error %s:%i. target may only be used after action",
+ file_in, line - 1);
+ exit(-1);
}
free(name);
}
keywords may be specified, one per target. SIGNAL_EMITs can have
targets.
@endproperty
-*/
+ */
static void
st_collections_group_programs_program_target(void)
{
targets.
@since 1.10
@endproperty
-*/
+ */
static void
st_collections_group_programs_program_targets(void)
{
and 'targets' keywords may be specified. SIGNAL_EMITs can have targets.
@since 1.10
@endproperty
-*/
+ */
static void
st_collections_group_programs_program_target_groups(void)
{
continue;
}
ERR("parse error %s:%i. There is no target_group with the name '%s'",
- file_in, line - 1, name);
+ file_in, line - 1, name);
exit(-1);
}
}
source and signal parameters of a program run as an "after" are ignored.
Multiple "after" statements can be specified per program.
@endproperty
-*/
+ */
static void
st_collections_group_programs_program_after(void)
{
[name] [description]
@effect
Specifies a hint to let applications (or IDE's) know how to bind
- things. The parameter name should contain the name of the function that
- the application should use, and description describes how it should
- be used.
+ things. The parameter name should contain the name of the function that
+ the application should use, and description describes how it should
+ be used.
@endproperty
-*/
+ */
static void
st_collections_group_programs_program_api(void)
{
if (is_param(1))
{
- check_arg_count(2);
- current_program->api.description = parse_str(1);
+ check_arg_count(2);
+ current_program->api.description = parse_str(1);
}
}
sequenced program.
@since 1.10
@endblock
-*/
+ */
static void
ob_collections_group_programs_program_sequence(void)
{
sequencing = current_program;
sequencing_lookups = current_program_lookups;
current_program_lookups = NULL;
- ((Edje_Program_Parser*)sequencing)->can_override = EINA_FALSE;
+ ((Edje_Program_Parser *)sequencing)->can_override = EINA_FALSE;
}
static void
current_part->api.name = parse_str(0);
if (is_param(1))
{
- check_arg_count(2);
- current_part->api.description = parse_str(1);
+ check_arg_count(2);
+ current_part->api.description = parse_str(1);
}
}
pc->physics.world.gravity.y = parse_int(1);
pc->physics.world.gravity.z = parse_int(2);
}
+
#endif
/**
pc->physics.world.rate = parse_float(0);
}
+
#endif
/**
pc->physics.world.depth = parse_int(0);
}
+
#endif
/**
pc->physics.world.z = parse_int(0);
}
+
#endif
/**
@page edcref
</table>
-*/
-
+ */
void
edje_cc_handlers_pop_notify(const char *token)
if (sequencing && (!strcmp(token, "sequence")))
{
current_program = sequencing;
- ((Edje_Program_Parser*)sequencing)->can_override = EINA_TRUE;
+ ((Edje_Program_Parser *)sequencing)->can_override = EINA_TRUE;
eina_list_free(current_program_lookups);
current_program_lookups = sequencing_lookups;
sequencing_lookups = NULL;
static void
edje_cc_handlers_hierarchy_set(Edje_Part *src)
{ /* This funcion makes current part rel_1.id, rel_2.id relative to src */
- if (!src->name)
- {
- ERR("parse error %s:%i. You must set parent name before creating nested part",
- file_in, line - 1);
- exit(-1);
- }
- st_collections_group_parts_part_description_rel1_to_set(src->name);
- st_collections_group_parts_part_description_rel2_to_set(src->name);
+ if (!src->name)
+ {
+ ERR("parse error %s:%i. You must set parent name before creating nested part",
+ file_in, line - 1);
+ exit(-1);
+ }
+ st_collections_group_parts_part_description_rel1_to_set(src->name);
+ st_collections_group_parts_part_description_rel2_to_set(src->name);
}
static Edje_Part *
edje_cc_handlers_hierarchy_parent_get(void)
{ /* Return the parent part pointer */
- int idx = eina_array_count(part_hierarchy) - 2;
- Edje_Cc_Handlers_Hierarchy_Info *info = (idx >= 0) ?
- eina_array_data_get(part_hierarchy, idx) : NULL;
+ int idx = eina_array_count(part_hierarchy) - 2;
+ Edje_Cc_Handlers_Hierarchy_Info *info = (idx >= 0) ?
+ eina_array_data_get(part_hierarchy, idx) : NULL;
- return (info) ? info->ep : NULL;
+ return (info) ? info->ep : NULL;
}
static void
edje_cc_handlers_hierarchy_push(Edje_Part *ep, Edje_Part *cp)
{ /* Remove part from hierarchy stack when finished parsing it */
- Edje_Cc_Handlers_Hierarchy_Info *info = malloc(sizeof(*info));
- info->current_de = current_de;
- info->current_part = cp; /* current_part restored on pop */
- info->current_item = current_item;
- info->current_desc = current_desc;
- info->parent_desc = parent_desc;
- info->current_program = current_program;
- info->ep = ep;
+ Edje_Cc_Handlers_Hierarchy_Info *info = malloc(sizeof(*info));
+ info->current_de = current_de;
+ info->current_part = cp; /* current_part restored on pop */
+ info->current_item = current_item;
+ info->current_desc = current_desc;
+ info->parent_desc = parent_desc;
+ info->current_program = current_program;
+ info->ep = ep;
- eina_array_push(part_hierarchy, info);
+ eina_array_push(part_hierarchy, info);
}
static void
unsigned int i;
EINA_ARRAY_ITER_NEXT(part_hierarchy, i, item, iterator)
- {
- if (item->ep == old) item->ep = new;
- if (item->current_part == old) item->current_part = new;
- }
+ {
+ if (item->ep == old) item->ep = new;
+ if (item->current_part == old) item->current_part = new;
+ }
}
void
static void
edje_cc_handlers_hierarchy_pop(void)
{ /* Remove part from hierarchy stack when finished parsing it */
- Edje_Cc_Handlers_Hierarchy_Info *info = eina_array_pop(part_hierarchy);
+ Edje_Cc_Handlers_Hierarchy_Info *info = eina_array_pop(part_hierarchy);
- if (current_part)
- {
- unsigned int i;
+ if (current_part)
+ {
+ unsigned int i;
- if (!current_part->name)
- {
- WRN("Parse error near %s:%i. Unnamed part exists in Group \"%s\".",
- file_in, line - 1, current_de->entry);
- }
+ if (!current_part->name)
+ {
+ WRN("Parse error near %s:%i. Unnamed part exists in Group \"%s\".",
+ file_in, line - 1, current_de->entry);
+ }
- for (i = 0; i < current_part->other.desc_count; i++)
- {
- if (!current_part->other.desc[i]->state.name)
- {
- ERR("syntax error near %s:%i. Non-default or inherited parts are required to have state names for all descriptions (Group '%s', part '%s' has missing description state names)",
- file_in, line - 1, current_de->entry, current_part->name);
- exit(-1);
- }
- }
+ for (i = 0; i < current_part->other.desc_count; i++)
+ {
+ if (!current_part->other.desc[i]->state.name)
+ {
+ ERR("syntax error near %s:%i. Non-default or inherited parts are required to have state names for all descriptions (Group '%s', part '%s' has missing description state names)",
+ file_in, line - 1, current_de->entry, current_part->name);
+ exit(-1);
+ }
+ }
- /* auto-add default desc if it was omitted */
- if (!current_part->default_desc)
- ob_collections_group_parts_part_description();
- }
+ /* auto-add default desc if it was omitted */
+ if (!current_part->default_desc)
+ ob_collections_group_parts_part_description();
+ }
- if (info)
- {
- current_de = info->current_de;
- current_part = info->current_part;
- current_item = info->current_item;
- current_desc = info->current_desc;
- parent_desc = info->parent_desc;
- current_program = info->current_program;
+ if (info)
+ {
+ current_de = info->current_de;
+ current_part = info->current_part;
+ current_item = info->current_item;
+ current_desc = info->current_desc;
+ parent_desc = info->parent_desc;
+ current_program = info->current_program;
- free(info);
- }
+ free(info);
+ }
}
Eina_Bool
{
if ((!current_desc->state.name) || strcmp(current_desc->state.name, token))
{
- free((char*)current_desc->state.name);
+ free((char *)current_desc->state.name);
current_desc->state.name = token;
_part_description_state_update(current_desc);
}
- stack_pop_quick(EINA_FALSE, current_desc->state.name != token);
- return EINA_TRUE;
+ stack_pop_quick(EINA_FALSE, current_desc->state.name != token);
+ return EINA_TRUE;
}
if (!isdigit(token[0])) return EINA_FALSE;
if (edje_file->styles && (!strcmp(last, "style")))
{
if (!had_quote) return EINA_FALSE;
- _style_name(token);
- stack_pop_quick(EINA_FALSE, EINA_FALSE);
- return EINA_TRUE;
+ _style_name(token);
+ stack_pop_quick(EINA_FALSE, EINA_FALSE);
+ return EINA_TRUE;
}
if (edje_file->color_classes && (!strcmp(last, "color_class")))
{