Edje: Add doc in edcref for description.clip_to

Thanks Dave for pointing this out.
This commit is contained in:
Jean-Philippe Andre 2015-06-16 13:56:53 +09:00
parent 6f55b135c2
commit 0ee9a4ac63
1 changed files with 31 additions and 17 deletions

View File

@ -7368,6 +7368,37 @@ st_collections_group_parts_part_description_color3(void)
ed->text.color3.a = parse_int_range(3, 0, 255);
}
/**
@page edcref
@property
clip_to
@parameters
[another part's name]
@effect
Overrides the 'clip_to' property of this part. This allows switching
clippers (or masks) at runtime by changing this part's state. When
transitionning between two states, the switch of the clipper shall
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)
{
Edje_Part_Collection *pc;
check_arg_count(1);
pc = eina_list_data_get(eina_list_last(edje_collections));
{
char *name;
name = parse_str(0);
data_queue_part_lookup(pc, name, &(current_desc->clip_to_id));
free(name);
}
}
/** @edcsubsection{collections_group_parts_description_relatives,
* Group.Parts.Part.Description.Relatives (rel1/rel2)} */
@ -7660,23 +7691,6 @@ st_collections_group_parts_part_description_rel2_to_y(void)
}
}
static void
st_collections_group_parts_part_description_clip_to_id(void)
{
Edje_Part_Collection *pc;
check_arg_count(1);
pc = eina_list_data_get(eina_list_last(edje_collections));
{
char *name;
name = parse_str(0);
data_queue_part_lookup(pc, name, &(current_desc->clip_to_id));
free(name);
}
}
/** @edcsubsection{collections_group_parts_description_image,
* Group.Parts.Part.Description.Image} */