edje_cc: move box and table properties documentation

Documentation comments for properties should be near parser
implementation.

@fix
This commit is contained in:
Andrii Kroitor 2017-10-30 13:12:11 +02:00
parent 8a23f30291
commit a7769e806a
1 changed files with 94 additions and 82 deletions

View File

@ -11680,37 +11680,6 @@ st_collections_group_parts_part_description_text_ellipsis(void)
Defaults: "horizontal"
@endproperty
@property
align
@parameters
[horizontal] [vertical]
@effect
Change the position of the point of balance inside the container [-1.0 - 1.0].
Defaults: 0.5 0.5
@endproperty
@property
padding
@parameters
[horizontal] [vertical]
@effect
Sets the space between cells in pixels.
Defaults: 0 0
@endproperty
@property
min
@parameters
[horizontal] [vertical]
@effect
When any of the parameters is enabled (1) it forces the minimum size of
the box to be equal to the minimum size of the items.
Defaults: 0 0
@endproperty
*/
static void st_collections_group_parts_part_description_box_layout(void)
{
@ -11732,6 +11701,18 @@ static void st_collections_group_parts_part_description_box_layout(void)
ed->box.alt_layout = parse_str(1);
}
/**
@page edcref
@property
align
@parameters
[horizontal] [vertical]
@effect
Change the position of the point of balance inside the box [-1.0 - 1.0].
Defaults: 0.5 0.5
@endproperty
*/
static void st_collections_group_parts_part_description_box_align(void)
{
Edje_Part_Description_Box *ed;
@ -11751,6 +11732,18 @@ static void st_collections_group_parts_part_description_box_align(void)
ed->box.align.y = FROM_DOUBLE(parse_float_range(1, -1.0, 1.0));
}
/**
@page edcref
@property
padding
@parameters
[horizontal] [vertical]
@effect
Sets the space between box items in pixels.
Defaults: 0 0
@endproperty
*/
static void st_collections_group_parts_part_description_box_padding(void)
{
Edje_Part_Description_Box *ed;
@ -11770,6 +11763,19 @@ static void st_collections_group_parts_part_description_box_padding(void)
ed->box.padding.y = parse_int_range(1, 0, 0x7fffffff);
}
/**
@page edcref
@property
min
@parameters
[horizontal] [vertical]
@effect
When any of the parameters is enabled (1) it forces the minimum size of
the box to be equal to the minimum size of the items.
Defaults: 0 0
@endproperty
*/
static void
st_collections_group_parts_part_description_box_min(void)
{
@ -11830,37 +11836,6 @@ st_collections_group_parts_part_description_box_min(void)
Defaults: NONE
@endproperty
@property
align
@parameters
[horizontal] [vertical]
@effect
Change the position of the point of balance inside the container [-1.0 - 1.0].
Defaults: 0.5 0.5
@endproperty
@property
padding
@parameters
[horizontal] [vertical]
@effect
Sets the space between cells in pixels.
Defaults: 0 0
@endproperty
@property
min
@parameters
[horizontal] [vertical]
@effect
When any of the parameters is enabled (1) it forces the minimum size of
the table to be equal to the minimum size of the items.
Defaults: 0 0
@endproperty
*/
static void st_collections_group_parts_part_description_table_homogeneous(void)
{
@ -11884,6 +11859,18 @@ static void st_collections_group_parts_part_description_table_homogeneous(void)
NULL);
}
/**
@page edcref
@property
align
@parameters
[horizontal] [vertical]
@effect
Change the position of the point of balance inside the table [-1.0 - 1.0].
Defaults: 0.5 0.5
@endproperty
*/
static void st_collections_group_parts_part_description_table_align(void)
{
Edje_Part_Description_Table *ed;
@ -11903,6 +11890,18 @@ static void st_collections_group_parts_part_description_table_align(void)
ed->table.align.y = FROM_DOUBLE(parse_float_range(1, -1.0, 1.0));
}
/**
@page edcref
@property
padding
@parameters
[horizontal] [vertical]
@effect
Sets the space between table cells in pixels.
Defaults: 0 0
@endproperty
*/
static void st_collections_group_parts_part_description_table_padding(void)
{
Edje_Part_Description_Table *ed;
@ -11922,6 +11921,39 @@ static void st_collections_group_parts_part_description_table_padding(void)
ed->table.padding.y = parse_int_range(1, 0, 0x7fffffff);
}
/**
@page edcref
@property
min
@parameters
[horizontal] [vertical]
@effect
When any of the parameters is enabled (1) it forces the minimum size of
the table to be equal to the minimum size of the items.
Defaults: 0 0
@endproperty
*/
static void
st_collections_group_parts_part_description_table_min(void)
{
Edje_Part_Description_Table *ed;
check_arg_count(2);
if (current_part->type != EDJE_PART_TYPE_TABLE)
{
ERR("parse error %s:%i. table attributes in non-TABLE part.",
file_in, line - 1);
exit(-1);
}
ed = (Edje_Part_Description_Table*) current_desc;
ed->table.min.h = parse_bool(0);
ed->table.min.v = parse_bool(1);
}
/**
@edcsubsection{collections_group_parts_description_proxy,
Group.Parts.Part.Description.Proxy}
@ -13312,26 +13344,6 @@ st_collections_group_parts_part_description_mesh_frame(void)
}
}
static void
st_collections_group_parts_part_description_table_min(void)
{
Edje_Part_Description_Table *ed;
check_arg_count(2);
if (current_part->type != EDJE_PART_TYPE_TABLE)
{
ERR("parse error %s:%i. table attributes in non-TABLE part.",
file_in, line - 1);
exit(-1);
}
ed = (Edje_Part_Description_Table*) current_desc;
ed->table.min.h = parse_bool(0);
ed->table.min.v = parse_bool(1);
}
/** @edcsubsection{collections_group_parts_description_physics,
* Group.Parts.Part.Description.Physics} */