[PATCH2/2] Improve edje documentation.

This reorder couple of functions so the generated documentation makes
sense.

By: Eduardo Felipe < eduardofelipe87@gmail.com>



SVN revision: 46541
This commit is contained in:
Gustavo Sverzut Barbieri 2010-02-27 00:25:32 +00:00
parent 46f0a73003
commit 456f222a0f
1 changed files with 137 additions and 138 deletions

View File

@ -5778,144 +5778,6 @@ st_collections_group_parts_part_description_map_light(void)
}
}
/**
@page edcref
@block
rotation
@context
map {
..
rotation {
center: "name";
x: 45.0;
y: 45.0;
z: 45.0;
}
..
}
@description
Rotates the part, optionally with the center on another part.
@endblock
@property
center
@parameters
[another part's name]
@effect
This sets the part that is used as the center of rotation when
rotating the part with this description. The part's center point
is used as the rotation center when applying rotation around the
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)
{
Edje_Part_Collection *pc;
Edje_Part *ep;
Edje_Part_Description *ed;
check_arg_count(1);
pc = eina_list_data_get(eina_list_last(edje_collections));
ep = eina_list_data_get(eina_list_last(pc->parts));
ed = ep->default_desc;
if (ep->other_desc) ed = eina_list_data_get(eina_list_last(ep->other_desc));
{
char *name;
name = parse_str(0);
data_queue_part_lookup(pc, name, &(ed->map.rot.id_center));
free(name);
}
}
/**
@page edcref
@property
x
@parameters
[X degrees]
@effect
This sets the rotation around the x axis of the part considering
the center set. In degrees.
@endproperty
*/
static void
st_collections_group_parts_part_description_map_rotation_x(void)
{
Edje_Part_Collection *pc;
Edje_Part *ep;
Edje_Part_Description *ed;
check_arg_count(1);
pc = eina_list_data_get(eina_list_last(edje_collections));
ep = eina_list_data_get(eina_list_last(pc->parts));
ed = ep->default_desc;
if (ep->other_desc) ed = eina_list_data_get(eina_list_last(ep->other_desc));
ed->map.rot.x = FROM_DOUBLE(parse_float(0));
}
/**
@page edcref
@property
y
@parameters
[Y degrees]
@effect
This sets the rotation around the u axis of the part considering
the center set. In degrees.
@endproperty
*/
static void
st_collections_group_parts_part_description_map_rotation_y(void)
{
Edje_Part_Collection *pc;
Edje_Part *ep;
Edje_Part_Description *ed;
check_arg_count(1);
pc = eina_list_data_get(eina_list_last(edje_collections));
ep = eina_list_data_get(eina_list_last(pc->parts));
ed = ep->default_desc;
if (ep->other_desc) ed = eina_list_data_get(eina_list_last(ep->other_desc));
ed->map.rot.y = FROM_DOUBLE(parse_float(0));
}
/**
@page edcref
@property
z
@parameters
[Z degrees]
@effect
This sets the rotation around the z axis of the part considering
the center set. In degrees.
@endproperty
*/
static void
st_collections_group_parts_part_description_map_rotation_z(void)
{
Edje_Part_Collection *pc;
Edje_Part *ep;
Edje_Part_Description *ed;
check_arg_count(1);
pc = eina_list_data_get(eina_list_last(edje_collections));
ep = eina_list_data_get(eina_list_last(pc->parts));
ed = ep->default_desc;
if (ep->other_desc) ed = eina_list_data_get(eina_list_last(ep->other_desc));
ed->map.rot.z = FROM_DOUBLE(parse_float(0));
}
/**
@page edcref
@property
@ -6058,6 +5920,143 @@ st_collections_group_parts_part_description_map_perspective_on(void)
if (ep->other_desc) ed = eina_list_data_get(eina_list_last(ep->other_desc));
ed->map.persp_on = parse_bool(0);
}
/**
@page edcref
@block
rotation
@context
map {
..
rotation {
center: "name";
x: 45.0;
y: 45.0;
z: 45.0;
}
..
}
@description
Rotates the part, optionally with the center on another part.
@endblock
@property
center
@parameters
[another part's name]
@effect
This sets the part that is used as the center of rotation when
rotating the part with this description. The part's center point
is used as the rotation center when applying rotation around the
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)
{
Edje_Part_Collection *pc;
Edje_Part *ep;
Edje_Part_Description *ed;
check_arg_count(1);
pc = eina_list_data_get(eina_list_last(edje_collections));
ep = eina_list_data_get(eina_list_last(pc->parts));
ed = ep->default_desc;
if (ep->other_desc) ed = eina_list_data_get(eina_list_last(ep->other_desc));
{
char *name;
name = parse_str(0);
data_queue_part_lookup(pc, name, &(ed->map.rot.id_center));
free(name);
}
}
/**
@page edcref
@property
x
@parameters
[X degrees]
@effect
This sets the rotation around the x axis of the part considering
the center set. In degrees.
@endproperty
*/
static void
st_collections_group_parts_part_description_map_rotation_x(void)
{
Edje_Part_Collection *pc;
Edje_Part *ep;
Edje_Part_Description *ed;
check_arg_count(1);
pc = eina_list_data_get(eina_list_last(edje_collections));
ep = eina_list_data_get(eina_list_last(pc->parts));
ed = ep->default_desc;
if (ep->other_desc) ed = eina_list_data_get(eina_list_last(ep->other_desc));
ed->map.rot.x = FROM_DOUBLE(parse_float(0));
}
/**
@page edcref
@property
y
@parameters
[Y degrees]
@effect
This sets the rotation around the u axis of the part considering
the center set. In degrees.
@endproperty
*/
static void
st_collections_group_parts_part_description_map_rotation_y(void)
{
Edje_Part_Collection *pc;
Edje_Part *ep;
Edje_Part_Description *ed;
check_arg_count(1);
pc = eina_list_data_get(eina_list_last(edje_collections));
ep = eina_list_data_get(eina_list_last(pc->parts));
ed = ep->default_desc;
if (ep->other_desc) ed = eina_list_data_get(eina_list_last(ep->other_desc));
ed->map.rot.y = FROM_DOUBLE(parse_float(0));
}
/**
@page edcref
@property
z
@parameters
[Z degrees]
@effect
This sets the rotation around the z axis of the part considering
the center set. In degrees.
@endproperty
*/
static void
st_collections_group_parts_part_description_map_rotation_z(void)
{
Edje_Part_Collection *pc;
Edje_Part *ep;
Edje_Part_Description *ed;
check_arg_count(1);
pc = eina_list_data_get(eina_list_last(edje_collections));
ep = eina_list_data_get(eina_list_last(pc->parts));
ed = ep->default_desc;
if (ep->other_desc) ed = eina_list_data_get(eina_list_last(ep->other_desc));
ed->map.rot.z = FROM_DOUBLE(parse_float(0));
}
/**
@page edcref